View Single Post
  #8  
Old 26th September 2019, 22:32
Elena's Avatar
Elena Elena is offline
Senior Member
 
Join Date: Sep 2010
Posts: 41
Default
Quote:
Originally Posted by elvira View Post
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");}

Last edited by Elena; 26th September 2019 at 22:48.
Reply With Quote