Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Torrent Strike
Reply
Thread Tools
  #1  
Old 2nd December 2008, 01:28
mapb_1990 mapb_1990 is offline
Member
 
Join Date: Jul 2008
Posts: 7
Default not delete torrents
hi!
I noticed that the system automatically deletes torrents. how can I disable this?
Reply With Quote
  #2  
Old 2nd December 2008, 02:03
Krypto Krypto is offline
Retired from BVList
 
Join Date: Jan 2008
P2P
Posts: 510
Default
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)");

    } 
Reply With Quote
  #3  
Old 2nd December 2008, 02:46
mapb_1990 mapb_1990 is offline
Member
 
Join Date: Jul 2008
Posts: 7
Default
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
Reply With Quote
  #4  
Old 2nd December 2008, 12:39
Krypto Krypto is offline
Retired from BVList
 
Join Date: Jan 2008
P2P
Posts: 510
Default
Try changing the sql_query() to mysql_query()
Reply With Quote
Reply

Tags
delete , torrents


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
delete a block in xBTiT v2.0.0.547 fireman xBTiT 6 18th February 2010 19:06
Message before delete please can someone help stall20080 Torrent Strike 2 4th February 2010 18:29
How to delete torrents Mredin Free Torrent Source 2 17th November 2008 20:21
torrents delete themselves if no seeders roland1000 TBDev 1 29th June 2008 11:35
Auto delete torrents Swompen Torrent Strike 12 30th April 2008 21:59



All times are GMT +2. The time now is 23:58. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.