forked from ZwiiCMS-Team/ZwiiCampus
suspend route 403 et 404
This commit is contained in:
parent
da09b29a26
commit
249c470035
@ -885,11 +885,13 @@ class core extends common
|
|||||||
}
|
}
|
||||||
if ($access === false) {
|
if ($access === false) {
|
||||||
// Bascule sur le site d'accueil
|
// Bascule sur le site d'accueil
|
||||||
|
/*
|
||||||
if ($_SESSION['ZWII_SITE_CONTENT'] !== 'home') {
|
if ($_SESSION['ZWII_SITE_CONTENT'] !== 'home') {
|
||||||
$_SESSION['ZWII_SITE_CONTENT'] = 'home';
|
$_SESSION['ZWII_SITE_CONTENT'] = 'home';
|
||||||
header('Location:' . helper::baseUrl() . $this->getUrl());
|
header('Location:' . helper::baseUrl() . $this->getUrl());
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
http_response_code(403);
|
http_response_code(403);
|
||||||
if ($accessInfo['userName']) {
|
if ($accessInfo['userName']) {
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
@ -912,11 +914,12 @@ class core extends common
|
|||||||
}
|
}
|
||||||
} elseif ($this->output['content'] === '') {
|
} elseif ($this->output['content'] === '') {
|
||||||
// Bascule sur le site d'accueil pour afficher la page d'erreur
|
// Bascule sur le site d'accueil pour afficher la page d'erreur
|
||||||
|
/*
|
||||||
if ($_SESSION['ZWII_SITE_CONTENT'] !== 'home') {
|
if ($_SESSION['ZWII_SITE_CONTENT'] !== 'home') {
|
||||||
$_SESSION['ZWII_SITE_CONTENT'] = 'home';
|
$_SESSION['ZWII_SITE_CONTENT'] = 'home';
|
||||||
header('Location:' . helper::baseUrl() . $this->getUrl());
|
header('Location:' . helper::baseUrl() . $this->getUrl());
|
||||||
exit();
|
exit();
|
||||||
}
|
}*/
|
||||||
http_response_code(404);
|
http_response_code(404);
|
||||||
if (
|
if (
|
||||||
$this->getData(['config', 'page404']) !== 'none'
|
$this->getData(['config', 'page404']) !== 'none'
|
||||||
|
Loading…
Reference in New Issue
Block a user