Add a lot of new fields with improved and more integrated checks for
dependencies and allowed values
This commit is contained in:
20
zipit.php
20
zipit.php
@ -1,5 +1,8 @@
|
||||
<?PHP
|
||||
require_once "inc/zip.php";
|
||||
|
||||
require_once __DIR__ . "/functions/functions.php";
|
||||
|
||||
$fileTime = date("D, d M Y H:i:s T");
|
||||
$fileDir = 'xml/';
|
||||
|
||||
@ -38,20 +41,5 @@ header("Content-Transfer-Encoding: binary");
|
||||
header("Content-Length: " . $length);
|
||||
echo $zipData;
|
||||
|
||||
function rrmdir($dir) {
|
||||
if (is_dir($dir)) {
|
||||
$objects = scandir($dir);
|
||||
foreach ($objects as $object) {
|
||||
if ($object != "." && $object != "..") {
|
||||
if (filetype($dir . "/" . $object) == "dir") rrmdir($dir . "/" . $object); else unlink($dir . "/" . $object);
|
||||
}
|
||||
}
|
||||
reset($objects);
|
||||
rmdir($dir);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$dir_name = 'xml';
|
||||
rrmdir($dir_name);
|
||||
rrmdir(__DIR__ . '/xml');
|
||||
|
||||
|
Reference in New Issue
Block a user