summaryrefslogtreecommitdiff
path: root/logout.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-03-01 10:43:54 +0100
committerAndrew Dolgov <[email protected]>2007-03-01 10:43:54 +0100
commit01a87dff9efecf9070b652f59a52e55bd2db1906 (patch)
treecdb2be616dfae0a8b8c8a1e9f31bf167ba84e6f7 /logout.php
parent81596c6612ed98ea2d648300e28bbe1661d97165 (diff)
rework login process, drop http auth
Diffstat (limited to 'logout.php')
-rw-r--r--logout.php42
1 files changed, 0 insertions, 42 deletions
diff --git a/logout.php b/logout.php
deleted file mode 100644
index 249018dce..000000000
--- a/logout.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
- require_once "sessions.php";
-
- require_once "config.php";
- require_once "functions.php";
-
- 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 class="logoutBody">
- <div class="logoutContent">
-
- <h1><?php echo _('You have been logged out.') ?></h1>
-
- <p><?php echo _('<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>
-<?php } ?>