public/index.php hinzugefügt
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user