require("include/top.php");
if ($SESSION_LEVEL=='administrator' || $SESSION_LEVEL=='moderator' || $SESSION_LEVEL=='gloperator'):
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) {
$errormessage[] = "you're not the upkeeper of this list sonnyboy";
}
if(!$type) {
$errormessage[] = "you must select a type";
}
$query = "SELECT itemid FROM listitems where ";
$query.= "listitems.list='".$which."' and ";
$query.= "listitems.itemid='".$itemid."' and ";
$query.= "listitems.type='".$type."'";
$query.= " LIMIT 1";
$result=mysql_query($query);
$itemcheck=mysql_result($result,0);
if($itemcheck!=$itemid) {
$errormessage[] = "no such item on this list dude! what you been smoking?";
}
if(!$errormessage)
$submitok=true;
}
// delete the submitted item
if($submitok){
$query = "DELETE FROM listitems where ";
$query.= "listitems.list='".$which."' and ";
$query.= "listitems.itemid='".$itemid."' and ";
$query.= "listitems.type='".$type."'";
$query.= " LIMIT 1";
// 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: ?>