Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Free Torrent Source (http://www.bvlist.com/forumdisplay.php?f=25)
-   -   Disabling Needing NFO. (http://www.bvlist.com/showthread.php?t=1139)

Phogo 10th October 2008 19:37

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

Dragan3591 10th October 2008 20:11

I know the don't, I'm not sure why not though.
But I didn't quite understand what you need?

Phogo 10th October 2008 20:14

basicly i don't want to have to upload an NFO. i would like it optional.

Dragan3591 10th October 2008 20:17

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

Phogo 10th October 2008 20:34

its alright thanks buddy, im on localhost

wMan 10th October 2008 20:51

/////////////////////// 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 /////////////////////

Phogo 10th October 2008 22:01

Quote:

Originally Posted by clocktower (Post 5042)
/////////////////////// 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 /////////////////////

Worked a treat

wMan 10th October 2008 23:30

for upload

tr("NFO file", "
(Optional. Can only be viewed by power users.)\n", 1);


All times are GMT +2. The time now is 11:04.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.