diff options
author | thompsa <andy@fud.org.nz> | 2010-02-08 11:55:47 +1300 |
---|---|---|
committer | thompsa <andy@fud.org.nz> | 2010-02-08 11:55:47 +1300 |
commit | 19cd232b7740f23da662c687d306efecc7df5e6c (patch) | |
tree | 350733922b3881f4e4f1f67425c34338b0ca9e81 /config/haproxy-dev/haproxy_pools.php | |
parent | 873104479790c7bafe3525377400cad9ecd928f8 (diff) | |
download | pfsense-packages-19cd232b7740f23da662c687d306efecc7df5e6c.tar.gz pfsense-packages-19cd232b7740f23da662c687d306efecc7df5e6c.tar.bz2 pfsense-packages-19cd232b7740f23da662c687d306efecc7df5e6c.zip |
Move the ip:port to the listener page and allow the pool to show
multiple listeners attached.
Diffstat (limited to 'config/haproxy-dev/haproxy_pools.php')
-rwxr-xr-x | config/haproxy-dev/haproxy_pools.php | 33 |
1 files changed, 7 insertions, 26 deletions
diff --git a/config/haproxy-dev/haproxy_pools.php b/config/haproxy-dev/haproxy_pools.php index fbbb05b0..ede6aea8 100755 --- a/config/haproxy-dev/haproxy_pools.php +++ b/config/haproxy-dev/haproxy_pools.php @@ -103,45 +103,26 @@ include("head.inc"); <table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="30%" class="listhdrr">Name</td> - <td width="30%" class="listhdrr">Server</td> <td width="20%" class="listhdrr">Status</td> <td width="30%" class="listhdrr">Listener</td> <td width="10%" class="list"></td> </tr> - <?php $i = 0; foreach ($a_pools as $pool): - - foreach ($a_backends as $backend) { - unset($listener); - if($backend['pool'] == $pool['name']) { - $listener = $backend; - } - } - ?> + <?php $i = 0; foreach ($a_pools as $pool): ?> <tr> <td class="listlr" ondblclick="document.location='haproxy_pool_edit.php?id=<?=$i;?>';"> <?=$pool['name'];?> </td> <td class="listlr" ondblclick="document.location='haproxy_pool_edit.php?id=<?=$i;?>';"> -<?php - if (is_array($listener)) { - if ($listener['extaddr']) - echo $listener['extaddr']; - else - echo "any"; - if ($listener['port']) - echo ":" . $listener['port']; - } else - echo '-'; -?> - - </td> - <td class="listlr" ondblclick="document.location='haproxy_pool_edit.php?id=<?=$i;?>';"> <?=$pool['status'];?> </td> <td class="listlr" ondblclick="document.location='haproxy_pool_edit.php?id=<?=$i;?>';"> <?php - if (is_array($listener)) { - echo $listener['name']; + $sep = ""; + foreach ($a_backends as $backend) { + if($backend['pool'] == $pool['name']) { + echo $sep . $backend['name']; + $sep = ", "; + } } ?> </td> |