ajout de la gestion du sous-domaine dev\ntypo dans db.class.php
This commit is contained in:
parent
276a21b3a3
commit
d3f8d78b73
@ -20,8 +20,18 @@ $site = "Avion Poème";
|
|||||||
$dossier = "/www";
|
$dossier = "/www";
|
||||||
$basedir = dirname($_SERVER['DOCUMENT_ROOT']) . $dossier;
|
$basedir = dirname($_SERVER['DOCUMENT_ROOT']) . $dossier;
|
||||||
|
|
||||||
$base_url = "https://avion-poe.me";
|
$testMode = true;
|
||||||
$base_path = "/flex/storage/avion-poe.me/site/www/";
|
|
||||||
|
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";
|
$url_admin = $base_url . "/gestion";
|
||||||
$accueil = $base_url . "/index.html";
|
$accueil = $base_url . "/index.html";
|
||||||
if (empty($_SERVER["PHP_AUTH_USER"])) {
|
if (empty($_SERVER["PHP_AUTH_USER"])) {
|
||||||
|
@ -133,7 +133,6 @@ class db
|
|||||||
$this->urlAvion = $base_url . "/?avionpoeme=" . $this->uid;
|
$this->urlAvion = $base_url . "/?avionpoeme=" . $this->uid;
|
||||||
$this->newPeripetie();
|
$this->newPeripetie();
|
||||||
courrielEnvoi($this);
|
courrielEnvoi($this);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getPlane($uid)
|
function getPlane($uid)
|
||||||
|
Reference in New Issue
Block a user