attempt to fix empty screen when session lost

This commit is contained in:
quenousimporte 2024-03-15 15:11:26 +01:00
parent 4a3061fccd
commit ce1867bcf0
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}