View Single Post
  #16  
Old 12th December 2009, 02:28
LoaT LoaT is offline
Senior Member
 
Join Date: Jan 2009
Sweden
Posts: 31
Default
this works perfect with the 2009-version.. just use this:
Quote:
else
{
$upthis = max(0, $uploaded - $self["uploaded"]);
$downthis = max(0, $downloaded - $self["downloaded"]);
if ($free)
$downthis = 0;
if ($double)
$upthis *= 2;
if ($four)
$upthis *= 4;

if ($upthis > 0 || $downthis > 0)
mysql_query("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + $downthis WHERE id=".$user['id']) or err("Tracker error 3");
}
instead of the one in #0 :)
Reply With Quote