diff --git a/include/functions.php b/include/functions.php index e7b8ba96..b1af8669 100644 --- a/include/functions.php +++ b/include/functions.php @@ -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) {