Commit e1322ddb authored by Skia's avatar Skia

Update taiste to match new url: https://ae-taiste.utbm.fr

parent 40ffbbc7
...@@ -154,7 +154,7 @@ class interfaceweb ...@@ -154,7 +154,7 @@ class interfaceweb
/* Check if user is connected */ /* Check if user is connected */
if (!$this->user->is_valid()) { if (!$this->user->is_valid()) {
if ($GLOBALS["taiste"]) if ($GLOBALS["taiste"])
$frm = new form("connect", "/taiste/connect.php", true, "POST", "Connexion"); $frm = new form("connect", $GLOBALS['wwwtopdir']."/connect.php", true, "POST", "Connexion");
else else
$frm = new form("connect", "/connect.php", true, "POST", "Connexion"); $frm = new form("connect", "/connect.php", true, "POST", "Connexion");
$frm->add_select_field("domain", $frm->add_select_field("domain",
...@@ -388,7 +388,7 @@ class interfaceweb ...@@ -388,7 +388,7 @@ class interfaceweb
//else //else
// $url = "http://ae.utbm.fr"; // $url = "http://ae.utbm.fr";
if ($GLOBALS["taiste"]) if ($GLOBALS["taiste"])
$url .= "/taiste/"; $url = "https://ae-taiste.utbm.fr";
if (defined("MOBILE")) if (defined("MOBILE"))
$url .= 'm/'; $url .= 'm/';
...@@ -459,7 +459,7 @@ class interfaceweb ...@@ -459,7 +459,7 @@ class interfaceweb
$this->buffer .= "menu_utilisateur[$i]='<a href=\"" . $topdir . "ae/infotodo.php\">Tâches équipe info</a>';"; $this->buffer .= "menu_utilisateur[$i]='<a href=\"" . $topdir . "ae/infotodo.php\">Tâches équipe info</a>';";
} }
$i++; $i++;
$this->buffer .= "menu_utilisateur[$i]='<a href=\"/taiste/\">/taiste</a>';"; $this->buffer .= "menu_utilisateur[$i]='<a href=\"https://ae-taiste.utbm.fr/\">Taiste</a>';";
} }
$i++; $i++;
if ($this->user->utbm) { if ($this->user->utbm) {
......
...@@ -30,8 +30,8 @@ $wwwtopdir = ""; ...@@ -30,8 +30,8 @@ $wwwtopdir = "";
if (!strncmp('/var/www/taiste', $_SERVER['SCRIPT_FILENAME'], 15)) { if (!strncmp('/var/www/taiste', $_SERVER['SCRIPT_FILENAME'], 15)) {
$GLOBALS["taiste"] = true; $GLOBALS["taiste"] = true;
$GLOBALS["wwwtopdir"] = "/taiste/"; $GLOBALS["wwwtopdir"] = "/";
$wwwtopdir = "/taiste/"; $wwwtopdir = "/";
$fstopdir = $_SERVER['DOCUMENT_ROOT'] . "/../taiste/"; $fstopdir = $_SERVER['DOCUMENT_ROOT'] . "/../taiste/";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment