From f534757a77052f03de67831328721dbf8cc30572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Tue, 29 Dec 2009 15:07:32 +0000 Subject: Use propper field names. --- usr/local/www/wizards/traffic_shaper_wizard.inc | 4 ++-- usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'usr/local/www/wizards') diff --git a/usr/local/www/wizards/traffic_shaper_wizard.inc b/usr/local/www/wizards/traffic_shaper_wizard.inc index 4ab8164..9bbb689 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard.inc +++ b/usr/local/www/wizards/traffic_shaper_wizard.inc @@ -33,12 +33,12 @@ function step1_submitphpaction() { - if (!isset($_POST['enternumberofwanconnections'])) { + if (!isset($_POST['numberofconnections'])) { $message=gettext("You need to specify the number of connections."); header("Location:wizard.php?xml=traffic_shaper_wizard.xml&stepid=0&message={$message}"); exit; } - if (intval($_POST['enternumberofwanconnections']) > 100 || intval($_POST['enternumberofwanconnections']) < 1) { + if (intval($_POST['numberofconnections']) > 100 || intval($_POST['numberofconnections']) < 1) { $message=gettext("The number of connections supported is between 1 and 100."); header("Location:wizard.php?xml=traffic_shaper_wizard.xml&stepid=0&message={$message}"); exit; diff --git a/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc b/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc index 1482f52..0cfb97c 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['enternumberofwanconnections'])) { + if (!isset($_POST['numberofconnections'])) { $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['enternumberofwanconnections']) > 100 || intval($_POST['enternumberofwanconnections']) < 1) { + if (intval($_POST['numberofconnections']) > 100 || intval($_POST['numberofconnections']) < 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; -- cgit v1.1