From 52e1f82a3952766ed8e5706090eec6fe70efeab3 Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 12 Feb 2021 12:44:12 +0200 Subject: ; error --- php/.database.php.swp | Bin 16384 -> 0 bytes php/.node.php.swp | Bin 12288 -> 0 bytes php/.upload.php.swp | Bin 12288 -> 0 bytes php/node.php | 14 +++++++++++++- php/upload.php | 4 ++-- 5 files changed, 15 insertions(+), 3 deletions(-) delete mode 100644 php/.database.php.swp delete mode 100644 php/.node.php.swp delete mode 100644 php/.upload.php.swp (limited to 'php') diff --git a/php/.database.php.swp b/php/.database.php.swp deleted file mode 100644 index eecacf9..0000000 Binary files a/php/.database.php.swp and /dev/null differ diff --git a/php/.node.php.swp b/php/.node.php.swp deleted file mode 100644 index 2046c2b..0000000 Binary files a/php/.node.php.swp and /dev/null differ diff --git a/php/.upload.php.swp b/php/.upload.php.swp deleted file mode 100644 index e1fc62b..0000000 Binary files a/php/.upload.php.swp and /dev/null differ diff --git a/php/node.php b/php/node.php index b6c3428..3c18519 100644 --- a/php/node.php +++ b/php/node.php @@ -1,9 +1,21 @@ node_id=$node_id; + } + } + class Current_Directory + { /*an array of the dir_ids taken to reach here*/ public $path; diff --git a/php/upload.php b/php/upload.php index bd72b6b..ee4d8fe 100644 --- a/php/upload.php +++ b/php/upload.php @@ -1,6 +1,6 @@ Date: Fri, 12 Feb 2021 12:48:13 +0200 Subject: ] error --- php/upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'php') diff --git a/php/upload.php b/php/upload.php index ee4d8fe..42a8bf6 100644 --- a/php/upload.php +++ b/php/upload.php @@ -2,7 +2,7 @@ require_once "database.php"; require_once "configuration.php"; -if (!isset( $_POST["filename") || !isset($_POST["the_file"]) +if (!isset( $_POST["filename"]) || !isset($_POST["the_file"])) { http_response_code(400); error_log("someone tried to upload something impropperly"); -- cgit v1.2.3