1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00
This commit is contained in:
billz 2020-06-30 16:52:18 +01:00
parent 3603e099fe
commit 2a1f531ffa

View File

@ -45,12 +45,7 @@ require_once 'includes/torproxy.php';
$output = $return = 0; $output = $return = 0;
$page = $_GET['page']; $page = $_GET['page'];
if (!isset($_COOKIE['theme'])) { $theme_url = getThemeOpt();
$theme = "custom.css";
} else {
$theme = $_COOKIE['theme'];
}
$theme_url = 'app/css/'.htmlspecialchars($theme, ENT_QUOTES);
if ($_COOKIE['sidebarToggled'] == 'true' ) { if ($_COOKIE['sidebarToggled'] == 'true' ) {
$toggleState = "toggled"; $toggleState = "toggled";
@ -270,7 +265,7 @@ $bridgedEnabled = $arrHostapdConf['BridgedEnable'];
SaveTORAndVPNConfig(); SaveTORAndVPNConfig();
break; break;
case "theme_conf": case "theme_conf":
DisplayThemeConfig(); DisplayThemeConfig($extraFooterScripts);
break; break;
case "data_use": case "data_use":
DisplayDataUsage($extraFooterScripts); DisplayDataUsage($extraFooterScripts);
@ -321,17 +316,10 @@ $bridgedEnabled = $arrHostapdConf['BridgedEnable'];
<!-- Custom RaspAP JS --> <!-- Custom RaspAP JS -->
<script src="app/js/custom.js"></script> <script src="app/js/custom.js"></script>
<!-- Huebee --> <?php
<script src="dist/huebee/huebee.pkgd.min.js"></script>
<?php if ($page == "wlan0_info" || !isset($page)) { ?>
<!-- Link Quality Chart -->
<script src="app/js/linkquality.js"></script>
<?php }
// Load non default JS/ECMAScript in footer. // Load non default JS/ECMAScript in footer.
foreach ($extraFooterScripts as $script) { foreach ($extraFooterScripts as $script) {
echo ' <script type="text/javascript" src="' , $script['src'] , '"'; echo '<script type="text/javascript" src="' , $script['src'] , '"';
if ($script['defer']) { if ($script['defer']) {
echo ' defer="defer"'; echo ' defer="defer"';
} }