aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-devel/haproxy_utils.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-10-16 16:27:51 -0500
committerRenato Botelho <garga@FreeBSD.org>2014-10-16 16:27:51 -0500
commitd5cf7798a35fe6b031c3d1bc72a0d0d0a94ba7f8 (patch)
tree2c6ba9af5ae2c3b569aef0fbb6ff23a46f080b80 /config/haproxy-devel/haproxy_utils.inc
parent340e5365476f1465a083daca6709bd43caa7a0cb (diff)
parentb5fca0f92f7cd08401571c70810682b31472b781 (diff)
downloadpfsense-packages-d5cf7798a35fe6b031c3d1bc72a0d0d0a94ba7f8.tar.gz
pfsense-packages-d5cf7798a35fe6b031c3d1bc72a0d0d0a94ba7f8.tar.bz2
pfsense-packages-d5cf7798a35fe6b031c3d1bc72a0d0d0a94ba7f8.zip
Merge pull request #720 from PiBa-NL/haproxy_1.5.3_extra
Diffstat (limited to 'config/haproxy-devel/haproxy_utils.inc')
-rw-r--r--config/haproxy-devel/haproxy_utils.inc18
1 files changed, 18 insertions, 0 deletions
diff --git a/config/haproxy-devel/haproxy_utils.inc b/config/haproxy-devel/haproxy_utils.inc
index 8fb89eab..08906bb0 100644
--- a/config/haproxy-devel/haproxy_utils.inc
+++ b/config/haproxy-devel/haproxy_utils.inc
@@ -44,6 +44,24 @@ if(!function_exists('ifset')){
};
}
+if(!function_exists('is_arrayset')){
+ function is_arrayset(&$array, $items){
+ if (!isset($array))
+ return false;
+ $item = $array;
+ $arg = func_get_args();
+ for($i = 1; $i < count($arg); $i++) {
+
+ $itemindex = $arg[$i];
+ if (!isset($item[$itemindex]) || !is_array($item[$itemindex]))
+ return false;
+ $item = $item[$itemindex];
+
+ }
+ return true;
+ }
+}
+
function haproxy_compareByName($a, $b) {
return strcasecmp($a['name'], $b['name']);
}