mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Create dashboard functions
This commit is contained in:
parent
2916bd1998
commit
29be22a8d3
@ -428,3 +428,27 @@ function getThemeOpt()
|
|||||||
return 'app/css/'.htmlspecialchars($theme, ENT_QUOTES);
|
return 'app/css/'.htmlspecialchars($theme, ENT_QUOTES);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getColorOpt()
|
||||||
|
{
|
||||||
|
if (!isset($_COOKIE['color'])) {
|
||||||
|
$color = "#d8224c";
|
||||||
|
} else {
|
||||||
|
$color = $_COOKIE['color'];
|
||||||
|
}
|
||||||
|
return $color;
|
||||||
|
}
|
||||||
|
function getSidebarState()
|
||||||
|
{
|
||||||
|
if ($_COOKIE['sidebarToggled'] == 'true' ) {
|
||||||
|
return"toggled";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Returns bridged AP mode status
|
||||||
|
function getBridgedState()
|
||||||
|
{
|
||||||
|
$arrHostapdConf = parse_ini_file(RASPI_CONFIG.'/hostapd.ini');
|
||||||
|
// defaults to false
|
||||||
|
return $arrHostapdConf['BridgedEnable'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user