diff options
author | Eirik Oeverby <ltning@anduin.net> | 2010-08-10 22:42:12 +0200 |
---|---|---|
committer | Eirik Oeverby <ltning@anduin.net> | 2010-08-10 22:42:12 +0200 |
commit | cdad3139803d36c5fbdced07d368235d5d13773d (patch) | |
tree | 7a7ce1e3e3ac0d5c26a0592177d70744ef3300cb /usr/local/www | |
parent | cc7ed71def2c4b02b477121cfc66dc7a0fa48c2a (diff) | |
download | pfsense-cdad3139803d36c5fbdced07d368235d5d13773d.zip pfsense-cdad3139803d36c5fbdced07d368235d5d13773d.tar.gz |
Fixed LB pool status display to match current config
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/status_lb_pool.php | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/usr/local/www/status_lb_pool.php b/usr/local/www/status_lb_pool.php index b5d0103..47eb31d 100755 --- a/usr/local/www/status_lb_pool.php +++ b/usr/local/www/status_lb_pool.php @@ -134,10 +134,10 @@ foreach( (array) $relayctl as $line) { PRINT "<tr>"; switch ($vipent['mode']) { case 'loadbalance': - if($svr[0]!="") PRINT "<td><input type='checkbox' name='".$vipent['name']."_".$svr[0]."' checked=1></td>"; + if($svr[0]!="") PRINT "<td><input type='checkbox' name='".$vipent['name']."_".$svr[0]."' checked></td>"; break; case 'failover': - if($svr[0]!="") PRINT "<td><input type='radio' name='".$vipent['name']."' selected></td>"; + if($svr[0]!="") PRINT "<td><input type='radio' name='".$vipent['name']."' checked></td>"; break; } PRINT "<td bgcolor=".$bgcolor."> {$svr[0]}:{$vipent['port']} </td></tr>"; @@ -145,7 +145,17 @@ foreach( (array) $relayctl as $line) { } foreach ((array) $vipent['serversdisabled'] as $server) { $svr = split("\|", $server); - if($svr[0]!="") PRINT "<tr><td><input type='checkbox'></td><td> {$svr[0]}:{$vipent['port']} </td></tr>"; + + PRINT "<tr>"; + switch ($vipent['mode']) { + case 'loadbalance': + if($svr[0]!="") PRINT "<td><input type='checkbox' name='".$vipent['name']."_".$svr[0]."'></td>"; + break; + case 'failover': + if($svr[0]!="") PRINT "<td><input type='radio' name='".$vipent['name']."'></td>"; + break; + } + PRINT "<td> {$svr[0]}:{$vipent['port']} </td></tr>"; } ?> </table> |