//Set up your login name and password here $user="Yoda"; $pass="jedi"; //Which file be included after succesfull login? //kterou stránku otevřít po přihlášení? $protected="ene.php"; //Enter relative path to zour CSS stylesheet file //relativni adresa CSS souboru $css="styles.css"; //Delete unwanted language blocks //Česky $auth="Přihlášení"; $username="Uživatel"; $password="Heslo"; //English $auth="Logon"; $username="Username"; $password="Password"; #End of configuration.............................................. if ($_GET['action']=='validate'){ if(($_POST['user']==$user)&&($_POST['passwd']==$pass)){ session_start(); header("Cache-control: private"); $_SESSION["user_is_logged"] = 1; header("Location: ".$protected); exit; } } ?>
This work is licensed under a Creative Commons License. Some rights reserved Vladimír Jarý