diff --git a/core/class/router.class.php b/core/class/router.class.php index 84e98d1..17922c2 100644 --- a/core/class/router.class.php +++ b/core/class/router.class.php @@ -822,8 +822,9 @@ class core extends common } else { if ( $this->getData(['config', 'page403']) !== 'none' - and $this->getData(['page', $this->getData(['config', 'page403'])]) + //and $this->getData(['page', $this->getData(['config', 'page403'])]) ) { + $_SESSION['ZWII_SITE_CONTENT'] = 'home'; header('Location:' . helper::baseUrl() . $this->getData(['config', 'page403'])); } else { $this->addOutput([ @@ -836,8 +837,9 @@ class core extends common http_response_code(404); if ( $this->getData(['config', 'page404']) !== 'none' - and $this->getData(['page', $this->getData(['config', 'page404'])]) + //and $this->getData(['page', $this->getData(['config', 'page404'])]) ) { + $_SESSION['ZWII_SITE_CONTENT'] = 'home'; header('Location:' . helper::baseUrl() . $this->getData(['config', 'page404'])); } else { $this->addOutput([ diff --git a/core/core.php b/core/core.php index cf01d85..75a5687 100644 --- a/core/core.php +++ b/core/core.php @@ -329,7 +329,7 @@ class common // Extraction de la sesion // $this->input['_SESSION'] = $_SESSION; - +echo $_SESSION['ZWII_SITE_CONTENT']; // Déterminer le contenu du site if (isset($_SESSION['ZWII_SITE_CONTENT'])) { // Déterminé par la session présente