/*
Project : T-Xore version 0.0.4 released on 06/2006 By Bogaa
This piece of software is free to use by anyone and may be redistributed
and modified by anyone in any way. We can't be held liable for damage
or copyright infringement claims. Read the documentation!
Bogaa's Homepage : http://www.meganova.org
Project Homepage : http://www.devnova.org
*/
require_once 'config.php';
connect ($dbhost, $dbuser, $dbpass, $database);
stheader('Most Leeched Torrents');
$result = mysql_query("SELECT * FROM torrents LEFT JOIN categories ON torrents.subcat = categories.subid ORDER BY peers DESC LIMIT 100") or die (mysql_error());
$count = mysql_num_rows($result);
if ($count == 0)
{
echo '
No torrents have been added yet!
';
footer();
die;
}
echo 'Most Leeched Torrents
';
echo '';
echo 'Category | Age | Filename | Size | Seeds | Leechs | Health |
';
while ($row = mysql_fetch_array($result))
{
extract($row);
$torrentname = str_replace("+"," ",$torrentname);
$torrentname = str_replace("amp;","",$torrentname);
$torrentname = str_replace("%","",$torrentname);
$torrentname = str_replace("[","",$torrentname);
$torrentname = str_replace("]","",$torrentname);
$torrentname = str_replace(" "," ",$torrentname);
$torrentname = str_replace("avi","",$torrentname);
$torrentname = str_replace("S^M","",$torrentname);
$torrentname = str_replace("com","",$torrentname);
$torrentname = str_replace("net","",$torrentname);
$torrentname = str_replace("mp3","",$torrentname);
$torrentname = str_replace("Lynda","",$torrentname);
$torrentname = str_replace("WWW","",$torrentname);
$torrentname = str_replace("www","",$torrentname);
$torrentname = str_replace("org"," ",$torrentname);
$torrentname = str_replace("-"," ",$torrentname);
$torrentname = str_replace("gettorrents","",$torrentname);
$tz = convert_timestamp($row["added"]); // add this
echo '';
echo ''.$name.' | ';
echo ''.get_elapsed_time($tz).' | ';
echo ' '.regicon($registration,$tracker).' '.desc($description).''.$torrentname.' ('.$subname.') | ';
echo ''.torsize($size).' | ';
echo ''.getpeer($seeds).' | ';
echo ''.getpeer($peers).' | ';
echo ' | ';
echo '
';
}
echo '
';
footer();
?>