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
Latest Popular Torrents & Hide Porn
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

Unknown User
2012-08-30 17:56:22
a place in the index.php



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

# LATEST POPULAR TORRENTS #

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

begin_frame("Top 20");

if ($site_config["MEMBERSONLY"] && !$CURUSER) {

echo "<br /><br /><center><b>".T_("BROWSE_MEMBERS_ONLY")."</b></center><br /><br />";

} else {



//Hide porn

$wherea=array();

$wherea[] = "banned = 'no'";

$wherea[] = "visible = 'yes'";

//Here, we define the blocked categories

if ($CURUSER["view_xxx"]!="yes") {

$wherea[] = "torrents.category != '61'";

}

$where = implode(" AND ", $wherea);

$query = "SELECT torrents.id, torrents.anon, torrents.announce, torrents.category, torrents.leechers, torrents.nfo, torrents.seeders, torrents.name, torrents.times_completed, torrents.size, torrents.added, torrents.comments, torrents.numfiles, torrents.filename, torrents.owner, torrents.external, torrents.freeleech, categories.name AS cat_name, categories.image AS cat_pic, categories.parent_cat AS cat_parent, users.username, users.privacy, IF(torrents.numratings < 2, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating FROM torrents LEFT JOIN categories ON category = categories.id LEFT JOIN users ON torrents.owner = users.id WHERE $where ORDER BY torrents.seeders DESC LIMIT 20";

$res = SQL_Query_exec($query);

if (mysql_num_rows($res)) {

torrenttable($res);

}else {

print("<div class='f-border'>");

print("<div class='f-cat' width='100%'>".T_("NOTHING_FOUND")."</div>");

print("<div>");

print T_("NO_UPLOADS");

print("</div>");

print("</div>");

}

if ($CURUSER)

SQL_Query_exec("UPDATE users SET last_browse=".gmtime()." WHERE id=$CURUSER[id]");

}

end_frame();

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

# LAST END POPULAR TORRENTS #

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

Unknown User
2013-04-02 21:16:36
How can i make this viewable to guests?

Regards,
Unknown User
2013-08-17 16:34:27
Remove that


if ($site_config["MEMBERSONLY"] && !$CURUSER) {
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: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728