attempt to fix empty screen when session lost
This commit is contained in:
parent
4a3061fccd
commit
ce1867bcf0
|
@ -10,12 +10,13 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<?php
|
<?php
|
||||||
|
error_reporting(E_ALL);
|
||||||
require 'settings.php';
|
require 'settings.php';
|
||||||
|
|
||||||
if ($password && (!isset($_SERVER['PHP_AUTH_PW']) || $_SERVER['PHP_AUTH_PW'] != $password)) {
|
if ($password && (!isset($_SERVER['PHP_AUTH_PW']) || $_SERVER['PHP_AUTH_PW'] != $password)) {
|
||||||
header('WWW-Authenticate: Basic realm="bbn"');
|
header('WWW-Authenticate: Basic realm="bbn"');
|
||||||
header('HTTP/1.0 401 Unauthorized');
|
header('HTTP/1.0 401 Unauthorized');
|
||||||
echo '<p>Access denied.</p>';
|
echo '<p>Access denied.</p></body></html>';
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue