summaryrefslogtreecommitdiff
path: root/prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-20 11:18:53 +0100
committerAndrew Dolgov <[email protected]>2005-11-20 11:18:53 +0100
commit9f78104cb5c925c5f2c3a104b40dbb9173cd1f70 (patch)
treeeed2a79ef24ceda020ae16c842e0af4b531e2c53 /prefs.php
parent8cb7480484d03a06663ac031ad3db33ea46b77ae (diff)
update prefs.php logout prompt
Diffstat (limited to 'prefs.php')
-rw-r--r--prefs.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/prefs.php b/prefs.php
index ac874a8e4..85a01663c 100644
--- a/prefs.php
+++ b/prefs.php
@@ -66,7 +66,19 @@
</td>
</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>