65536) { $errormessage[]="the size of the infofile must not be greater than 64Kb"; } // if everything is ok if(!$errormessage) $submitok=true; } if(!$submitok&&file_exists($nfofile)){ unlink($nfofile); } // move the submitted nfo to the appropriate location if($submitok){ // reward the user $query ="INSERT INTO othernfos SET "; $query.="refid=".$refid.","; $query.="type='".$type."',"; $query.="adder=".$_SESSION["SCENEID_ID"].","; $query.="added=NOW()"; //print("->".$query."<-"); mysql_query($query); $lastid=mysql_insert_id(); copy($nfofile, "othernfo/".$lastid.".nfo"); unlink($nfofile); $which=$lastid; } // get data to build the page $result = mysql_query("DESC othernfos type"); $row = mysql_fetch_row($result); $types = explode("'",$row[1]); ?>
the infofile has been added
see what you've done
errors found
 -
 -
other infofiles
ref id:
type:
infofile:
the infofile is usually a .diz or .nfo ascii textfile