diff --git a/__cms__/cms.php b/__cms__/cms.php index 4fb3ff6..81ac283 100644 --- a/__cms__/cms.php +++ b/__cms__/cms.php @@ -1,5 +1,5 @@ \ No newline at end of file diff --git a/__cms__/code/cms/cms.php b/__cms__/code/cms/cms.php index 5f886c6..aaed92d 100644 --- a/__cms__/code/cms/cms.php +++ b/__cms__/code/cms/cms.php @@ -2,12 +2,7 @@ error_reporting(E_ALL | E_STRICT); -require_once(dirname(__FILE__) . "/../config.php"); -if (Config::get('courriel_admin') === null) { - echo "Vous devez indiquer le courriel de l'administrateur dans le fichier config.php."; - exit; -} - +require_once(dirname(__FILE__) . "/configuration.php"); require_once(dirname(__FILE__) . "/include_tous.php"); class CMS { diff --git a/__cms__/code/cms/configuration.php b/__cms__/code/cms/configuration.php index 36fcfe7..8ec3f48 100644 --- a/__cms__/code/cms/configuration.php +++ b/__cms__/code/cms/configuration.php @@ -18,4 +18,13 @@ class Config { } } +require_once(dirname(__FILE__) . "/../chemin/path.php"); +require_once(dirname(__FILE__) . "/../../config.php"); + +if (Config::get('courriel_admin') === null) { + echo "Vous devez indiquer le courriel de l'administrateur dans le fichier config.php."; + exit; +} + + ?> \ No newline at end of file diff --git a/__cms__/config.php b/__cms__/config.php index d060b37..a486026 100644 --- a/__cms__/config.php +++ b/__cms__/config.php @@ -1,8 +1,5 @@