View Single Post
  #4  
Old 14th January 2010, 20:19
Edgein's Avatar
Edgein Edgein is offline
Senior Member
 
Join Date: Sep 2008
Netherlands
Posts: 154
Smile
Here you can find it

Go to /include/libs/cron/cron_class.php

Find there

PHP Code:
            // delete old torrents
    
$days 128 ;
    
$dt sqlescget_date_time(gmtime() - ($days 86400)) ) ;
    
$res mysql_query"SELECT id, name FROM torrents WHERE added < $dt) ;
    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 snatched WHERE torrentid =$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)" ) ;
    } 
grtzz edgein
Reply With Quote