From d3f8d78b73fce17be759dd6ea27eeaf29c03186a Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Wed, 2 Feb 2022 15:31:46 +0100 Subject: [PATCH] ajout de la gestion du sous-domaine dev\ntypo dans db.class.php --- include/config.inc.php | 14 ++++++++++++-- include/db.class.php | 1 - 2 files changed, 12 insertions(+), 3 deletions(-) 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)