"AzuriS, post: 89231":
Seems to work well on my dev site from more than 1 month with hard testing, so here it is
How does it works :
Every time a torrent is completed, user have to seed $ hours in an interval of $ days he start the download
after $ days he take 1 H&R if seedtime is < $ hours
to delete H&R, he just need to complete $ hours
when user take $ H&R, he is warn for $ days and he need to del 1 H&r min to del warn
after $ days warned, he is banned
when user take $ H&R he is banned directly
Write Log, Modcomment and email to user with reason when ban
You need SQL, function.php and announce.php modifications from 1st post MVP's snatchlist [url="http://www.torrenttrader.pw/index.php?/topic/16962-snatchlist/"]http://www.torrentt...962-snatchlist/[/url]
"ArcticWolf, post: 89481":i use this in my announces and it seems to work fine for all the clients on my site..
before$elapsed = ($self['seeder'] == 'yes') ? (gmtime() - $self['ez']) : 0;
$upthis = max(0, $uploaded - $self["uploaded"]);
if ( $_GET[ 'event' ] != 'stopped' )
{
$elapsed = ($self['seeder'] == 'yes') ? $torrentconfig['announce_interval'] - floor(($self['ez'] - time()) / 60) : 0;
}
For me in my annonce.php I do like this
if ( $_GET[ 'event' ] != 'stopped' )
{
$elapsed = ($self['seeder'] == 'yes') ? $torrentconfig['announce_interval'] - floor(($self['ez'] - time()) / 60) : 0;
}
$upthis = max(0, $uploaded - $self["uploaded"]);
$downthis = max(0, $downloaded - $self["downloaded"]);
"thib, post: 84823":sinon juste un peu de lecture dans le fichier api-allocine-helper.php ...
* Décoder de l'UTF8 les données réceptionnées
*/
define( 'ALLO_UTF8_DECODE', true );
