logout fixes

This commit is contained in:
Andrew Dolgov 2007-03-01 13:34:03 +01:00
parent 8e849206dd
commit e672099651
3 changed files with 13 additions and 2 deletions

11
logout.php Normal file
View File

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

View File

@ -83,7 +83,7 @@ window.onload = init;
<?php if (!SINGLE_USER_MODE) { ?> <?php if (!SINGLE_USER_MODE) { ?>
<div style="float : right"> <div style="float : right">
<?php echo _('Hello,') ?> <b><?php echo $_SESSION["name"] ?></b> <?php echo _('Hello,') ?> <b><?php echo $_SESSION["name"] ?></b>
(<a href="javascript:logoutUser()">Logout</a>) (<a href="logout.php">Logout</a>)
</div> </div>
<?php } ?> <?php } ?>
<img src="<?php echo $theme_image_path ?>images/ttrss_logo.png" alt="Tiny Tiny RSS"/> <img src="<?php echo $theme_image_path ?>images/ttrss_logo.png" alt="Tiny Tiny RSS"/>

View File

@ -101,7 +101,7 @@ window.onload = init;
<div style="float : right"> <div style="float : right">
<?php if (!SINGLE_USER_MODE) { ?> <?php if (!SINGLE_USER_MODE) { ?>
<?php echo _('Hello,') ?> <b><?php echo $_SESSION["name"] ?></b> <?php echo _('Hello,') ?> <b><?php echo $_SESSION["name"] ?></b>
(<a href="javascript:logoutUser()">Logout</a>) (<a href="logout.php">Logout</a>)
<?php } ?> <?php } ?>
<img id="newVersionIcon" onclick="javascript:explainError(2)" <img id="newVersionIcon" onclick="javascript:explainError(2)"
src="images/new_version.png" title="New version is available!" src="images/new_version.png" title="New version is available!"