and add the following code:
<?php require_once( "../WA_Globals/WA_Globals.php" ); ?>
<?php require_once( "../WA_SecurityAssist/Helper_PHP.php" ); ?>
<?php
if(isset($_SESSION['AdminLogin'])) {
unset($_SESSION['AdminLogin']);
}
<?php <-- This line 7
if (!WA_Auth_RulePasses("Administrator")){
WA_Auth_RestrictAccess("users_LogIn.php");
}
?>
When I tried the codes provided on a logout page -- below is the error message that I got.
"Parse error: syntax error, unexpected '<' in /misc/39/000/158/672/0/user/web/africanregister.info/Admin/admin_LogOut.php on line 7"
.
.
.<?php <-- This line 7
if (!WA_Auth_RulePasses("Administrator")){
WA_Auth_RestrictAccess("users_LogIn.php");
}