Charakterverwalter (westreiche_website) ergänzen, Website-Nav "Charaktere"
This commit is contained in:
parent
d107f90c93
commit
01dae01c7c
84 changed files with 8915 additions and 17 deletions
18
westreiche_website/tools/router.php
Normal file
18
westreiche_website/tools/router.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* Router für den lokalen Entwicklungsserver:
|
||||
* php -S 127.0.0.1:8099 -t . tools/router.php
|
||||
*/
|
||||
|
||||
$path = (string) parse_url($_SERVER['REQUEST_URI'] ?? '/', PHP_URL_PATH);
|
||||
if ($path === '/install.php') {
|
||||
require __DIR__ . '/../install.php';
|
||||
return;
|
||||
}
|
||||
$file = __DIR__ . '/..' . $path;
|
||||
if ($path !== '/' && is_file($file)) {
|
||||
return false;
|
||||
}
|
||||
require __DIR__ . '/../index.php';
|
||||
Loading…
Add table
Add a link
Reference in a new issue