summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-03-01 13:34:03 +0100
committerAndrew Dolgov <[email protected]>2007-03-01 13:34:03 +0100
commite672099651661e2386de14b5d0863d57b1ed97ed (patch)
treed15d338b47c8b1f4a66f9fc6eec7b70d2872edd6
parent8e849206dd5f049c3b2867bb9f7d9c25aa0ba807 (diff)
logout fixes
-rw-r--r--logout.php11
-rw-r--r--prefs.php2
-rw-r--r--tt-rss.php2
3 files changed, 13 insertions, 2 deletions
diff --git a/logout.php b/logout.php
new file mode 100644
index 000000000..855deec71
--- /dev/null
+++ b/logout.php
@@ -0,0 +1,11 @@
+<?php
+ require_once "functions.php";
+ require_once "sessions.php";
+ require_once "sanity_check.php";
+ require_once "version.php";
+ require_once "config.php";
+ require_once "db-prefs.php";
+
+ logout_user();
+ header("Location: tt-rss.php");
+?>
diff --git a/prefs.php b/prefs.php
index 38d9bac27..4398a2eb3 100644
--- a/prefs.php
+++ b/prefs.php
@@ -83,7 +83,7 @@ window.onload = init;
<?php if (!SINGLE_USER_MODE) { ?>
<div style="float : right">
<?php echo _('Hello,') ?> <b><?php echo $_SESSION["name"] ?></b>
- (<a href="javascript:logoutUser()">Logout</a>)
+ (<a href="logout.php">Logout</a>)
</div>
<?php } ?>
<img src="<?php echo $theme_image_path ?>images/ttrss_logo.png" alt="Tiny Tiny RSS"/>
diff --git a/tt-rss.php b/tt-rss.php
index 42b1bf35b..ef9f2437c 100644
--- a/tt-rss.php
+++ b/tt-rss.php
@@ -101,7 +101,7 @@ window.onload = init;
<div style="float : right">
<?php if (!SINGLE_USER_MODE) { ?>
<?php echo _('Hello,') ?> <b><?php echo $_SESSION["name"] ?></b>
- (<a href="javascript:logoutUser()">Logout</a>)
+ (<a href="logout.php">Logout</a>)
<?php } ?>
<img id="newVersionIcon" onclick="javascript:explainError(2)"
src="images/new_version.png" title="New version is available!"