diff --git a/include/functions.php b/include/functions.php index 7ecffb45..b797677c 100644 --- a/include/functions.php +++ b/include/functions.php @@ -10,10 +10,10 @@ if(!isset($_SESSION['role'])) { } 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) {