Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   All torrents are freeleech (http://www.bvlist.com/showthread.php?t=279)

snakebite 5th May 2008 01:47

All torrents are freeleech
 
Could somebody plz make a mod that would make all torrents freeleech with only 1 click..

thanks in advance.. :P

wMan 5th May 2008 13:39

Re: All torrents are freeleech
 
get freeleech.php and add a line in staff panel

snakebite 11th May 2008 15:01

Re: All torrents are freeleech
 
And where can i get this freeleech.php??? :sad: :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!! :sos:

Sory about doublepost... :muscles:
(edited by Fynnon)

sharky 12th May 2008 14:39

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");


wMan 3rd August 2008 11:58

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
();
?>


NatashaRhea 28th August 2008 01:03

thanks clock works great:drink:

LANDSER 2nd September 2008 22:29

i


SQL Error
Unknown column 'free' in 'field list'
in C:\xampp\htdocs\setfreeleech.php, line 20

wMan 2nd September 2008 22:31

add golden torrents mod

kallin 1st January 2016 17:14

Cheers! :drink:


All times are GMT +2. The time now is 22:34.

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