diff --git a/scripts/pi-hole/js/settings.js b/scripts/pi-hole/js/settings.js index e7e613eac..27620f5a7 100644 --- a/scripts/pi-hole/js/settings.js +++ b/scripts/pi-hole/js/settings.js @@ -55,6 +55,7 @@ $(".confirm-flushlogs").confirm({ $("#DHCPchk").click(function() { $("input.DHCPgroup").prop("disabled", !this.checked); + $("#dhcpnotice").prop("hidden", !this.checked).addClass("lookatme"); }); var leasetable; diff --git a/settings.php b/settings.php index 21e89fc16..175af9f16 100644 --- a/settings.php +++ b/settings.php @@ -9,6 +9,16 @@ max-width: none; white-space: nowrap; } + @-webkit-keyframes Pulse{ + from {color:#630030;-webkit-text-shadow:0 0 9px #333;} + 50% {color:#e33100;-webkit-text-shadow:0 0 18px #e33100;} + to {color:#630030;-webkit-text-shadow:0 0 9px #333;} + } + p.lookatme { + -webkit-animation-name: Pulse; + -webkit-animation-duration: 2s; + -webkit-animation-iteration-count: infinite; + } @@ -81,6 +91,7 @@
+

Warning: PHP has been compiled without IPv6 support.

@@ -107,10 +118,18 @@ $DHCPstart = $setupVars["DHCP_START"]; $DHCPend = $setupVars["DHCP_END"]; $DHCProuter = $setupVars["DHCP_ROUTER"]; - $DHCPleasetime = $setupVars["DHCP_LEASETIME"]; - if(strlen($DHCPleasetime) < 1) + // This setting has been added later, we have to check if it exists + if(isset($setupVars["DHCP_LEASETIME"])) + { + $DHCPleasetime = $setupVars["DHCP_LEASETIME"]; + if(strlen($DHCPleasetime) < 1) + { + // Fallback if empty string + $DHCPleasetime = 24; + } + } + else { - // Fallback if it was not set before $DHCPleasetime = 24; } } @@ -143,8 +162,13 @@
-
-
+
+
+
+
+
+
+

hidden>Make sure your router's DHCP server is disabled when using the Pi-hole DHCP server!

@@ -403,10 +427,10 @@ function convertseconds($argument) {
-
+
-
+

Note that enabling these two options may increase your privacy slightly, but may also prevent you from being able to access local hostnames if the Pi-Hole is not used as DHCP server

@@ -455,6 +479,7 @@ function convertseconds($argument) {

Privacy mode

-
-
+
+
+
+