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