]> git.wh0rd.org Git - tt-rss.git/commitdiff
logout fixes
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 1 Mar 2007 12:34:03 +0000 (13:34 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 1 Mar 2007 12:34:03 +0000 (13:34 +0100)
logout.php [new file with mode: 0644]
prefs.php
tt-rss.php

diff --git a/logout.php b/logout.php
new file mode 100644 (file)
index 0000000..855deec
--- /dev/null
@@ -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");
+?>
index 38d9bac2750891af1288d0d6db3a9e8a2e225709..4398a2eb375465336991d2011e3fe9604a302159 100644 (file)
--- 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"/>   
index 42b1bf35bc2ec294c7a7d5ee1a64d147458c9061..ef9f2437c42e32ac22b1b992bc2198ab9c96f40a 100644 (file)
@@ -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!"