|
#1
|
|||
|
|||
Dead torrents
hey guys can anyone get teh mod that deletes all dead torrents at once please and thanx in advance
|
#2
|
||||
|
||||
"do cleanup" ? or "cleanup" ?
__________________
http://img329.imageshack.us/img329/6...tysysopvf1.png |
#3
|
|||
|
|||
hi
yeah thats not working i know tsse has a mod to delete all dead torrents at once
|
#4
|
|||
|
|||
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"); } ?> Not Tested, but should work Last edited by Krypto; 14th August 2008 at 08:34. |
#5
|
|||
|
|||
hi
nope dead.php just brings up The page cannot be displayed
|
Tags |
dead , torrents |
|
|
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 |