Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Yuna Scatari Edition (YSE) (http://www.bvlist.com/forumdisplay.php?f=22)
-   -   FreeLeech (http://www.bvlist.com/showthread.php?t=444)

vertex 12th June 2008 07:36

FreeLeech
 
Where i can get fixed freeleech mod... I need with one bottom put all torrents gold! :sos:

BoLaMN 12th June 2008 11:21

Re: FreeLeech
 
easy to code i think this is what ur after...

Place this in a new php file called "free.php"
works for me but i only had 1 torrent to test it on

Code:

ob_start("ob_gzhandler");
require "include/bittorrent.php";
dbconn();
loggedinorreturn();
if (get_user_class() < UC_MODERATOR)
{
newerr("Error", "Access denied.",true,true);
}
if ($HTTP_SERVER_VARS["REQUEST_METHOD"] == "POST")
{
if ($HTTP_POST_VARS["setto"] == "")
{
newerr("Error", "Missing form data.",true,true);
}
$what=$HTTP_POST_VARS["setto"];

switch( $what )
{
case 1 : // Freeleech
$freeleech='yes';
break;
case 2 : // Normal
$freeleech='no';
break;
default : newerr("Error", "Please choose if free or not free!");
}
mysql_query("UPDATE torrents SET free=".sqlesc($freeleech).$where) or sqlerr(__FILE__, __LINE__);

header("Location: browse.php");
die;
}
stdhead("Change all torrents");
?>

Set All Torrents to Free Leech or Normal.Just Click FreeLeech and click ok.









Normal Or All Freeleech?



stdfoot();
?>

BoLaMN

3v0 12th June 2008 15:02

Re: FreeLeech
 
:D:

BoLaMN 13th June 2008 10:12

Re: FreeLeech
 
i guess it worked then?

bit4you 14th June 2008 01:52

Re: FreeLeech
 
thanks it funtioniert 100% :happy:

vertex 14th June 2008 21:10

Re: FreeLeech
 
Don't work :/

3v0 14th June 2008 22:23

Re: FreeLeech
 
Quote:

Originally Posted by vertex
Don't work :/

It does work

vertex 15th June 2008 10:28

Re: FreeLeech
 
Quote:

Originally Posted by 3v0
Quote:

Originally Posted by vertex
Don't work :/

It does work

But why than download is counting? :wallbash:

NatashaRhea 5th September 2008 00:52

works great thanks

vertex 7th September 2008 21:38

Now i have 1 golden torrent, i put freeleech mod and than all torrent is golden, but when i put back normal mod, golden torrent is 0.... My question is, how to my when you put back normal mod, again have only 1 golden torrent?

Quote:

Originally Posted by BoLaMN (Post 1773)
easy to code i think this is what ur after...

Place this in a new php file called "free.php"
works for me but i only had 1 torrent to test it on

Code:

ob_start("ob_gzhandler");
require "include/bittorrent.php";
dbconn();
loggedinorreturn();
if (get_user_class() < UC_MODERATOR)
{
newerr("Error", "Access denied.",true,true);
}
if ($HTTP_SERVER_VARS["REQUEST_METHOD"] == "POST")
{
if ($HTTP_POST_VARS["setto"] == "")
{
newerr("Error", "Missing form data.",true,true);
}
$what=$HTTP_POST_VARS["setto"];

switch( $what )
{
case 1 : // Freeleech
$freeleech='yes';
break;
case 2 : // Normal
$freeleech='no';
break;
default : newerr("Error", "Please choose if free or not free!");
}
mysql_query("UPDATE torrents SET free=".sqlesc($freeleech).$where) or sqlerr(__FILE__, __LINE__);

header("Location: browse.php");
die;
}
stdhead("Change all torrents");
?>

Set All Torrents to Free Leech or Normal.Just Click FreeLeech and click ok.









Normal Or All Freeleech?



stdfoot();
?>

BoLaMN



All times are GMT +2. The time now is 10:27.

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