Remove saving backend for settings moved into local storage.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2020-06-02 16:08:28 +02:00
committed by Adam Warner
parent 2e0a261c47
commit 51dc473278
4 changed files with 4 additions and 25 deletions

View File

@@ -198,7 +198,6 @@ if($auth) {
?>
<!-- Send token to JS -->
<div id="checkbox_theme" hidden><?php echo $checkbox_theme_name; ?><?php if($checkbox_theme_name !== $checkbox_theme_variant){ echo "-$checkbox_theme_variant"; } ?></div>
<div id="enableTimer" hidden><?php if(file_exists("../custom_disable_timer")){ echo file_get_contents("../custom_disable_timer"); } ?></div>
<div class="wrapper">
<header class="main-header">

View File

@@ -525,18 +525,6 @@ function addStaticDHCPLease($mac, $ip, $hostname) {
break;
case "webUI":
if($_POST["tempunit"] == "F")
{
pihole_execute('-a -f');
}
elseif($_POST["tempunit"] == "K")
{
pihole_execute('-a -k');
}
else
{
pihole_execute('-a -c');
}
$adminemail = trim($_POST["adminemail"]);
if(strlen($adminemail) == 0 || !isset($adminemail))
{
@@ -550,14 +538,6 @@ function addStaticDHCPLease($mac, $ip, $hostname) {
{
pihole_execute('-a -e \''.$adminemail.'\'');
}
if(isset($_POST["boxedlayout"]))
{
pihole_execute('-a layout boxed');
}
else
{
pihole_execute('-a layout traditional');
}
if(isset($_POST["webtheme"]))
{
global $available_themes;

View File

@@ -7,14 +7,14 @@
* Please see LICENSE file for your rights under this license. */
// Array of available themes and their description
$available_themes = [];
$available_themes = array();
/* Array key = name used internally, not shown to the user
* Array[0] = Description
* Array[1] = Is this a dark mode theme? (Sets background to black during page reloading to avoid white "flashing")
* Array[2] = Style sheet name
*/
$available_themes["default-light"] = ["Pi-hole default theme (light, default)", false, "default-light"];
$available_themes["default-dark"] = ["Pi-hole midnight theme (dark)", true, "default-dark"];
$available_themes["default-light"] = array("Pi-hole default theme (light, default)", false, "default-light");
$available_themes["default-dark"] = array("Pi-hole midnight theme (dark)", true, "default-dark");
$webtheme = "";
// Try to load theme settings from setupVars.conf