Externes Font-Awesome-CDN durch Inline-SVG ersetzen

This commit is contained in:
torsten 2026-11-01 23:15:33 +01:00
parent ca1f32841f
commit 24874b0112
3 changed files with 9 additions and 7 deletions

View file

@ -147,6 +147,9 @@ Auswertungshinweise:
(`round.php`, `game.php`), damit keine 6-POST-Kaskade mehr entsteht.
- **`tipps.game_id`-Index:** getestet, ~4–7× schneller bei Einzelabfragen, aber
nicht nötig (nur eine Admin-Abfrage) – bewusst nicht eingebaut.
- **Externe Fonts:** Font Awesome kam bis 01.11.2026 von `cdnjs.cloudflare.com`.
Genutzt wurden nur zwei Icons (`fa-robot`, `fa-circle-question`); sie sind jetzt
Inline-SVG, die externe CSS ist entfernt.
## Zeitzone und Zahlen
@ -308,9 +311,9 @@ Stalls auch HTML und Cron treffen – dagegen hilft es nicht.
- **AVV mit all-inkl** – am 01.11.2026 über den Bestätigungslink abgeschlossen (für
den Betreiber). Offen: PDF/Nachweis ablegen, Betreiber informieren und den
Art.-28-Satz in `privacy.php` nachtragen.
- **Nicht vom AVV abgedeckt:** Font Awesome wird über `cdnjs.cloudflare.com`
geladen (US-CDN, sieht Nutzer-IPs). Prüfen, ob selbst gehostet werden soll;
Payment- und Monitoring-Dienste separat bewerten.
- **Payment- und Monitoring-Dienste** – soweit sie personenbezogene Daten
verarbeiten, separat datenschutzrechtlich bewerten; der all-inkl-AVV deckt sie
nicht ab.
- **Monitoring** – UptimeRobot verifiziert: 5-Minuten-Takt, 110 Checks am 31.10. ab
14:51, Ziel `HEAD /index.php?page=login`. Erkennt Ausfälle ab ~5 Minuten; kürzere
Aussetzer nur über das Access-Log (18:41 am 1.11. blieb unentdeckt).

View file

@ -111,9 +111,9 @@ $teamLogo = function ($name) {
<input type="number" min="0" name="<?php echo $field; ?>[score2]"
value="<?php echo htmlspecialchars($in['score2'] ?? ((int)$game['score2'] < 0 ? '' : $game['score2'])); ?>">
<?php if (!empty($game['fetcher_matched'])): ?>
<i class="fa-solid fa-robot fetcher-badge" title="Vom Fetcher erkannt"></i>
<svg class="fetcher-badge fetcher-robot" viewBox="0 0 640 512" width="1em" height="1em" fill="currentColor" role="img" aria-label="Vom Fetcher erkannt"><title>Vom Fetcher erkannt</title><path d="M320 0c17.7 0 32 14.3 32 32V96H472c39.8 0 72 32.2 72 72V440c0 39.8-32.2 72-72 72H168c-39.8 0-72-32.2-72-72V168c0-39.8 32.2-72 72-72H288V32c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H208zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H304zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H400zM264 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 224H64V416H48c-26.5 0-48-21.5-48-48V272c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H576V224h16z"/></svg>
<?php else: ?>
<i class="fa-solid fa-circle-question fetcher-badge fetcher-unknown" title="Nicht vom Fetcher erkannt"></i>
<svg class="fetcher-badge fetcher-unknown" viewBox="0 0 512 512" width="1em" height="1em" fill="currentColor" role="img" aria-label="Nicht vom Fetcher erkannt"><title>Nicht vom Fetcher erkannt</title><path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"/></svg>
<?php endif; ?>
</td>
</tr>
@ -152,7 +152,7 @@ $teamLogo = function ($name) {
.round-admin .form-group { margin: 0.8em 0; }
.round-admin .hint { color: #666; font-size: 0.8em; }
.fetcher-badge { margin-left: 0.5em; vertical-align: middle; cursor: help; }
.fa-robot.fetcher-badge { color: var(--pitch); }
.fetcher-robot { color: var(--pitch); }
.fetcher-unknown { color: var(--bronze); }
</style>

View file

@ -23,7 +23,6 @@ if (App\Core\Auth::check()) {
<link rel="icon" href="/img/icon-192.png">
<link rel="apple-touch-icon" href="/img/icon-180.png">
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body class="<?php echo htmlspecialchars($bodyClass ?? ''); ?>">
<?php if (App\Core\Auth::check()): ?>