setMarkupEscaped(true); $ParsedownExtra = new ParsedownExtra(); if ( $page == "") { $page = "main"; } if ( $style == "") { if ( $site_style == "") { $site_style="site"; } } else { $site_style=$style; } $header = file_get_contents("$doc_root/includes/header.md"); $sidebar = file_get_contents("$doc_root/includes/sidebar.md"); $content = file_get_contents("$doc_root/articles/server.md"); $footer = file_get_contents("$doc_root/includes/footer.md"); print " $site_name - $page "; print "
"; echo $ParsedownExtra->text($content); // Monitoring section $hosts="all"; $f = fopen("$doc_root/report", "r"); echo "Last update: " . date ("H:i", filemtime('./report'))."

\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
Host Check Status
' . htmlspecialchars($cell) . '" .htmlspecialchars($cell) . "' . htmlspecialchars($cell) . '' . htmlspecialchars($cell) . "" .htmlspecialchars($cell) . "
\n"; fclose($f); // End monitoring section print "

"; ?>