diff options
Diffstat (limited to 'usr/local/www/wizards/traffic_shaper_wizard.inc')
-rw-r--r-- | usr/local/www/wizards/traffic_shaper_wizard.inc | 10 |
1 files changed, 5 insertions, 5 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 +?> |