forked from Adleraci/adlerka.top
make remixicon local
This commit is contained in:
@@ -14,6 +14,8 @@ loadRouterConfig();
|
||||
$canRender = initRouter();
|
||||
|
||||
if ($canRender) {
|
||||
/** @noinspection PhpArrayIsAlwaysEmptyInspection */
|
||||
/** @noinspection PhpArrayIsAlwaysEmptyInspection */
|
||||
session_set_cookie_params(0, '/', "." . $routerRequest["domain"] . "." . $routerRequest["tld"], true, true);
|
||||
session_start();
|
||||
|
||||
@@ -21,10 +23,13 @@ if ($canRender) {
|
||||
setDefaultSessionData();
|
||||
}
|
||||
|
||||
/** @noinspection PhpArrayIsAlwaysEmptyInspection */
|
||||
if ($routerRequest["type"] == "api") {
|
||||
/** @noinspection PhpArrayIsAlwaysEmptyInspection */
|
||||
echo getEndpoint($routerRequest["page_name"]);
|
||||
|
||||
} elseif ($routerRequest["type"] == "page") {
|
||||
} /** @noinspection PhpArrayIsAlwaysEmptyInspection */ elseif ($routerRequest["type"] == "page") {
|
||||
/** @noinspection PhpArrayIsAlwaysEmptyInspection */
|
||||
echo getPage($routerRequest["page_name"]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user