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