From beb7b8140c31f2c99166d00575fd5da2772168e8 Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 7 Jun 2010 19:17:00 +0000 Subject: Correctly control status of gateways. These code is tripled in these pages not sure what is the best solution. --- usr/local/www/status_gateways.php | 52 +++++++++++++-------------------------- 1 file changed, 17 insertions(+), 35 deletions(-) (limited to 'usr/local/www/status_gateways.php') diff --git a/usr/local/www/status_gateways.php b/usr/local/www/status_gateways.php index fa9aa72..eca1eec 100755 --- a/usr/local/www/status_gateways.php +++ b/usr/local/www/status_gateways.php @@ -42,7 +42,6 @@ require("guiconfig.inc"); $a_gateways = return_gateways_array(); - $gateways_status = array(); $gateways_status = return_gateways_status(); @@ -76,8 +75,7 @@ include("head.inc"); Status Description - @@ -92,35 +90,21 @@ include("head.inc"); "; + echo ""; ?>
$online "; - $lastchange = $gateways_status[$monitor]['lastcheck']; + echo "
$online "; + $lastchange = $gateway['lastcheck']; if(!empty($lastchange)) { $lastchange = explode(" ", $lastchange); array_shift($lastchange); @@ -130,13 +114,11 @@ include("head.inc"); } else { print "Gathering data"; } - PRINT "
- - - + -- cgit v1.1