fork download
  1. <?
  2. #$_GET['u'] = 'sila';
  3. $user['um'] = 0;
  4. if(isset($_GET['u']))
  5. switch($_GET['u']) //55 linia
  6. {
  7. case 'sila': //57 linia
  8.  
  9. if ($user['um'] > 0){ //59 linia itd..
  10.  
  11. $ap = floor(($user['sila']) * 1.2);
  12.  
  13. mysql_query("UPDATE gracze SET sila = sila + 1, um = um - 1, ap = ap + ".$ap." WHERE id = ".$user['id']);
  14.  
  15. header("Location: index.php?a=stats");
  16.  
  17. } else {
  18.  
  19. header("Location: index.php?a=stats");
  20.  
  21. }
  22.  
  23. break;
  24. case 'zrecznosc': //75
  25.  
  26. if ($user['um'] > 0){
  27.  
  28. mysql_query("UPDATE gracze SET zrecznosc = zrecznosc + 1, um = um - 1 WHERE id = ".$user['id']);
  29.  
  30. header("Location: index.php?a=stats");
  31.  
  32. } else {
  33.  
  34. header("Location: index.php?a=stats");
  35.  
  36. }
  37.  
  38. break;
  39.  
  40. }
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
Standard output is empty