Update file functions.php

This commit is contained in:
Jan BELLON 2024-03-08 20:52:43 +00:00
parent 279c60a2e0
commit 694fade05d

View File

@ -10,10 +10,10 @@ if(!isset($_SESSION['role'])) {
} }
if(isset($_GET['theme'])) { if(isset($_GET['theme'])) {
$_SESSION['theme'] = (int)$_GET['theme'] % 3; setcookie('theme', (int)$_GET['theme'] % 3, time()+10*60*60);
} }
$theme = $themes[$_SESSION['theme']]; $theme = $themes[$_COOKIE['theme']];
function nav($nav) { function nav($nav) {