From 138208bf779d341f427cdfbb319d479343c80152 Mon Sep 17 00:00:00 2001 From: Joecowboy Date: Sat, 25 Feb 2012 17:18:30 -0600 Subject: Changed the variable name from timeformtchangev6 to dhcpv6leaseinlocaltime per jim-p request and it will now write the xml dhcpv6leaseinlocaltime in the dhcpv6 sub catagory in the config.xml file. --- usr/local/www/services_dhcpv6.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'usr/local/www/services_dhcpv6.php') diff --git a/usr/local/www/services_dhcpv6.php b/usr/local/www/services_dhcpv6.php index 5a22676..5390dac 100644 --- a/usr/local/www/services_dhcpv6.php +++ b/usr/local/www/services_dhcpv6.php @@ -119,7 +119,7 @@ if (is_array($config['dhcpdv6'][$if])){ $pconfig['failover_peerip'] = $config['dhcpdv6'][$if]['failover_peerip']; $pconfig['netmask'] = $config['dhcpdv6'][$if]['netmask']; $pconfig['numberoptions'] = $config['dhcpdv6'][$if]['numberoptions']; - $pconfig['timeformatchangev6'] = $config['system']['timeformatchangev6']; + $pconfig['dhcpv6leaseinlocaltime'] = $config['dhcpdv6'][$if]['dhcpv6leaseinlocaltime']; if (!is_array($config['dhcpdv6'][$if]['staticmap'])) $config['dhcpdv6'][$if]['staticmap'] = array(); $a_maps = &$config['dhcpdv6'][$if]['staticmap']; @@ -319,7 +319,7 @@ if ($_POST) { $config['dhcpdv6'][$if]['nextserver'] = $_POST['nextserver']; $config['dhcpdv6'][$if]['filename'] = $_POST['filename']; $config['dhcpdv6'][$if]['rootpath'] = $_POST['rootpath']; - $config['system']['timeformatchangev6'] = $_POST['timeformatchangev6']; + $config['dhcpdv6'][$if]['dhcpv6leaseinlocaltime'] = $_POST['dhcpv6leaseinlocaltime']; // Handle the custom options rowhelper if(isset($config['dhcpdv6'][$if]['numberoptions']['item'])) @@ -403,6 +403,7 @@ include("head.inc"); document.iform.maxtime.disabled = endis; document.iform.gateway.disabled = endis; document.iform.failover_peerip.disabled = endis; + document.iform.dhcpv6leaseinlocaltime.disabled = endis; document.iform.domain.disabled = endis; document.iform.domainsearchlist.disabled = endis; document.iform.ddnsdomain.disabled = endis; @@ -666,7 +667,7 @@ include("head.inc");
- > + > -- cgit v1.1 From adaa3f751ade110cfe8a811b01b080c30d080b5c Mon Sep 17 00:00:00 2001 From: Joecowboy Date: Sun, 26 Feb 2012 00:20:56 -0600 Subject: Commenting those lines out because the form fields are not generated because they are commented out in the code. This fixes javascript error and now will disable all form fields when interface is disabled. --- usr/local/www/services_dhcpv6.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr/local/www/services_dhcpv6.php') diff --git a/usr/local/www/services_dhcpv6.php b/usr/local/www/services_dhcpv6.php index 5390dac..dc8cbc8 100644 --- a/usr/local/www/services_dhcpv6.php +++ b/usr/local/www/services_dhcpv6.php @@ -401,16 +401,16 @@ include("head.inc"); document.iform.dns2.disabled = endis; document.iform.deftime.disabled = endis; document.iform.maxtime.disabled = endis; - document.iform.gateway.disabled = endis; + //document.iform.gateway.disabled = endis; document.iform.failover_peerip.disabled = endis; document.iform.dhcpv6leaseinlocaltime.disabled = endis; document.iform.domain.disabled = endis; document.iform.domainsearchlist.disabled = endis; document.iform.ddnsdomain.disabled = endis; document.iform.ddnsupdate.disabled = endis; - document.iform.ntp1.disabled = endis; - document.iform.ntp2.disabled = endis; - document.iform.tftp.disabled = endis; + //document.iform.ntp1.disabled = endis; + //document.iform.ntp2.disabled = endis; + //document.iform.tftp.disabled = endis; document.iform.ldap.disabled = endis; document.iform.netboot.disabled = endis; document.iform.nextserver.disabled = endis; -- cgit v1.1