From 2a1f531ffa32d265f9ee7788938ad086ccdce753 Mon Sep 17 00:00:00 2001 From: billz Date: Tue, 30 Jun 2020 16:52:18 +0100 Subject: [PATCH] Cleanup --- index.php | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/index.php b/index.php index 4345c58b..45abcd92 100755 --- a/index.php +++ b/index.php @@ -45,12 +45,7 @@ require_once 'includes/torproxy.php'; $output = $return = 0; $page = $_GET['page']; -if (!isset($_COOKIE['theme'])) { - $theme = "custom.css"; -} else { - $theme = $_COOKIE['theme']; -} -$theme_url = 'app/css/'.htmlspecialchars($theme, ENT_QUOTES); +$theme_url = getThemeOpt(); if ($_COOKIE['sidebarToggled'] == 'true' ) { $toggleState = "toggled"; @@ -270,7 +265,7 @@ $bridgedEnabled = $arrHostapdConf['BridgedEnable']; SaveTORAndVPNConfig(); break; case "theme_conf": - DisplayThemeConfig(); + DisplayThemeConfig($extraFooterScripts); break; case "data_use": DisplayDataUsage($extraFooterScripts); @@ -321,17 +316,10 @@ $bridgedEnabled = $arrHostapdConf['BridgedEnable']; - - - - - - -