From a17d2558d7739f61ed38545ecb7da11bf48ca778 Mon Sep 17 00:00:00 2001 From: SCHAUAUS GmbH Date: Sat, 4 Apr 2026 17:21:19 +0000 Subject: [PATCH] public/index.php aktualisiert --- public/index.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/public/index.php b/public/index.php index c43d927..e1d7d17 100644 --- a/public/index.php +++ b/public/index.php @@ -22,4 +22,25 @@ switch ($path) { break; } +function ReturnJsonResponse($data, $status = 200) { + http_response_code($status); + header('Content-Type: application/json'); + header('Cache-Control: no-cache, no-store, must-revalidate'); + echo json_encode($data); + exit; +} + +function request_access() { + $data = ['request access' => 'request not allowed']; + ReturnJsonResponse($data, 403); +} + +function deny_access() { + $data = ['deny access'=>'emergency user request revoked']; + ReturnJsonResponse($data); +} + +function user_interface() { + print('DigiErbe Tresor

Willkommen beim DigiErbe Tresor

'); +} ?> \ No newline at end of file