This commit is contained in:
Bruno Rybársky 2024-01-11 09:44:21 +01:00
parent 073c797dfd
commit 1e2d754561

@ -14,6 +14,11 @@ $dynamic_page_dir = "dynamic/";
$subdomain = basename(explode('.', $_SERVER['HTTP_HOST'])[0]); $subdomain = basename(explode('.', $_SERVER['HTTP_HOST'])[0]);
$page_name = basename($_SERVER["QUERY_STRING"]);; $page_name = basename($_SERVER["QUERY_STRING"]);;
if(empty($page_name)){
$page_name = "index";
}
$srvname = $_SERVER["SERVER_NAME"]; $srvname = $_SERVER["SERVER_NAME"];
$dynamic_page_file = $page_dir . $subdomain . "/" . $page_name . ".php"; $dynamic_page_file = $page_dir . $subdomain . "/" . $page_name . ".php";
@ -22,8 +27,6 @@ $page_file = $page_dir . $subdomain . "/" . $page_name . ".html";
$dynamic_page_file_global = $page_dir . "global/" . $page_name . ".php"; $dynamic_page_file_global = $page_dir . "global/" . $page_name . ".php";
$page_file_global = $page_dir . "global/" . $page_name . ".html"; $page_file_global = $page_dir . "global/" . $page_name . ".html";
echo $page_file;
$skeleton = file_get_contents($template_dir . "skeleton.html"); $skeleton = file_get_contents($template_dir . "skeleton.html");
$nav = file_get_contents($template_dir . "nav.html"); $nav = file_get_contents($template_dir . "nav.html");