Do not allow gateways to be selected without a direction.

This commit is contained in:
Ermal 2010-12-10 22:46:31 +00:00
parent 65f7fba8fc
commit 37d202a3bd

View File

@ -364,6 +364,8 @@ if ($_POST) {
}
if (isset($_POST['floating']) && $_POST['pdnpipe'] != "none" && (empty($_POST['direction']) || $_POST['direction'] == "any"))
$input_errors[] = gettext("You can not use limiters in Floating rules without choosing a direction.");
if (isset($_POST['floating']) && $_POST['gateway'] != "default" && (empty($_POST['direction']) || $_POST['direction'] == "any"))
$input_errors[] = gettext("You can not use gateways in Floating rules without choosing a direction.");
if ($_POST['pdnpipe'] && $_POST['pdnpipe'] != "none") {
if ($_POST['dnpipe'] == "none" )
$input_errors[] = gettext("You must select a queue for the In direction before selecting one for Out too.");