Ticket #457: sample_server_status.patch

File sample_server_status.patch, 993 bytes (added by Simek, 17 years ago)
  • sample_server_status.php

     
    9494    $htmlstring = "<tr><td>$function</td><td>$host</td>";
    9595    if ($running == 1) {
    9696        $xmlstring .= "      <status>running</status>\n";
    97         $htmlstring .= "<td bgcolor=00ff00>Running</td>\n";
     97        $htmlstring .= "<td class=\"running\">Running</td>\n";
    9898    } elseif ($running == 0) {
    9999        $xmlstring .= "      <status>not running</status>\n";
    100         $htmlstring .= "<td bgcolor=ff0000>Not Running</td>\n";
     100        $htmlstring .= "<td class=\"notrunning\">Not Running</td>\n";
    101101    } else {
    102102        $xmlstring .= "      <status>disabled</status>\n";
    103         $htmlstring .= "<td bgcolor=ff8800>Disabled</td>\n";
     103        $htmlstring .= "<td class=\"disabled\">Disabled</td>\n";
    104104    }
    105105    $xmlstring .= "    </daemon>\n";
    106106    $htmlstring .= "</tr>\n";