From 9b45f82198894b23189e65a7117b2dce45b21904 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Fri, 4 Dec 2009 13:59:29 +0000 Subject: Ticket #146 Fix typos ansd copy/pasto errors. --- usr/local/www/firewall_rules_edit.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'usr/local') diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index 6966a97..692d197 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -273,14 +273,14 @@ if ($_POST) { $_POST['dstendport'] = 0; } - if ($_POST['srcbeginport'] && !is_portoralias($_POST['srcbeginport'])) - $input_errors[] = "The start source port must be an alias or integer between 1 and 65535."; - if ($_POST['srcendport'] && !is_portoralias($_POST['srcendport'])) - $input_errors[] = "The end source port must be an alias or integer between 1 and 65535."; - if ($_POST['dstbeginport'] && !is_portoralias($_POST['dstbeginport'])) - $input_errors[] = "The start destination port must be an alias or integer between 1 and 65535."; - if ($_POST['dstendport'] && !is_portoralias($_POST['dstbeginport'])) - $input_errors[] = "The end destination port must be an alias or integer between 1 and 65535."; + if ($_POST['srcbeginport'] && !is_portoralias($_POST['srcbeginport'])) + $input_errors[] = "{$_POST['srcbeginport']} is not a valid start source port. It must be a port alias or integer between 1 and 65535."; + if ($_POST['srcendport'] && !is_portoralias($_POST['srcendport'])) + $input_errors[] = "{$_POST['srcendport']} is not a valid end source port. It must be a port alias or integer between 1 and 65535."; + if ($_POST['dstbeginport'] && !is_portoralias($_POST['dstbeginport'])) + $input_errors[] = "{$_POST['dstbeginport']} is not a valid start destination port. It must be a port alias or integer between 1 and 65535."; + if ($_POST['dstendport'] && !is_portoralias($_POST['dstendport'])) + $input_errors[] = "{$_POST['dstendport']} is not a valid end destination port. It must be a port alias or integer between 1 and 65535."; /* if user enters an alias and selects "network" then disallow. */ if($_POST['srctype'] == "network") { @@ -294,7 +294,7 @@ if ($_POST) { if (!is_specialnet($_POST['srctype'])) { if (($_POST['src'] && !is_ipaddroralias($_POST['src']))) { - $input_errors[] = "A valid source IP address or alias must be specified."; + $input_errors[] = "{$_POST['src']} is not a valid source IP address or alias."; } if (($_POST['srcmask'] && !is_numericint($_POST['srcmask']))) { $input_errors[] = "A valid source bit count must be specified."; @@ -302,7 +302,7 @@ if ($_POST) { } if (!is_specialnet($_POST['dsttype'])) { if (($_POST['dst'] && !is_ipaddroralias($_POST['dst']))) { - $input_errors[] = "A valid destination IP address or alias must be specified."; + $input_errors[] = "{$_POST['dst']} is not a valid destination IP address or alias."; } if (($_POST['dstmask'] && !is_numericint($_POST['dstmask']))) { $input_errors[] = "A valid destination bit count must be specified."; @@ -1268,4 +1268,4 @@ include("head.inc"); - \ No newline at end of file + -- cgit v1.1