diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-11-03 12:23:33 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-11-03 12:26:10 +0000 |
commit | 101ccd1436f7c56ce779389523b1c4b7b466580a (patch) | |
tree | 6e81baea32708d3258936551ac5f51b3e2aef018 /usr | |
parent | 8217d34d20d736644b973bc0f4d692dd566c0d67 (diff) | |
download | pfsense-101ccd1436f7c56ce779389523b1c4b7b466580a.zip pfsense-101ccd1436f7c56ce779389523b1c4b7b466580a.tar.gz |
Unbreak the wizards. Some one enabled this disabled parts without even testing! Pointy-hat-to: scott@?!
Diffstat (limited to 'usr')
4 files changed, 18 insertions, 18 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard.inc b/usr/local/www/wizards/traffic_shaper_wizard.inc index 7ef612e..9bf9851 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard.inc +++ b/usr/local/www/wizards/traffic_shaper_wizard.inc @@ -485,12 +485,12 @@ function step4_stepsubmitphpaction() { exit; } - if (wizard_get_bwunit($_POST['bandwidth']) <> "%") { + if ($_POST['bandwidthspeed'] <> "%") { $message = gettext("Only percentage bandwidth specification is allowed."); header("Location: wizard.php?xml=traffic_shaper_wizard.xml&stepid=3&message={$message}"); exit; } - $bw = wizard_get_bw($_POST['bandwidth']); + $bw = $_POST['bandwidth']; if($bw > 15 && $bw < 2) { $message="Values should be between 2% and 15%!"; header("Location: wizard.php?xml=traffic_shaper_wizard.xml&stepid=3&message={$message}"); @@ -518,12 +518,12 @@ function step5_stepsubmitphpaction() { } - if (wizard_get_bwunit($_POST['bandwidth']) <> "%") { + if ($_POST['bandwidthspeed'] <> "%") { $message = gettext("Only percentage bandwidth specification is allowed."); header("Location: wizard.php?xml=traffic_shaper_wizard.xml&stepid=4&message={$message}"); exit; } - $bw = wizard_get_bw($_POST['bandwidth']); + $bw = $_POST['bandwidth']; if($bw > 15 && $bw < 2) { $message="Values should be between 2% and 15%!"; header("Location: wizard.php?xml=traffic_shaper_wizard.xml&stepid=3&message={$message}"); @@ -1871,4 +1871,4 @@ function wizard_get_bandwidthtype_scale($type) { return floatval($factor); } -?>
\ No newline at end of file +?> diff --git a/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc b/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc index b0525b0..d2a19ed 100755 --- a/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc +++ b/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc @@ -494,7 +494,7 @@ function step4_stepsubmitphpaction() { exit; } - if (wizard_get_bwunit($_POST['bandwidth']) <> "%") { + if ($_POST['bandwidthspeed'] <> "%") { $message = gettext("Only percentage bandwidth specification is allowed."); header("Location: wizard.php?xml=traffic_shaper_wizard_dedicated.xml&stepid=3&message={$message}"); exit; @@ -525,7 +525,7 @@ function step5_stepsubmitphpaction() { header("Location: wizard.php?xml=traffic_shaper_wizard_dedicated.xml&stepid=4&message={$message}"); } - if (wizard_get_bwunit($_POST['bandwidth']) <> "%") { + if ($_POST['bandwidthspeed'] <> "%") { $message = gettext("Only percentage bandwidth specification is allowed."); header("Location: wizard.php?xml=traffic_shaper_wizard_dedicated.xml&stepid=4&message={$message}"); exit; @@ -1919,4 +1919,4 @@ function wizard_get_bandwidthtype_scale($type) { return intval($factor); } -?>
\ No newline at end of file +?> diff --git a/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc b/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc index 2703c3e..d4185be 100755 --- a/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc +++ b/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc @@ -545,12 +545,12 @@ function step4_stepsubmitphpaction() { exit; } - if (wizard_get_bwunit($_POST['bandwidth']) <> "%") { + if ($_POST['bandwidthspeed'] <> "%") { $message = gettext("Only percentage bandwidth specification is allowed."); header("Location: wizard.php?xml=traffic_shaper_wizard_multi_all.xml&stepid=3&message={$message}"); exit; } - $bw = wizard_get_bw($_POST['bandwidth']); + $bw = $_POST['bandwidth']; if($bw > 15 && $bw < 2) { $message="Values should be between 2% and 15%!"; header("Location: wizard.php?xml=traffic_shaper_wizard_multi_all.xml&stepid=3&message={$message}"); @@ -575,12 +575,12 @@ function step5_stepsubmitphpaction() { $message="Posted value is not a valid bandwidth."; header("Location: wizard.php?xml=traffic_shaper_wizard_multi_all.xml&stepid=4&message={$message}"); } - if (wizard_get_bwunit($_POST['bandwidth']) <> "%") { + if ($_POST['bandwidthspeed'] <> "%") { $message = gettext("Only percentage bandwidth specification is allowed."); header("Location: wizard.php?xml=traffic_shaper_wizard_multi_all.xml&stepid=4&message={$message}"); exit; } - $bw = wizard_get_bw($_POST['bandwidth']); + $bw = $_POST['bandwidth']; if($bw > 15 && $bw < 2) { $message="Values should be between 2% and 15%!"; header("Location: wizard.php?xml=traffic_shaper_wizard_multi_all.xml&stepid=3&message={$message}"); @@ -1974,4 +1974,4 @@ function wizard_get_bandwidthtype_scale($type) { return intval($factor); } -?>
\ No newline at end of file +?> 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 f231886..23ff8cf 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc +++ b/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc @@ -325,12 +325,12 @@ function step4_stepsubmitphpaction() { exit; } - if (wizard_get_bwunit($_POST['bandwidth']) <> "%") { + if ($_POST['bandwidthspeed'] <> "%") { $message = gettext("Only percentage bandwidth specification is allowed."); header("Location: wizard.php?xml=traffic_shaper_wizard_multi_lan.xml&stepid=3&message={$message}"); exit; } - $bw = wizard_get_bw($_POST['bandwidth']); + $bw = $_POST['bandwidth']; if($bw > 15 && $bw < 2) { $message="Values should be between 2% and 15%!"; header("Location: wizard.php?xml=traffic_shaper_wizard_multi_lan.xml&stepid=3&message={$message}"); @@ -356,12 +356,12 @@ function step5_stepsubmitphpaction() { header("Location: wizard.php?xml=traffic_shaper_wizard_multi_lan.xml&stepid=4&message={$message}"); } - if (wizard_get_bwunit($_POST['bandwidth']) <> "%") { + if ($_POST['bandwidthspeed'] <> "%") { $message = gettext("Only percentage bandwidth specification is allowed."); header("Location: wizard.php?xml=traffic_shaper_wizard_multi_lan.xml&stepid=4&message={$message}"); exit; } - $bw = wizard_get_bw($_POST['bandwidth']); + $bw = $_POST['bandwidth']; if($bw > 15 && $bw < 2) { $message="Values should be between 2% and 15%!"; header("Location: wizard.php?xml=traffic_shaper_wizard_multi_lan.xml&stepid=3&message={$message}"); @@ -1707,4 +1707,4 @@ function wizard_get_bandwidthtype_scale($type) { return floatval($factor); } -?>
\ No newline at end of file +?> |