autoload user info

This commit is contained in:
2024-02-04 09:19:35 +01:00
parent 88b1391b34
commit c4a9dd9593
3 changed files with 20 additions and 6 deletions

View File

@@ -112,9 +112,12 @@ function getPage($page_name = null): array|false|string
$page_title = $page_name;
}
$dynastyle = "<style>";
if(isLoggedIn() && !empty($_SESSION["favorite_color"]) && is_int($_SESSION["favorite_color"]) && $_SESSION["favorite_color"] <= 4294967295){
$dynastyle = dechex($_SESSION["favorite_color"]);
$color = dechex($_SESSION["favorite_color"]);
$dynastyle .= "--root{ --favorite-color: #$color;";
}
$dynastyle .= "</style>";
$navpages = generateNavigation();