From 2f3356b156cab0ad94258e247b86fe3d20ab1a17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Fri, 15 Oct 2010 12:37:23 +0200 Subject: [PATCH] =?UTF-8?q?Chargement=20auto=20de=20ma=20configuration=20p?= =?UTF-8?q?our=20free.fr=20si=20elle=20est=20l=C3=A0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cms2/.gitignore | 1 + cms2/config.php5 | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 cms2/.gitignore diff --git a/cms2/.gitignore b/cms2/.gitignore new file mode 100644 index 0000000..c9271bd --- /dev/null +++ b/cms2/.gitignore @@ -0,0 +1 @@ +config_free.fr.php5 diff --git a/cms2/config.php5 b/cms2/config.php5 index c503096..eb103fa 100644 --- a/cms2/config.php5 +++ b/cms2/config.php5 @@ -38,4 +38,8 @@ Config::set('db_prefixe', "moteur_site_simple_2010_"); // ======== FIN CONFIGURATION ======= +if (file_exists(dirname(__FILE__) . '/config_free.fr.php5') && preg_match('/.free\.fr$/', $_SERVER['SERVER_NAME'])) { + require_once(dirname(__FILE__) . '/config_free.fr.php5'); +} + ?> \ No newline at end of file