Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #1  
Old 13th August 2008, 23:09
trilious trilious is offline
Senior Member
 
Join Date: Aug 2008
Posts: 30
Default Dead torrents
hey guys can anyone get teh mod that deletes all dead torrents at once please and thanx in advance
Reply With Quote
  #2  
Old 14th August 2008, 00:09
GaBoNtZ's Avatar
GaBoNtZ GaBoNtZ is offline
Senior Member
 
Join Date: Mar 2008
P2P
Posts: 113
Default
Quote:
Originally Posted by trilious View Post
hey guys can anyone get teh mod that deletes all dead torrents at once please and thanx in advance
"do cleanup" ? or "cleanup" ?
Reply With Quote
  #3  
Old 14th August 2008, 01:04
trilious trilious is offline
Senior Member
 
Join Date: Aug 2008
Posts: 30
Default hi
yeah thats not working i know tsse has a mod to delete all dead torrents at once
Reply With Quote
  #4  
Old 14th August 2008, 08:32
Krypto Krypto is offline
Retired from BVList
 
Join Date: Jan 2008
P2P
Posts: 510
Default
Save this as dead.php

Code:
<?

require_once("include/bittorrent.php");

// delete dead torrents
	$res = mysql_query("SELECT id, name FROM torrents WHERE 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, torrent dead");
	}
?>
Or just add the highlighted parts in to your cleanup file.

Not Tested, but should work

Last edited by Krypto; 14th August 2008 at 08:34.
Reply With Quote
  #5  
Old 14th August 2008, 13:33
trilious trilious is offline
Senior Member
 
Join Date: Aug 2008
Posts: 30
Default hi
nope dead.php just brings up The page cannot be displayed
Reply With Quote
Reply

Tags
dead , torrents

Thread Tools

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
Why all torrents are dead danscarlat Template Shares 0 14th April 2010 16:07
Dead IMDB rating proba10 Community Cafe 2 7th January 2010 15:24
Torrent dead bug lovebeer Yuna Scatari Edition (YSE) 2 20th September 2009 14:25
Torrent Dead when uploading xionz Torrent Strike 6 18th February 2009 23:35



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