verifyPassword()) { $_SESSION['username'] = $login->getUsername(); if ($_SERVER['HTTP_HOST'] == 'www.archline.hu') header("location: https://" . $_SERVER['HTTP_HOST'] . "/iskolak/"); else header("location: https://" . $_SERVER['HTTP_HOST'] . "/school/"); } else { $error = $loginPage['login_error']; } } ?> <?= $loginPage['login'] ?>