tt-rss/logout.php

43 lines
1 KiB
PHP
Raw Normal View History

2006-08-19 09:04:45 +02:00
<?php
2006-03-02 09:10:43 +01:00
require_once "sessions.php";
2005-11-18 06:40:57 +01:00
2005-11-20 11:14:38 +01:00
require_once "config.php";
require_once "functions.php";
2005-11-20 11:14:38 +01:00
logout_user();
2005-11-18 06:40:57 +01:00
2005-11-20 11:14:38 +01:00
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");
2005-11-23 14:52:02 +01: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">
2006-12-21 18:41:02 +01:00
<h1><?php echo _('You have been logged out.') ?></h1>
2005-11-23 14:52:02 +01:00
2006-12-21 18:41:02 +01:00
<p><?php echo _('<span class="logoutWarning">Warning:</span>
2005-11-23 14:52:02 +01:00
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
2006-12-21 18:41:02 +01:00
is a security risk.') ?></p>
2005-11-23 14:52:02 +01:00
</div>
</body>
</html>
2006-08-19 09:04:45 +02:00
<?php } ?>