Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- session_start();
- if ((!isset($_POST['uzytkownik'])) || (!isset($_POST['haslo'])))
- {
- header('Location: http://mrhoxell.cba.pl/index.php=?id=53');
- exit();
- }
- $uzytkownik=isset($_POST["uzytkownik"])?$_POST["uzytkownik"]:'';
- $haslo=isset($_POST["haslo"])?$_POST["haslo"]:'';
- if (strtolower($uzytkownik)=="guest123" && $haslo=="pass123")
- {
- $_SESSION["id"]=time();
- $_SESSION['zalogowany'] = true;
- unset($_SESSION['blad']);
- header("Location: http://mrhoxell.cba.pl/index.php=?id=532");
- exit();
- }
- else
- {
- $komunikat='Niepoprawny identyfikator lub hasło';
- $_SESSION['blad'] = '<span style="color:red">Nieprawidłowy login lub hasło!</span>';
- header('Location: http://mrhoxell.cba.pl/index.php=?id=53');
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement