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