mirror of
https://github.com/pi-hole/web.git
synced 2026-04-25 03:10:18 +01:00
Checked config file vars about DHCP for existence
Signed-off-by: Realtebo <mirkotebaldi@yahoo.it>
This commit is contained in:
19
settings.php
19
settings.php
@@ -310,9 +310,22 @@ if (isset($_GET['tab']) && in_array($_GET['tab'], array("sysadmin", "blocklists"
|
||||
$DHCP = false;
|
||||
}
|
||||
// Read setings from config file
|
||||
$DHCPstart = $setupVars["DHCP_START"];
|
||||
$DHCPend = $setupVars["DHCP_END"];
|
||||
$DHCProuter = $setupVars["DHCP_ROUTER"];
|
||||
if (isset($setupVars["DHCP_START"])) {
|
||||
$DHCPstart = $setupVars["DHCP_START"];
|
||||
} else {
|
||||
$DHCPstart = "";
|
||||
}
|
||||
if (isset($setupVars["DHCP_END"])) {
|
||||
$DHCPend = $setupVars["DHCP_END"];
|
||||
} else {
|
||||
$DHCPend = "";
|
||||
}
|
||||
if (isset($setupVars["DHCP_ROUTER"])) {
|
||||
$DHCProuter = $setupVars["DHCP_ROUTER"];
|
||||
} else {
|
||||
$DHCProuter = "";
|
||||
}
|
||||
|
||||
// This setting has been added later, we have to check if it exists
|
||||
if (isset($setupVars["DHCP_LEASETIME"])) {
|
||||
$DHCPleasetime = $setupVars["DHCP_LEASETIME"];
|
||||
|
||||
Reference in New Issue
Block a user