test apex domain
This commit is contained in:
parent
e8601b708c
commit
c0fbaec15a
@ -23,7 +23,7 @@ function getEndpoint($endpoint_name): string
|
||||
|
||||
$endpoint_file = $routerConfig["endpoint_dir"] . $routerRequest["subdomain"] . "/" . $endpoint_name . ".php";
|
||||
|
||||
$endpoint_file_global = $routerConfig["endpoint_dir"] . "apex/" . $endpoint_name . ".php";
|
||||
$endpoint_file_global = $routerConfig["endpoint_dir"] . "home/" . $endpoint_name . ".php";
|
||||
|
||||
if (file_exists($endpoint_file_global)){
|
||||
$output = runEndpoint($endpoint_file_global);
|
||||
|
@ -20,7 +20,7 @@ function generateNavigation(): string
|
||||
$site_name = str_replace("_", " ", $site_dir);
|
||||
|
||||
$site_subdomain = $site_dir . ".";
|
||||
if ($site_name == "apex") {
|
||||
if ($site_name == $routerConfig["default_site"]) {
|
||||
$site_subdomain = "";
|
||||
}
|
||||
|
||||
|
@ -12,8 +12,6 @@ function initRouter(): bool
|
||||
|
||||
if(count($routerRequest["requestAddress"]) < 3){
|
||||
// Root domain accessed directly
|
||||
$needsRedirect = true;
|
||||
|
||||
$routerRequest["subdomain"] = $routerConfig["default_site"];
|
||||
$routerRequest["domain"] = basename($routerRequest["requestAddress"][0]);
|
||||
$routerRequest["tld"] = basename($routerRequest["requestAddress"][1]);
|
||||
|
@ -14,7 +14,7 @@ function render(): string
|
||||
ob_start();
|
||||
|
||||
if ($_SESSION["ID"] > 0) {
|
||||
$account_template = file_get_contents($routerConfig["template_dir"] . "apex.html");
|
||||
$account_template = file_get_contents($routerConfig["template_dir"] . "home.html");
|
||||
echo $account_template;
|
||||
} else {
|
||||
$login_template = file_get_contents($routerConfig["template_dir"] . "login.html");
|
Loading…
Reference in New Issue
Block a user