aboutsummaryrefslogtreecommitdiffstats
path: root/packages/carp_status.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-05-07 01:44:13 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-05-07 01:44:13 +0000
commitaf45dc4751180ef0a8667d8c02796d41265cd4c6 (patch)
treee7d8c1179efa379683bfe99f5ec3a3114d8be9e7 /packages/carp_status.php
parentbd424c519e2311c2e4f59b9f68aaecb24918d0fa (diff)
downloadpfsense-packages-af45dc4751180ef0a8667d8c02796d41265cd4c6.tar.gz
pfsense-packages-af45dc4751180ef0a8667d8c02796d41265cd4c6.tar.bz2
pfsense-packages-af45dc4751180ef0a8667d8c02796d41265cd4c6.zip
Use icons to show carp status
Diffstat (limited to 'packages/carp_status.php')
-rw-r--r--packages/carp_status.php14
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 . "&nbsp;</td>";
echo "<td class=\"listlr\"><center>" . $ipaddress . "&nbsp;</td>";
- echo "<td class=\"listlr\"><center>" . $status . "&nbsp;</td>";
+ echo "<td class=\"listlr\"><center>{$icon}&nbsp;&nbsp;" . $status . "&nbsp;</td>";
echo "</tr>";
}