Add a lot of new fields with improved and more integrated checks for

dependencies and allowed values
This commit is contained in:
2019-09-01 19:54:01 +02:00
committed by Stefan Rohde-Enslin
parent b8a03e1509
commit 13395387a0
11 changed files with 556 additions and 693 deletions

View File

@ -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');