From cec39b22d351138f14b991a2255c24982a9615f5 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Thu, 7 Mar 2024 01:57:40 +0000 Subject: [PATCH] Update 2 files - /html/upload.php - /include/variables.php --- html/upload.php | 5 ++++- include/variables.php | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/html/upload.php b/html/upload.php index 78f861ec..df4903c3 100644 --- a/html/upload.php +++ b/html/upload.php @@ -20,7 +20,9 @@ if(isset($_POST['title']) && isset($_FILES['file'])) { } else { $bdd->bindParam(':date', date()); } - $upload->execute(); + if($upload->execute()) { + $status = "Uploaded"; + } move_uploaded_file($_FILES['file']['tmp_name'], $destination); } @@ -70,6 +72,7 @@ if(isset($_POST['title']) && isset($_FILES['file'])) {
+
diff --git a/include/variables.php b/include/variables.php index 741671b9..0b11a78a 100644 --- a/include/variables.php +++ b/include/variables.php @@ -11,6 +11,7 @@ $header_title = $config['main']['header-title']; $header_subtitle = $config['main']['header-subtitle']; $copyright = $config['main']['copyright']; $nav = $config['nav']; -$navadmin = $nav +$navadmin = $nav; +$status = ""; ?> \ No newline at end of file