0) || (strlen($myurl["pass"])>0)) ) $errormessage[] = "no private FTP please"; if(!basename($myurl["path"])) $errormessage[] = "no file? no prod!"; } // check the release date if((($rmonth)&&($ryear))&&(($rmonth>date('m'))&&($ryear>=date('Y')))) { $errormessage[]="you can't submit a prod released in the future, sorry =)"; } // check the prod type if(!count($type)) { $errormessage[] = "you must select at least one type for this prod"; } if(!count($platform)) { $errormessage[] = "you must select at least one platform"; } // check the party input if(($pyear&&!$party)||($prank&&!$party)) $errormessage[] = "please select a party"; if(($party&&!$pyear)&&$party!=1024) $errormessage[] = "please select a party year"; // check the screenshot if(is_uploaded_file($sshotfile)) { $fileinfo = GetImageSize($sshotfile); switch($fileinfo[2]) { case 1:$mytype=".gif";break; case 2:$mytype=".jpg";break; case 3:$mytype=".png";break; default: $errormessage[]="the screenshot is not a valid .gif/jpg or .png file"; break; } if($fileinfo[0]>400) { $errormessage[]="the width of the screenshot must not be greater than 400 pixels"; } if($fileinfo[1]>300) { $errormessage[]="the height of the screenshot must not be greater than 300 pixels"; } if(filesize($sshotfile)>65536) { $errormessage[]="the size of the screenshot must not be greater than 64Kb"; } } // check the .nfo if(is_uploaded_file($nfofile)) { if(filesize($nfofile)>32768) { $errormessage[]="the size of the infofile must not be greater than 32Kb"; } } // Hardcoded for now, should be handled dynamically by the moderators if ((int)($_SESSION["SCENEID_ID"])==3254) // solo2 $errormessage[]="you're not allowed to submit prods right now. sorry. come back later."; if ((int)($_SESSION["SCENEID_ID"])==27338) // solo2 $errormessage[]="you're not allowed to submit prods right now. sorry. come back later."; if ((int)($_SESSION["SCENEID_ID"])==25511) // Roy[SAC] $errormessage[]="you're not allowed to submit prods right now. sorry. come back later."; if ((int)($_SESSION["SCENEID_ID"])==4627) // magic $errormessage[]="you're not allowed to submit prods right now. sorry. come back later."; if ((int)($_SESSION["SCENEID_ID"])==24880) // bittin $errormessage[]="you're not allowed to submit prods right now. sorry. come back later."; if ((int)($_SESSION["SCENEID_ID"])==58309) // fritske $errormessage[]="you're not allowed to submit prods right now. sorry. come back later."; // if everything is ok if(!$errormessage) $submitok=true; } // delete uploads if prod is wrong if(!$submitok) { if(file_exists($sshotfile)) unlink($sshotfile); if(file_exists($nfofile)) unlink($nfofile); } // get list of all platforms $query="select * from platforms order by name asc"; $result = mysql_query($query); while($tmp = mysql_fetch_array($result)) { $platforms[]=$tmp; } // insert the submitted prod if($submitok){ //double insert check $query="SELECT name FROM prods ORDER BY quand DESC LIMIT 1"; $result=mysql_query($query); $lastone=mysql_fetch_assoc($result); if($lastone["name"]!=$name) { $query = "INSERT INTO prods SET "; $query.= "name='".mysql_real_escape_string($name)."', "; if($group1) { $query.= "group1=".((int)$group1).", "; } if($group2) { $query.= "group2=".((int)$group2).", "; } if($group3) { $query.= "group3=".((int)$group3).", "; } $query.= "download='".$download."', "; if(($rmonth)&&($ryear)) { $query.= "date='".$ryear."-".$rmonth."-15', "; } else { if($ryear) { $query.= "date='".$ryear."-00-15', "; } } $query.= "type='"; if(count($type)>0) { $query.= $type[0]; } for($i=1;$i0) { $query.= $platform[0]; } for($i=1;$iyou're not allowed to submit prods right now. sorry. come back later.

"; } else { ?>
this prod has been added
feel free to add another one
see what you've done
errors found
 -
 -
prod information
name:
group id:
other group id:
third group id:

please make sure you enter correct id numbers for the groups..
you can verify their id numbers on the same place where you submit new groups
don't be lazy to double check them or the lobster will bite your nipples off! (\/) -_- (\/)
download url:

if there are extra download links you wanted to add, ask a gloperator

the download link must point directly to the file, or else it is considered invalid and risks being deleted. (scene.org is an exception.)
csdb id:
sceneorg id:
zxdemo id:
release date:
type:

if it's an artpack or musicdisk without GUI/viewer, _DON'T ADD IT_
if it's not demoscene related, _DON'T ADD IT_
if you have doubts about it beeing demoscene related, _DON'T ADD IT_
platform:
party:

if you're sure it was released at a party but don't know which one choose the blank option instead of __no_party__
party year:
party rank:

97: disqualified (delivered, maybe shown, disqualified, still released)
98: not appliable (votedisks, invitations, wilds not in compos, musicdisks, diskmags, etc)
99: not shown (delivered for compo, not shown, not disqualified, still released)
partycompo:

if you're unsure of the correct compo, don't choose one!
leave it for the experts, you won't loose a glop!
invitation for party/bbs:

id number, not the name.
invitation party year: NOT the year when it was released!
infofile:

upload the related .diz or .nfo with most usefull information
size limit is 32kb
screenshot:

.gif .jpg or .png
width and height limit are 400x300