From 1a881e20232bc223c4e61b8ff58023e01d76b631 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 1 Dec 2020 20:47:05 +0100 Subject: [PATCH] =?UTF-8?q?page=20d=C3=A9sactiv=C3=A9e=20->=20erreur=20404?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/core/core.php b/core/core.php index f6dff366..4bb5a593 100755 --- a/core/core.php +++ b/core/core.php @@ -40,7 +40,7 @@ class common { const ACCESS_TIMER = 1800; // Numéro de version - const ZWII_VERSION = '10.3.09'; + const ZWII_VERSION = '10.3.10'; const ZWII_UPDATE_CHANNEL = "v10"; public static $actions = []; @@ -1843,6 +1843,17 @@ class core extends common { $access = false; } } + // Empêcher l'accès aux page désactivée par URL directe + if ( ( $this->getData(['page', $this->getUrl(0),'disable']) === true + AND $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') + ) OR ( + $this->getData(['page', $this->getUrl(0),'disable']) === true + AND $this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD') + AND $this->getUser('group') < self::GROUP_MODERATOR + ) + ){ + $access = false; + } } /**