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