summaryrefslogtreecommitdiff
path: root/prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-20 12:19:20 +0100
committerAndrew Dolgov <[email protected]>2005-11-20 12:19:20 +0100
commitb8aa49bc97bf0de775caf4689e3db3a226a7378a (patch)
tree78c61a22e0ca9b2f18d127f83953e139c7fb6dc8 /prefs.php
parentbffdddd0b0c9d45c6d7b4c03015db554a691ed2c (diff)
more http auth related fixes, unified login sequence function
Diffstat (limited to 'prefs.php')
-rw-r--r--prefs.php17
1 files changed, 1 insertions, 16 deletions
diff --git a/prefs.php b/prefs.php
index 85a01663c..479425294 100644
--- a/prefs.php
+++ b/prefs.php
@@ -8,22 +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);
?>
<html>
<head>