From b8aa49bc97bf0de775caf4689e3db3a226a7378a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 20 Nov 2005 12:19:20 +0100 Subject: more http auth related fixes, unified login sequence function --- tt-rss.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'tt-rss.php') diff --git a/tt-rss.php b/tt-rss.php index e88dd19d0..8a43f4d4b 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -8,21 +8,7 @@ $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); - if (!SINGLE_USER_MODE) { - - if (!USE_HTTP_AUTH) { - if (!$_SESSION["uid"]) { - header("Location: login.php?rt=tt-rss.php"); - exit; - } - } else { - $force_logout = $_POST["ForceLogout"]; - http_authenticate_user($link, $force_logout == "yes"); - } - } else { - $_SESSION["uid"] = 1; - $_SESSION["name"] = "admin"; - } + login_sequence($link); ?> -- cgit v1.2.3