aboutsummaryrefslogtreecommitdiffstats
path: root/php/delete.php
diff options
context:
space:
mode:
Diffstat (limited to 'php/delete.php')
-rw-r--r--php/delete.php15
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);
?>