Commit 3304c3d0 authored by Feu's avatar Feu

pinaillage

parent 6a81d2ea
......@@ -30,6 +30,11 @@ $timing["all"] -= microtime(true);
setlocale(LC_ALL,"fr_FR.UTF8");
if( !strncmp('/var/www/ae/www/ae2/taiste', $_SERVER['SCRIPT_FILENAME'], 26) )
$GLOBALS["taiste"] = true;
else
$GLOBALS["taiste"] = false;
require_once($topdir . "include/mysql.inc.php");
require_once($topdir . "include/mysqlae.inc.php");
require_once($topdir . "include/entities/std.inc.php");
......@@ -429,6 +434,8 @@ class interfaceweb
$timing["all"] += microtime(true);
echo "<!-- ";
print_r($timing);
if ( $GLOBALS["taiste"] )
echo "\non est en taiste\n";
echo " -->";
}
......
......@@ -36,11 +36,6 @@
/**
* @defgroup mysql Accès à la base de données
*/
if( !preg_match('/^\/var\/www\/ae\/www\//', $_SERVER['SCRIPT_FILENAME']))
$GLOBALS["taiste"] = true;
else
$GLOBALS["taiste"] = false;
/**
* Prépare une chaine de caractère pour injection dans une requête SQL pour être
......
......@@ -35,11 +35,6 @@
if ( !isset($GLOBALS['nosession']) )
session_start();
if ( $_SERVER["REMOTE_ADDR"] == "127.0.1.1" )
$GLOBALS["is_using_ssl"] = true;
else
$GLOBALS["is_using_ssl"] = false;
require_once($topdir . "include/interface.inc.php");
require_once($topdir . "include/globals.inc.php");
require_once($topdir . "include/cts/calendar.inc.php");
......@@ -306,7 +301,7 @@ class site extends interfaceweb
$this->add_box("planning", $this->get_planning_contents());
$this->add_box("services", $this->get_services_contents());
if ( preg_match('/^\/var\/www\/ae\/www\/(taiste|taiste21)\//', $_SERVER['SCRIPT_FILENAME']) )
if ( $GLOBALS["taiste"] )
$this->add_box("stream",$this->get_stream_box());
if ($this->user->is_valid())
......@@ -1238,7 +1233,7 @@ class site extends interfaceweb
$cts->add_paragraph("La webradio de l'AE");
if ( preg_match('/^\/var\/www\/ae\/www\/(taiste|taiste21)\//', $_SERVER['SCRIPT_FILENAME']) )
if ( $GLOBALS["taiste"] )
$infofile = $topdir."var/cache/stream";
else
$infofile = $topdir."var/cache/stream-prod";
......
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