diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index e2b1317bdd..1bb990384e 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -1,6 +1,6 @@ "; + $javascript .= "//"; $javascript .= ""; return $javascript; @@ -611,7 +613,7 @@ class altq_root_queue { * to the user like the traffic wizard does. */ function build_form() { - $form = "
"; + $form = "
"; $form .= gettext("Enable/Disable"); $form .= "
"; $form .= " " . gettext("Enable/disable discipline and its children") . ""; $form .= ""; - $form .= "
" . gettext("Name") . ""; + $form .= "
" . gettext("Name") . ""; $form .= ""; $form .= "".$this->GetQname().""; $form .= ""; @@ -644,7 +646,7 @@ class altq_root_queue { $form .= " selected=\"yes\""; $form .= ">PRIQ"; $form .= ""; - $form .= "
"; + $form .= "
"; $form .= gettext("NOTE: Changing this changes all child queues!"); $form .= gettext(" Beware you can lose information."); $form .= ""; @@ -683,7 +685,7 @@ class altq_root_queue { $form .= "
GetTbrConfig(); $form .= "\">"; - $form .= "
"; + $form .= "
"; $form .= gettext("Adjusts the size, in bytes, of the token bucket regulator. " . "If not specified, heuristics based on the interface " . "bandwidth are used to determine the size."); @@ -872,6 +874,7 @@ class priq_queue { function build_javascript() { $javascript = ""; return $javascript; @@ -1118,7 +1122,7 @@ class priq_queue { * need to update it. */ function build_form() { - $form = "
"; + $form = "
"; $form .= gettext("Enable/Disable"); $form .= "
"; $form .= " GetQpriority()); $form .= "\">"; - $form .= "
" . gettext("For hfsc, the range is 0 to 7. The default is 1. Hfsc queues with a higher priority are preferred in the case of overload.") . ""; + $form .= "
" . gettext("For hfsc, the range is 0 to 7. The default is 1. Hfsc queues with a higher priority are preferred in the case of overload.") . ""; $form .= ""; $form .= ""; $form .= "" . gettext("Queue limit") . ""; $form .= " GetQlimit()); $form .= "\">"; - $form .= "
" . gettext("Queue limit in packets per second."); + $form .= "
" . gettext("Queue limit in packets per second."); $form .= ""; $form .= ""; $form .= "" . gettext("Scheduler options") . ""; @@ -1157,28 +1161,28 @@ class priq_queue { if (empty($this->subqueues)) { if ($this->GetDefault()) { $form .= ""; + $form .= "> " . gettext("Default queue") . "
"; } else { $form .= ""; + $form .= "> " . gettext("Default queue") . "
"; } } $form .= "GetRed(); if(!empty($tmpvalue)) $form .= " CHECKED"; - $form .= "> " . gettext("Random Early Detection") . "
"; + $form .= "> " . gettext("Random Early Detection") . "
"; $form .= "GetRio(); if(!empty($tmpvalue)) $form .= " CHECKED"; - $form .= "> " . gettext("Random Early Detection In and Out") . "
"; + $form .= "> " . gettext("Random Early Detection In and Out") . "
"; $form .= "GetEcn(); if(!empty($tmpvalue)) $form .= " CHECKED"; - $form .= "> " . gettext("Explicit Congestion Notification") . "
"; - $form .= "
" . gettext("Select options for this queue"); + $form .= "> " . gettext("Explicit Congestion Notification") . "
"; + $form .= "
" . gettext("Select options for this queue"); $form .= ""; $form .= "" . gettext("Description") . ""; $form .= ""; @@ -1808,6 +1812,7 @@ class hfsc_queue extends priq_queue { function build_javascript() { $javascript = parent::build_javascript(); $javascript .= ""; return $javascript; @@ -1875,7 +1881,7 @@ class hfsc_queue extends priq_queue { if ($this->GetBwscale() == "%") $form .= " selected=\"yes\""; $form .= ">%"; - $form .= "
"; + $form .= "
"; $form .= "" . gettext("Choose the amount of bandwidth for this queue"); $form .= ""; $form .= ""; @@ -1940,7 +1946,7 @@ class hfsc_queue extends priq_queue { if ($this->GetLinkshare() == "") $form .= " disabled"; $form .= ">" . gettext("The bandwidth share of a backlogged queue - this overrides priority.") . ""; - $form .= "
"; + $form .= "
"; $form .= gettext("The format for service curve specifications is (m1, d, m2). m2 controls " . "the bandwidth assigned to the queue. m1 and d are optional and can be " . "used to control the initial bandwidth assignment. For the first d milliseconds the queue gets the bandwidth given as m1, afterwards the value " @@ -2353,14 +2359,14 @@ class cbq_queue extends priq_queue { if ($this->GetBwscale() == "%") $form .= " selected=\"yes\""; $form .= ">%"; - $form .= "
"; + $form .= "
"; $form .= "" . gettext("Choose the amount of bandwidth for this queue"); $form .= ""; $form .= "" . gettext("Scheduler specific options") . ""; $form .= "GetBorrow() == "on") $form .= " CHECKED "; - $form .= "> " . gettext("Borrow from other queues when available") . "
"; + $form .= "> " . gettext("Borrow from other queues when available") . "
"; return $form; } @@ -2619,7 +2625,7 @@ class fairq_queue extends priq_queue { if ($this->GetBwscale() == "%") $form .= " selected=\"yes\""; $form .= ">%"; - $form .= "
"; + $form .= "
"; $form .= "" . gettext("Choose the amount of bandwidth for this queue"); $form .= ""; $form .= "" . gettext("Scheduler specific options") . ""; @@ -2628,12 +2634,12 @@ class fairq_queue extends priq_queue { $tmpvalue = trim($this->GetBuckets()); if(!empty($tmpvalue)) $form .= $this->GetBuckets(); - $form .= "\"> " . gettext("Number of buckets available.") . "
"; + $form .= "\"> " . gettext("Number of buckets available.") . "
"; $form .= "GetHogs()); if(!empty($tmpvalue)) $form .= $this->GetHogs(); - $form .= "\"> " . gettext("Bandwidth limit for hosts to not saturate link.") . "
"; + $form .= "\"> " . gettext("Bandwidth limit for hosts to not saturate link.") . "
"; $form .= ""; return $form; } @@ -3087,6 +3093,7 @@ class dnpipe_class extends dummynet_class { $javasr = << +// EOD; @@ -3140,7 +3148,7 @@ EOD; } } - $form = "
"; + $form = "
"; $form .= gettext("Enable"); $form .= ""; $form .= " " . gettext("Enable limiter and its children") . "
"; $form .= ""; - $form .= "
" . gettext("Name") . ""; + $form .= "
" . gettext("Name") . ""; $form .= ""; $form .= "GetQname()."\">"; @@ -3216,7 +3224,7 @@ EOD; $form .= " selected=\"yes\""; $form .= ">" . gettext("Destination addresses") . ""; $form .= ""; - $form .= " 
"; + $form .= " 
"; $form .= "" . gettext("If 'source' or 'destination' is chosen, \n" . "a dynamic pipe with the bandwidth, delay, packet loss and queue size given above will \n" . "be created for each source/destination IP address encountered, \n" @@ -3228,7 +3236,7 @@ EOD; $form .= "GetDescription(); $form .= "\">"; - $form .= "
"; + $form .= "
"; $form .= gettext("You may enter a description here for your reference (not parsed).") . ""; $form .= ""; $form .= ""; @@ -3243,7 +3251,7 @@ EOD; $form .= ""; $form .= "GetDelay() . "\">"; - $form .= " ms
" . gettext("Hint: in most cases, you " + $form .= " ms
" . gettext("Hint: in most cases, you " . "should specify 0 here (or leave the field empty)") . ""; $form .= "
"; $form .= ""; @@ -3251,7 +3259,7 @@ EOD; $form .= ""; $form .= "GetPlr() . "\">"; - $form .= " 
" . gettext("Hint: in most cases, you " + $form .= " 
" . gettext("Hint: in most cases, you " . "should specify 0 here (or leave the field empty). " . "A value of 0.001 means one packet in 1000 gets dropped") . ""; $form .= ""; @@ -3260,7 +3268,7 @@ EOD; $form .= ""; $form .= "GetQlimit() . "\">"; - $form .= " slots
"; + $form .= " slots
"; $form .= "" . gettext("Hint: in most cases, you " . "should leave the field empty. All packets in this pipe are placed into a fixed-size queue first, " . "then they are delayed by value specified in the Delay field, and then they " @@ -3271,7 +3279,7 @@ EOD; $form .= ""; $form .= "GetBuckets() . "\">"; - $form .= " slots
"; + $form .= " slots
"; $form .= "" . gettext("Hint: in most cases, you " . "should leave the field empty. It increases the hash size set."); $form .= ""; @@ -3429,7 +3437,7 @@ class dnqueue_class extends dummynet_class { } function build_form() { - $form = "
"; + $form = "
"; $form .= gettext("Enable/Disable"); $form .= ""; $form .= " " . gettext("Enable/Disable queue") . "
"; $form .= ""; - $form .= "
" . gettext("Name") . ""; + $form .= "
" . gettext("Name") . ""; $form .= ""; $form .= "GetQname()."\">"; @@ -3464,7 +3472,7 @@ class dnqueue_class extends dummynet_class { $form .= " selected=\"yes\""; $form .= ">" . gettext("Destination addresses") . ""; $form .= ""; - $form .= " slots
"; + $form .= " slots
"; $form .= "" . gettext("If 'source' or 'destination' is chosen, \n" . "a dynamic pipe with the bandwidth, delay, packet loss and queue size given above will \n" . "be created for each source/destination IP address encountered, \n" @@ -3476,7 +3484,7 @@ class dnqueue_class extends dummynet_class { $form .= "GetDescription(); $form .= "\">"; - $form .= "
"; + $form .= "
"; $form .= gettext("You may enter a description here for your reference (not parsed).") . ""; $form .= ""; $form .= ""; @@ -3490,7 +3498,7 @@ class dnqueue_class extends dummynet_class { $form .= ""; $form .= "GetWeight() . "\">"; - $form .= " 
" . gettext("Hint: For queues under the same parent " + $form .= " 
" . gettext("Hint: For queues under the same parent " . "this specifies the share that a queue gets(values range from 1 to 100, you can leave it blank otherwise)") . ""; $form .= ""; $form .= ""; @@ -3498,7 +3506,7 @@ class dnqueue_class extends dummynet_class { $form .= ""; $form .= "GetPlr() . "\">"; - $form .= " 
" . gettext("Hint: in most cases, you " + $form .= " 
" . gettext("Hint: in most cases, you " . "should specify 0 here (or leave the field empty). " . "A value of 0.001 means one packet in 1000 gets dropped") . ""; $form .= ""; @@ -3507,7 +3515,7 @@ class dnqueue_class extends dummynet_class { $form .= ""; $form .= "GetQlimit() . "\">"; - $form .= " slots
"; + $form .= " slots
"; $form .= "" . gettext("Hint: in most cases, you " . "should leave the field empty. All packets in this pipe are placed into a fixed-size queue first, " . "then they are delayed by value specified in the Delay field, and then they " @@ -3518,7 +3526,7 @@ class dnqueue_class extends dummynet_class { $form .= ""; $form .= "GetBuckets() . "\">"; - $form .= " " . gettext("slots") . "
"; + $form .= " " . gettext("slots") . "
"; $form .= "" . gettext("Hint: in most cases, you " . "should leave the field empty. It increases the hash size set."); $form .= ""; @@ -3652,7 +3660,7 @@ class layer7 { } function build_form() { - $form = "
"; + $form = "
"; $form .= gettext("Enable/Disable"); $form .= ""; $form .= " " . gettext("Enable/Disable layer7 Container") . "
"; $form .= ""; - $form .= "
" . gettext("Name") . ""; + $form .= "
" . gettext("Name") . ""; $form .= ""; $form .= "GetRName()."\">"; @@ -3671,7 +3679,7 @@ class layer7 { $form .= "GetRDescription(); $form .= "\">"; - $form .= "
"; + $form .= "
"; $form .= gettext("You may enter a description here for your reference (not parsed).") . ""; $form .= "";