Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. //index, nie wiem czy potrzebny ale wkleje ;p
  2.  
  3. <?php
  4.  
  5. session_start();
  6.  
  7. if ((isset($_SESSION['zalogowany'])) && ($_SESSION['zalogowany']==true))
  8. {
  9. header('Location: gra.php');
  10. exit();
  11. }
  12. ?>
  13. <!DOCTYPE HTML>
  14. <html lang="pl">
  15.  
  16. <head>
  17. <meta charset="utf-8" />
  18. <title>System logowania</title>
  19. </head>
  20.  
  21. <body>
  22. <br />
  23. <a href="register.php"> Zarejestruj się - załóż darmowe konto!</a><br /><br />
  24.  
  25. <form class="box" action="zaloguj.php" method="post">
  26. <h1>Login</h1>
  27. <input type="text" name="login" /> <br /><br />
  28. <input type="password" name="haslo" /> <br /><br />
  29. <input type="submit" value="Zaloguj się"
  30. </form>
  31. <a href="forpass.php"> Zapomniałem hasła</a>
  32.  
  33. <?php
  34. if(isset($_SESSION['blad'])) echo $_SESSION['blad']; unset($_SESSION['blad']);
  35. ?>
  36.  
  37.  
  38. </body>
  39. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement