public/index.php hinzugefügt

This commit is contained in:
2026-04-04 11:35:08 +00:00
parent 21e4c7b117
commit 52b72d6701
+28
View File
@@ -0,0 +1,28 @@
<?php
/*
* ROUTING
*/
// store request method (GET, PUT, POST) and requested route / path
$method = $_SERVER['REQUEST_METHOD'];
$path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$path = str_replace('/index.php', '', $path);
$path = rtrim($path, '/');
switch ($path) {
case '/request': // request access to another user's emergency / legacy key file
request_access();
break;
case 'grant': // allow immediate access
grant_access();
break;
case 'deny': //deny access
deny_access();
break;
default:
user_interface();
break;
}
?>