From 87f0be87d22730ab74af8dab0f50bc9196cfdc97 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Sun, 15 Feb 2009 14:05:30 -0500 Subject: Revert "Merge IPv6 changes" This reverts commit f193cf92b2c925a2f3f71a713d766efd1e4d81e0. --- usr/local/www/system.php | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'usr/local/www/system.php') diff --git a/usr/local/www/system.php b/usr/local/www/system.php index 650c797..fe466da 100755 --- a/usr/local/www/system.php +++ b/usr/local/www/system.php @@ -38,7 +38,6 @@ require("guiconfig.inc"); -require_once("IPv6.inc"); $pconfig['hostname'] = $config['system']['hostname']; $pconfig['domain'] = $config['system']['domain']; @@ -111,25 +110,12 @@ if ($_POST) { if ($_POST['domain'] && !is_domain($_POST['domain'])) { $input_errors[] = "The domain may only contain the characters a-z, 0-9, '-' and '.'."; } - /* if (($_POST['dns1'] && !is_ipaddr($_POST['dns1'])) || ($_POST['dns2'] && !is_ipaddr($_POST['dns2']))) { $input_errors[] = "A valid IP address must be specified for the primary/secondary DNS server."; } if (($_POST['dns3'] && !is_ipaddr($_POST['dns3'])) || ($_POST['dns4'] && !is_ipaddr($_POST['dns4']))) { $input_errors[] = "A valid IP address must be specified for the primary/secondary DNS server."; } - */ - - if ( - $_POST['dns1'] && !is_ipaddr($_POST['dns1']) && !Net_IPv6::checkIPv6($_POST['dns1']) || - $_POST['dns2'] && !is_ipaddr($_POST['dns2']) && !Net_IPv6::checkIPv6($_POST['dns2']) || - $_POST['dns3'] && !is_ipaddr($_POST['dns3']) && !Net_IPv6::checkIPv6($_POST['dns3']) || - $_POST['dns4'] && !is_ipaddr($_POST['dns4']) && !Net_IPv6::checkIPv6($_POST['dns4']) - ) { - $input_errors[] = "A valid IPv4/IPv6 address must be specified for the primary/secondary DNS server."; - } - - if ($_POST['webguiport'] && (!is_numericint($_POST['webguiport']) || ($_POST['webguiport'] < 1) || ($_POST['webguiport'] > 65535))) { $input_errors[] = "A valid TCP/IP port must be specified for the webConfigurator port."; @@ -267,7 +253,7 @@ include("head.inc");
- e.g. example.com + e.g. mycorp.com @@ -321,7 +307,7 @@ include("head.inc");
- IPv4/IPv6 addresses; these are also used for the DHCP + IP addresses; these are also used for the DHCP service, DNS forwarder and for PPTP VPN clients.
-- cgit v1.1