access_admin; $accesscache['config']=$r->access_config; $accesscache['super']=$r->access_super; switch($access) { case "config": if($r->access_config=='Y') return true; break; case "admin": if($r->access_admin=='Y') return true; break; case "super": if($r->access_super=='Y') return true; break; default: return false; break; } } return false; } function auth_required($access="") { global $config; if(!auth_has_access($access)) header("Location: ".$config['SFIABDIRECTORY']."/committee_login.php"); } ?>