From 68f291ffe2e8e6e5d9470076365fd1127e7f3655 Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 9 Sep 2010 21:25:49 +0000 Subject: Ticket #876. Show all gateways even though apinger is not monitoring them, for various reasons, this removes user confusion in the status pages. --- usr/local/www/widgets/widgets/gateways.widget.php | 60 +++++++++++++---------- 1 file changed, 35 insertions(+), 25 deletions(-) (limited to 'usr/local/www/widgets/widgets/gateways.widget.php') diff --git a/usr/local/www/widgets/widgets/gateways.widget.php b/usr/local/www/widgets/widgets/gateways.widget.php index 07b2397..bd643fb 100644 --- a/usr/local/www/widgets/widgets/gateways.widget.php +++ b/usr/local/www/widgets/widgets/gateways.widget.php @@ -30,8 +30,9 @@ require_once("guiconfig.inc"); require_once("pfsense-utils.inc"); require_once("functions.inc"); +$a_gateways = return_gateways_array(); $gateways_status = array(); -$gateways_status = return_gateways_status(); +$gateways_status = return_gateways_status(true); $counter = 1; @@ -44,50 +45,59 @@ $counter = 1; Loss Status - $gateway) { ?> - + $gateway) { ?> - + - - - + + + - - - + + + - "; - $counter++; - ?> + } + } else { + $online = "Unknown"; + $bgcolor = "lightgray"; + } + echo ""; + $counter++; + ?>
$online
$online
-- cgit v1.1