1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-23 05:01:28 +00:00

more http auth related fixes, unified login sequence function

This commit is contained in:
Andrew Dolgov
2005-11-20 12:19:20 +01:00
parent bffdddd0b0
commit b8aa49bc97
4 changed files with 37 additions and 37 deletions

View File

@@ -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);
?>
<html>