From a7058e4c491f4585c48cdc47c7ae3ace881d6ff8 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sun, 1 Nov 2020 08:16:30 +0100 Subject: [PATCH 1/2] =?UTF-8?q?localisation=20pour=20Free=20+=20position?= =?UTF-8?q?=20du=20d=C3=A9marrage=20de=20session?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index 89037a8e..199d18a3 100644 --- a/index.php +++ b/index.php @@ -14,6 +14,11 @@ * @link http://zwiicms.fr/ */ + /** + * Initialisation de Zwii + */ +session_start(); + /** * Vérification de la version de PHP */ @@ -25,12 +30,14 @@ if(version_compare(PHP_VERSION, '5.6.0', '<')) { *Localisation */ date_default_timezone_set('Europe/Paris'); -setlocale (LC_ALL, 'fr_FR.utf8','fr_Fr'); +/* +* Locales : +* french : free.fr +* fr_FR : XAMPP Macos +* fr_FR.utf8 : la majorité +*/ +echo setlocale (LC_ALL,'french','fr_Fr','fr_FR.utf8'); -/** - * Initialisation de Zwii - */ -session_start(); /** * Chargement des classes From ca8b3e8d7be5a5ce72ffff8be01daad13b851d76 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sun, 1 Nov 2020 08:27:32 +0100 Subject: [PATCH 2/2] Localation pour Free --- index.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/index.php b/index.php index 199d18a3..0aef1059 100644 --- a/index.php +++ b/index.php @@ -28,15 +28,14 @@ if(version_compare(PHP_VERSION, '5.6.0', '<')) { /* *Localisation - */ -date_default_timezone_set('Europe/Paris'); -/* -* Locales : -* french : free.fr -* fr_FR : XAMPP Macos -* fr_FR.utf8 : la majorité + + * Locales : + * french : free.fr + * fr_FR : XAMPP Macos + * fr_FR.utf8 : la majorité */ -echo setlocale (LC_ALL,'french','fr_Fr','fr_FR.utf8'); +date_default_timezone_set('Europe/Paris'); +setlocale (LC_ALL,'french','fr_Fr','fr_FR.utf8'); /**