Commit 34c88fa6 authored by Ayolo's avatar Ayolo

mouick

parent 67dbe847
......@@ -36,14 +36,14 @@
/* On interdit le chargement de ce script si il ne vient pas du site
officiel et qu'il n'y a pas de conf personnelle */
if( isset($_SERVER['SCRIPT_FILENAME']) && !preg_match('/^\/var\/www\/ae\/www\/(taiste|taiste21|ae2)\//', $_SERVER['SCRIPT_FILENAME'])
if( !empty($_SERVER['SCRIPT_FILENAME']) && !preg_match('/^\/var\/www\/ae\/www\/(taiste|taiste21|ae2)\//', $_SERVER['SCRIPT_FILENAME'])
&& !ereg("^/var/www/ae/accounts/([a-z]*)/aecms",$_SERVER['SCRIPT_FILENAME']) )
{
/* On est peut_etre dans le cas d'une utilisation "home" */
if (file_exists($topdir . "include/mysqlae_home.inc.php"))
require_once($topdir . "include/mysqlae_home.inc.php");
else
die($_SERVER['SCRIPT_FILENAME']);
die("denied");
}
else
......@@ -72,7 +72,7 @@ else
{
// Tschuut on a rien vu ...
if ( ! $this->mysql('importforum', 'importequoi', 'host', 'UTBM'))
return FALSE;
return FALSE;
}
}
}
......
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