Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Yuna Scatari Edition (YSE)
Reply
  #1  
Old 12th June 2008, 07:36
vertex vertex is offline
Senior Member
 
Join Date: Mar 2008
Posts: 46
Default FreeLeech
Where i can get fixed freeleech mod... I need with one bottom put all torrents gold!
Reply With Quote
  #2  
Old 12th June 2008, 11:21
BoLaMN BoLaMN is offline
Senior Member
 
Join Date: Jan 2008
Australia
Posts: 93
Default 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");
?>
<h1>Set All Torrents to Free Leech or Normal.Just Click FreeLeech and click ok.</h1>
<form method=post action=free.php>
<table border=1 cellspacing=0 cellpadding=5>
<tr>
<td class=rowhead>Normal Or All Freeleech?</td>
<td>
<select name=setto>
<option value="0">---- Please Choose ----</option>
<option value="1">Freeleech</option>
<option value="2">Normal</option>
</select>
</td>
</tr>
<tr><td colspan=2 align=center><input type=submit value="Okay" class=btn></td></tr>
</table>
</form>
<?
stdfoot();
?>
BoLaMN
Reply With Quote
The Following User Says Thank You to BoLaMN For This Useful Post:
vertex (7th September 2008)
  #3  
Old 12th June 2008, 15:02
3v0 3v0 is offline
Senior Member
 
Join Date: Feb 2008
Netherlands
Posts: 88
Default Re: FreeLeech
:D:
Reply With Quote
  #4  
Old 13th June 2008, 10:12
BoLaMN BoLaMN is offline
Senior Member
 
Join Date: Jan 2008
Australia
Posts: 93
Default Re: FreeLeech
i guess it worked then?
Reply With Quote
  #5  
Old 14th June 2008, 01:52
bit4you bit4you is offline
Senior Member
 
Join Date: Apr 2008
P2P
Posts: 28
Default Re: FreeLeech
thanks it funtioniert 100%
Reply With Quote
  #6  
Old 14th June 2008, 21:10
vertex vertex is offline
Senior Member
 
Join Date: Mar 2008
Posts: 46
Default Re: FreeLeech
Don't work :/
Reply With Quote
  #7  
Old 14th June 2008, 22:23
3v0 3v0 is offline
Senior Member
 
Join Date: Feb 2008
Netherlands
Posts: 88
Default Re: FreeLeech
Quote:
Originally Posted by vertex
Don't work :/
It does work
Reply With Quote
  #8  
Old 15th June 2008, 10:28
vertex vertex is offline
Senior Member
 
Join Date: Mar 2008
Posts: 46
Default Re: FreeLeech
Quote:
Originally Posted by 3v0
Quote:
Originally Posted by vertex
Don't work :/
It does work
But why than download is counting?
Reply With Quote
  #9  
Old 5th September 2008, 00:52
NatashaRhea NatashaRhea is offline
Senior Member
 
Join Date: Aug 2008
Posts: 48
Default
works great thanks
Reply With Quote
  #10  
Old 7th September 2008, 21:38
vertex vertex is offline
Senior Member
 
Join Date: Mar 2008
Posts: 46
Question
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 View Post
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");
?>
<h1>Set All Torrents to Free Leech or Normal.Just Click FreeLeech and click ok.</h1>
<form method=post action=free.php>
<table border=1 cellspacing=0 cellpadding=5>
<tr>
<td class=rowhead>Normal Or All Freeleech?</td>
<td>
<select name=setto>
<option value="0">---- Please Choose ----</option>
<option value="1">Freeleech</option>
<option value="2">Normal</option>
</select>
</td>
</tr>
<tr><td colspan=2 align=center><input type=submit value="Okay" class=btn></td></tr>
</table>
</form>
<?
stdfoot();
?>
BoLaMN
Reply With Quote
Reply

Tags
freeleech

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Freeleech tomys TBDev 0 13th May 2010 20:00
[xbtit] freeleech kapy xBTiT 3 10th March 2010 00:39
Freeleech On/Off! ajax Community Cafe 0 28th February 2010 09:15
Freeleech tunad Torrent Strike 2 18th November 2008 13:42
Freeleech AngelDj Torrent Strike 2 28th August 2008 19:02



All times are GMT +2. The time now is 11:01. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.