diff --git a/App/pages/foto-upload.php b/App/pages/foto-upload.php index 44b4389..867a414 100644 --- a/App/pages/foto-upload.php +++ b/App/pages/foto-upload.php @@ -13,6 +13,52 @@ require_once __DIR__ . '/../php/config/app.php'; $bp = BASE_PATH; +/* ---------- PIN-Schranke (im Browser gespeichert, 1 Jahr) ---------- */ +$PIN = '0815'; +$pinFehler = false; +if (isset($_POST['pin'])) { + if ($_POST['pin'] === $PIN) { + setcookie('ggs_foto_pin', $PIN, time() + 60 * 60 * 24 * 365, '/'); + header('Location: ' . strtok($_SERVER['REQUEST_URI'], '?')); + exit; + } + $pinFehler = true; +} +if (($_COOKIE['ggs_foto_pin'] ?? '') !== $PIN) { + ?> + + + + + + 📷 Foto-Backend · PIN + + + +
+

📷 Foto-Backend

+

Bitte PIN eingeben — dein Browser merkt sie sich.

+ + +
PIN stimmt nicht.
+
+ + +