diff options
Diffstat (limited to 'usr/local/www/includes/functions.inc.php')
-rw-r--r-- | usr/local/www/includes/functions.inc.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr/local/www/includes/functions.inc.php b/usr/local/www/includes/functions.inc.php index b6afbff..b209641 100644 --- a/usr/local/www/includes/functions.inc.php +++ b/usr/local/www/includes/functions.inc.php @@ -42,19 +42,19 @@ function get_gatewaystats() { switch(strtolower($gws['status'])) { case "none": $online = "Online"; - $bgcolor = "lightgreen"; + $bgcolor = "#90EE90"; // lightgreen break; case "down": $online = "Offline"; - $bgcolor = "lightcoral"; + $bgcolor = "#F08080"; // lightcoral break; case "delay": $online = "Latency"; - $bgcolor = "khaki"; + $bgcolor = "#F0E68C"; // khaki break; case "loss": $online = "Packetloss"; - $bgcolor = "khaki"; + $bgcolor = "#F0E68C"; // khaki break; default: $online = "Pending"; @@ -65,10 +65,10 @@ function get_gatewaystats() { $gws['delay'] = "~"; $gws['loss'] = "~"; $online = "Unknown"; - $bgcolor = "lightblue"; + $bgcolor = "#ADD8E6"; // lightblue } $data .= ($online == "Pending") ? "{$online},{$online}," : "{$gws['delay']},{$gws['loss']},"; - $data .= "<table><tr><td bgcolor=\"$bgcolor\" > $online </td></td></tr></table>"; + $data .= "<table><tr><td bgcolor=\"$bgcolor\"> $online </td></td></tr></table>"; } return $data; } @@ -312,4 +312,4 @@ function get_interfacestatus() { return $data; } -?> +?>
\ No newline at end of file |