Quote:
Originally Posted by elvira
think this must work
|
Code:
if ($torrent['free'] == 'yes'){$downthis = 0;}
elseif ($torrent['dupla_seed'] == 'yes'){$upthis = $upthis * 2;}
elseif ($torrent['silver']=='yes'){$downthis=$downthis * 2;$upthis = $upthis * 2;}
elseif ($torrent['free']=='no'){$downthis=$downthis;$upthis = $upthis}
if ($upthis > 0 || $downthis > 0){
mysql_query("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + $downthis WHERE id=$userid") or err("Tracker error 3");}