diff options
author | Scott Ullrich <sullrich@su.local> | 2009-09-03 22:03:48 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@su.local> | 2009-09-03 22:03:48 -0400 |
commit | f2fe398468aafe8abd5effef15ae1770ba117a22 (patch) | |
tree | bba8c7c3f6c30eb14aa57269920c5f09f88b7b52 /usr/local/www | |
parent | 353a94fd953e6cb9b924d7f890e2454f641ec50c (diff) | |
download | pfsense-f2fe398468aafe8abd5effef15ae1770ba117a22.zip pfsense-f2fe398468aafe8abd5effef15ae1770ba117a22.tar.gz |
Break each interface up into their own listoptics
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/wizards/traffic_shaper_wizard.inc | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard.inc b/usr/local/www/wizards/traffic_shaper_wizard.inc index df9c16f..4be5208 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['numberofconnections'])) { + if (!isset($_POST['enternumberofwanconnections'])) { $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['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.xml&stepid=0&message={$message}"); exit; @@ -101,17 +101,21 @@ function step2_stepbeforeformdisplay() { $field['options']['option'][] = $opts; $field['bindstofield'] = "ezshaper->step2->downloadscheduler"; $fields[] = $field; - $field = array(); - $field['name'] = "Setup connections speeds"; - $field['type'] = "listtopic"; - $fields[] = $field; + for ($i = 0; $i < $numberofconnections; $i++) { + + $field = array(); + $interface_friendly = $i+1; + $field['name'] = "Setup connection speed and scheduler information for interface #{$interface_friendly}"; + $field['type'] = "listtopic"; + $fields[] = $field; + $field = array(); $field['displayname'] = "Interface"; $field['name'] = "conn{$i}interface"; $field['type'] = "select"; - $field['typehint'] = "Interface of this connection."; + $field['typehint'] = "Interface of connection #{$interface_friendly}."; $field['options']['option'] = array(); foreach ($iflist as $ifname => $ifdescr) { $opts = array(); |