diff options
author | polo <ordipolo@gmx.fr> | 2025-09-10 01:02:36 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2025-09-10 01:02:36 +0200 |
commit | efd79d15adef2a27347c25ebb19754e9937f9715 (patch) | |
tree | 6114ec988ef4dfd7cdf2e2ca07cc9762f8fec4c3 /src/router.php | |
parent | 5e41bea598ff38b3c520b69fd92ee3412e716df2 (diff) | |
download | cms-efd79d15adef2a27347c25ebb19754e9937f9715.zip |
modification d'une URL page Menu et chemin, htmlspecialchars sur les URL du menu à l'affichage
Diffstat (limited to 'src/router.php')
-rw-r--r-- | src/router.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/router.php b/src/router.php index 04441a9..3c3c773 100644 --- a/src/router.php +++ b/src/router.php | |||
@@ -156,9 +156,12 @@ elseif($_SERVER['REQUEST_METHOD'] === 'POST'){ | |||
156 | elseif($_GET['menu_edit'] === 'switch_positions' && isset($json['id1']) && isset($json['id2'])){ | 156 | elseif($_GET['menu_edit'] === 'switch_positions' && isset($json['id1']) && isset($json['id2'])){ |
157 | MenuAndPathsController::switchPositions($entityManager, $json); | 157 | MenuAndPathsController::switchPositions($entityManager, $json); |
158 | } | 158 | } |
159 | elseif($_GET['menu_edit'] === 'displayInMenu' && isset($json['id']) && isset($json['checked'])){ | 159 | elseif($_GET['menu_edit'] === 'display_in_menu' && isset($json['id']) && isset($json['checked'])){ |
160 | MenuAndPathsController::displayInMenu($entityManager, $json); | 160 | MenuAndPathsController::displayInMenu($entityManager, $json); |
161 | } | 161 | } |
162 | elseif($_GET['menu_edit'] === 'edit_url_entry' && isset($json['id']) && isset($json['url_input'])){ | ||
163 | MenuAndPathsController::editUrlEntry($entityManager, $json); | ||
164 | } | ||
162 | } | 165 | } |
163 | 166 | ||
164 | /* -- mode Modification d'une page -- */ | 167 | /* -- mode Modification d'une page -- */ |