|
33 | 33 | $postcont = 'explorer'; |
34 | 34 | } else { |
35 | 35 | $setexp = false; |
36 | | - $postcont = null; |
37 | 36 | } |
38 | 37 |
|
39 | 38 |
|
|
54 | 53 | include 'resources/classes/zipper.php'; |
55 | 54 | $zippath = !empty($_POST['zippath']) ? strip_tags($_POST['zippath']) : '.'; |
56 | 55 | // 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'; |
58 | 57 | Zipper::zipDir($zippath, $zipfile); |
59 | 58 | break; |
60 | 59 | case 'unzip': |
|
92 | 91 | <link rel="icon" href="resources/gfx/favicon.ico" type="image/x-icon"> |
93 | 92 | </head> |
94 | 93 | <body> |
95 | | - <div class="animated zoomIn wrapper"> |
| 94 | + <div class="animated fadeIn wrapper"> |
96 | 95 | <div class="innerwrapper"> |
97 | 96 | <p class="status status--<?php echo strtoupper(key($_SESSION['status'])); ?>"> |
98 | 97 | <b>Status:</b> <?php echo reset($_SESSION['status']); ?><br/> |
99 | 98 | </p> |
100 | | - <div id="logo"> |
| 99 | + <div id="logo" class="animated bounceIn"> |
101 | 100 | <img src="resources/gfx/logo.png" alt="Logo" /> |
102 | 101 | </div> |
103 | 102 | <form action="" method="POST"> |
|
127 | 126 | <h1>Archiv Zipper</h1><div class="icon"></div> |
128 | 127 | <div class="innercont animated fadeIn hide"> |
129 | 128 | <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> |
132 | 131 | <input type="submit" name="dozip" class="submit" value="Packen"/> |
133 | 132 | </div> |
134 | 133 | </fieldset> |
|
160 | 159 | echo ' hide'; |
161 | 160 | } ?> animated fadeIn"> |
162 | 161 | <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" /> |
164 | 163 | <p class="info">Sie navigieren vom Verzeichnis des Scriptes aus, verwenden sie also z.B. ../ um eine Ebene höher zu springen.</p> |
165 | 164 | <input type="submit" name="explorer" class="submit" value="Anzeigen"/> |
166 | 165 | <?php |
|
0 commit comments