Commit fa95e844 authored by 0x010C's avatar 0x010C

Issue #3 : small fix

parent bbd2ce85
......@@ -49,7 +49,6 @@
*
*/
require_once($topdir . "include/taiste.inc.php");
$basedir = dirname(dirname($_SERVER['SCRIPT_FILENAME']));
$basedircomp = explode("/",$basedir);
......@@ -165,7 +164,7 @@ class aecms extends site
function allow_only_logged_users($section="none")
{
global $topdir;
global $topdir, $wwwtopdir;
if ( $this->user->is_valid() )
return;
......@@ -196,7 +195,7 @@ class aecms extends site
{
if ( $this->user->hash != "valid" )
{
header("Location: http://ae.utbm.fr". $GLOBALS["wwwtopdir"]."article.php?name=site:activate");
header("Location: http://ae.utbm.fr".$wwwtopdir."article.php?name=site:activate");
exit();
}
if($this->user->is_password($_POST["password"]))
......
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