//Set up your login name and password here $user="lab"; $pass="elektrochemie"; //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['pass']==$pass)){ session_start(); header("Cache-control: private"); $_SESSION["user_is_logged"] = 1; header("Location: ".$protected); exit; } } ?>