Thread: TTL
View Single Post
  #2  
Old 20th February 2009, 07:51
TheOracle TheOracle is offline
Member
 
Join Date: Apr 2008
Posts: 2
Default
in cleanup.php which you can find in the include folder

comment out or delete
Code:
	$dt = sqlesc(get_date_time(gmtime() - $torrent_ttl));
	$res = mysql_query("SELECT id, name FROM torrents WHERE added < $dt AND manual_delete = 'no' 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 TTL");
	}
Reply With Quote
The Following User Says Thank You to TheOracle For This Useful Post:
rytisp (20th February 2009)