From d4fb95f93f6478bf74c06aa7aca79218e4d5e2df Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Tue, 14 May 2024 19:13:01 +0200 Subject: [PATCH] Small changes --- www/files/create.sql.php | 1 + www/files/index.php | 4 ++-- www/index.xhtml | 8 ++++---- www/res/style.css | 10 ++++++---- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/www/files/create.sql.php b/www/files/create.sql.php index 6c7bd04..7de093d 100644 --- a/www/files/create.sql.php +++ b/www/files/create.sql.php @@ -5,6 +5,7 @@ global $GITEA_TOKEN; if ($_SERVER['PHP_AUTH_USER'] !== 'elwig' || $_SERVER['PHP_AUTH_PW'] !== 'ganzGeheim123!') { header('Status: 401'); header('WWW-Authenticate: Basic realm="Elwig"'); + header('Content-Type: text/plain'); exit("401 Unauthorized :(\n"); } diff --git a/www/files/index.php b/www/files/index.php index 850fc89..39cdbd5 100644 --- a/www/files/index.php +++ b/www/files/index.php @@ -126,8 +126,8 @@ if ($format === 'json') { - [$prod, $vers, $url, $size, $mtime, $ctime, $mod, $cre]) { - echo " \n"; + [$prod, $vers, $url, $size, $mtime, $ctime, $mod, $cre]) { + echo " \n"; } ?>
NameGrößeÄnderungsdatum
$name" . number_format($size / 1024 / 1024, 1) . " MB" . date('d.m.Y, H:i', $mtime) . "
$name" . number_format($size / 1024 / 1024, 1) . " MB" . date('d.m.Y, H:i', $mtime) . "
diff --git a/www/index.xhtml b/www/index.xhtml index 188bd01..7023cb8 100644 --- a/www/index.xhtml +++ b/www/index.xhtml @@ -7,7 +7,7 @@ - +