diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-05-07 01:44:13 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-05-07 01:44:13 +0000 |
commit | af45dc4751180ef0a8667d8c02796d41265cd4c6 (patch) | |
tree | e7d8c1179efa379683bfe99f5ec3a3114d8be9e7 /packages | |
parent | bd424c519e2311c2e4f59b9f68aaecb24918d0fa (diff) | |
download | pfsense-packages-af45dc4751180ef0a8667d8c02796d41265cd4c6.tar.gz pfsense-packages-af45dc4751180ef0a8667d8c02796d41265cd4c6.tar.bz2 pfsense-packages-af45dc4751180ef0a8667d8c02796d41265cd4c6.zip |
Use icons to show carp status
Diffstat (limited to 'packages')
-rw-r--r-- | packages/carp_status.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/packages/carp_status.php b/packages/carp_status.php index 9c9022b8..51404558 100644 --- a/packages/carp_status.php +++ b/packages/carp_status.php @@ -84,8 +84,10 @@ include("fbegin.inc"); <?php if($status == false) { + $carp_enabled = false; echo "<input type=\"submit\" name=\"disablecarp\" id=\"disablecarp\" value=\"Enable Carp\">"; } else { + $carp_enabled = true; echo "<input type=\"submit\" name=\"disablecarp\" id=\"disablecarp\" value=\"Disable Carp\">"; } ?> @@ -119,9 +121,19 @@ if($config['installedpackages']['carp']['config'] <> "") if(isset($carp['premption'])) $premption = "true"; else $premption = "false"; // if($synciface <> "") $sync_status = get_pfsync_interface_status($synciface); echo "<tr>"; + $align = "valign='middle'"; + if($carp_enabled == false) { + $icon = "<img {$align} src='/block.gif'>"; + } else { + if($status == "MASTER") { + $icon = "<img {$align} src='/pass.gif'>"; + } else { + $icon = "<img {$align} src='/pass_d.gif'>"; + } + } echo "<td class=\"listlr\"><center>" . $carp_int . " </td>"; echo "<td class=\"listlr\"><center>" . $ipaddress . " </td>"; - echo "<td class=\"listlr\"><center>" . $status . " </td>"; + echo "<td class=\"listlr\"><center>{$icon} " . $status . " </td>"; echo "</tr>"; } |