Quote:
Originally Posted by Swompen
Yes, how do i remove TTL or what it says
|
in cleanup.php
remove
Code:
// delete old torrents
$dt = sqlesc(get_date_time(gmtime() - $torrent_ttl));
$res = mysql_query("SELECT id, name FROM torrents WHERE added < $dt AND seeders=0 AND leechers=0 ");
while ($arr = mysql_fetch_assoc($res))
{
@unlink("$torrent_dir/$arr[id].torrent");
mysql_query("DELETE FROM torrents WHERE id=$arr[id]");
mysql_query("DELETE FROM peers WHERE torrent=$arr[id]");
mysql_query("DELETE FROM comments WHERE torrent=$arr[id]");
mysql_query("DELETE FROM files WHERE torrent=$arr[id]");
write_log("Torrent $arr[id] ($arr[name]) was deleted by system (older than $days days)");
}
in bittorrent.php
torrenttable
remove
Code:
<td class="colhead" align="center">TTL</td>
and
Code:
$ttl = (floor($torrent_ttl/3600)) - floor((gmtime() - sql_timestamp_to_unix_timestamp($row["added"])) / 3600);
if ($ttl == 1) $ttl .= "
hour"; else $ttl .= "
hours";
print("<td class=\"row2\" align=\"center\">$ttl</td>\n");
in userdetails.php
remove
Code:
<td class=\"colhead\" align=\"center\">TTL</td>
and
remove
Code:
$ttl = (28*24) - floor((gmtime() - sql_timestamp_to_unix_timestamp($arr["added"])) / 3600);
if ($ttl == 1) $ttl .= "
hour"; else $ttl .= "
hours";
and finally
remove
Code:
<td class=\"row1\" align=\"center\">$ttl</td>
Quote:
Originally Posted by Swompen
and Yes freeleech dosent work for me, it still counts !
|
It works, I think.
You can test the freeleech here ->
tsf
Ask to Fynnon if you can be Uploader, and then you can test it.
Quote:
Originally Posted by Swompen
AND how do i change so VIP can upload?
|
What? Upload torrents?