Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //index, nie wiem czy potrzebny ale wkleje ;p
- <?php
- session_start();
- if ((isset($_SESSION['zalogowany'])) && ($_SESSION['zalogowany']==true))
- {
- header('Location: gra.php');
- exit();
- }
- ?>
- <!DOCTYPE HTML>
- <html lang="pl">
- <head>
- <meta charset="utf-8" />
- <title>System logowania</title>
- </head>
- <body>
- <br />
- <a href="register.php"> Zarejestruj się - załóż darmowe konto!</a><br /><br />
- <form class="box" action="zaloguj.php" method="post">
- <h1>Login</h1>
- <input type="text" name="login" /> <br /><br />
- <input type="password" name="haslo" /> <br /><br />
- <input type="submit" value="Zaloguj się"
- </form>
- <a href="forpass.php"> Zapomniałem hasła</a>
- <?php
- if(isset($_SESSION['blad'])) echo $_SESSION['blad']; unset($_SESSION['blad']);
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement