From af45dc4751180ef0a8667d8c02796d41265cd4c6 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 7 May 2005 01:44:13 +0000 Subject: Use icons to show carp status --- packages/carp_status.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'packages/carp_status.php') 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"); "; } else { + $carp_enabled = true; echo ""; } ?> @@ -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 ""; + $align = "valign='middle'"; + if($carp_enabled == false) { + $icon = ""; + } else { + if($status == "MASTER") { + $icon = ""; + } else { + $icon = ""; + } + } echo "
" . $carp_int . " "; echo "
" . $ipaddress . " "; - echo "
" . $status . " "; + echo "
{$icon}  " . $status . " "; echo ""; } -- cgit v1.2.3