Chargement auto de ma configuration pour free.fr si elle est là.

This commit is contained in:
Georges Dupéron 2010-10-15 12:37:23 +02:00
parent 91de3f81c9
commit 2f3356b156
2 changed files with 5 additions and 0 deletions

1
cms2/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
config_free.fr.php5

View File

@ -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');
}
?>