first commit

This commit is contained in:
Lionel
2020-11-08 15:07:01 +01:00
commit 4ee46c5f35
13 changed files with 817 additions and 0 deletions

22
delete.php Normal file
View File

@ -0,0 +1,22 @@
<?php
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
$root = $_SERVER["DOCUMENT_ROOT"];
$directory = "/uploads/";
if(isset($_GET["file"])) {
$file = $root.$directory.$_GET["file"];
if(file_exists($file))
unlink($file);
else {
header("HTTP/1.1 400 File not Found");
echo "File not Found";
exit();
}
}
//header('Refresh:0; url='.$_SERVER['HTTP_REFERER']);
?>