From 694fade05d0890f73bb17e5733254fc27d9ac8e1 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Fri, 8 Mar 2024 20:52:43 +0000 Subject: [PATCH] Update file functions.php --- include/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {