Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- $_SESSION['authenticated'] = false;
- require 'aplikacia\Uzivatel.php';
- use Aplikacia\Uzivatel as User;
- if ( $_SESSION['authenticated'] == true)
- {
- echo "Už ste prihlásený!";
- header("location: index.php");
- }elseif (isset($_POST['login']) and isset($_POST['password']))
- {
- $username = $_POST['login'];
- $password = $_POST['password'];
- $login = new User($username, $password);
- $login->prihlasenie($username, $password);
- }else
- {
- header("location: index.php");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement