Commit fa95e844 authored by 0x010C's avatar 0x010C

Issue #3 : small fix

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