summaryrefslogtreecommitdiff
path: root/src/controller/post.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/controller/post.php')
-rw-r--r--src/controller/post.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/controller/post.php b/src/controller/post.php
index b0bc6a0..3ba0656 100644
--- a/src/controller/post.php
+++ b/src/controller/post.php
@@ -220,6 +220,14 @@ if($_SERVER['REQUEST_METHOD'] === 'POST' && $_SESSION['admin'] === true)
220 header("Location: " . new URL(['page' => $_GET['from']])); 220 header("Location: " . new URL(['page' => $_GET['from']]));
221 die; 221 die;
222 } 222 }
223 elseif(isset($_GET['action']) && $_GET['action'] === 'modif_mdp'
224 && isset($_POST['login']) && isset($_POST['old_password']) && isset($_POST['new_password'])
225 && isset($_POST['modify_password_hidden']) && empty($_POST['modify_password_hidden']))
226 {
227 changePassword($entityManager);
228 header("Location: " . new URL(['page' => $_GET['from']]));
229 die;
230 }
223 else{ 231 else{
224 header("Location: " . new URL(['error' => 'paramètres inconnus'])); 232 header("Location: " . new URL(['error' => 'paramètres inconnus']));
225 die; 233 die;
@@ -230,5 +238,8 @@ if($_SERVER['REQUEST_METHOD'] === 'POST' && $_SESSION['admin'] === true)
230 else{ 238 else{
231 require '../src/controller/ajax.php'; 239 require '../src/controller/ajax.php';
232 } 240 }
241
242 require '../src/controller/ajax_calendar_admin.php';
233} 243}
234require '../src/controller/ajax_calendar.php'; \ No newline at end of file 244
245require '../src/controller/ajax_calendar_visitor.php';