From 8cd9e993d9ae8009a2bd61ad5ac0805e7728ffa8 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Mon, 13 Mar 2023 15:16:54 +0100 Subject: [PATCH] comment obfuscation --- core/class/router.class.php | 16 ++++++++-------- core/core.php | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/core/class/router.class.php b/core/class/router.class.php index 74ea8b44..849d8c3a 100644 --- a/core/class/router.class.php +++ b/core/class/router.class.php @@ -907,23 +907,23 @@ class core extends common break; // Layout allégé case self::DISPLAY_LAYOUT_LIGHT: - ob_start(); + //ob_start(); require 'core/layout/light.php'; // Supprime les espaces, les sauts de ligne, les tabulations et autres caractères inutiles - $content = preg_replace('/\s+/u', ' ', ob_get_clean()); + //$content = preg_replace('/\s{2,}/u', ' ', ob_get_clean()); // Convertit la chaîne en UTF-8 pour conserver les caractères accentués - $content = mb_convert_encoding($content, 'UTF-8', 'UTF-8'); - echo $content; + //$content = mb_convert_encoding($content, 'UTF-8', 'UTF-8'); + //echo $content; break; // Layout principal case self::DISPLAY_LAYOUT_MAIN: - ob_start(); + //ob_start(); require 'core/layout/main.php'; // Supprime les espaces, les sauts de ligne, les tabulations et autres caractères inutiles - $content = preg_replace('/\s+/u', ' ', ob_get_clean()); + //$content = preg_replace('/\s{2,}/u', ' ', ob_get_clean()); // Convertit la chaîne en UTF-8 pour conserver les caractères accentués - $content = mb_convert_encoding($content, 'UTF-8', 'UTF-8'); - echo $content; + //$content = mb_convert_encoding($content, 'UTF-8', 'UTF-8'); + //echo $content; break; } } diff --git a/core/core.php b/core/core.php index f3bda6d9..f8d57d4b 100644 --- a/core/core.php +++ b/core/core.php @@ -53,7 +53,7 @@ class common const ACCESS_TIMER = 1800; // Numéro de version et branche pour l'auto-update - const ZWII_VERSION = '12.3.01'; + const ZWII_VERSION = '12.3.02'; const ZWII_DATAVERSION = 12301;