]> git.wh0rd.org - tt-rss.git/blob - mobile/logout.php
74e7a228d60c4b7b466342de00cea41f7992f44d
[tt-rss.git] / mobile / logout.php
1 <?
2 require_once "../sessions.php";
3
4 require_once "../config.php";
5 require_once "../functions.php";
6
7 logout_user();
8
9 if (!USE_HTTP_AUTH) {
10 $url_path = get_script_urlpath();
11
12 if (ENABLE_LOGIN_SSL) {
13 $protocol = "https";
14 } else {
15 $protocol = "http";
16 }
17
18 $redirect_base = "$protocol://" . $_SERVER["SERVER_NAME"] . $url_path;
19
20 header("Location: $redirect_base/login.php");
21 } else { ?>
22
23 <html>
24 <head>
25 <title>Tiny Tiny RSS : Logout</title>
26 <link rel="stylesheet" type="text/css" href="tt-rss.css">
27 <body>
28 <h1>You have been logged out.</h1>
29
30 <p><b>Warning:</b>
31 As there is no way to reliably clear HTTP Authentication
32 credentials from your browser, it is recommended for you to close
33 this browser window, otherwise your browser could automatically
34 authenticate again using previously supplied credentials, which
35 is a security risk.</p>
36
37 </body>
38 </html>
39 <? } ?>