-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogout.php
More file actions
16 lines (16 loc) · 784 Bytes
/
logout.php
File metadata and controls
16 lines (16 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
define('NO_DATABASE', TRUE);
define('HELPCONTACTINFO', TRUE);
define('INCL_CREDITS', TRUE);
define('PANIC_MSG', FALSE);
$navbox = TRUE;
require_once './php/essentials.php';
$nonce = sha1(uniqid() . $_SERVER['REQUEST_URI'] .
($_SERVER['REQUEST_METHOD'] == 'POST' ? serialize($_POST) : ''));
header('HTTP/1.1 401 Unauthorized');
header('WWW-Authenticate: Digest realm="'.REALM.'", qop="auth", nonce="'.$nonce);
define('RESPONSE_CODE', 'LOGOUT');
friendly_error('I have attempted to log you out. It may or may not have' .
' worked. To check, try to <a href="user.php">log in</a> again (and ' .
'click ‘Cancel’). But to make absolutely sure, you should' .
' quit your browser (close all windows and tabs).', FALSE, E_USER_ERROR, FALSE);