View Single Post
  #3  
Old 11-07-13, 03:57
lafouine022's Avatar
lafouine022 lafouine022 is offline
Support FR
 
Join Date: Feb 2010
P2P
Posts: 119
Exclamation
I just saw it
attention

Attention

This test is thank you to give me your result





IN include/cron/
remplace your old weekly_clenups.php
by this

PHP Code:
<?
/***********************************************/
/*=========[TS Special Edition v.5.6]==========*/
/*=============[Special Thanks To]=============*/
/*        DrNet - wWw.SpecialCoders.CoM        */
/*          Vinson - wWw.Decode4u.CoM          */
/*    MrDecoder - wWw.Fearless-Releases.CoM    */
/*           Fynnon - wWw.BvList.CoM           */
/***********************************************/


  if (!defined ('IN_CRON'))
  {
    exit ();
  }

 //////hit and run by fouini FIX/////////////////
require INC_PATH . '/functions_pm.php';
 
$seedT = 1 * 60 * 60; /// add your temp = hour ex: temp * 60 *60

    $query = mysql_query ('SELECT s.id, s.torrentid, s.userid, s.seedtime, t.name, u.username FROM snatched s INNER JOIN torrents t ON (s.torrentid=t.id) INNER JOIN users u ON (s.userid=u.id) WHERE s.seeder = \'no\' and t.banned = \'no\' and s.seedtime < ' . $seedT . '');

      while ($HR = mysql_fetch_assoc ($query))
      {
        $subject = 'Hit and run detect';
        $msg = 'this torrent was not enough seeder : [URL=details.php?id=' . $HR['torrentid'] . ']' . htmlspecialchars ($HR['name']) . '[/URL]';
        send_pm ($HR['userid'], $msg, $subject, 0);
        
        mysql_query( "DELETE FROM snatched WHERE id = ".$HR['id']."" );
        mysql_query( "UPDATE users SET timeswarned = timeswarned + 1 WHERE id = ".$HR['userid']."" );
          
      }
//////   

?>
after just wait... or run several times this files in tracker setting/Manage cron job

Last edited by lafouine022; 11-07-13 at 04:57.
Reply With Quote
The Following 3 Users Say Thank You to lafouine022 For This Useful Post:
eckeO5 (12-07-13), FENIX (11-07-13), Titya (12-07-13)