Drink it cold: Terminplanung für Kühlanhänger
This commit is contained in:
commit
ec88c8ebac
55 changed files with 7091 additions and 0 deletions
20
web/index.php
Normal file
20
web/index.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* Drink it cold – Front Controller.
|
||||
* Apache leitet alle nicht vorhandenen Dateien über .htaccess hierher.
|
||||
*/
|
||||
|
||||
$appRoot = is_dir(__DIR__ . '/app') ? __DIR__ . '/app' : dirname(__DIR__) . '/app';
|
||||
require $appRoot . '/bootstrap.php';
|
||||
|
||||
$uriPath = (string) parse_url((string) ($_SERVER['REQUEST_URI'] ?? '/'), PHP_URL_PATH);
|
||||
$basePath = rtrim((string) config('app.base_path', ''), '/');
|
||||
if ($basePath !== '' && str_starts_with($uriPath, $basePath)) {
|
||||
$uriPath = substr($uriPath, strlen($basePath));
|
||||
}
|
||||
$path = '/' . trim($uriPath, '/');
|
||||
$method = request_method();
|
||||
|
||||
page_handle($method, $path);
|
||||
Loading…
Add table
Add a link
Reference in a new issue