Skip to content
This repository was archived by the owner on May 5, 2022. It is now read-only.

Commit aabd412

Browse files
hotfix for a bug that was making zippy unuseable
1 parent 805ddd9 commit aabd412

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

index.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
$postcont = 'explorer';
3434
} else {
3535
$setexp = false;
36-
$postcont = null;
3736
}
3837

3938

@@ -54,7 +53,7 @@
5453
include 'resources/classes/zipper.php';
5554
$zippath = !empty($_POST['zippath']) ? strip_tags($_POST['zippath']) : '.';
5655
// Resulting zipfile e.g. zipper--2016-07-23--11-55.zip
57-
$zipfile = 'zipper-'.date('Y-m-d--H-i').'.zip';
56+
$zipfile = 'files/zipper-'.date('Y-m-d--H-i').'.zip';
5857
Zipper::zipDir($zippath, $zipfile);
5958
break;
6059
case 'unzip':
@@ -92,12 +91,12 @@
9291
<link rel="icon" href="resources/gfx/favicon.ico" type="image/x-icon">
9392
</head>
9493
<body>
95-
<div class="animated zoomIn wrapper">
94+
<div class="animated fadeIn wrapper">
9695
<div class="innerwrapper">
9796
<p class="status status--<?php echo strtoupper(key($_SESSION['status'])); ?>">
9897
<b>Status:</b> <?php echo reset($_SESSION['status']); ?><br/>
9998
</p>
100-
<div id="logo">
99+
<div id="logo" class="animated bounceIn">
101100
<img src="resources/gfx/logo.png" alt="Logo" />
102101
</div>
103102
<form action="" method="POST">
@@ -127,8 +126,8 @@
127126
<h1>Archiv Zipper</h1><div class="icon"></div>
128127
<div class="innercont animated fadeIn hide">
129128
<label for="zippath">Pfad den Sie zippen wollen (Optional):</label>
130-
<input type="text" name="zippath" class="form-field" />
131-
<p class="info">Den gewünschten Pfad ohne Slash am Anfang oder Ende eingeben (z.B. "meinPfad").<br> Wenn das Feld leergelassen wird dann wird der aktuelle Pfad verwendet.</p>
129+
<input type="text" name="zippath" class="form-field" placeholder="z.B. files"/>
130+
<p class="info">Den gewünschten Pfad ohne Slash am Anfang oder Ende eingeben (z.B. "meinPfad").<br> Wenn das Feld leergelassen wird dann wird der aktuelle Pfad verwendet. <br>Die Datei befindet sich nach dem erstellen im Pfad <?php echo __DIR__ ?>/files/</p>
132131
<input type="submit" name="dozip" class="submit" value="Packen"/>
133132
</div>
134133
</fieldset>
@@ -160,7 +159,7 @@
160159
echo ' hide';
161160
} ?> animated fadeIn">
162161
<label for="exppath">Anzuzeigender Pfad:</label>
163-
<input type="text" name="exppath" class="form-field" />
162+
<input type="text" name="exppath" class="form-field" placeholder="z.B. files" />
164163
<p class="info">Sie navigieren vom Verzeichnis des Scriptes aus, verwenden sie also z.B. ../ um eine Ebene höher zu springen.</p>
165164
<input type="submit" name="explorer" class="submit" value="Anzeigen"/>
166165
<?php

0 commit comments

Comments
 (0)