diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-01-18 17:31:55 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-01-18 17:31:55 +0000 |
commit | 78d39a5051de89bc7ac23399f74bc0da718f0f0f (patch) | |
tree | e60bb8631e6c6087636e6125bd8a917dbf6840f5 /usr/local/www/wizards | |
parent | 5c1f5584c682b6651b96feeae5c64a513fd51a91 (diff) | |
download | pfsense-78d39a5051de89bc7ac23399f74bc0da718f0f0f.zip pfsense-78d39a5051de89bc7ac23399f74bc0da718f0f0f.tar.gz |
Unbreak traffic shaper wizard incidentally i used explode instead of implode.
Diffstat (limited to 'usr/local/www/wizards')
-rw-r--r-- | usr/local/www/wizards/traffic_shaper_wizard.inc | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard.inc b/usr/local/www/wizards/traffic_shaper_wizard.inc index 29306be..c564c5f 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard.inc +++ b/usr/local/www/wizards/traffic_shaper_wizard.inc @@ -6,7 +6,7 @@ Copyright (C) 2006 Bill Marquette - bill.marquette@gmail.com. Copyright (C) 2006 Scott Ullrich - sullrich@pfsense.com. - Copyright (C) 2008 Ermal Luçi + Copyright (C) 2008 Ermal Lu<E7>i All rights reserved. Redistribution and use in source and binary forms, with or without @@ -75,7 +75,7 @@ function step1_stepbeforeformdisplay() { $field['bindstofield'] = "ezshaper->step2->{$if}->scheduler"; $fields[] = $field; - if ($if <> "wan" && $if <> "lan") { + if ($if != "wan" && $if != "lan") { $field = array(); $field['name'] = "${if}internal"; $field['type'] = "checkbox"; @@ -622,7 +622,7 @@ $othersplist = array(); continue; if ($ifkey <> "wan" && $ifkey <> "lan" && - $if['internal'] <> "") + isset($if['internal']) && $if['internal'] <> "") $interface_list[] = $ifkey; $altq =& new altq_root_queue(); @@ -653,7 +653,7 @@ $othersplist = array(); if ($config['ezshaper']['step3']['bandwidth']) $voipbw = $config['ezshaper']['step3']['bandwidth']; else - $voipbw = 20; + $voipbw = 0; } else { $voipbw = 20; } @@ -945,14 +945,13 @@ $othersplist = array(); array_pop($tmppath); } - $strint = explode(",", $interface_list); + $strint = implode(",", $interface_list); /* Rules */ if ($penalty) { if( is_ipaddr($config['ezshaper']['step4']['address']) or is_alias($config['ezshaper']['step4']['address'])) { $rule = array(); $rule['descr'] = gettext("Penalty Box"); $rule['interface'] = $strint; - $rule['direction'] = "in"; // $rule['source']['network'] = $altq->GetInterface(); $rule['source']['any'] = TRUE; $rule['defaultqueue'] = "qOthersLow"; @@ -973,7 +972,6 @@ $othersplist = array(); $rule = array(); $rule['descr'] = gettext("VOIP Adapter"); $rule['interface'] = $strint; - $rule['direction'] = "in"; // $rule['source']['network'] = $altq->GetInterface(); $rule['source']['any'] = TRUE; $rule['defaultqueue'] = "qVoIP"; @@ -989,7 +987,6 @@ $othersplist = array(); $rule = array(); $rule['descr'] = "DiffServ/Lowdelay/Upload"; $rule['interface'] = $strint; - $rule['direction'] = "in"; // $rule['source']['network'] = $altq->GetInterface(); $rule['source']['any'] = TRUE; $rule['defaultqueue'] = "qVoIP"; @@ -1007,7 +1004,6 @@ $othersplist = array(); $rule = array(); $rule['defaultqueue'] = 'qVoIP'; $rule['interface'] = $strint; - $rule['direction'] = "in"; // $rule['source']['network'] = $altq->GetInterface(); $rule['source']['any'] = TRUE; $rule['destination']['any'] = TRUE; @@ -1032,7 +1028,6 @@ $othersplist = array(); $rule = array(); $rule['defaultqueue'] = 'qP2P'; $rule['interface'] = $strint; - $rule['direction'] = "in"; // $rule['source']['network'] = $altq->GetInterface(); $rule['source']['any'] = TRUE; $rule['destination']['any'] = TRUE; @@ -1058,7 +1053,6 @@ $othersplist = array(); if ($sched != "HFSC") $rule['ackqueue'] = 'qACK'; $rule['interface'] = $strint; - $rule['direction'] = "in"; // $rule['source']['network'] = $altq->GetInterface(); $rule['source']['any'] = TRUE; $rule['destination']['any'] = TRUE; @@ -1106,7 +1100,6 @@ $othersplist = array(); } if (!$loop) { $rule['interface'] = $strint; - $rule['direction'] = "in"; // $rule['source']['network'] = $altq->GetInterface(); $rule['source']['any'] = TRUE; $rule['destination']['any'] = TRUE; |