diff --git a/server.php b/server.php index 724f157..3df132e 100644 --- a/server.php +++ b/server.php @@ -23,7 +23,56 @@

Server Status

 
-

(Coming soon)

+

+ +\n"; +echo ""; +echo " + + + + "; +while (($line = fgetcsv($f)) !== false) { + echo ""; + if ($hosts == "failed" ) { + if ($line[2] == "FAILED") { + foreach ($line as $cell) { + if ($cell == "FAILED") { + echo ''; + } + else { + echo ""; + } + } + } + } + elseif ($hosts == "all") { + foreach ($line as $cell) { + if ($cell == "FAILED") { + echo ''; + } + elseif ($cell=="GOOD") { + echo '"; + } + else { + echo ""; + } + } + } + echo "\n"; +} +echo "\n
HostCheckStatus
' . htmlspecialchars($cell) . '" .htmlspecialchars($cell) . "' . htmlspecialchars($cell) . '' . htmlspecialchars($cell) . "" .htmlspecialchars($cell) . "
\n"; +fclose($f); +?> + + +