diff options
author | Joecowboy <i7wasn7m3@gmail.com> | 2012-02-25 15:25:55 -0600 |
---|---|---|
committer | Joecowboy <i7wasn7m3@gmail.com> | 2012-02-25 15:25:55 -0600 |
commit | 7d0ad4ec4d04fd202fefc01aae49fd37500771dd (patch) | |
tree | 1666bec18d97bdddba0751b6a8064b2054951f9f /usr/local/www/services_dhcpv6.php | |
parent | 6215694a47bd6be11cda4e97652814a70fc4aa8c (diff) | |
download | pfsense-7d0ad4ec4d04fd202fefc01aae49fd37500771dd.zip pfsense-7d0ad4ec4d04fd202fefc01aae49fd37500771dd.tar.gz |
Added check box for DHCPv6 lease time to select local time instead of the default UTC time.
Diffstat (limited to 'usr/local/www/services_dhcpv6.php')
-rw-r--r-- | usr/local/www/services_dhcpv6.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/usr/local/www/services_dhcpv6.php b/usr/local/www/services_dhcpv6.php index 33ad647..5a22676 100644 --- a/usr/local/www/services_dhcpv6.php +++ b/usr/local/www/services_dhcpv6.php @@ -119,6 +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']; if (!is_array($config['dhcpdv6'][$if]['staticmap'])) $config['dhcpdv6'][$if]['staticmap'] = array(); $a_maps = &$config['dhcpdv6'][$if]['staticmap']; @@ -318,6 +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']; // Handle the custom options rowhelper if(isset($config['dhcpdv6'][$if]['numberoptions']['item'])) @@ -659,6 +661,31 @@ include("head.inc"); </td> </tr> <tr> + <td width="22%" valign="top" class="vncell"><?=gettext("Time format change"); ?></td> + <td width="78%" class="vtable"> + <table> + <tr> + <td> + <input name="timeformatchangev6" type="checkbox" id="timeformatchangev6" value="yes" <?php if ($pconfig['timeformatchangev6']) echo "checked"; ?>> + </td> + <td> + <strong> + <?=gettext("Change DHCPv6 display lease time from UTC to local time."); ?> + </strong> + </td> + </tr> + <tr> + <td> </td> + <td> + <span class="red"><strong><?=gettext("Note:");?></strong></span> <?=gettext("By default DHCPv6 leases are displayed in UTC time. By checking this + box DHCPv6 lease time will be displayed in local time and set to time zone selected. This will be used for all DHCPv6 interfaces lease time."); ?> + + </td> + </tr> + </table> + </td> + </tr> + <tr> <td width="22%" valign="top" class="vncell"><?=gettext("Dynamic DNS");?></td> <td width="78%" class="vtable"> <div id="showddnsbox"> |