26th September 2019, 21:44
|
|
Senior Member
|
|
Join Date: Jan 2008
Posts: 172
|
|
Quote:
if ($torrent['free'] == 'yes')
$downthis = 0;
if ($torrent['dupla_seed'] == 'yes')
$upthis = $upthis * 2;
if ($torrent['silver']=='yes')
$downthis=$downthis * 2;
$upthis = $upthis * 2;
if ($upthis > 0 || $downthis > 0)
mysql_query("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + $downthis WHERE id=$userid") or err("Tracker error 3");
|
think this must work
|