diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2015-10-24 17:12:29 +0200 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2015-10-24 17:20:51 +0200 |
commit | e1dda0cf2125650b29f07d6931f133cfc58fce57 (patch) | |
tree | 6d0434ebe4100e3f8f566579a4bc6ea962db533e /config/haproxy-devel/www/haproxy_listeners.php | |
parent | 914bc8d64109a36d7f1182cb048d39cb409c8433 (diff) | |
download | pfsense-packages-e1dda0cf2125650b29f07d6931f133cfc58fce57.tar.gz pfsense-packages-e1dda0cf2125650b29f07d6931f133cfc58fce57.tar.bz2 pfsense-packages-e1dda0cf2125650b29f07d6931f133cfc58fce57.zip |
haproxy-devel, pkg v0.32 allow usage of mailers/dns/'actions', rework of acl system.
Diffstat (limited to 'config/haproxy-devel/www/haproxy_listeners.php')
-rw-r--r-- | config/haproxy-devel/www/haproxy_listeners.php | 39 |
1 files changed, 31 insertions, 8 deletions
diff --git a/config/haproxy-devel/www/haproxy_listeners.php b/config/haproxy-devel/www/haproxy_listeners.php index db1f3ff2..2a91aa3f 100644 --- a/config/haproxy-devel/www/haproxy_listeners.php +++ b/config/haproxy-devel/www/haproxy_listeners.php @@ -95,7 +95,7 @@ if ($_GET['act'] == "del") { $pgtitle = "Services: HAProxy: Frontends"; include("head.inc"); - +haproxy_css(); ?> <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include("fbegin.inc"); ?> @@ -182,7 +182,7 @@ function js_callback(req) { $first = true; $last_frontend_shared = false; foreach ($a_frontend_grouped as $a_frontend) { - usort($a_frontend,'sort_sharedfrontends'); + usort($a_frontend, 'sort_sharedfrontends'); if ((count($a_frontend) > 1 || $last_frontend_shared) && !$first) { ?> <tr class="<?=$textgray?>"><td colspan="7"> </td></tr> <? } @@ -297,14 +297,37 @@ function js_callback(req) { </td> <td class="listr" ondblclick="document.location='haproxy_listeners_edit.php?id=<?=$frontendname;?>';"> <div title='<?=$backend_serverpool_hint;?>'> - <a href="haproxy_pool_edit.php?id=<?=$frontend['backend_serverpool']?>"> - <?=$frontend['backend_serverpool']?> - </a> + <? + $first = true; + if (is_array($frontend['a_actionitems']['item'])) { + foreach ($frontend['a_actionitems']['item'] as $actionitem) { + if ($actionitem['action'] == "use_backend") { + if ($first) { + $first = false; + } else { + echo "<br/>"; + } + $backend = $actionitem['use_backendbackend']; + echo "<a href='haproxy_pool_edit.php?id={$backend}'>{$backend}</a>"; + + if (!empty($actionitem['acl'])) { + echo " if({$actionitem['acl']})"; + } + } + } + } + $backend = $frontend['backend_serverpool']; + if (!empty($backend)) { + if ($first) { + $first = false; + } else { + echo "<br/>"; + } + echo "<a href='haproxy_pool_edit.php?id={$backend}'>{$backend}</a> (default)"; + } + ?> </div> </td> - <!--td class="listlr" ondblclick="document.location='haproxy_listeners_edit.php?id=<?=$frontendname;?>';"> - <?=$frontend['secondary'] == 'yes' ? $frontend['primary_frontend'] : "";?> - </td--> <td class="list" nowrap> <table border="0" cellspacing="0" cellpadding="1"> <tr> |