View Single Post
  #4  
Old 3rd February 2013, 23:25
bestlap bestlap is offline
Senior Member
 
Join Date: Nov 2012
P2P
Posts: 51
Default
Please help... I delete this in include/cleanup
PHP Code:
// WARNINGS
function autowarn($length$limit$minratio)
{
$msg sqlesc("This is a automatic warning because your share ratio is too low at this moment.\n\nYou have " $length " days to higher your share ratio, read the rules to see what your ratio must be.\nIf your share ratio is too low after these 3 days you will be banned permanently!");
$until sqlesc(get_date_time(gmtime() + (($length+1)*86400)));
$dt sqlesc(get_date_time());
$limit $limit *1024*1024*1024;
$res mysql_query("SELECT id,ip FROM users WHERE class = 0 AND enabled = 'yes' AND downloaded > $limit AND uploaded / downloaded < $minratio and warned = 'no' and id<>2891") or sqlerr(__FILE____LINE__);
while (
$arr mysql_fetch_assoc($res))
{
mysql_query("UPDATE users SET permban = 'yes', warned = 'yes', warneduntil = ".$until." WHERE id=$arr[id]") or sqlerr(__FILE____LINE__);
mysql_query("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES(0, $arr[id]$dt$msg, 0)") or sqlerr(__FILE____LINE__);
}
}

autowarn(3,4,0.10);
autowarn(3,10,0.20);
autowarn(3,20,0.30);
autowarn(3,30,0.40); 

and no anymore warning users but the stats ot Upload and Download torrent is crazy......

I seeding 4 torrent but in traker write 8 torrent and other users is report me to this bug ?whether I am guilty ?
Reply With Quote