CANNOT FIND GUEST USER: " . $config["guest_user"]["value"] . ""; }else{ if ($user_id == "") { $user_id = $sql_id[ID]; } $res_id = db_fetch_assoc("select a.SectionID, a.UserID, s.ID, s.Section from auth_acl a left join auth_sections s on a.sectionid=s.id where s.section=\"$section\" and a.userid=$user_id"); if (sizeof($res_id) != 0) { $au = 1; } } } } if ($au != 1) { $res_id = db_fetch_assoc("select a.SectionID, a.UserID, s.ID, s.Section from auth_acl a left join auth_sections s on a.sectionid=s.id where s.section=\"$section\" and a.userid=\"$user_id\""); $rows = sizeof($res_id); /* Make sure user is logged in */ if ($user_id == "") { include_once ("auth_login.php"); exit; } /* Make sure they are authenticated */ if ($rows != "") { $au = 1; }else{ $au = 0; include_once ("auth_noauth.php"); exit; } } } ?>