session_start(); require_once "version.php"; require_once "config.php"; require_once "functions.php"; $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); $login = $_POST["login"]; $password = $_POST["password"]; if ($login && $password) { if (authenticate_user($link, $login, $password)) { initialize_user_prefs($link, $_SESSION["uid"]); header("Location: tt-rss.php"); } } ?>