Disabling Needing NFO.
As you know not all releases have NFO's, just wondering if there's an easy way to do this?
Regards Phogo |
I know the don't, I'm not sure why not though.
But I didn't quite understand what you need? |
basicly i don't want to have to upload an NFO. i would like it optional.
|
Oh, I'll look in the code when I get home!
CLICK HERE nick: Test pass: user1234 Go here and play around in settings if you are afraid to mess something up on your tracker |
its alright thanks buddy, im on localhost
|
/////////////////////// NFO FILE ////////////////////////
if(isset($_FILES['nfo']) && !empty($_FILES['nfo']['name'])) { $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"); $nfo = sqlesc(str_replace("\x0d\x0d\x0a", "\x0d\x0a", @file_get_contents($nfofilename))); } /////////////////////// NFO FILE END ///////////////////// |
Quote:
|
for upload
tr("NFO file", " (Optional. Can only be viewed by power users.)\n", 1); |
All times are GMT +2. The time now is 05:28. |
Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.