forked from Adleraci/adlerka.top
test
This commit is contained in:
@@ -112,6 +112,10 @@ function getPage($page_name = null): array|false|string
|
||||
$page_title = $page_name;
|
||||
}
|
||||
|
||||
if(isLoggedIn() && !empty($_SESSION["favorite_color"]) && is_int($_SESSION["favorite_color"]) && $_SESSION["favorite_color"] <= 4294967295){
|
||||
$dynastyle = dechex($_SESSION["favorite_color"]);
|
||||
}
|
||||
|
||||
$navpages = generateNavigation();
|
||||
|
||||
$nav = str_replace("__NAV_PAGES__", $navpages, $nav);
|
||||
@@ -119,5 +123,6 @@ function getPage($page_name = null): array|false|string
|
||||
$out = $skeleton;
|
||||
$out = str_replace("__TEMPLATE__NAV__", $nav, $out);
|
||||
$out = str_replace("__TEMPLATE__PAGE__", $page, $out);
|
||||
$out = str_replace("__TEMPLATE__DYNASTYLE__", $dynastyle, $out);
|
||||
return str_replace("__TEMPLATE_PAGE_TITLE__", $page_title, $out);
|
||||
}
|
Reference in New Issue
Block a user