This commit is contained in:
Bruno Rybársky 2024-02-02 15:55:23 +01:00
parent 4eff9ddb73
commit 0c49410012

@ -17,10 +17,11 @@ function initRouter(): bool
$routerRequest["tld"] = basename($routerRequest["requestAddress"][1]); $routerRequest["tld"] = basename($routerRequest["requestAddress"][1]);
} }
else {
$routerRequest["subdomain"] = basename($routerRequest["requestAddress"][0]); $routerRequest["subdomain"] = basename($routerRequest["requestAddress"][0]);
$routerRequest["domain"] = basename($routerRequest["requestAddress"][1]); $routerRequest["domain"] = basename($routerRequest["requestAddress"][1]);
$routerRequest["tld"] = basename($routerRequest["requestAddress"][2]); $routerRequest["tld"] = basename($routerRequest["requestAddress"][2]);
}
$routerRequest["page_name"] = basename($_SERVER["QUERY_STRING"]); $routerRequest["page_name"] = basename($_SERVER["QUERY_STRING"]);
if (empty($routerRequest["page_name"])) { if (empty($routerRequest["page_name"])) {