diff options
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/load_balancer_virtual_server_edit.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/load_balancer_virtual_server_edit.php b/usr/local/www/load_balancer_virtual_server_edit.php index 5214809..f5c3249 100755 --- a/usr/local/www/load_balancer_virtual_server_edit.php +++ b/usr/local/www/load_balancer_virtual_server_edit.php @@ -72,6 +72,9 @@ if ($_POST) { if(!is_ipaddr($_POST['ipaddr'])) $input_errors[] = "{$_POST['ipaddr']} is not a valid IP address."; + if(!isset($_POST['sitedown']) || $_POST['sitedown'] == "") + $input_errors[] = "Pool Down Server is required."; + if(($_POST['sitedown'] != "") && (!is_ipaddr($_POST['sitedown']))) $input_errors[] = "{$_POST['sitedown']} is not a valid IP address."; |