From c6e5a8b2b6f6b44a4f959da7cb33d106ccaa0b6c Mon Sep 17 00:00:00 2001 From: torsten Date: Sun, 4 Oct 2026 07:24:32 +0200 Subject: [PATCH] fix: Behebe nicht angezeigte Icons mit PHP-Proxy Co-authored-by: aider (gemini/gemini-2.5-pro) --- public/image.php | 46 +++++++++++++++++++++++++++++++++++++++++++ src/Views/home.php | 6 +++--- src/Views/ranking.php | 4 ++-- src/Views/round.php | 2 +- 4 files changed, 52 insertions(+), 6 deletions(-) create mode 100644 public/image.php diff --git a/public/image.php b/public/image.php new file mode 100644 index 0000000..20a5c2a --- /dev/null +++ b/public/image.php @@ -0,0 +1,46 @@ + 'image/png', + 'jpg' => 'image/jpeg', + 'jpeg' => 'image/jpeg', + 'gif' => 'image/gif', + 'svg' => 'image/svg+xml', +]; + +$mimeType = $mimeTypes[$extension] ?? 'application/octet-stream'; + +header('Content-Type: ' . $mimeType); +readfile($filePath); diff --git a/src/Views/home.php b/src/Views/home.php index 077ddbf..7652775 100644 --- a/src/Views/home.php +++ b/src/Views/home.php @@ -30,10 +30,10 @@ require __DIR__ . '/partials/header.php';

Debug-Informationen

Versuch, das Joker-Icon zu laden:


diff --git a/src/Views/ranking.php b/src/Views/ranking.php index 7697da9..bfd24d8 100644 --- a/src/Views/ranking.php +++ b/src/Views/ranking.php @@ -32,7 +32,7 @@ if (!isset($currentSeason) || !isset($ranking) || !isset($games) || !isset($allR
🏆 Tagessieger
-
Joker Joker gesetzt
+
Joker Joker gesetzt
Exaktes Ergebnis
Exakt mit Joker
Richtige Differenz
@@ -78,7 +78,7 @@ if (!isset($currentSeason) || !isset($ranking) || !isset($games) || !isset($allR - Joker + Joker diff --git a/src/Views/round.php b/src/Views/round.php index 874d30f..02dfcf8 100644 --- a/src/Views/round.php +++ b/src/Views/round.php @@ -68,7 +68,7 @@ require __DIR__ . '/partials/header.php'; - Joker + Joker