diff options
author | polo <ordipolo@gmx.fr> | 2025-06-24 23:57:59 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2025-06-24 23:57:59 +0200 |
commit | 7a13d53e43c7db7fe39474208ffa54ba2906d308 (patch) | |
tree | 5bb9af2935c0e7c753c5eace6d9e4538c739a383 /public | |
parent | 41adf94ebf868232aa43fe9b8b80029896da9da7 (diff) | |
download | cms-7a13d53e43c7db7fe39474208ffa54ba2906d308.zip |
petites améliorations au système de mot de passe
Diffstat (limited to 'public')
-rw-r--r-- | public/css/calendar.css | 4 | ||||
-rw-r--r-- | public/index.php | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/public/css/calendar.css b/public/css/calendar.css index ba9a462..1cfb0fd 100644 --- a/public/css/calendar.css +++ b/public/css/calendar.css | |||
@@ -34,6 +34,10 @@ td .fc-timegrid-axis{ | |||
34 | .fc-day-other{ | 34 | .fc-day-other{ |
35 | background-color: #f0f0f0; | 35 | background-color: #f0f0f0; |
36 | } | 36 | } |
37 | .fc-daygrid-day:not(.fc-day-other, .fc-day-today){ | ||
38 | background-color: #ffffff; | ||
39 | } | ||
40 | |||
37 | .fc-daygrid-day-top{ | 41 | .fc-daygrid-day-top{ |
38 | justify-content: center; | 42 | justify-content: center; |
39 | } | 43 | } |
diff --git a/public/index.php b/public/index.php index d6ca8d4..56af032 100644 --- a/public/index.php +++ b/public/index.php | |||
@@ -31,6 +31,10 @@ ini_set('session.use_strict_mode', 'On'); | |||
31 | ini_set('session.cookie_secure', 'On'); | 31 | ini_set('session.cookie_secure', 'On'); |
32 | session_start(); | 32 | session_start(); |
33 | $_SESSION['admin'] = !isset($_SESSION['admin']) ? false : $_SESSION['admin']; // intialisation sur faux | 33 | $_SESSION['admin'] = !isset($_SESSION['admin']) ? false : $_SESSION['admin']; // intialisation sur faux |
34 | if($_SESSION['admin'] === false || empty($_SESSION['user'])){ // OUT !! | ||
35 | $_SESSION['user'] = ''; | ||
36 | $_SESSION['admin'] = false; | ||
37 | } | ||
34 | 38 | ||
35 | // login, mot de passe et captcha | 39 | // login, mot de passe et captcha |
36 | require '../src/controller/password.php'; | 40 | require '../src/controller/password.php'; |
@@ -49,8 +53,8 @@ require '../src/controller/post.php'; | |||
49 | $id = ''; | 53 | $id = ''; |
50 | if(!empty($_GET['id'])) | 54 | if(!empty($_GET['id'])) |
51 | { | 55 | { |
52 | //$id = (int)$_GET['id']; // (int) = moyen basique d'éviter les injections | 56 | $id = (int)$_GET['id']; // (int) évite les injections, pas parfait d'après chatgpt |
53 | $id = Security::secureString($_GET['id']); | 57 | //$id = Security::quelqueChose($_GET['id']); |
54 | } | 58 | } |
55 | 59 | ||
56 | if(isset($_GET['action']) && $_GET['action'] === 'deconnexion') | 60 | if(isset($_GET['action']) && $_GET['action'] === 'deconnexion') |