asd
This commit is contained in:
@@ -19,14 +19,13 @@ if ($uriPath === '' || $uriPath === 'index' || $uriPath === 'index.php') {
|
||||
$target = __DIR__ . '/page/index.php';
|
||||
} else {
|
||||
$base = __DIR__ . '/page/' . $uriPath;
|
||||
echo $base;
|
||||
// 1) Verzeichnis mit index.php
|
||||
if (is_dir($base) && is_file($base . '/index.php')) {
|
||||
$target = $base . '/index.php';
|
||||
}
|
||||
// 2) Datei
|
||||
elseif (is_file($base . '.php')) {
|
||||
|
||||
echo $base;
|
||||
$target = $base . '.php';
|
||||
}
|
||||
// 3) 404
|
||||
|
||||
Reference in New Issue
Block a user