Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[HACK] Site wide Free leech on/off in st
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2010-02-13 19:15:40
thank you work great
Unknown User
2010-04-22 15:09:36
moved :  [url="http://www.torrenttrader.org/index.php?showtopic=12201"]http://www.torrenttrader.org/index.php?showtopic=12201[/url]
Unknown User
2011-06-29 15:20:02
put this on ok but where is the sign on torrent page to say torrents are freeleech a icon
Unknown User
2011-09-17 15:02:07
THANK YOU.....
Unknown User
2011-12-15 15:36:53
i have install this hack with code of AzuriS in Post #13

before i change all torrents as free i had 10 torrents as free but when i rechange all torrents as not free these 10 torrents stay not free and i make free in my hand

i hope you understand what i mean

i change the code as you see for TorrentTrader v2-svn, i hope

#======================================================================#

# Free Torrents

#======================================================================#



if ($action=="freetorrents"){

stdhead("Free Leech Torrent Management");

navmenu();

begin_frame("Free Leech Torrent Management");

$search = trim($search);



if ($search != '' ){

$whereand = "AND name LIKE " . sqlesc("%$search%") . "";

}



  if ($do=="setallfree") {

SQL_Query_exec("UPDATE torrents SET freeleech = '1'");

print("<font size=2 color=red><center>Success, All torrents have been set free..</b></center></font><br>\n");



}else



if ($do=="setallnormal") {

SQL_Query_exec("UPDATE torrents SET freeleech = '0'");

print("<font size=2 color=red><center><b>Success, All torrents have been set normal..</b></center></font><br>\n");



}



$res2 = SQL_Query_exec("SELECT COUNT(*) FROM torrents WHERE freeleech='1' $whereand");

$row = mysql_fetch_array($res2);

$count = $row[0];



$perpage = 50;



list($pagertop, $pagerbottom, $limit) = pager($perpage, $count, "admincp.php?action=freetorrents&");



print("<CENTER><form method=get action=?>\n");

print("<input type=hidden name=action value=torrentmanage>\n");

print("" . SEARCH . ": <input type=text size=30 name=search>\n");

print("<input type=submit value='Search'>\n");

print("</form></CENTER>\n");



echo "<br>";

print("<font size=2><center>Click <a href=admincp.php?action=freetorrents&do=setallfree><b><u>here</b></u></a> to set all torrents free.. </center></font><br><br> <font size=2><center>Click <a href=admincp.php?action=freetorrents&do=setallnormal><b><u>here</u></b></a> to set all torrents normal..</center></font> \n");



echo $pagertop;

?>

<CENTER><table align=center cellpadding="0" cellspacing="0" class="table_table" width="100%" border="1">

<tr>

<th class=table_head align=center>Name</th>

<th class=table_head align=center>Visible</th>

<th class=table_head align=center>Banned</th>

<th class=table_head align=center>Seeders</th>

<th class=table_head align=center>Leechers</th>

<th class=table_head align=center>Edit?</th>

</tr>

<?

$rqq = "SELECT id, name, seeders, leechers, visible, banned FROM torrents WHERE freeleech='1' $whereand ORDER BY name $limit";

$resqq = SQL_Query_exec($rqq);



while ($row = mysql_fetch_array($resqq)){

extract ($row);



$char1 = 70; //cut name length

$smallname = CutName(htmlspecialchars($row["name"]), $char1);



echo "<tr><td class=table_col1>" . $smallname . "</td><td class=table_col2>$row[visible]</td><td class=table_col1>$row[banned]</td><td class=table_col2>$row[seeders]</td><td class=table_col1>$row[leechers]</td><td class=table_col2><a href=\"torrents-edit.php?returnto=" . urlencode($_SERVER["REQUEST_URI"]) . "&amp;id=" . $row["id"] . "\"><font size=1 face=Verdana>EDIT</a></td></tr>\n";

}



echo "</table></CENTER>\n";



print($pagerbottom);



end_frame();

stdfoot();

}

#======================================================================#

# END Free Torrents

#======================================================================#
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728