No access to secured pages - and no info
I've been troubleshooting a problem for hours now...I have applied simple rules to pages, and I can log on, but even as Administrator, I cannot access ANYTHING that is under SecurityAssist.
Code in page, ltac.org/mainmembers/news.php
<?php require_once( "../WA_SecurityAssist/Helper_PHP.php" ); ?>
<?php
if (!WA_Auth_RulePasses("LTAC Members")){
WA_Auth_RestrictAccess("../AccessDenied.php");
}
?>
HelperGroup rules php rules:
<?php
function WA_Auth_GetComparisonsForRule($ruleName){
$comparisons = array();
switch ($ruleName){
case "Administrator":
$comparisons[0] = array(TRUE, "".((isset($_SESSION['userLevel']))?$_SESSION['userLevel']:"") ."", 1, "3");
break;
case "LTAC Members":
$comparisons[0] = array(TRUE, "".((isset($_SESSION['userLevel']))?$_SESSION['userLevel']:"") ."", 6, "1");
break;
case "Power Users":
$comparisons[0] = array(TRUE, "".((isset($_SESSION['userLevel']))?$_SESSION['userLevel']:"") ."", 6, "2");
break;
}
return $comparisons;
}
function WA_Auth_GetGroup($groupName){
$group = Array();
switch ($groupName){
}
return $group;
}
?>
You can see at LTAC_visitors_index.php
log in with dci user dci password (assigned level 3 Administrator)
Log in works, but the redirect to news.php works then denies access and goes to AccessDenied.php (as bad login would).
I cannot figure out what I am doing wrong here.
Also, can't find any log file to explain the error.
Thanks for any help possible. This has to be some basic problem I'm missing.