5) { sleep(5); header('Location: logout.php'); } if (isset($_POST['uid']) && isset($_POST['pwd'])) { $auth = $_SESSION['authenticate']; $auth->login($_POST['uid'], $_POST['pwd']); if ($auth->validUser()) { unset($_SESSION['attemps']); $_SESSION['user_settings'] = new UserSettings($_POST['uid']); $_SESSION['user_settings']->setSettings( $_SESSION['authenticate']->getSettings()); //var_dump($_SESSION['user_settings']); //var_dump($_SESSION['authenticate']->getSettings()); header('Location: index.php'); exit(); } } include 'include/header.inc.php'; $email = ADMIN_MAIL; $action = $_SERVER['PHP_SELF']; print <<< _HTML
Username
Password
If you don't have an account apply
_HTML; include 'include/footer.inc.php'; ?>