Basic Framework
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
Allow from 127.0.0.1
|
||||
@@ -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";
|
||||
}
|
||||
Reference in New Issue
Block a user