diff options
author | Bill Marquette <billm@pfsense.org> | 2008-08-28 21:21:50 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2008-08-28 21:21:50 +0000 |
commit | 0919224fbd27505f35b94f4dd8a8070ceac153aa (patch) | |
tree | 748065cc800cd91a30db55a0b657665dc084d9f5 /usr/local/www/guiconfig.inc | |
parent | 9557628b8ab7dafc01cb28173618d558280f2bb4 (diff) | |
download | pfsense-0919224fbd27505f35b94f4dd8a8070ceac153aa.zip pfsense-0919224fbd27505f35b94f4dd8a8070ceac153aa.tar.gz |
Bring in relay options for inbound load balancer
More work pending, this seems to generate proper configs
needs much more testing though
Diffstat (limited to 'usr/local/www/guiconfig.inc')
-rwxr-xr-x | usr/local/www/guiconfig.inc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index 66094b3..289787a 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -947,4 +947,32 @@ function print_rfc2616_select($tag, $current){ } } +// Useful debugging function, much cleaner than print_r +function echo_array($array,$return_me=false){ + if(is_array($array) == false){ + $return = "The provided variable is not an array."; + }else{ + foreach($array as $name=>$value){ + if(is_array($value)){ + $return .= ""; + $return .= "['<b>$name</b>'] {<div style='margin-left:10px;'>\n"; + $return .= echo_array($value,true); + $return .= "</div>}"; + $return .= "\n\n"; + }else{ + if(is_string($value)){ + $value = "\"$value\""; + } + $return .= "['<b>$name</b>'] = $value\n\n"; + } + } + } + if($return_me == true){ + return $return; + }else{ + echo "<pre>".$return."</pre>"; + } +} + + ?> |