Update 2 files
- /html/upload.php - /html/upload-file.php
This commit is contained in:
parent
a447574e6b
commit
4f71b03fb7
@ -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";
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user