mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 00:07:27 +00:00
Fix it's, repeated words and a/an (#3332)
This commit is contained in:
parent
114b904e1c
commit
3f673e3ce6
@ -44,7 +44,7 @@ class DependancyCrawler(object):
|
||||
self.root = root
|
||||
|
||||
def get_dependency_by_src(self, src_filename):
|
||||
""" dependencies are stored by a single name, this method maps a filename back to it's name
|
||||
""" dependencies are stored by a single name, this method maps a filename back to its name
|
||||
usually the basename of the file.
|
||||
:param src_filename:
|
||||
:return:
|
||||
|
||||
@ -116,7 +116,7 @@ function setup_gateways_monitor($verbose = false, $gwname = null)
|
||||
* If the gateway is the same as the monitor we do not add a
|
||||
* route as this will break the routing table.
|
||||
* Add static routes for each gateway with their monitor IP
|
||||
* not strictly necessary but is a added level of protection.
|
||||
* not strictly necessary but is an added level of protection.
|
||||
*/
|
||||
if (is_ipaddrv4($gateway['gateway']) && $gateway['monitor'] != $gateway['gateway']) {
|
||||
log_error("Adding static route for monitor {$gateway['monitor']} via {$gateway['gateway']}");
|
||||
@ -165,7 +165,7 @@ function setup_gateways_monitor($verbose = false, $gwname = null)
|
||||
* If the gateway is the same as the monitor we do not add a
|
||||
* route as this will break the routing table.
|
||||
* Add static routes for each gateway with their monitor IP
|
||||
* not strictly necessary but is a added level of protection.
|
||||
* not strictly necessary but is an added level of protection.
|
||||
*/
|
||||
if (is_ipaddrv6($gateway['gateway']) && $gateway['monitor'] != $gateway['gateway']) {
|
||||
log_error("Adding static route for monitor {$gateway['monitor']} via {$gateway['gateway']}");
|
||||
|
||||
@ -606,7 +606,7 @@ function interface_lagg_configure(&$lagg)
|
||||
$laggif = legacy_interface_create('lagg');
|
||||
}
|
||||
|
||||
// determine mtu value to use, either the provided one for the lagg or smallest of it's children
|
||||
// determine mtu value to use, either the provided one for the lagg or smallest of its children
|
||||
$mtu = null;
|
||||
if (!empty($lagg['mtu'])) {
|
||||
// mtu provided for lagg
|
||||
@ -1009,7 +1009,7 @@ function interface_bring_down($interface = "wan", $ifacecfg = false)
|
||||
foreach ($config['virtualip']['vip'] as $vip) {
|
||||
if ($vip['interface'] == $interface && $vip['mode'] != 'carp') {
|
||||
/**
|
||||
* only disable non carp aliases, net.inet.carp.ifdown_demotion_factor should do it's work
|
||||
* only disable non carp aliases, net.inet.carp.ifdown_demotion_factor should do its work
|
||||
* when a carp interface goes down
|
||||
*/
|
||||
interface_vip_bring_down($vip);
|
||||
@ -2483,7 +2483,7 @@ function interface_configure($verbose = false, $interface = 'wan', $reload = fal
|
||||
}
|
||||
}
|
||||
|
||||
// in case this interface has vlan's configured, make sure none of them has an mtu set higher than it's parent
|
||||
// in case this interface has vlan's configured, make sure none of them has an mtu set higher than its parent
|
||||
if (!empty($config['vlans']['vlan'])) {
|
||||
$intf_stats = legacy_interface_stats();
|
||||
foreach ($config['vlans']['vlan'] as $vlan) {
|
||||
|
||||
@ -1546,7 +1546,7 @@ function services_dhcrelay_configure($verbose = false)
|
||||
}
|
||||
|
||||
if (!isset($destif)) {
|
||||
/* Create a array from the existing route table */
|
||||
/* Create an array from the existing route table */
|
||||
exec("/usr/bin/netstat -rnWf inet", $route_str);
|
||||
array_shift($route_str);
|
||||
array_shift($route_str);
|
||||
@ -1671,7 +1671,7 @@ function services_dhcrelay6_configure($verbose = false)
|
||||
}
|
||||
|
||||
if (!isset($destif)) {
|
||||
/* Create a array from the existing route table */
|
||||
/* Create an array from the existing route table */
|
||||
exec("/usr/bin/netstat -rnWf inet6", $route_str);
|
||||
array_shift($route_str);
|
||||
array_shift($route_str);
|
||||
|
||||
@ -38,7 +38,7 @@ class XMLRPCServer
|
||||
|
||||
/**
|
||||
* load publishable function from inc/xmlrpc/*.inc
|
||||
* every usable module should include a function to return it's own registrable functions, using
|
||||
* every usable module should include a function to return its own registrable functions, using
|
||||
* the following patten:
|
||||
* xmlrpc_publishable_{filename without .inc}
|
||||
*
|
||||
|
||||
@ -39,7 +39,7 @@ configd_prestart()
|
||||
#
|
||||
configd_poststart()
|
||||
{
|
||||
# give the daemon some time to initilize it's configuration
|
||||
# give the daemon some time to initialize its configuration
|
||||
sleep 1
|
||||
}
|
||||
|
||||
|
||||
@ -84,7 +84,7 @@ class AuthenticationFactory
|
||||
}
|
||||
|
||||
/**
|
||||
* request list of configured servers, the factory needs to be aware of it's options and settings to
|
||||
* request list of configured servers, the factory needs to be aware of its options and settings to
|
||||
* be able to instantiate useful connectors.
|
||||
* @return array list of configured servers
|
||||
*/
|
||||
|
||||
@ -262,7 +262,7 @@ abstract class BaseModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct new model type, using it's own xml template
|
||||
* Construct new model type, using its own xml template
|
||||
* @throws ModelException if the model xml is not found or invalid
|
||||
* @throws \ReflectionException
|
||||
*/
|
||||
|
||||
@ -32,7 +32,7 @@ use OPNsense\Base\Validators\MinMaxValidator;
|
||||
use OPNsense\Base\Validators\IntegerValidator;
|
||||
|
||||
/**
|
||||
* Class AutoNumberField auto numbering integer type field, using it's direct neighbors to determine the already used
|
||||
* Class AutoNumberField auto numbering integer type field, using its direct neighbors to determine the already used
|
||||
* numbers.
|
||||
* @package OPNsense\Base\FieldTypes
|
||||
*/
|
||||
@ -74,7 +74,7 @@ class AutoNumberField extends BaseField
|
||||
|
||||
/**
|
||||
* applyDefault is the trigger for requesting a new sequence number, when a child field is created by
|
||||
* ArrayField it always receives all of it's defaults after clone.
|
||||
* ArrayField it always receives all of its defaults after clone.
|
||||
* (see ArrayField for how this works).
|
||||
*
|
||||
* In this case, the default is a new sequence based on the same field in this fields direct neighbors.
|
||||
|
||||
@ -595,7 +595,7 @@ abstract class BaseField
|
||||
|
||||
|
||||
/**
|
||||
* Add this node and it's children to the supplied simplexml node pointer.
|
||||
* Add this node and its children to the supplied simplexml node pointer.
|
||||
* @param \SimpleXMLElement $node target node
|
||||
*/
|
||||
public function addToXMLNode($node)
|
||||
|
||||
@ -382,7 +382,7 @@ class MenuItem
|
||||
}
|
||||
|
||||
/**
|
||||
* set url and all it's parents selected
|
||||
* set url and all its parents selected
|
||||
* @param string $url target url
|
||||
*/
|
||||
public function toggleSelected($url)
|
||||
|
||||
@ -178,7 +178,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
$vipent['noexpand'] = true;
|
||||
}
|
||||
|
||||
// virtual ip UI keeps track of it's changes in a separate file
|
||||
// virtual ip UI keeps track of its changes in a separate file
|
||||
// (which is only use on apply in firewall_virtual_ip)
|
||||
// add or change this administration here.
|
||||
// Not the nicest thing to do, but we keep it for now.
|
||||
|
||||
@ -68,7 +68,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
/* We then split the leases file by } */
|
||||
$splitpattern = "'BEGIN { RS=\"}\";} {for (i=1; i<=NF; i++) printf \"%s \", \$i; printf \"}\\n\";}'";
|
||||
|
||||
/* stuff the leases file in a proper format into a array by line */
|
||||
/* stuff the leases file in a proper format into an array by line */
|
||||
exec("/bin/cat {$leasesfile} | {$awk} {$cleanpattern} | {$awk} {$splitpattern}", $leases_content);
|
||||
$leases_count = count($leases_content);
|
||||
exec("/usr/sbin/arp -an", $rawdata);
|
||||
|
||||
@ -39,7 +39,7 @@ function add_local_user($username, $userdn, $userfullname, $useremail)
|
||||
// link local user to remote server by updating user_dn
|
||||
$user['user_dn'] = $userdn;
|
||||
// trash user password when linking to ldap, avoid accidental login
|
||||
// using fall-back local password. User could still reset it's
|
||||
// using fall-back local password. User could still reset its
|
||||
// local password, but only by choice.
|
||||
local_user_set_password($user);
|
||||
local_user_set($user);
|
||||
|
||||
@ -56,9 +56,9 @@ function http_basic_auth($http_auth_header)
|
||||
/**
|
||||
* Simple XML-RPC server using IXR_Library
|
||||
*/
|
||||
if (!isset($_SERVER['HTTP_AUTHORIZATION']) || // check for a auth header
|
||||
if (!isset($_SERVER['HTTP_AUTHORIZATION']) || // check for an auth header
|
||||
!http_basic_auth($_SERVER['HTTP_AUTHORIZATION']) || // user authentication failure (basic auth)
|
||||
$_SERVER['SERVER_ADDR'] == $_SERVER['REMOTE_ADDR'] // do not accept request from servers own address
|
||||
$_SERVER['SERVER_ADDR'] == $_SERVER['REMOTE_ADDR'] // do not accept request from server's own address
|
||||
) {
|
||||
// Authentication failure, bail out.
|
||||
$xml = <<<EOD
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user