summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoecowboy <i7wasn7m3@gmail.com>2012-02-25 16:57:50 -0600
committerJoecowboy <i7wasn7m3@gmail.com>2012-02-25 16:57:50 -0600
commitf365fa90eb84a32e87773263a95df309e9133578 (patch)
treea8b46f2d0cd7eb2ad01ec54fcbced3d915adca81
parent48fd9e4889d18e472e4c4260fe13d2378693d99a (diff)
downloadpfsense-f365fa90eb84a32e87773263a95df309e9133578.zip
pfsense-f365fa90eb84a32e87773263a95df309e9133578.tar.gz
Changed the variable name to dhcpleaseinlocaltime from timeformatchange per jim-p request and moved xml tag into dhcpd.
-rwxr-xr-xusr/local/www/services_dhcp.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php
index 6cc8674..3895268 100755
--- a/usr/local/www/services_dhcp.php
+++ b/usr/local/www/services_dhcp.php
@@ -151,7 +151,7 @@ if (is_array($config['dhcpd'][$if])){
$pconfig['failover_peerip'] = $config['dhcpd'][$if]['failover_peerip'];
$pconfig['netmask'] = $config['dhcpd'][$if]['netmask'];
$pconfig['numberoptions'] = $config['dhcpd'][$if]['numberoptions'];
- $pconfig['timeformatchange'] = $config['system']['timeformatchange'];
+ $pconfig['dhcpleaseinlocaltime'] = $config['dhcpd'][$if]['dhcpleaseinlocaltime'];
if (!is_array($config['dhcpd'][$if]['staticmap']))
$config['dhcpd'][$if]['staticmap'] = array();
$a_maps = &$config['dhcpd'][$if]['staticmap'];
@@ -381,7 +381,7 @@ if ($_POST) {
$config['dhcpd'][$if]['nextserver'] = $_POST['nextserver'];
$config['dhcpd'][$if]['filename'] = $_POST['filename'];
$config['dhcpd'][$if]['rootpath'] = $_POST['rootpath'];
- $config['system']['timeformatchange'] = $_POST['timeformatchange'];
+ $config['dhcpd'][$if]['dhcpleaseinlocaltime'] = $_POST['dhcpleaseinlocaltime'];
// Handle the custom options rowhelper
if(isset($config['dhcpd'][$if]['numberoptions']['item']))
@@ -480,6 +480,7 @@ include("head.inc");
document.iform.domain.disabled = endis;
document.iform.domainsearchlist.disabled = endis;
document.iform.staticarp.disabled = endis;
+ document.iform.dhcpleaseinlocaltime.disabled = endis;
document.iform.ddnsdomain.disabled = endis;
document.iform.ddnsupdate.disabled = endis;
document.iform.ntp1.disabled = endis;
@@ -736,7 +737,7 @@ include("head.inc");
<table>
<tr>
<td>
- <input name="timeformatchange" type="checkbox" id="timeformatchange" value="yes" <?php if ($pconfig['timeformatchange']) echo "checked"; ?>>
+ <input name="dhcpleaseinlocaltime" type="checkbox" id="dhcpleaseinlocaltime" value="yes" <?php if ($pconfig['dhcpleaseinlocaltime']) echo "checked"; ?>>
</td>
<td>
<strong>
OpenPOWER on IntegriCloud