require("include/top.php");
if (($SESSION_LEVEL=='administrator' || $SESSION_LEVEL=='moderator' || $SESSION_LEVEL=='gloperator')):
unset($submitok);
// check the submitted data
if($prodid)
{
if(!$type) {
$errormessage[] = "you must select a type";
}
if(($type!="viewingtip") && (!$category)) {
$errormessage[] = "you must select a category";
}
if(!$errormessage)
$submitok=true;
}
// insert the submitted prod
if($submitok){
$query = "INSERT INTO sceneorgrecommended SET ";
$query.= "prodid='".$prodid."', ";
$query.= "type='".$type."'";
if($category) {
$query.= ", category='".$category."'";
}
mysql_query($query);
$lastid=mysql_insert_id();
logGloperatorAction("submit_sceneorg",$prodid);
}
// get data to build the page
$result = mysql_query("SELECT id,name FROM groups ORDER BY name ASC");
while($tmp = mysql_fetch_row($result)) {
$groups[] = $tmp;
}
$result = mysql_query("DESC sceneorgrecommended type");
$row = mysql_fetch_row($result);
$types = explode("'",$row[1]);
$result = mysql_query("DESC sceneorgrecommended category");
$row = mysql_fetch_row($result);
$categorys = explode("'",$row[1]);
?>
the lobster says "NO ENTRANCE!"
you need god priveligies to access this place.
else: ?>