Thread: Help me
View Single Post
  #3  
Old 26th September 2008, 21:49
Kotafi Kotafi is offline
Senior Member
 
Join Date: Jan 2008
Posts: 139
Wink
Making NFO Optional ;)

In upload.php find the old line :

Code:
tr("NFO file", "<input type=file name=nfo size=81><br>(<b>Required.</b> Can only be viewed by power users.)\n", 1);
replace it with :
Code:
tr("NFO file", "<input type=file name=nfo size=81><br>(<b>optional.</b> Can only be viewed by power users)\n", 1);
In takeupload.php comment the lines out , so should look like this :

Code:
$nfofile = $_FILES['nfo'];
//if ($nfofile['name'] == '')
  /*bark("No NFO!");*/

//if ($nfofile['size'] == 0)
 /* bark("0-byte NFO");*/

if ($nfofile['size'] > 65535)
  bark("NFO is too big! Max 65,535 bytes.");

$nfofilename = $nfofile['tmp_name'];

//if (@!is_uploaded_file($nfofilename))
 // bark("NFO upload failed");


Taken from here: Board Message

Last edited by Fynnon; 26th September 2008 at 21:52. Reason: making it easier...
Reply With Quote