2006-08-19 08:52:33 +00:00
|
|
|
<?php
|
2006-05-23 05:07:38 +00:00
|
|
|
require_once "functions.php";
|
2006-03-27 05:56:37 +00:00
|
|
|
|
|
|
|
require_once "../config.php";
|
|
|
|
require_once "../functions.php";
|
2006-05-23 05:07:38 +00:00
|
|
|
require_once "../sessions.php";
|
2006-03-27 05:56:37 +00:00
|
|
|
|
|
|
|
logout_user();
|
|
|
|
|
|
|
|
if (!USE_HTTP_AUTH) {
|
|
|
|
$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");
|
|
|
|
} else { ?>
|
|
|
|
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Tiny Tiny RSS : Logout</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="tt-rss.css">
|
|
|
|
<body>
|
|
|
|
<h1>You have been logged out.</h1>
|
|
|
|
|
|
|
|
<p><b>Warning:</b>
|
|
|
|
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>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
2006-08-19 08:52:33 +00:00
|
|
|
<?php } ?>
|