Add theme chooser to Setting -> Web interface.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2020-04-30 01:43:53 +02:00
parent 064a0aae9c
commit 05d5f02a36
7 changed files with 86 additions and 24 deletions

View File

@@ -555,6 +555,12 @@ function addStaticDHCPLease($mac, $ip, $hostname) {
{
pihole_execute('-a layout traditional');
}
if(isset($_POST["webtheme"]))
{
global $available_themes;
if(array_key_exists($_POST["webtheme"], $available_themes))
exec('sudo pihole -a theme '.$_POST["webtheme"]);
}
$success .= "The webUI settings have been updated";
break;