diff options
author | adam <adam@> | 2021-02-13 18:39:26 +0200 |
---|---|---|
committer | adam <adam@> | 2021-02-13 18:39:26 +0200 |
commit | 32385bfd16fd588e13f5bdebae1c08fd729c5815 (patch) | |
tree | 359ddf50be0471339232be9455b72cccb74637f9 /php/delete.php | |
parent | 3ed9e9c0350ecb299373b7e58139d142c72620b7 (diff) | |
download | fileup-32385bfd16fd588e13f5bdebae1c08fd729c5815.tar.gz |
unlink recurses
Diffstat (limited to 'php/delete.php')
-rw-r--r-- | php/delete.php | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/php/delete.php b/php/delete.php index b50dbad..af13a00 100644 --- a/php/delete.php +++ b/php/delete.php @@ -1,6 +1,15 @@ <?php - - - +require_once "database.php"; +require_once "user.php"; +require_once "node.php"; + +session_start(); +$folder=$_POST["folder"]; +$filename=$_POST["filename"]; +$user=$_SESSION["user_object"]; + +error_log("someone is trying to delete".$filename); +unlink_from_folder($folder,$filename,$user); +error_log("someone is trying to delete".$filename); ?> |