
4 changed files with 36 additions and 7 deletions
@ -0,0 +1,13 @@ |
|||||
|
<?php |
||||
|
|
||||
|
if (isset($_GET["error"]) && $_GET["error"] == 1) { |
||||
|
echo "<p>Neplatné jméno nebo heslo</p>"; |
||||
|
} |
||||
|
|
||||
|
?> |
||||
|
|
||||
|
<form name="login" action="/login.php" method="post"> |
||||
|
<input type="text" name="login" placeholder="Login"> |
||||
|
<input type="password" name="password" placeholder="Heslo"> |
||||
|
<button type="submit">Přihlásit</button> |
||||
|
</form> |
@ -0,0 +1,6 @@ |
|||||
|
<?php |
||||
|
session_start(); |
||||
|
|
||||
|
session_destroy(); |
||||
|
|
||||
|
header("Location: /index.php"); |
Loading…
Reference in new issue