Ticket #457: sample_server_status.patch
File sample_server_status.patch, 993 bytes (added by , 17 years ago) |
---|
-
sample_server_status.php
94 94 $htmlstring = "<tr><td>$function</td><td>$host</td>"; 95 95 if ($running == 1) { 96 96 $xmlstring .= " <status>running</status>\n"; 97 $htmlstring .= "<td bgcolor=00ff00>Running</td>\n";97 $htmlstring .= "<td class=\"running\">Running</td>\n"; 98 98 } elseif ($running == 0) { 99 99 $xmlstring .= " <status>not running</status>\n"; 100 $htmlstring .= "<td bgcolor=ff0000>Not Running</td>\n";100 $htmlstring .= "<td class=\"notrunning\">Not Running</td>\n"; 101 101 } else { 102 102 $xmlstring .= " <status>disabled</status>\n"; 103 $htmlstring .= "<td bgcolor=ff8800>Disabled</td>\n";103 $htmlstring .= "<td class=\"disabled\">Disabled</td>\n"; 104 104 } 105 105 $xmlstring .= " </daemon>\n"; 106 106 $htmlstring .= "</tr>\n";