View Single Post
  #2  
Old 24th February 2010, 13:59
Phogo's Avatar
Phogo Phogo is offline
VIP
 
Join Date: Jan 2008
United Kingdom
Posts: 902
Default
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");
Reply With Quote
The Following User Says Thank You to Phogo For This Useful Post:
Daz (28th February 2010)