Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #1  
Old 5th May 2008, 01:47
snakebite snakebite is offline
Senior Member
 
Join Date: Apr 2008
Default
Posts: 47
Default All torrents are freeleech
Could somebody plz make a mod that would make all torrents freeleech with only 1 click..

thanks in advance.. :P
__________________
Go here! ----> "HERE"
Reply With Quote
  #2  
Old 5th May 2008, 13:39
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default Re: All torrents are freeleech
get freeleech.php and add a line in staff panel
Reply With Quote
  #3  
Old 11th May 2008, 15:01
snakebite snakebite is offline
Senior Member
 
Join Date: Apr 2008
Default
Posts: 47
Default Re: All torrents are freeleech
And where can i get this freeleech.php??? :sleep: :shock:

could somebody please post a freeleech.php mod here...

i looked for it in tbdev.net but didnt find anything like that..

please HELP!!

Sory about doublepost... :muscles:
(edited by Fynnon)
__________________
Go here! ----> "HERE"
Reply With Quote
  #4  
Old 12th May 2008, 14:39
sharky sharky is offline
Member
 
Join Date: Jan 2008
Posts: 12
Default Re: All torrents are freeleech
Or you can use a simple query



Code:
this to enable

mysql_query("UPDATE `torrents` set `freeleech` == 1");

this to disable

mysql_query("UPDATE `torrents` set `freeleech` == 0");
Reply With Quote
  #5  
Old 3rd August 2008, 11:58
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
setfreeleech.php

PHP Code:
<?
require "include/bittorrent.php";
dbconn();
loggedinorreturn();

if (
get_user_class() < UC_SYSOP)
stderr("Error""Access denied.");

if (
$HTTP_SERVER_VARS["REQUEST_METHOD"] == "POST")
{
if (
$HTTP_POST_VARS["isfree"] == "")
stderr("Error""Missing form data.");
$isfree=$HTTP_POST_VARS["isfree"];
if(
$isfree == "no")
$setfree "no";
elseif(
$isfree == "yes")
$setfree "yes";
else
stderr("Error""Please choose if free or not free!");
        
mysql_query("UPDATE torrents SET free=".sqlesc($setfree)) or sqlerr(__FILE____LINE__);
        
mysql_query("ALTER TABLE `torrents` CHANGE `free` `free` ENUM( 'yes', 'no' ) NULL DEFAULT ".sqlesc($setfree)) or sqlerr(__FILE____LINE__);

        
header("Location: browse.php?");
        die;
}
stdhead("Set Free Leech");
?>
<h1>Set Free Leech</h1>
<form method=post action=setfreeleech.php>
<table border=1 cellspacing=0 cellpadding=5>
<tr><td class=rowhead>Free?</td><td><select name=isfree><option value="0">---- Please Choose ----</option><option value="no">No</option><option value="yes">Yes</option>
</select></td></tr>
<tr><td colspan=2 align=center><input type=submit value="Okay" class=btn></td></tr>
</table>
</form>
<?
stdfoot
();
?>
Reply With Quote
  #6  
Old 28th August 2008, 01:03
NatashaRhea NatashaRhea is offline
Senior Member
 
Join Date: Aug 2008
Posts: 48
Default
thanks clock works great
Reply With Quote
  #7  
Old 2nd September 2008, 22:29
LANDSER LANDSER is offline
Member
 
Join Date: May 2008
Posts: 9
Default
i


SQL Error
Unknown column 'free' in 'field list'
in C:\xampp\htdocs\setfreeleech.php, line 20
Reply With Quote
  #8  
Old 2nd September 2008, 22:31
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
add golden torrents mod
Reply With Quote
  #9  
Old 1st January 2016, 17:14
kallin kallin is offline
Member
 
Join Date: Dec 2011
P2P
Posts: 4
Default
Cheers!
Reply With Quote
Reply

Tags
freeleech , torrents

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
Al torrents are freeleech Ciosmy Community Cafe 0 23rd June 2009 23:14
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 12:25. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.