diff options
author | Scott Ullrich <sullrich@su.local> | 2009-09-03 21:50:38 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@su.local> | 2009-09-03 21:50:38 -0400 |
commit | 353a94fd953e6cb9b924d7f890e2454f641ec50c (patch) | |
tree | f89cfcfd512ead9ed36ed8f6936a468751738899 /usr | |
parent | 7e1f03481fa7db3c1c41c36ae090c2fa41973db1 (diff) | |
download | pfsense-353a94fd953e6cb9b924d7f890e2454f641ec50c.zip pfsense-353a94fd953e6cb9b924d7f890e2454f641ec50c.tar.gz |
Change variables to match the form
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc | 4 | ||||
-rw-r--r-- | usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc b/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc index fecdc08..1b9b0a0 100755 --- a/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc +++ b/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc @@ -33,12 +33,12 @@ function step1_submitphpaction() { - if (!isset($_POST['numberofconnections'])) { + if (!isset($_POST['enternumberofwanconnections'])) { $message=gettext("You need to specify the number of connections."); header("Location:wizard.php?xml=traffic_shaper_wizard_dedicated.xml&stepid=0&message={$message}"); exit; } - if (intval($_POST['numberofconnections']) > 100 || intval($_POST['numberofconnections']) < 1) { + if (intval($_POST['enternumberofwanconnections']) > 100 || intval($_POST['enternumberofwanconnections']) < 1) { $message=gettext("The number of connections supported is between 1 and 100."); header("Location:wizard.php?xml=traffic_shaper_wizard_dedicated.xml&stepid=0&message={$message}"); exit; diff --git a/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc b/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc index 053651e..b974740 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc +++ b/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc @@ -33,12 +33,12 @@ function step1_submitphpaction() { - if (!isset($_POST['numberofconnections'])) { + if (!isset($_POST['enternumberoflantypeconnections'])) { $message=gettext("You need to specify the number of local interfaces connected."); header("Location:wizard.php?xml=traffic_shaper_wizard_multi_lan.xml&stepid=0&message={$message}"); exit; } - if (intval($_POST['numberofconnections']) > 100 || intval($_POST['numberofconnections']) < 1) { + if (intval($_POST['enternumberoflantypeconnections']) > 100 || intval($_POST['enternumberoflantypeconnections']) < 1) { $message=gettext("The number of local interfaces supported is between 1 and 100."); header("Location:wizard.php?xml=traffic_shaper_wizard_multi_lan.xml&stepid=0&message={$message}"); exit; @@ -60,7 +60,7 @@ function step2_stepbeforeformdisplay() { $numberofinterfaces++; $iflist[] = $if; } - $numberofconnections = intval($config['ezshaper']['step1']['numberofconnections']); + $numberofconnections = intval($config['ezshaper']['step1']['enternumberoflantypeconnections']); if ($numberofconnections > $numberofinterfaces) { $message=gettext("You do not have {$numberofconnections} of local interfaces!"); header("Location:wizard.php?xml=traffic_shaper_wizard_multi_lan.xml&stepid=0&message={$message}"); @@ -216,7 +216,7 @@ function step2_stepsubmitphpaction() { $sumdownloads = 0; /* Input Validation */ - $steps = intval($config['ezshaper']['step1']['numberofconnections']); + $steps = intval($config['ezshaper']['step1']['enternumberoflantypeconnections']); for ($i = 0; $i < $steps; $i++) { for ($j = $j; $j < $steps; $j++) { if ($_POST["conn{$i}interface"] == $_POST["conn{$j}interface"]) { @@ -738,7 +738,7 @@ $othersplist = array(); unset($altq_list_queues); $altq_list_queues = array(); - $steps = floatval($config['ezshaper']['step1']['numberofconnections']); + $steps = floatval($config['ezshaper']['step1']['enternumberoflantypeconnections']); for ($i = 0; $i < $steps; $i++) { $tmppath = array(); |