diff --git a/include/config.inc.php b/include/config.inc.php index a337caa..f8c7b18 100644 --- a/include/config.inc.php +++ b/include/config.inc.php @@ -20,8 +20,18 @@ $site = "Avion Poème"; $dossier = "/www"; $basedir = dirname($_SERVER['DOCUMENT_ROOT']) . $dossier; -$base_url = "https://avion-poe.me"; -$base_path = "/flex/storage/avion-poe.me/site/www/"; +$testMode = true; + +if ($testMode) +{ + $base_url = "https://avion-poe.me"; + $base_path = "/flex/storage/avion-poe.me/site/www/"; +}else +{ + $base_url = "https://dev.avion-poe.me"; + $base_path = "/flex/storage/avion-poe.me/site/dev/"; +} + $url_admin = $base_url . "/gestion"; $accueil = $base_url . "/index.html"; if (empty($_SERVER["PHP_AUTH_USER"])) { diff --git a/include/db.class.php b/include/db.class.php index 2922a47..fac5fcc 100644 --- a/include/db.class.php +++ b/include/db.class.php @@ -133,7 +133,6 @@ class db $this->urlAvion = $base_url . "/?avionpoeme=" . $this->uid; $this->newPeripetie(); courrielEnvoi($this); - } function getPlane($uid)