Remove call-time pass by reference from traffic shaper files, it should fix #2565

This commit is contained in:
Renato Botelho 2013-09-12 11:29:21 -03:00
parent 1e9b461124
commit ea51e9f8bf
9 changed files with 89 additions and 89 deletions

View File

@ -386,13 +386,13 @@ class altq_root_queue {
}
}
function &get_queue_list($q = null) {
function &get_queue_list(&$q = null) {
$qlist = array();
//$qlist[$this->GetQname()] = & $this;
if (is_array($this->queues)) {
foreach ($this->queues as $queue)
$queue->get_queue_list(&$qlist);
$queue->get_queue_list($qlist);
}
return $qlist;
}
@ -423,7 +423,7 @@ class altq_root_queue {
$q->SetLink($path);
$q->SetInterface($this->GetInterface());
$q->SetEnabled("on");
$q->SetParent(&$this);
$q->SetParent($this);
$q->ReadConfig($queue);
$q->validate_input($queue, $input_errors);
if (count($input_errors)) {
@ -448,7 +448,7 @@ class altq_root_queue {
if (is_array($queue['queue'])) {
foreach ($queue['queue'] as $key1 => $que) {
array_push($path, $key1);
$q->add_queue($q->GetInterface(), &$que, &$path, $input_errors);
$q->add_queue($q->GetInterface(), $que, $path, $input_errors);
array_pop($path);
}
}
@ -949,7 +949,7 @@ class priq_queue {
$cflinkp['queue'] = array();
foreach ($this->subqueues as $q) {
$cflink['queue'][$q->GetQname()] = array();
$q->copy_queue($interface, &$cflink['queue'][$q->GetQname()]);
$q->copy_queue($interface, $cflink['queue'][$q->GetQname()]);
}
}
@ -1427,7 +1427,7 @@ class hfsc_queue extends priq_queue {
$this->subqueues = array();
$q =& new hfsc_queue();
$q->SetInterface($this->GetInterface());
$q->SetParent(&$this);
$q->SetParent($this);
$q->ReadConfig($qname);
$q->validate_input($qname, $input_errors);
if (count($input_errors)) {
@ -1453,7 +1453,7 @@ class hfsc_queue extends priq_queue {
if (is_array($qname['queue'])) {
foreach ($qname['queue'] as $key1 => $que) {
array_push($path, $key1);
$q->add_queue($q->GetInterface(), &$que, &$path, $input_errors);
$q->add_queue($q->GetInterface(), $que, $path, $input_errors);
array_pop($path);
}
}
@ -1550,7 +1550,7 @@ class hfsc_queue extends priq_queue {
$cflinkp['queue'] = array();
foreach ($this->subqueues as $q) {
$cflink['queue'][$q->GetQname()] = array();
$q->copy_queue($interface, &$cflink['queue'][$q->GetQname()]);
$q->copy_queue($interface, $cflink['queue'][$q->GetQname()]);
}
}
}
@ -1854,7 +1854,7 @@ class hfsc_queue extends priq_queue {
}
$pfq_rule .= " } \n";
foreach ($this->subqueues as $q)
$pfq_rule .= $q->build_rules(&$default);
$pfq_rule .= $q->build_rules($default);
}
$pfq_rule .= " \n";
@ -2137,7 +2137,7 @@ class cbq_queue extends priq_queue {
$this->subqueues = array();
$q =& new cbq_queue();
$q->SetInterface($this->GetInterface());
$q->SetParent(&$this);
$q->SetParent($this);
$q->ReadConfig($qname);
$q->validate_input($qname, $input_errors);
if (count($input_errors)) {
@ -2162,7 +2162,7 @@ class cbq_queue extends priq_queue {
if (is_array($qname['queue'])) {
foreach ($qname['queue'] as $key1 => $que) {
array_push($path, $key1);
$q->add_queue($q->GetInterface(), &$que, &$path, $input_errors);
$q->add_queue($q->GetInterface(), $que, $path, $input_errors);
array_pop($path);
}
}
@ -2207,7 +2207,7 @@ class cbq_queue extends priq_queue {
$cflinkp['queue'] = array();
foreach ($this->subqueues as $q) {
$cflink['queue'][$q->GetQname()] = array();
$q->copy_queue($interface, &$cflink['queue'][$q->GetQname()]);
$q->copy_queue($interface, $cflink['queue'][$q->GetQname()]);
}
}
}
@ -2985,7 +2985,7 @@ class dnpipe_class extends dummynet_class {
$q->SetLink($path);
$q->SetEnabled("on");
$q->SetPipe($this->GetQname());
$q->SetParent(&$this);
$q->SetParent($this);
$q->ReadConfig($queue);
$q->validate_input($queue, $input_errors);
if (count($input_errors)) {
@ -2999,13 +2999,13 @@ class dnpipe_class extends dummynet_class {
return $q;
}
function &get_queue_list($q = null) {
function &get_queue_list(&$q = null) {
$qlist = array();
$qlist[$this->GetQname()] = $this->GetNumber();
if (is_array($this->subqueues)) {
foreach ($this->subqueues as $queue)
$queue->get_queue_list(&$qlist);
$queue->get_queue_list($qlist);
}
return $qlist;
}
@ -4294,7 +4294,7 @@ function read_altq_config() {
* XXX: we completely ignore errors here but anyway we must have
* checked them before so no harm should be come from this.
*/
$root->add_queue($root->GetInterface(), $q, &$path, $input_errors);
$root->add_queue($root->GetInterface(), $q, $path, $input_errors);
array_pop($path);
}
}
@ -4333,7 +4333,7 @@ function read_dummynet_config() {
* XXX: we completely ignore errors here but anyway we must have
* checked them before so no harm should be come from this.
*/
$root->add_queue($root->GetQname(), $q, &$path, $input_errors);
$root->add_queue($root->GetQname(), $q, $path, $input_errors);
array_pop($path);
}
}

View File

@ -225,11 +225,11 @@ if ($_GET) {
}
$altq->SetAvailableBandwidth($altq->GetBandwidth() * $factor);
$altq->ReadConfig($_POST);
$altq->validate_input($_POST, &$input_errors);
$altq->validate_input($_POST, $input_errors);
if (!$input_errors) {
unset($tmppath);
$tmppath[] = $altq->GetInterface();
$altq->SetLink(&$tmppath);
$altq->SetLink($tmppath);
$altq->wconfig();
if (write_config())
mark_subsystem_dirty('shaper');
@ -244,7 +244,7 @@ if ($_GET) {
if ($qtmp) {
$tmppath =& $qtmp->GetLink();
array_push($tmppath, $qname);
$tmp =& $qtmp->add_queue($interface, $_POST, $tmppath, &$input_errors);
$tmp =& $qtmp->add_queue($interface, $_POST, $tmppath, $input_errors);
if (!$input_errors) {
array_pop($tmppath);
$tmp->wconfig();
@ -298,7 +298,7 @@ if ($_GET) {
}
} else if ($queue) {
$queue->validate_input($_POST, &$input_errors);
$queue->validate_input($_POST, $input_errors);
if (!$input_errors) {
$queue->update_altq_queue_data($_POST);
$queue->wconfig();

View File

@ -137,7 +137,7 @@ else if ($_POST) {
$_POST['l7rules'][$i]['structure'] = $_POST['structure'][$i];
$_POST['l7rules'][$i]['behaviour'] = $_POST['behaviour'][$i];
}
$l7r->validate_input($_POST,&$input_errors);
$l7r->validate_input($_POST,$input_errors);
$l7r->ReadConfig($_POST['container'], $_POST);
//Before writing the results, we need to test for repeated protocols
$non_dupes = array();

View File

@ -96,7 +96,7 @@ if ($_GET) {
$qtmp =& $altq->find_queue("", $qname);
if ($qtmp) {
$copycfg = array();
$qtmp->copy_queue($interface, &$copycfg);
$qtmp->copy_queue($interface, $copycfg);
$aq =& $altq_list_queues[$interface];
if ($qname == $qtmp->GetInterface()) {
$config['shaper']['queue'][] = $copycfg;

View File

@ -207,13 +207,13 @@ if ($_GET) {
$dnpipe =& new dnpipe_class();
$dnpipe->ReadConfig($_POST);
$dnpipe->validate_input($_POST, &$input_errors);
$dnpipe->validate_input($_POST, $input_errors);
if (!$input_errors) {
$number = dnpipe_find_nextnumber();
$dnpipe->SetNumber($number);
unset($tmppath);
$tmppath[] = $dnpipe->GetQname();
$dnpipe->SetLink(&$tmppath);
$dnpipe->SetLink($tmppath);
$dnpipe->wconfig();
if (write_config())
mark_subsystem_dirty('shaper');
@ -231,7 +231,7 @@ if ($_GET) {
else if ($dnpipe) {
$tmppath =& $dnpipe->GetLink();
array_push($tmppath, $qname);
$tmp =& $dnpipe->add_queue($pipe, $_POST, $tmppath, &$input_errors);
$tmp =& $dnpipe->add_queue($pipe, $_POST, $tmppath, $input_errors);
if (!$input_errors) {
array_pop($tmppath);
$tmp->wconfig();
@ -272,7 +272,7 @@ if ($_GET) {
}
} else if ($queue) {
$queue->validate_input($_POST, &$input_errors);
$queue->validate_input($_POST, $input_errors);
if (!$input_errors) {
$queue->update_dn_data($_POST);
$queue->wconfig();

View File

@ -721,7 +721,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qACK");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qACK <br />";
//var_dump($input_errors);
@ -752,7 +752,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, $tmpcf['name']);
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qDefault <br />";
//var_dump($input_errors);
@ -801,7 +801,7 @@ function apply_all_choosen_items() {
}
}
array_push($tmppath, "qP2P");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qP2P <br />";
//var_dump($input_errors);
@ -841,7 +841,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "Kb";
}
array_push($tmppath, "qVoIP");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qVoIP <br />";
//var_dump($input_errors);
@ -872,7 +872,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qGames");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qGames <br />";
//var_dump($input_errors);
@ -903,7 +903,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qOthersHigh");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qHigh <br />";
//var_dump($input_errors);
@ -942,7 +942,7 @@ function apply_all_choosen_items() {
$tmpcf['linkshare'] = "on";
}
array_push($tmppath, "qOthersLow");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qLow <br />";
//var_dump($input_errors);
@ -1068,7 +1068,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, $tmpcf['name']);
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qDefault <br />";
//var_dump($input_errors);
@ -1098,7 +1098,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "Kb";
}
array_push($tmppath, "qInternet");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
//array_pop($tmppath);
//echo "qInternet <br />";
//var_dump($input_errors);
@ -1129,7 +1129,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qACK");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qACK <br />";
//var_dump($input_errors);
@ -1177,7 +1177,7 @@ function apply_all_choosen_items() {
}
}
array_push($tmppath, "qP2P");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qP2P <br />";
//var_dump($input_errors);
@ -1217,7 +1217,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "Kb";
}
array_push($tmppath, "qVoIP");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qVoIP <br />";
//var_dump($input_errors);
@ -1248,7 +1248,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qGames");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qGames <br />";
//var_dump($input_errors);
@ -1279,7 +1279,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qOthersHigh");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qHigh <br />";
//var_dump($input_errors);
@ -1317,7 +1317,7 @@ function apply_all_choosen_items() {
$tmpcf['linkshare'] = "on";
}
array_push($tmppath, "qOthersLow");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qLow <br />";
//var_dump($input_errors);

View File

@ -750,7 +750,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = $config['ezshaper']['step2']["conn{$i}uploadspeed"];
}
array_push($tmppath, "qInternet");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
//array_pop($tmppath);
//echo "qInternet <br />";
//var_dump($input_errors);
@ -782,7 +782,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qACK");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qACK <br />";
//var_dump($input_errors);
@ -813,7 +813,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, $tmpcf['name']);
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qDefault <br />";
//var_dump($input_errors);
@ -862,7 +862,7 @@ function apply_all_choosen_items() {
}
}
array_push($tmppath, "qP2P");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qP2P <br />";
//var_dump($input_errors);
@ -902,7 +902,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "Kb";
}
array_push($tmppath, "qVoIP");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qVoIP <br />";
//var_dump($input_errors);
@ -933,7 +933,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qGames");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qGames <br />";
//var_dump($input_errors);
@ -964,7 +964,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qOthersHigh");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qHigh <br />";
//var_dump($input_errors);
@ -1005,7 +1005,7 @@ function apply_all_choosen_items() {
$tmpcf['linkshare'] = "on";
}
array_push($tmppath, "qOthersLow");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qLow <br />";
//var_dump($input_errors);
@ -1133,7 +1133,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, $tmpcf['name']);
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qDefault <br />";
//var_dump($input_errors);
@ -1163,7 +1163,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = $config['ezshaper']['step2']["conn{$i}downloadspeed"];
}
array_push($tmppath, "qInternet");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
//array_pop($tmppath);
//echo "qInternet <br />";
//var_dump($input_errors);
@ -1194,7 +1194,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qACK");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qACK $remainbw <br />";
//var_dump($input_errors);
@ -1243,7 +1243,7 @@ function apply_all_choosen_items() {
}
}
array_push($tmppath, "qP2P");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qP2P <br />";
//var_dump($input_errors);
@ -1283,7 +1283,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "Kb";
}
array_push($tmppath, "qVoIP");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qVoIP <br />";
//var_dump($input_errors);
@ -1314,7 +1314,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qGames");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qGames <br />";
//var_dump($input_errors);
@ -1345,7 +1345,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qOthersHigh");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qHigh <br />";
//var_dump($input_errors);
@ -1385,7 +1385,7 @@ function apply_all_choosen_items() {
$tmpcf['linkshare'] = "on";
}
array_push($tmppath, "qOthersLow");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qLow <br />";
//var_dump($input_errors);

View File

@ -789,7 +789,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = $config['ezshaper']['step2']["conn{$i}uploadspeed"];
}
array_push($tmppath, "qInternet");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
//array_pop($tmppath);
//echo "qInternet <br />";
//var_dump($input_errors);
@ -821,7 +821,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qACK");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qACK <br />";
//var_dump($input_errors);
@ -852,7 +852,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, $tmpcf['name']);
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qDefault <br />";
//var_dump($input_errors);
@ -901,7 +901,7 @@ function apply_all_choosen_items() {
}
}
array_push($tmppath, "qP2P");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qP2P <br />";
//var_dump($input_errors);
@ -941,7 +941,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "Kb";
}
array_push($tmppath, "qVoIP");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qVoIP <br />";
//var_dump($input_errors);
@ -972,7 +972,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qGames");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qGames <br />";
//var_dump($input_errors);
@ -1003,7 +1003,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qOthersHigh");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qHigh <br />";
//var_dump($input_errors);
@ -1044,7 +1044,7 @@ function apply_all_choosen_items() {
$tmpcf['linkshare'] = "on";
}
array_push($tmppath, "qOthersLow");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qLow <br />";
//var_dump($input_errors);
@ -1183,7 +1183,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, $tmpcf['name']);
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qDefault <br />";
//var_dump($input_errors);
@ -1213,7 +1213,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "Kb";
}
array_push($tmppath, "qInternet");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
//array_pop($tmppath);
//echo "qInternet <br />";
//var_dump($input_errors);
@ -1245,7 +1245,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qACK");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qACK <br />";
//var_dump($input_errors);
@ -1294,7 +1294,7 @@ function apply_all_choosen_items() {
}
}
array_push($tmppath, "qP2P");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qP2P <br />";
//var_dump($input_errors);
@ -1334,7 +1334,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "Kb";
}
array_push($tmppath, "qVoIP");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qVoIP <br />";
//var_dump($input_errors);
@ -1365,7 +1365,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qGames");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qGames <br />";
//var_dump($input_errors);
@ -1396,7 +1396,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qOthersHigh");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qHigh <br />";
//var_dump($input_errors);
@ -1437,7 +1437,7 @@ function apply_all_choosen_items() {
$tmpcf['linkshare'] = "on";
}
array_push($tmppath, "qOthersLow");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qLow <br />";
//var_dump($input_errors);

