From 7e550de5f0f3d6ed9c90061084c438f6c7a88b80 Mon Sep 17 00:00:00 2001 From: "noam.caronique" Date: Sun, 2 Nov 2025 14:51:56 +0100 Subject: [PATCH] travail --- .idea/vcs.xml | 6 ++++++ admin/logout.php | 5 +++-- admin/modif.php | 37 +++++++++++++++++++------------------ include/authenticator.php | 31 ------------------------------- 4 files changed, 28 insertions(+), 51 deletions(-) create mode 100644 .idea/vcs.xml delete mode 100644 include/authenticator.php diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/admin/logout.php b/admin/logout.php index 7fbd8e9..35c05b4 100644 --- a/admin/logout.php +++ b/admin/logout.php @@ -1,5 +1,5 @@ \ No newline at end of file diff --git a/admin/modif.php b/admin/modif.php index 63626bd..70684df 100644 --- a/admin/modif.php +++ b/admin/modif.php @@ -1,7 +1,7 @@ + - - - Modifier l'article - - - -

Modifier l'article

- -

- -
-
-
- - Annuler -
- + + + Modifier l'article + + + +

Modifier l'article

+ +

+ +
+
+
+ + Annuler +
+ \ No newline at end of file diff --git a/include/authenticator.php b/include/authenticator.php deleted file mode 100644 index b398e83..0000000 --- a/include/authenticator.php +++ /dev/null @@ -1,31 +0,0 @@ -prepare('SELECT * FROM utilisateur WHERE login = ?'); -$stmt->execute([$login]); -$user = $stmt->fetch(); - - -if ($user && password_verify($password, $user['password'])) { -$_SESSION['user'] = $user['login']; -return true; -} -return false; -} - - -function requireLogin() { -if (!isLogged()) { -header('Location: login.php'); -exit; -} -} \ No newline at end of file