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