From a7058e4c491f4585c48cdc47c7ae3ace881d6ff8 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sun, 1 Nov 2020 08:16:30 +0100 Subject: [PATCH] =?UTF-8?q?localisation=20pour=20Free=20+=20position=20du?= =?UTF-8?q?=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