Bug #1155 ยป status_gateways.diff
| status_gateways.php 2011-01-03 14:58:31.000000000 +0100 | ||
|---|---|---|
|
$online = gettext("Offline");
|
||
|
$bgcolor = "lightcoral";
|
||
|
} elseif (stristr($status['status'], "loss")) {
|
||
|
$online = gettext("Warning, Packetloss");
|
||
|
$online = gettext("Warning, Packetloss").': '.$status['loss'];
|
||
|
$bgcolor = "khaki";
|
||
|
} elseif (stristr($status['status'], "delay")) {
|
||
|
$online = gettext("Warning, Latency");
|
||
|
$online = gettext("Warning, Latency").': '.$status['delay'];
|
||
|
$bgcolor = "khaki";
|
||
|
} elseif ($status['status'] == "none") {
|
||
|
$online = gettext("Online");
|
||
| ... | ... | |
|
$bgcolor = "lightgray";
|
||
|
}
|
||
|
echo "<tr><td bgcolor=\"$bgcolor\" > $online </td><td>";
|
||
|
$lastchange = $gateway['lastcheck'];
|
||
|
$lastchange = $gateways_status[$gname]['lastcheck'];
|
||
|
if(!empty($lastchange)) {
|
||
|
$lastchange = explode(" ", $lastchange);
|
||
|
array_shift($lastchange);
|
||