I can login to my admin just fine, but when i try to go into other pages of admin i get access denied. Below code is whats on the page after i log in. and the code below that is what i have on the other admin pages that i get access denied. Can anyone tell me whats wrong ?
$root=0;
$inic="Administrator";
if(isset($sc)) parse_str(base64_decode($sc));
else setcookie("sc","");
$pms=base64_encode("login=".$login."&"."pswd=".$pswd);
if($login==$ADMIN_LOGIN && $pswd==$ADMIN_PSWD){
$root=1;
setcookie("sc",$pms,time()+3600,'/');
}
else{
_fatal("Access denied!","You don't have access to view this page!");
}
Below is code what is on other pages in admin that is causing me problems.
if(!isset($sc)) _fatal("Access denied!","Please, authorize before access this page!");