From a77bb2720d354d847dc59c8f8e52039f84f8d5a8 Mon Sep 17 00:00:00 2001 From: billz Date: Tue, 30 Jun 2020 23:37:08 +0100 Subject: [PATCH] Dynamic sidebar logo --- index.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/index.php b/index.php index 45abcd92..d7306a62 100755 --- a/index.php +++ b/index.php @@ -46,15 +46,8 @@ $output = $return = 0; $page = $_GET['page']; $theme_url = getThemeOpt(); - -if ($_COOKIE['sidebarToggled'] == 'true' ) { - $toggleState = "toggled"; -} - -// Get Bridged AP mode status -$arrHostapdConf = parse_ini_file('/etc/raspap/hostapd.ini'); -// defaults to false -$bridgedEnabled = $arrHostapdConf['BridgedEnable']; +$toggleState = getSidebarState(); +$bridgedEnabled = getBridgedState(); ?> @@ -116,7 +109,7 @@ $bridgedEnabled = $arrHostapdConf['BridgedEnable'];
Status