From 53f926dfcfaa0bcafdada512c4530b80074379fb Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Wed, 1 Aug 2007 22:12:52 +0000 Subject: adapt DHCP-options HEAD <> RELENG --- usr/local/www/services_dhcp.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usr/local') diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php index eac3ba7..a51d842 100755 --- a/usr/local/www/services_dhcp.php +++ b/usr/local/www/services_dhcp.php @@ -143,6 +143,9 @@ if ($_POST) { if (($_POST['ntp1'] && !is_ipaddr($_POST['ntp1'])) || ($_POST['ntp2'] && !is_ipaddr($_POST['ntp2']))) { $input_errors[] = "A valid IP address must be specified for the primary/secondary NTP servers."; } + if (($_POST['tftp'] && !is_ipaddr($_POST['nextserver']))) { + $input_errors[] = "A valid IP address must be specified for the network boot server."; + } if (($_POST['nextserver'] && !is_ipaddr($_POST['nextserver']))) { $input_errors[] = "A valid IP address must be specified for the network boot server."; } -- cgit v1.1