require("include/top.php");
if($_SESSION["SESSION"]&&$_SESSION["SCENEID"]):
unset($submitok);
// check the submitted data
if($itemid)
{
$query = "SELECT upkeeper FROM lists where id='".$which."'";
$result=mysql_query($query);
$upkeeper=mysql_result($result,0);
if($_SESSION["SCENEID_ID"]!=$upkeeper && !($SESSION_LEVEL=='administrator' || $SESSION_LEVEL=='moderator' || $SESSION_LEVEL=='gloperator')) {
$errormessage[] = "you're not the upkeeper of this list sonnyboy";
}
if(!$type) {
$errormessage[] = "you must select a type";
}
if(!$errormessage)
$submitok=true;
}
// insert the submitted prod
if($submitok){
$query = "INSERT INTO listitems SET ";
$query.= "listitems.list='".$which."', ";
$query.= "listitems.itemid='".$itemid."', ";
$query.= "listitems.type='".$type."'";
// print($query);
mysql_query($query);
}
// get data to build the page
$result = mysql_query("DESC listitems type");
$row = mysql_fetch_row($result);
$types = explode("'",$row[1]);
?>
the lobster says "SOD OFF PUNK!"
you need special priveligies to access this page.
else: ?>