summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorEirik Oeverby <ltning@anduin.net>2010-08-10 22:42:12 +0200
committerEirik Oeverby <ltning@anduin.net>2010-08-10 22:42:12 +0200
commitcdad3139803d36c5fbdced07d368235d5d13773d (patch)
tree7a7ce1e3e3ac0d5c26a0592177d70744ef3300cb /usr/local/www
parentcc7ed71def2c4b02b477121cfc66dc7a0fa48c2a (diff)
downloadpfsense-cdad3139803d36c5fbdced07d368235d5d13773d.zip
pfsense-cdad3139803d36c5fbdced07d368235d5d13773d.tar.gz
Fixed LB pool status display to match current config
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/status_lb_pool.php16
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>
OpenPOWER on IntegriCloud