Update from xhtml to html and add /files/stat

This commit is contained in:
2025-09-17 16:03:45 +02:00
parent cc3c0cab45
commit fdbd749b1b
4 changed files with 66 additions and 40 deletions

View File

@@ -3,7 +3,7 @@ require "../.php/auth.inc";
require "../.php/credentials.inc";
global $GITEA_TOKEN;
if ($_SERVER['PHP_AUTH_USER'] !== 'elwig' || $_SERVER['PHP_AUTH_PW'] !== 'ganzGeheim123!') {
if (!isset($_SERVER['PHP_AUTH_USER']) || !isset($_SERVER['PHP_AUTH_PW']) || $_SERVER['PHP_AUTH_USER'] !== 'elwig' || $_SERVER['PHP_AUTH_PW'] !== 'ganzGeheim123!') {
http_401_unauthorized();
}