Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Template Shares (http://www.bvlist.com/forumdisplay.php?f=26)
-   -   TS Hit & Run Detection Tool (http://www.bvlist.com/showthread.php?t=9289)

eckeO5 9th July 2013 21:37

TS Hit & Run Detection Tool
 
Does some1 know how this tool´s gonna work?

I mean as i thought tool must/shall show users have not seeded files long enough, and/or users with too low ratio.

or I do not understand this tool properly!?

may be some1 can help.

greetz ecke

wMan 11th July 2013 01:27

ITS A Hit & Run Detection WHO DOWNLOAD FILES AND DO NOT SEED THEM BACK TO SITE OR RATIO OF 1.1

lafouine022 11th July 2013 03:57

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 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$subject0);
        
        
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

eckeO5 12th July 2013 07:52

Hello lafouine022.

Today after work i will test it. i will tell results then.
Thank you man.

A fine day to all :ok:

Titya 12th July 2013 23:48

Quote:

Originally Posted by [URL="http://www.bvlist.com/members/lafouine022-10499.html"
lafouine022[/URL]]ITS A Hit & Run Detection WHO DOWNLOAD FILES AND DO NOT SEED THEM BACK TO SITE OR RATIO OF 1.1


It's not perfect because it can detect whatever the user just began, and it is completely filled ...

lafouine022 13th July 2013 01:27

the first file is a test!
OK adjustement this exemple detect
seed 24h on 1 week after leech /torrent

edit line 9 and 10 :wild:

PHP Code:

<?php
if ( !defined"IN_CRON" ) )
{
    exit( );
}
//////hit and run by fouini FIX/////////////////
require INC_PATH '/functions_pm.php';
 
$seedT 24 60 60/// add your temp = hour ex: temp * 60 *60
$Tcomp TIMENOW 604800/// 604 800 sec for 1 week

    
$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.finished = \'yes\' and t.banned = \'no\' and s.uploaded < s.downloaded and s.seedtime < '.$seedT.' and UNIX_TIMESTAMP(s.completedat) < \'' $Tcomp '\'') or sqlerr(__FILE__,__LINE__);

    while (
$HR mysql_fetch_assoc ($query))
    {
        
$subject 'Hit and run detect';
        
$msg 'Vous avez pas Seeder ce torrent assez lomgtemps : [URL=details.php?id=' $HR['torrentid'] . ']' htmlspecialchars ($HR['name']) . '[/URL] . [URL=userdetails.php?id=' $HR['userid'] . ']1 Avertisement[/URL] vous a ete ajouter!';
        
send_pm ($HR['userid'], $msg$subject0);
        
        
mysql_query"DELETE FROM snatched WHERE id = ".$HR['id']."" );
        
mysql_query"UPDATE users SET timeswarned = timeswarned + 1 WHERE id = ".$HR['userid']."" );
        
mysql_query"INSERT INTO ts_hit_and_run (userid, torrentid, added) VALUES ('".$HR['userid']."','".$HR['torrentid']."','".TIMENOW."')");
    }
//////////      
?>

ps: if you want you can do a verification by day or hour by adding the code between / / / / / / and / / / in another file include/cron/files

eckeO5 14th July 2013 11:17

hello lafouine022,

today i will test and get results for that.

thank you very much for your special help.

greetz ecke

Bump: So i have tested with the following edit in line 9 & 10:

Quote:

$seedT = 2 * 60 * 60; /// add your temp = hour ex: temp * 60 *60
$Tcomp = TIMENOW - 86400; /// 86400 sec for 1 day
result:

user downloaded 1 torrent.
seeding it for i.e. hours.
after that i stopped seeding.

Bump: User is in List TS Hit & Run Detection Tool round about 2-3 h after he stopped seeding.

but after that nothing more happens. ((

Bump:
Quote:

Originally Posted by lafouine022 (Post 41577)
the first file is a test!
OK adjustement this exemple detect
seed 24h on 1 week after leech /torrent

edit line 9 and 10 :wild:

PHP Code:

<?php
if ( !defined"IN_CRON" ) )
{
    exit( );
}
//////hit and run by fouini FIX/////////////////
require INC_PATH '/functions_pm.php';
 
$seedT 24 60 60/// add your temp = hour ex: temp * 60 *60
$Tcomp TIMENOW 604800/// 604 800 sec for 1 week

    
$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.finished = \'yes\' and t.banned = \'no\' and s.uploaded < s.downloaded and s.seedtime < '.$seedT.' and UNIX_TIMESTAMP(s.completedat) < \'' $Tcomp '\'') or sqlerr(__FILE__,__LINE__);

    while (
$HR mysql_fetch_assoc ($query))
    {
        
$subject 'Hit and run detect';
        
$msg 'Vous avez pas Seeder ce torrent assez lomgtemps : [URL=details.php?id=' $HR['torrentid'] . ']' htmlspecialchars ($HR['name']) . '[/URL] . [URL=userdetails.php?id=' $HR['userid'] . ']1 Avertisement[/URL] vous a ete ajouter!';
        
send_pm ($HR['userid'], $msg$subject0);
        
        
mysql_query"DELETE FROM snatched WHERE id = ".$HR['id']."" );
        
mysql_query"UPDATE users SET timeswarned = timeswarned + 1 WHERE id = ".$HR['userid']."" );
        
mysql_query"INSERT INTO ts_hit_and_run (userid, torrentid, added) VALUES ('".$HR['userid']."','".$HR['torrentid']."','".TIMENOW."')");
    }
//////////      
?>

ps: if you want you can do a verification by day or hour by adding the code between / / / / / / and / / / in another file include/cron/files

i´ve tested this weekly_cleanups.php

it seems that it doesn´t work correctly.

XGODY 12th March 2017 16:12

This tool as never worked nor will it this the only downside of this code when I get time I'll rewrite this and will do the clean up at same time can not do one file all have to match to work

fireknight 13th March 2017 09:40

@XGODY

You do realize that this thread is about 4 years old.
People have moved on - or found something else that works.

If you can solve the issues - go ahead.
But you maybe trying to solve something - that has long been forgotten.
Or people have simply just moved on from Xam's shit.

Don't get me the wrong way.
I think people are awesome when they solve an issue with code ( regardless of it age ).
And make the answer available to everyone for free.
That just shows the commitment of this community.
So please carry on with your plans to solve issue.
I look forward to seeing your work. :ok:

XGODY 13th March 2017 10:20

True on the date and yes it might have been too just looking about who I can help but I'll leave it..As you know it's not just one file it's many files that needs doing for this to work. But if I find time over this few moths I'll do it and test it it's not very hard to solve


All times are GMT +2. The time now is 10:40.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.