require("fce/fce.php"); if (IsSet($_POST["login"]) and $_SESSION["tryCount"]>0){ if(in_array($_POST["heslo"],$arrPassword)){ $_SESSION["accessGranted"] = true; $_SESSION["controlTime"] = $_SESSION["timeStamp"]; js_location_assign('index.php'); }else{ js_alert("Špatné heslo. Mužete zkusit ještě ".$_SESSION["tryCount"]."x"); $_SESSION["tryCount"]--; } } ?>