-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatus.php
26 lines (25 loc) · 839 Bytes
/
status.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
// include general functions
include_once('inc/functions.inc.php');
// check login
if (isset($_SESSION['user'])) {
try {
// spawn servertest object
include_once('inc/head.inc.php');
print("<h2>Probe status</h2>");
print("<hr />");
print("<table summary=\"overview\">");
$status = $_SESSION['db']->getProbeResponse($_GET['id']);
print("<tr><td>Status</td><td>".$status['type']."</td></tr>");
print("<tr><td>Message</td><td>".$status['text']."</td></tr>");
print("<tr><td>Timestamp</td><td>".$status['timestamp']."</td></tr>");
print("</table>");
include_once('inc/foot.inc.php');
} catch (Exception $ex) {
include_once('inc/head.inc.php');
print("<h2><span class=\"badnews\">Error</h2><hr />");
print($ex->getMessage()."\n");
include_once('inc/foot.inc.php');
}
}
?>