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:
@@ -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">
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
<?php renderPage('stadt-editor.html');
|
||||
<?php
|
||||
require __DIR__ . '/../php/lib/admin_gate.php';
|
||||
renderPage('stadt-editor.html');
|
||||
|
||||
Reference in New Issue
Block a user