mirror of
https://github.com/pi-hole/web.git
synced 2026-04-25 19:29:20 +01:00
Add theme chooser to Setting -> Web interface.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user