2005-11-18 05:40:57 +00:00
|
|
|
<?
|
2006-03-02 08:10:43 +00:00
|
|
|
require_once "sessions.php";
|
2005-11-18 05:40:57 +00:00
|
|
|
|
2005-11-20 10:14:38 +00:00
|
|
|
require_once "config.php";
|
2005-11-20 11:19:20 +00:00
|
|
|
require_once "functions.php";
|
2005-11-20 10:14:38 +00:00
|
|
|
|
2005-11-20 11:19:20 +00:00
|
|
|
logout_user();
|
2005-11-18 05:40:57 +00:00
|
|
|
|
2005-11-20 10:14:38 +00:00
|
|
|
if (!USE_HTTP_AUTH) {
|
2005-12-09 20:34:29 +00:00
|
|
|
$url_path = get_script_urlpath();
|
|
|
|
|
|
|
|
if (ENABLE_LOGIN_SSL) {
|
|
|
|
$protocol = "https";
|
|
|
|
} else {
|
|
|
|
$protocol = "http";
|
|
|
|
}
|
|
|
|
|
|
|
|
$redirect_base = "$protocol://" . $_SERVER["SERVER_NAME"] . $url_path;
|
|
|
|
|
|
|
|
header("Location: $redirect_base/login.php");
|
2005-11-23 13:52:02 +00:00
|
|
|
} else { ?>
|
|
|
|
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Tiny Tiny RSS : Logout</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="tt-rss.css">
|
|
|
|
<body class="logoutBody">
|
|
|
|
<div class="logoutContent">
|
|
|
|
|
|
|
|
<h1>You have been logged out.</h1>
|
|
|
|
|
|
|
|
<p><span class="logoutWarning">Warning:</span>
|
|
|
|
As there is no way to reliably clear HTTP Authentication
|
|
|
|
credentials from your browser, it is recommended for you to close
|
|
|
|
this browser window, otherwise your browser could automatically
|
|
|
|
authenticate again using previously supplied credentials, which
|
|
|
|
is a security risk.</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
<? } ?>
|