diff options
| author | polo <ordipolo@gmx.fr> | 2025-11-02 20:08:52 +0100 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2025-11-02 20:08:52 +0100 |
| commit | 28d300b48ded1d472d3593f3afc0c71c4fd2e0aa (patch) | |
| tree | e8c3a19c3d6d45126837275eee412ef44e046f96 /public | |
| parent | b9a5dd61e04ba09be0ffba300bd1da49e4de090c (diff) | |
| download | cms-28d300b48ded1d472d3593f3afc0c71c4fd2e0aa.tar.gz cms-28d300b48ded1d472d3593f3afc0c71c4fd2e0aa.tar.bz2 cms-28d300b48ded1d472d3593f3afc0c71c4fd2e0aa.zip | |
blocage suppression dernière page, page par défaut = première entrée du menu et non plus "accueil"
Diffstat (limited to 'public')
| -rw-r--r-- | public/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php index 61fa01f..b5b1f7e 100644 --- a/public/index.php +++ b/public/index.php | |||
| @@ -62,5 +62,5 @@ if($_SESSION['admin'] === false || empty($_SESSION['user'])){ // OUT !! | |||
| 62 | 62 | ||
| 63 | /* -- partie 2: routage et contrôleurs -- */ | 63 | /* -- partie 2: routage et contrôleurs -- */ |
| 64 | 64 | ||
| 65 | define('CURRENT_PAGE', htmlspecialchars($request->query->get('page') ?? 'accueil')); | 65 | define('CURRENT_PAGE', htmlspecialchars($request->query->get('page') ?? '')); |
| 66 | require '../src/router.php'; \ No newline at end of file | 66 | require '../src/router.php'; \ No newline at end of file |
