dokelu
This commit is contained in:
parent
7f6afabab2
commit
9ad8af8c6f
@ -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"] . "account/" . $endpoint_name . ".php";
|
||||
$endpoint_file_global = $routerConfig["endpoint_dir"] . "apex/" . $endpoint_name . ".php";
|
||||
|
||||
if (file_exists($endpoint_file_global)){
|
||||
$output = runEndpoint($endpoint_file_global);
|
||||
|
@ -19,9 +19,14 @@ function generateNavigation(): string
|
||||
|
||||
$site_name = str_replace("_", " ", $site_dir);
|
||||
|
||||
$site_subdomain = $site_dir;
|
||||
if ($site_name == "apex") {
|
||||
$site_subdomain = "";
|
||||
}
|
||||
|
||||
$site_name = ucfirst($site_name);
|
||||
|
||||
$site_location = $routerConfig["protocol"] . $site_dir . "." . $routerRequest["domain"] . "." . $routerRequest["tld"] . "/" . $routerConfig["default_page"];
|
||||
$site_location = $routerConfig["protocol"] . $site_subdomain . "." . $routerRequest["domain"] . "." . $routerRequest["tld"] . "/" . $routerConfig["default_page"];
|
||||
|
||||
if ($routerRequest["subdomain"] == $site_dir) {
|
||||
//this is the current page
|
||||
@ -41,7 +46,7 @@ function generateNavigation(): string
|
||||
$page_class = "class=\"navpage_link active\"";
|
||||
}
|
||||
|
||||
$page_location = $routerConfig["protocol"] . $site_dir . "." . $routerRequest["domain"] . "." . $routerRequest["tld"] . "/" . $page_dir;
|
||||
$page_location = $routerConfig["protocol"] . $site_subdomain . "." . $routerRequest["domain"] . "." . $routerRequest["tld"] . "/" . $page_dir;
|
||||
|
||||
$page_name = str_replace("_", " ", $page_dir);
|
||||
$page_name = explode(".", $page_name)[0];
|
||||
|
@ -14,7 +14,7 @@ function render(): string
|
||||
ob_start();
|
||||
|
||||
if ($_SESSION["ID"] > 0) {
|
||||
$account_template = file_get_contents($routerConfig["template_dir"] . "account.html");
|
||||
$account_template = file_get_contents($routerConfig["template_dir"] . "apex.html");
|
||||
echo $account_template;
|
||||
} else {
|
||||
$login_template = file_get_contents($routerConfig["template_dir"] . "login.html");
|
Loading…
Reference in New Issue
Block a user