Chez |
26th February 2013 17:35 |
Total traffic
in details after
PHP Code:
tr("Snatched", $row["times_completed"] . " time(s)");
add this:
PHP Code:
// Totaltraffic mod
$data = mysql_query("SELECT (t.size * t.times_completed + SUM(p.downloaded)) AS data FROM torrents AS t LEFT JOIN peers AS p ON t.id = p.torrent WHERE p.seeder = 'no' AND p.torrent = '$id' AND times_completed > 0 GROUP BY t.id ORDER BY added ASC LIMIT 15") or sqlerr(__FILE__, __LINE__);
$a = mysql_fetch_assoc($data);
$data = mksize($a["data"]) . "";
tr("Totaltraffic", $data);
Errors solved by me
|
Crazzy |
5th March 2013 02:02 |
thanks Chez great job ;)
|
All times are GMT +2. The time now is 23:46. |
|
Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.