diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-01-09 14:21:05 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-01-09 14:21:05 -0500 |
commit | 50178455e74b379b4060ab7f9191b61666033bb0 (patch) | |
tree | a1fe1d23150290cab515ab0a32229b63d30d080a /src | |
parent | 7361f6c2e34acafda853103b3b1590e5df875b34 (diff) | |
parent | b9bc38c1d4728398cb14bf4affaa32bfb1b683e2 (diff) | |
download | pfsense-50178455e74b379b4060ab7f9191b61666033bb0.zip pfsense-50178455e74b379b4060ab7f9191b61666033bb0.tar.gz |
Merge pull request #2392 from NOYB/HTML_Compliance_-_Firewall_/_Traffic_Shaper_/_Limiter
Diffstat (limited to 'src')
-rw-r--r-- | src/etc/inc/services.inc | 20 | ||||
-rw-r--r-- | src/etc/inc/shaper.inc | 8 |
2 files changed, 16 insertions, 12 deletions
diff --git a/src/etc/inc/services.inc b/src/etc/inc/services.inc index 2e58cce..7eec2ff 100644 --- a/src/etc/inc/services.inc +++ b/src/etc/inc/services.inc @@ -1067,6 +1067,9 @@ EOD; if ($newzone['domain-name']) { if ($need_ddns_updates) { $newzone['dns-servers'] = array($dhcpifconf['ddnsdomainprimary']); + $newzone['ddnsdomainkeyname'] = $dhcpifconf['ddnsdomainkeyname']; + $newzone['ddnsdomainkey'] = $dhcpifconf['ddnsdomainkey']; + $dhcpdconf .= dhcpdkey($dhcpifconf); } $ddns_zones[] = $newzone; } @@ -1076,8 +1079,7 @@ EOD; $dhcpdconf .= "ddns-update-style interim;\n"; $dhcpdconf .= "update-static-leases on;\n"; - $dhcpdconf .= dhcpdkey($dhcpifconf); - $dhcpdconf .= dhcpdzones($ddns_zones, $dhcpifconf); + $dhcpdconf .= dhcpdzones($ddns_zones); } /* write dhcpd.conf */ @@ -1122,7 +1124,7 @@ function dhcpdkey($dhcpifconf) { return $dhcpdconf; } -function dhcpdzones($ddns_zones, $dhcpifconf) { +function dhcpdzones($ddns_zones) { $dhcpdconf = ""; if (is_array($ddns_zones)) { @@ -1151,8 +1153,8 @@ function dhcpdzones($ddns_zones, $dhcpifconf) { if (is_ipaddrv4($secondary)) { $dhcpdconf .= " secondary {$secondary};\n"; } - if ($dhcpifconf['ddnsdomainkeyname'] <> "" && $dhcpifconf['ddnsdomainkey'] <> "") { - $dhcpdconf .= " key {$dhcpifconf['ddnsdomainkeyname']};\n"; + if ($zone['ddnsdomainkeyname'] <> "" && $zone['ddnsdomainkey'] <> "") { + $dhcpdconf .= " key {$zone['ddnsdomainkeyname']};\n"; } $dhcpdconf .= "}\n"; $added_zones[] = $zone['domain-name']; @@ -1163,8 +1165,8 @@ function dhcpdzones($ddns_zones, $dhcpifconf) { if (is_ipaddrv4($secondary)) { $dhcpdconf .= " secondary {$secondary};\n"; } - if ($dhcpifconf['ddnsdomainkeyname'] <> "" && $dhcpifconf['ddnsdomainkey'] <> "") { - $dhcpdconf .= " key {$dhcpifconf['ddnsdomainkeyname']};\n"; + if ($zone['ddnsdomainkeyname'] <> "" && $zone['ddnsdomainkey'] <> "") { + $dhcpdconf .= " key {$zone['ddnsdomainkeyname']};\n"; } $dhcpdconf .= "}\n"; $added_zones[] = $zone['ptr-domain']; @@ -1377,6 +1379,8 @@ EOD; $newzone = array(); $newzone['domain-name'] = $dhcpv6ifconf['domain']; $newzone['dns-servers'][] = $dhcpv6ifconf['ddnsdomainprimary']; + $newzone['ddnsdomainkeyname'] = $dhcpv6ifconf['ddnsdomainkeyname']; + $newzone['ddnsdomainkey'] = $dhcpv6ifconf['ddnsdomainkey']; $ddns_zones[] = $newzone; } @@ -1485,7 +1489,7 @@ EOD; if ($dhcpv6ifconf['domain']) { $dhcpdv6conf .= dhcpdkey($dhcpv6ifconf); - $dhcpdv6conf .= dhcpdzones($ddns_zones, $dhcpv6ifconf); + $dhcpdv6conf .= dhcpdzones($ddns_zones); } if ($config['dhcpdv6'][$dhcpv6if]['ramode'] <> "unmanaged" && isset($config['interfaces'][$dhcpv6if]['enable'])) { diff --git a/src/etc/inc/shaper.inc b/src/etc/inc/shaper.inc index 3d48490..0294154 100644 --- a/src/etc/inc/shaper.inc +++ b/src/etc/inc/shaper.inc @@ -3847,13 +3847,13 @@ EOD; $form .= "</select>"; $form .= "</td>"; $form .= '<td>'; - $form .= '<a type="button" class="btn btn-default" onclick="removeBwRow(this); return false;">' . gettext('Remove') . '</a>'; + $form .= '<a class="btn btn-default" onclick="removeBwRow(this); return false;">' . gettext('Remove') . '</a>'; $form .= "</td></tr>"; } } $form .= "</tbody></table></div><br />"; - $form .= '<a type="button" class="btn btn-sm btn-success" onclick="javascript:addBwRowTo(\'maintable\'); return false;" >'; + $form .= '<a class="btn btn-sm btn-success" onclick="javascript:addBwRowTo(\'maintable\'); return false;" >'; $form .= gettext("Add another schedule") . "</a>"; return($form); @@ -3953,7 +3953,7 @@ EOD; null, $mask['bitsv6'], array_combine(range(128, 1, -1), range(128, 1, -1)) - ))->setHelp('IPV6 mask bits' . '<br />' . '<font face="consolas">ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff/?</font>'); + ))->setHelp('IPV6 mask bits' . '<br />' . '<span style="font-family:consolas">ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff/?</span>'); $section->add($group); @@ -4257,7 +4257,7 @@ class dnqueue_class extends dummynet_class { null, $mask['bitsv6'], array_combine(range(128, 1, -1), range(128, 1, -1)) - ))->setHelp('IPV6 mask bits' . '<br />' . '<font face="consolas">ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff/?</font>'); + ))->setHelp('IPV6 mask bits' . '<br />' . '<span style="font-family:consolas">ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff/?</span>'); $section->add($group); |