diff --git a/.DS_Store b/.DS_Store index 0c71815..c7413f4 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/controleurs/ControleurUtilisateur.php b/controleurs/ControleurUtilisateur.php index 84260f2..77328c4 100644 --- a/controleurs/ControleurUtilisateur.php +++ b/controleurs/ControleurUtilisateur.php @@ -4,8 +4,7 @@ class UserController{ public function __construct() { global $rep,$vues; - //On démarre la session - session_sart(); + $arrayErrorViews= array(); $action = $_REQUEST['action']??null; @@ -70,7 +69,7 @@ class UserController{ try{ UserModel::changerPassword($newPassword); - require($rep.$vues['profil']) + require($rep.$vues['profil']); }catch(PDOException $e){ $dataView[]="Erreur inatendue"; require($rep.$vues['erreur']); diff --git a/controleurs/ControleurVisiteur.php b/controleurs/ControleurVisiteur.php index 5b1cb52..98a9bac 100644 --- a/controleurs/ControleurVisiteur.php +++ b/controleurs/ControleurVisiteur.php @@ -4,8 +4,6 @@ class VisitorController { public function __construct() { global $rep,$vues; - //On démarre la session - session_sart(); $arrayErrorViews= array(); try{ diff --git a/controleurs/FrontControleur.php b/controleurs/FrontControleur.php index fb02d35..9823e2c 100644 --- a/controleurs/FrontControleur.php +++ b/controleurs/FrontControleur.php @@ -1,19 +1,23 @@