2024-01-11 09:27:03 +01:00
|
|
|
<?php
|
2024-01-16 20:43:57 +01:00
|
|
|
/** @noinspection PhpIncludeInspection */
|
|
|
|
require_once "secrets/config.php";
|
|
|
|
require_once "lib/navpages.php";
|
|
|
|
require_once "lib/routing.php";
|
2024-01-16 20:54:09 +01:00
|
|
|
require_once "lib/config.php";
|
2024-01-11 09:27:03 +01:00
|
|
|
|
2024-01-16 20:43:57 +01:00
|
|
|
$routerConfig = array();
|
|
|
|
$routerRequest = array();
|
2024-01-11 09:27:03 +01:00
|
|
|
|
2024-01-16 20:43:57 +01:00
|
|
|
loadRouterConfig();
|
|
|
|
if(initRouter()) {
|
|
|
|
/** @noinspection PhpArrayIsAlwaysEmptyInspection */
|
|
|
|
session_set_cookie_params(0, '/', "." . $routerRequest["domain"] . "." . $routerRequest["tld"], true, true);
|
|
|
|
session_start();
|
|
|
|
/** @noinspection PhpArrayIsAlwaysEmptyInspection */
|
|
|
|
echo getPage($routerRequest["page_name"]);
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
exit();
|
|
|
|
}
|
2024-01-11 09:27:03 +01:00
|
|
|
|