diff options
author | Andrew Dolgov <[email protected]> | 2005-11-20 11:14:38 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-11-20 11:14:38 +0100 |
commit | 8cb7480484d03a06663ac031ad3db33ea46b77ae (patch) | |
tree | a5d486db88c66f3d2177917195e633f2b9ebc242 /tt-rss.php | |
parent | 2317ffaae70ec345add4eb90c4f79d74ca831e8b (diff) |
fix http basic authentication
Diffstat (limited to 'tt-rss.php')
-rw-r--r-- | tt-rss.php | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tt-rss.php b/tt-rss.php index 0f4a72dc1..9e04bc677 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -16,7 +16,8 @@ exit; } } else { - authenticate_user($link); + $force_logout = $_POST["ForceLogout"]; + http_authenticate_user($link, $force_logout == "yes"); } } else { $_SESSION["uid"] = 1; @@ -77,7 +78,18 @@ </tr><tr><td class="welcomePrompt"> <? if (!SINGLE_USER_MODE) { ?> - Hello, <b><?= $_SESSION["name"] ?></b> (<a href="logout.php">Logout</a>)</td> + <? if (USE_HTTP_AUTH) { ?> + <table align="right"><tr> + <td class="httpWelcomePrompt">Hello, <b><?= $_SESSION["name"] ?></b></td> + <td><form action="tt-rss.php" method="POST"> + <input type="hidden" name="ForceLogout" value="yes"> + <input type="submit" class="button" value="Logout"> + </form> + </td></tr></table> + <? } else { ?> + Hello, <b><?= $_SESSION["name"] ?></b>(<a href="logout.php">Logout</a>) + <? } ?> + </td> <? } ?> </tr></table> </td> |