Update 2 files

- /html/upload.php
- /html/upload-file.php
This commit is contained in:
Jan BELLON 2024-03-07 17:40:08 +00:00
parent a447574e6b
commit 4f71b03fb7
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ if(isset($_POST['titre']) && isset($_FILES['file'])) {
if (isset($_POST['date']) && empty($_POST['date']) == false) {
$upload->bindParam(':date', htmlspecialchars($_POST['date']));
} else {
$upload->bindParam(':date', date());
$upload->bindParam(':date', date("Y-m-d"));
}
if($upload->execute()) {
$status = "Uploaded";

View File

@ -22,7 +22,7 @@ if(isset($_POST['page-content'])) {
$upload->bindParam(':filename', $filename);
$upload->bindParam(':titre', htmlspecialchars($_POST['titre']));
$upload->bindParam(':auteur', $_SESSION['display_name']);
$upload->bindParam(':date', date());
$upload->bindParam(':date', date("Y-m-d"));
if($upload->execute()) {
$status = "Article Publié";
} else {