diff options
author | Andrew Dolgov <[email protected]> | 2007-03-05 17:27:48 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-03-05 17:27:48 +0100 |
commit | 793185a9a51e3c5a104f4addb736b6372516d17e (patch) | |
tree | 6806b3f72e0959362cdc9f73476a5b922614fb08 /mobile/logout.php | |
parent | 6ada2c303efd52d0486873e231483b45db87ee0d (diff) |
mobile: sync login stuff and such with desktop version
Diffstat (limited to 'mobile/logout.php')
-rw-r--r-- | mobile/logout.php | 39 |
1 files changed, 4 insertions, 35 deletions
diff --git a/mobile/logout.php b/mobile/logout.php index 76641467d..89db68464 100644 --- a/mobile/logout.php +++ b/mobile/logout.php @@ -1,40 +1,9 @@ -<?php +<?php require_once "functions.php"; - - require_once "../config.php"; - require_once "../functions.php"; require_once "../sessions.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> - <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> -<?php } ?> + header("Location: tt-rss.php"); +?> |