Reorg index components into includes

This commit is contained in:
billz
2023-09-14 15:14:02 +02:00
parent 8044bc8cb1
commit f9d27e3bae
5 changed files with 198 additions and 185 deletions

View File

@@ -664,6 +664,13 @@ function formatDateAgo($datetime, $full = false)
return $string ? implode(', ', $string) . ' ago' : 'just now';
}
function initializeApp()
{
$_SESSION["theme_url"] = getThemeOpt();
$_SESSION["toggleState"] = getSidebarState();
$_SESSION["bridgedEnabled"] = getBridgedState();
}
function getThemeOpt()
{
if (!isset($_COOKIE['theme'])) {