0) { return true; } return false; } function AllowList($ListID) { if (!$ListID) return false; GLOBAL $CURRENTADMIN; GLOBAL $TABLEPREFIX; if($CURRENTADMIN['Manager'] == 1) { return true; } $AdminID = $CURRENTADMIN['AdminID']; $result = mysql_query("SELECT COUNT(*) FROM " . $TABLEPREFIX . "allow_lists WHERE AdminID='".addslashes($AdminID)."' AND ListID='".addslashes($ListID)."'"); $count = mysql_result($result, 0, 0); if($count > 0) { return true; } return false; } ?>