Update file functions.php
This commit is contained in:
parent
59140f139f
commit
4b0d5cf659
@ -11,10 +11,14 @@ if(!isset($_SESSION['role'])) {
|
|||||||
|
|
||||||
if(isset($_GET['theme'])) {
|
if(isset($_GET['theme'])) {
|
||||||
setcookie('theme', (int)$_GET['theme'] % 2, time()+10*60*60);
|
setcookie('theme', (int)$_GET['theme'] % 2, time()+10*60*60);
|
||||||
|
$theme_dark = $themes_dark[$_GET['theme']];
|
||||||
|
$theme_light = $themes_light[$_GET['theme']];
|
||||||
|
} else {
|
||||||
|
$theme_dark = $themes_dark[$_COOKIE['theme']];
|
||||||
|
$theme_light = $themes_light[$_COOKIE['theme']];
|
||||||
}
|
}
|
||||||
|
|
||||||
$theme_dark = $themes_dark[$_COOKIE['theme']];
|
|
||||||
$theme_light = $themes_light[$_COOKIE['theme']];
|
|
||||||
|
|
||||||
|
|
||||||
function nav($nav) {
|
function nav($nav) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user