]>
Commit | Line | Data |
---|---|---|
1d3a17c7 | 1 | <?php |
36bfab86 | 2 | require_once "sessions.php"; |
99620a7f | 3 | |
8cb74804 | 4 | require_once "config.php"; |
b8aa49bc | 5 | require_once "functions.php"; |
8cb74804 | 6 | |
b8aa49bc | 7 | logout_user(); |
99620a7f | 8 | |
8cb74804 | 9 | if (!USE_HTTP_AUTH) { |
75836f33 AD |
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"); | |
f557cd78 AD |
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 class="logoutBody"> | |
28 | <div class="logoutContent"> | |
29 | ||
865cde4e | 30 | <h1><?php echo _('You have been logged out.') ?></h1> |
f557cd78 | 31 | |
865cde4e | 32 | <p><?php echo _('<span class="logoutWarning">Warning:</span> |
f557cd78 AD |
33 | As there is no way to reliably clear HTTP Authentication |
34 | credentials from your browser, it is recommended for you to close | |
35 | this browser window, otherwise your browser could automatically | |
36 | authenticate again using previously supplied credentials, which | |
865cde4e | 37 | is a security risk.') ?></p> |
f557cd78 AD |
38 | |
39 | </div> | |
40 | </body> | |
41 | </html> | |
1d3a17c7 | 42 | <?php } ?> |