Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Torrent Strike (http://www.bvlist.com/forumdisplay.php?f=21)
-   -   not delete torrents (http://www.bvlist.com/showthread.php?t=1511)

mapb_1990 2nd December 2008 01:28

not delete torrents
 
hi!
I noticed that the system automatically deletes torrents. how can I disable this?

Krypto 2nd December 2008 02:03

Either alter the setting in admincp.php or comment out/delete this from your include/cleanup.php file

PHP 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)");

    } 


mapb_1990 2nd December 2008 02:46

thanks

another thing: sometimes appears the following error in the bottom of the page
Code:

Fatal error: Call to undefined function sql_query() in /home/animelan/public_html/tracker
/include/cleanup.php on line 481


Krypto 2nd December 2008 12:39

Try changing the sql_query() to mysql_query()


All times are GMT +2. The time now is 17:47.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.