Update file functions.php

This commit is contained in:
Jan BELLON 2024-03-08 20:29:00 +00:00
parent 20bbdac5c4
commit 0c7cf2c836

View File

@ -9,7 +9,11 @@ if(!isset($_SESSION['role'])) {
$_SESSION['role'] = 0;
}
$theme = isset($_GET['theme']) ? $themes[$_GET['theme']] : $themes[0];
if(isset($_GET['theme'])) {
$_SESSION['theme'] = (int)$_GET['theme'] % 2;
}
$theme = $themes[$_SESSION['theme']];
function nav($nav) {