Mod need for TBDEV 2005

Started by thetorre, November 21, 2012, 01:01:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Payaa

Yo!


<?php
require_once("include/bittorrent.php");
dbconn();
loggedinorreturn();

if (
get_user_class() >= UC_MODERATOR)
{  
   
$deadtime deadtime();
   
sql_query("DELETE FROM peers WHERE last_action < FROM_UNIXTIME($deadtime)") or sqlerr(__FILE__,__LINE__);
   
$effected mysql_affected_rows();
   if (
$effected)
        
stderr('Success!'"$effected ghost torrent" . ($effected '' '') . ' deleted!');
   else
        
stderr("Error","There are no ghost torrents!");
}
else
{
   die();
}
?>



And if U don't got deadtime() function in bittorrent:

function deadtime() {
    global $announce_interval;
    return time() - floor($announce_interval * 1.3);
}

thetorre

Hello I have a question does anyone know how to give Flush Torrents Ghost at all because I have many seeders ghost on tracker ,Tracker runs on TBDEV 2005, kind XZ and FZ

Takeflush.php   know and  but I have to give up everything I tracker for each user that is to give global flushtorrents