Backend-Editoren admin-geschuetzt (admin_gate) + Admin-Hub auf Admin-Seite; save_map admin-oder-lehrer; foto-upload admin-bypass (PIN bleibt)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-08-18 11:54:08 +02:00
parent 2bdaa0f6cc
commit b9bcbf9198
10 changed files with 82 additions and 4 deletions
+6 -1
View File
@@ -13,6 +13,11 @@
require_once __DIR__ . '/../php/config/app.php';
$bp = BASE_PATH;
/* ---------- Zugang: eingeloggte:r Admin ODER PIN (Ausnahme, vorläufig) ---------- */
require_once __DIR__ . '/../php/lib/Session.php';
Session::start();
$__isAdmin = !empty($_SESSION['admin_id']);
/* ---------- PIN-Schranke (im Browser gespeichert, 1 Jahr) ---------- */
$PIN = '0815';
$pinFehler = false;
@@ -24,7 +29,7 @@ if (isset($_POST['pin'])) {
}
$pinFehler = true;
}
if (($_COOKIE['ggs_foto_pin'] ?? '') !== $PIN) {
if (!$__isAdmin && ($_COOKIE['ggs_foto_pin'] ?? '') !== $PIN) {
?>
<!DOCTYPE html>
<html lang="de">
+3 -1
View File
@@ -1 +1,3 @@
<?php renderPage('stadt-editor.html');
<?php
require __DIR__ . '/../php/lib/admin_gate.php';
renderPage('stadt-editor.html');