3 require_once "msgbox.php";
7 if (isset($_POST['login']) && isset($_POST['password'])) {
8 if ((strlen($_POST['login']) == 0) || (strlen($_POST['password']) == 0)) {
9 box_fail(tr("Vyplňte prosím přihlašovací jméno i heslo."));
11 $auth->login($_POST['login'], $_POST['password']);
12 if ($auth->verify()) {
13 header("Location: /");
14 box_succ(tr("Úspěch!"));
17 box_fail(tr("Chybný login nebo heslo!"));
23 include "template/login.php";