Commit 669dd77a authored by Stuart John Watson's avatar Stuart John Watson

php nows displays online correctlly with colouring

parent f3e9e90a
......@@ -21,7 +21,13 @@
$elem = $matches[1];
$key = $matches[2];
$val = $thisGame[$key];
if (is_array($val)){
if ($key == "_online"){
if($val){
$val = "<span style='color:green'>Online</span>";
} else {
$val = "<span style='color:red'>Offline</span>";
}
} else if (is_array($val)){
$nVal = "";
foreach($val as $e){
$nVal .= "<li>$e</li>";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment