require("include/top.php");
if (($SESSION_LEVEL=='administrator' || $SESSION_LEVEL=='moderator' || $SESSION_LEVEL=='gloperator')):
unset($submitok);
// check the submitted data
if ($name)
{
// check user account
if(!$_SESSION["SESSION"]||!$_SESSION["SCENEID"])
$errormessage[]="you need to be logged in first.";
if(!($upkeeper>0))
$errormessage[]="upkeeper must be a valid number";
// if everything is ok
if(!$errormessage)
$submitok=true;
}
// insert the submitted prod
if($submitok){
//double insert check
$query="SELECT name FROM lists ORDER BY added DESC LIMIT 1";
$result=mysql_query($query);
$lastone=mysql_fetch_assoc($result);
if($lastone["name"]!=$name)
{
$query = "INSERT INTO lists SET ";
$query.= "lists.name='".$name."', ";
$query.= "lists.desc='".$desc."', ";
$query.= "upkeeper='".$upkeeper."', ";
$query.= "adder='".$_SESSION["SCENEID_ID"]."', ";
$query.= "added=NOW()";
mysql_query($query);
// print("pong->".$query);
$lastid=mysql_insert_id();
}
//print("ping");
}
?>
the lobster says "FUCK OFF!"
you need special priveligies to access this page.
else: ?>