Please can someone advise why this error has just appeared on my site?
allowed: '.mysql_result($rResult,0,'access').'
logged: '.$logged['admin'].'
numrows = '.mysql_numrows($rResult); $logged['admin'] = $_COOKIE['memberID']; if(mysql_numrows($rResult)>0) { $dbaccess=mysql_result($rResult,0,'access'); $access=split(',',$dbaccess); // print_r($_SERVER); $allowAccess=0; if(($_SERVER['SCRIPT_NAME']!='/'.$admin_dir.'/add_admins.php')&&($_SERVER['REQUEST_URI']!='/'.$admin_dir.'/index.php') &&($_SERVER['REQUEST_URI']!='/'.$admin_dir.'/')) { // print $_SERVER['REQUEST_URI']; if(!empty($access)) if(is_array($access)) {if(!in_array($logged['admin'],$access)) $allowAccess=0; else {$allowAccess=1;} } else {if($logged['admin'] != $access) $allowAccess=0; else {$allowAccess=1;}} if($allowAccess==0) { die(_t('_adm_no_access').'
'); } } } else if((($_SERVER['SCRIPT_NAME']=='/'.$admin_dir.'/add_admins.php')||($_SERVER['SCRIPT_NAME']=='/'.$admin_dir.'/menu_compose_admin.php'))&&($logged['admin']!=1)) die(_t('_adm_no_access').'
And more importantly how do i fix it?
Kindest regards
Chris