Basic Framework

This commit is contained in:
2024-07-13 17:22:53 +02:00
parent c1fffec124
commit 4d25387a47
22 changed files with 250 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
Order deny,allow
Deny from all
Allow from 127.0.0.1
+13
View File
@@ -0,0 +1,13 @@
<?php
$path = ltrim(str_replace(Config::getBasePath(), "", $_SERVER['REQUEST_URI']), "/");
try {
if (substr($path, 0, 3) === "api") {
require_once __DIR__ . "/../api/index.php";
} else {
require_once __DIR__ . "/../pages/index.html";
}
} catch (Exception $e) {
require_once __DIR__ . "/../pages/500.php";
}