summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2009-08-27 19:29:47 -0400
committerChris Buechler <cmb@pfsense.org>2009-08-27 19:29:47 -0400
commit70b139a3e80ab92294ee36942f582d6e514b5482 (patch)
tree8617c2ad93ec37367857a97212ecf40768d32ad5
parenteca4bfbc029e060e2d31197fb8ef93efc93e24a8 (diff)
downloadpfsense-70b139a3e80ab92294ee36942f582d6e514b5482.zip
pfsense-70b139a3e80ab92294ee36942f582d6e514b5482.tar.gz
Grammar fixes, patch from Josh Stompro
-rw-r--r--etc/inc/shaper.inc62
-rwxr-xr-xusr/local/www/firewall_shaper.php4
-rw-r--r--usr/local/www/firewall_shaper_vinterface.php5
3 files changed, 36 insertions, 35 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc
index f97ec20..f73d3a5 100644
--- a/etc/inc/shaper.inc
+++ b/etc/inc/shaper.inc
@@ -252,7 +252,7 @@ class altq_root_queue {
function SetEnabled($value) {
$this->qenabled = $value;
}
- function CanHaveChilds() {
+ function CanHaveChildren() {
return true;
}
function CanBeDeleted() {
@@ -615,8 +615,8 @@ nterface\">";
$form .= ">PRIQ</option>";
$form .= "</select>";
$form .= "<br> <span class=\"vexpl\">";
- $form .= "NOTE: changing this changes all queues underneath!";
- $form .= " Beaware you can lose information.";
+ $form .= "NOTE: changing this changes all child queues!";
+ $form .= " Beware you can lose information.";
$form .= "</span>";
$form .= "</td></tr>";
$form .= "<tr><td valign=\"top\" class=\"vncellreq\">Bandwidth";
@@ -709,7 +709,7 @@ class priq_queue {
var $link;
var $available_bw; /* in b/s */
- /* This is here to help on form building and building rules/lists */
+ /* This is here to help with form building and building rules/lists */
var $subqueues = array();
/* Accesor functions */
@@ -737,7 +737,7 @@ class priq_queue {
function SetEnabled($value) {
$this->qenabled = $value;
}
- function CanHaveChilds() {
+ function CanHaveChildren() {
return false;
}
function CanBeDeleted() {
@@ -846,7 +846,7 @@ function GetEcn() {
function &add_queue($interface, &$qname, &$path, &$input_errors) { return; }
/*
- * Currently this will not be called unless we decide to clonce whole
+ * Currently this will not be called unless we decide to clone a whole
* queue tree on the 'By Queues' view or support drag&drop on the tree/list
*/
function copy_queue($interface, &$cflink) {
@@ -1051,7 +1051,7 @@ function GetEcn() {
$form .= "<td width=\"78%\" class=\"vtable\"> <input name=\"qlimit\" type=\"text\" id=\"qlimit\" size=\"5\" value=\"";
$form .= htmlspecialchars($this->GetQlimit());
$form .= "\">";
- $form .= "<br> <span class=\"vexpl\">Queue limit in packet per second.";
+ $form .= "<br> <span class=\"vexpl\">Queue limit in packets per second.";
$form .= "</span></td>";
$form .= "<tr>";
$form .= "<td width=\"22%\" valign=\"top\" class=\"vncell\">Scheduler options</td>";
@@ -1165,7 +1165,7 @@ class hfsc_queue extends priq_queue {
* HFSC can have nested queues.
*/
- function CanHaveChilds() {
+ function CanHaveChildren() {
return true;
}
function GetRealtime() {
@@ -1363,7 +1363,7 @@ class hfsc_queue extends priq_queue {
}
/*
- * Should search even its childs
+ * Should search even its children
*/
function &find_queue($interface, $qname) {
if ($qname == $this->GetQname())
@@ -1417,7 +1417,7 @@ class hfsc_queue extends priq_queue {
break;
}
if ($parent->GetAvailableBandwidth() < $myBw)
- $input_errors[] = "The sum of child bandwidths exceeds that of the parent.";
+ $input_errors[] = "The sum of children bandwidth exceeds that of the parent.";
*/
if ($data['priority'] > 7)
$input_errors[] = "Priority must be an integer between 1 and 7.";
@@ -1551,7 +1551,7 @@ class hfsc_queue extends priq_queue {
return $tree;
}
- /* Even this should take childs in consideration */
+ /* Even this should take children into consideration */
function build_rules() {
$pfq_rule = " queue ". $this->qname;
@@ -1839,7 +1839,7 @@ class cbq_queue extends priq_queue {
function SetBorrow($borrow) {
$this->qborrow = $borrow;
}
- function CanHaveChilds() {
+ function CanHaveChildren() {
return true;
}
@@ -1907,7 +1907,7 @@ class cbq_queue extends priq_queue {
}
/*
- * Should search even its childs
+ * Should search even its children
*/
function &find_queue($interface, $qname) {
if ($qname == $this->GetQname())
@@ -1976,7 +1976,7 @@ class cbq_queue extends priq_queue {
break;
}
if ($parent->GetAvailableBandwidth() < floatval($myBw))
- $input_errors[] = "The sum of child bandwidths exceeds that of the parent.";
+ $input_errors[] = "The sum of the children bandwidth exceeds that of the parent.";
*/
}
function ReadConfig(&$q) {
@@ -2006,7 +2006,7 @@ class cbq_queue extends priq_queue {
return $tree;
}
- /* Even this should take childs in consideration */
+ /* Even this should take children into consideration */
function build_rules() {
$pfq_rule = "queue ". $this->qname;
if ($this->GetInterface())
@@ -2148,7 +2148,7 @@ class fairq_queue extends priq_queue {
function SetHogs($hogs) {
$this->hogs = $hogs;
}
- function CanHaveChilds() {
+ function CanHaveChildren() {
return false;
}
@@ -2171,7 +2171,7 @@ class fairq_queue extends priq_queue {
}
/*
- * Should search even its childs
+ * Should search even its children
*/
function &find_queue($interface, $qname) {
if ($qname == $this->GetQname())
@@ -2223,7 +2223,7 @@ class fairq_queue extends priq_queue {
break;
}
if ($parent->GetAvailableBandwidth() < floatval($myBw))
- $input_errors[] = "The sum of child bandwidths exceeds that of the parent.";
+ $input_errors[] = "The sum of children bandwidth exceeds that of the parent.";
*/
}
@@ -2250,7 +2250,7 @@ class fairq_queue extends priq_queue {
return $tree;
}
- /* Even this should take childs in consideration */
+ /* Even this should take children into consideration */
function build_rules() {
$pfq_rule = "queue ". $this->qname;
if ($this->GetInterface())
@@ -2400,7 +2400,7 @@ class dummynet_class {
var $mask;
var $noerror;
- /* Accesor functions */
+ /* Accessor functions */
function SetLink($link) {
$this->link = $link;
}
@@ -2425,7 +2425,7 @@ class dummynet_class {
function SetEnabled($value) {
$this->qenabled = $value;
}
- function CanHaveChilds() {
+ function CanHaveChildren() {
return false;
}
function CanBeDeleted() {
@@ -2508,7 +2508,7 @@ class dnpipe_class extends dummynet_class {
/* This is here to help on form building and building rules/lists */
var $subqueues = array();
- function CanHaveChilds() {
+ function CanHaveChildren() {
return true;
}
function SetDelay($delay) {
@@ -2567,7 +2567,7 @@ class dnpipe_class extends dummynet_class {
}
/*
- * Should search even its childs
+ * Should search even its children
*/
function &find_queue($pipe, $qname) {
if ($qname == $this->GetQname())
@@ -2749,7 +2749,7 @@ class dnpipe_class extends dummynet_class {
$form .= "<td valign=\"top\" class=\"vncellreq\">";
$form .= "<input name=\"delay\" type=\"text\" id=\"delay\" size=\"5\" value=\"";
$form .= $this->GetDelay() . "\">";
- $form .= "&nbsp;ms<br> <span class=\"vexpl\">Hint: in most cases, you";
+ $form .= "&nbsp;ms<br> <span class=\"vexpl\">Hint: in most cases, you ";
$form .= "should specify 0 here (or leave the field empty)</span>";
$form .= "</td></tr><br/>";
$form .= "<tr style=\"display:none\" id=\"sprtable1\" name=\"sprtable1\">";
@@ -2757,8 +2757,8 @@ class dnpipe_class extends dummynet_class {
$form .= "<td valign=\"top\" class=\"vncellreq\">";
$form .= "<input name=\"plr\" type=\"text\" id=\"plr\" size=\"5\" value=\"";
$form .= $this->GetPlr() . "\">";
- $form .= "&nbsp;<br> <span class=\"vexpl\">Hint: in most cases, you";
- $form .= "should specify 0 here (or leave the field empty).";
+ $form .= "&nbsp;<br> <span class=\"vexpl\">Hint: in most cases, you ";
+ $form .= "should specify 0 here (or leave the field empty).";
$form .= "A value of 0.001 means one packet in 1000 gets dropped</span>";
$form .= "</td></tr>";
$form .= "<tr style=\"display:none\" id=\"sprtable2\" name=\"sprtable2\">";
@@ -2839,7 +2839,7 @@ class dnqueue_class extends dummynet_class {
}
/*
- * Should search even its childs
+ * Should search even its children
*/
function &find_queue($pipe, $qname) {
if ($qname == $this->GetQname())
@@ -2959,7 +2959,7 @@ class dnqueue_class extends dummynet_class {
$form .= "<td valign=\"top\" class=\"vncellreq\">";
$form .= "<input name=\"weight\" type=\"text\" id=\"weight\" size=\"5\" value=\"";
$form .= $this->GetWeight() . "\">";
- $form .= "&nbsp;ms<br> <span class=\"vexpl\">Hint: For queues under the same parent";
+ $form .= "&nbsp;ms<br> <span class=\"vexpl\">Hint: For queues under the same parent ";
$form .= "this specifies the share that a queue gets(values range from 1 to 100, you can leave it blank otherwise)</span>";
$form .= "</td></tr>";
$form .= "<tr style=\"display:none\" id=\"sprtable1\" name=\"sprtable1\">";
@@ -2967,7 +2967,7 @@ class dnqueue_class extends dummynet_class {
$form .= "<td valign=\"top\" class=\"vncellreq\">";
$form .= "<input name=\"plr\" type=\"text\" id=\"plr\" size=\"5\" value=\"";
$form .= $this->GetPlr() . "\">";
- $form .= "&nbsp;<br> <span class=\"vexpl\">Hint: in most cases, you";
+ $form .= "&nbsp;<br> <span class=\"vexpl\">Hint: in most cases, you ";
$form .= "should specify 0 here (or leave the field empty).";
$form .= "A value of 0.001 means one packet in 1000 gets dropped</span>";
$form .= "</td></tr>";
@@ -2978,8 +2978,8 @@ class dnqueue_class extends dummynet_class {
$form .= $this->GetQlimit() . "\">";
$form .= "&nbsp;slots<br>";
$form .= "<span class=\"vexpl\">Hint: in most cases, you ";
- $form .= "should leave the field empty. All packets in this pipe are placed into a fixed-size queue first,";
- $form .= "then they are delayed by value specified in the Delay field, and then they ";
+ $form .= "should leave the field empty. All packets in this pipe are placed into a fixed-size queue first, ";
+ $form .= "then they are delayed by value specified in the Delay field, and then they ";
$form .= "are delivered to their destination.</span>";
$form .= "</td></tr>";
$form .= "<tr style=\"display:none\" id=\"sprtable5\" name=\"sprtable5\">";
diff --git a/usr/local/www/firewall_shaper.php b/usr/local/www/firewall_shaper.php
index ded8724..545070e 100755
--- a/usr/local/www/firewall_shaper.php
+++ b/usr/local/www/firewall_shaper.php
@@ -239,7 +239,7 @@ if ($_GET) {
array_pop($tmppath);
$tmp->wconfig();
$can_enable = true;
- if ($tmp->CanHaveChilds() && $can_enable) {
+ if ($tmp->CanHaveChildren() && $can_enable) {
if ($tmp->GetDefault() <> "")
$can_add = false;
else
@@ -312,7 +312,7 @@ if ($queue) {
$can_enable = true;
else
$can_enable = false;
- if ($queue->CanHaveChilds() && $can_enable) {
+ if ($queue->CanHaveChildren() && $can_enable) {
if ($altq->GetQname() <> $queue->GetQname() && $queue->GetDefault() <> "")
$can_add = false;
else
diff --git a/usr/local/www/firewall_shaper_vinterface.php b/usr/local/www/firewall_shaper_vinterface.php
index e1370d8..42f263e 100644
--- a/usr/local/www/firewall_shaper_vinterface.php
+++ b/usr/local/www/firewall_shaper_vinterface.php
@@ -16,6 +16,7 @@
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
+
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
@@ -260,7 +261,7 @@ if ($queue) {
$can_enable = true;
else
$can_enable = false;
- if ($queue->CanHaveChilds()) {
+ if ($queue->CanHaveChildren()) {
$can_add = true;
} else
$can_add = false;
@@ -319,7 +320,7 @@ if ($queue || $dnpipe || $newqueue) {
if ($queue)
if ($queue->GetEnabled() <> "")
$output .= " CHECKED";
- $output .= " ><span class=\"vexpl\"> Enable/Disable queue and its childs</span>";
+ $output .= " ><span class=\"vexpl\"> Enable/Disable queue and its children.</span>";
$output .= "</td></tr>";
}
}
OpenPOWER on IntegriCloud