Update file functions.php

This commit is contained in:
Jan BELLON 2024-03-08 22:11:32 +00:00
parent 59140f139f
commit 4b0d5cf659

View File

@ -11,10 +11,14 @@ if(!isset($_SESSION['role'])) {
if(isset($_GET['theme'])) {
setcookie('theme', (int)$_GET['theme'] % 2, time()+10*60*60);
$theme_dark = $themes_dark[$_GET['theme']];
$theme_light = $themes_light[$_GET['theme']];
} else {
$theme_dark = $themes_dark[$_COOKIE['theme']];
$theme_light = $themes_light[$_COOKIE['theme']];
}
$theme_dark = $themes_dark[$_COOKIE['theme']];
$theme_light = $themes_light[$_COOKIE['theme']];
function nav($nav) {