aboutsummaryrefslogtreecommitdiffstats
path: root/php/upload.php
diff options
context:
space:
mode:
authoradam <adam@>2021-02-14 10:00:06 +0200
committeradam <adam@>2021-02-14 10:00:06 +0200
commita3b6210ac043e2fdeb20d48d464e3a1466f388b4 (patch)
treecefb4c6095e980e6e627e0995dfa7a905310a2a1 /php/upload.php
parent4dc542a5e3d7a2a9d2b0eb97de0c567cbdd01720 (diff)
downloadfileup-a3b6210ac043e2fdeb20d48d464e3a1466f388b4.tar.gz
destroys sessions more propperly now
Diffstat (limited to 'php/upload.php')
-rw-r--r--php/upload.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/php/upload.php b/php/upload.php
index 9739744..97fbf2f 100644
--- a/php/upload.php
+++ b/php/upload.php
@@ -2,9 +2,10 @@
require_once "database.php";
require_once "configuration.php";
require_once "file_type_recogniser.php";
+require_once "user.php";
require_once "node.php";
-
session_start();
+
if (!isset( $_POST["filename"]) || !isset($_FILES["the_file"]) || !isset($_POST['parent_directory']))
{
error_log("someone tried to upload something impropperly");