View File

@ -569,7 +569,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, $tmpcf['name']);
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qDefault <br />";
//var_dump($input_errors);
@ -601,7 +601,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = $config['ezshaper']['step2']["conndownloadspeed"];
}
array_push($tmppath, "qInternet");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
//array_pop($tmppath);
//echo "qInternet <br />";
//var_dump($input_errors);
@ -634,7 +634,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qACK");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qACK <br />";
//var_dump($input_errors);
@ -683,7 +683,7 @@ function apply_all_choosen_items() {
}
}
array_push($tmppath, "qP2P");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qP2P <br />";
//var_dump($input_errors);
@ -723,7 +723,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "Kb";
}
array_push($tmppath, "qVoIP");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qVoIP <br />";
//var_dump($input_errors);
@ -754,7 +754,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qGames");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qGames <br />";
//var_dump($input_errors);
@ -785,7 +785,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qOthersHigh");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qHigh <br />";
//var_dump($input_errors);
@ -824,7 +824,7 @@ function apply_all_choosen_items() {
$tmpcf['linkshare'] = "on";
}
array_push($tmppath, "qOthersLow");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qLow <br />";
//var_dump($input_errors);
@ -959,7 +959,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qACK");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "$lkbw $remainbw qACK <br />";
//var_dump($input_errors);
@ -991,7 +991,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, $tmpcf['name']);
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qDefault <br />";
//var_dump($input_errors);
@ -1040,7 +1040,7 @@ function apply_all_choosen_items() {
}
}
array_push($tmppath, "qP2P");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qP2P <br />";
//var_dump($input_errors);
@ -1080,7 +1080,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "Kb";
}
array_push($tmppath, "qVoIP");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qVoIP <br />";
//var_dump($input_errors);
@ -1111,7 +1111,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qGames");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qGames <br />";
//var_dump($input_errors);
@ -1142,7 +1142,7 @@ function apply_all_choosen_items() {
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qOthersHigh");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qHigh <br />";
//var_dump($input_errors);
@ -1181,7 +1181,7 @@ function apply_all_choosen_items() {
$tmpcf['linkshare'] = "on";
}
array_push($tmppath, "qOthersLow");
$qtmp =& $altq->add_queue($q, &$tmpcf, &$tmppath, $input_errors);
$qtmp =& $altq->add_queue($q, $tmpcf, $tmppath, $input_errors);
array_pop($tmppath);
//echo "qLow <br />";
//var_dump($input_errors);