Bravo List
Register
Go Back   > Bravo List > P2P > Forum > Community Cafe
Reply
Thread Tools
  #1  
Old 28th February 2010, 09:15
ajax's Avatar
ajax ajax is offline
Senior Member
 
Join Date: Apr 2009
United Kingdom
Posts: 165
Default Freeleech On/Off!
Hey,someone have freeleech mod for TBDev,i mean mod who allow set all torrents to freeleech and then if need back to normal,a have freeleech mod: i go to freeleech and input the torrent ID then torrent are freeleech,but this mod:

PHP Code:
<?
ob_start
("ob_gzhandler");
require 
"include/bittorrent.php";
dbconn();
loggedinorreturn();
if (
get_user_class() < UC_THRUST)
{
stderr("Error""Access denied.");
}
if (
$HTTP_SERVER_VARS["REQUEST_METHOD"] == "POST")
{
if (
$HTTP_POST_VARS["setto"] == "")
{
stderr("Error""Missing form data.");
}
$what=$HTTP_POST_VARS["setto"];
$condition=$HTTP_POST_VARS["condition"];
$size=$HTTP_POST_VARS["size"];
switch( 
$what )
{
case 
// Freeleech
$freeleech='yes';
break;
case 
// Normal
$freeleech='no';
break;
default : 
stderr("Error""Please choose if free or not free!");
}
switch(
$condition)
{
case 
$condition="";
break;
case 
$condition="=";
break;
case 
$condition="<";
break;
case 
$condition="<=";
break;
case 
$condition=">";
break;
case 
$condition=">=";
break;
}
if ( 
$condition )
{
switch( 
$size )
{
case 
$size="";
$condition="";
break;
case 
$size=524288000;
break;
case 
$size=1073741824;
break;
case 
$size=2*1073741824;
break;
case 
$size=3*1073741824;
break;
case 
$size=4*1073741824;
break;
case 
$size=6*1073741824;
break;
case 
$size=8*1073741824;
break;
}
}
if ( 
$condition && $size )
{
$where " where size ".$condition." ".$size;
}

mysql_query("UPDATE torrents SET freeleech= '1' AND 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.Leave the other to as N/A</h1>
<form method=post action=setfreeleech.php>
<table border=1 cellspacing=0 cellpadding=5>
<tr>
<td class=rowhead>What?</td>
<td>
<select name=setto>
<option value="0">---- Please Choose ----</option>
<option value="1">Freeleech</option>
<option value="2">Normal</option>
</select>
<select name=condition>
<option value="0">N/A</option>
<option value="1">Equal</option>
<option value="2">Less</option>
<option value="3">Less or equal</option>
<option value="4">More than</option>
<option value="5">More or equal</option>
</select>
<select name=size>
<option value="0">N/A</option>
<option value="1">500MB</option>
<option value="2">1GB</option>
<option value="3">2GB</option>
<option value="4">3GB</option>
<option value="5">4GB</option>
<option value="6">6GB</option>
<option value="7">8GB</option>
</select>
</td>
</tr>
<tr><td colspan=2 align=center><input type=submit value="Okay" class=btn></td></tr>
</table>
</form>
<?
stdfoot
();
?>
don't work for me! I set all to free leech but nothing happen,me redir. to browse.php but nothing action.. :unknown:
__________________
"ALWAYS BE YOURSELF.
UNLESS YOU CAN BE A UNICORN.
THEN ALWAYS BE A UNICORN."
Reply With Quote
Reply

Tags
freeleech , on or off


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 tunad Torrent Strike 2 18th November 2008 13:42
FreeLeech vertex Yuna Scatari Edition (YSE) 9 7th September 2008 21:38
Freeleech AngelDj Torrent Strike 2 28th August 2008 19:02



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