-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
46 lines (33 loc) · 737 Bytes
/
index.php
File metadata and controls
46 lines (33 loc) · 737 Bytes
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<html>
<head>
<title>ServerMonitor</title>
<style type="text/css">
img {
margin: 2px;
}
</style>
</head>
<body>
<h2>Monitored Servers</h2>
<?php
// hasdf
require_once( "inc/config.inc.php" );
// Print "menu"
echo '<a href="?p=day">Day</a> - <a href="?p=week">Week</a> - <a href="?p=month">Month</a> - <a href="?p=year">Year</a> Stats <br /><br />';
// Print list
$p = htmlspecialchars( $_GET['p'] );
if( $p == "" )
$p = "day";
echo '<p>Showing stats from this '.$p.'.</p>';
$nl = false;
foreach( $servers as $s ) {
echo '<img src="graph.php?id='.$s->id.'&period='.$p.'" />';
if( $nl ) {
echo ' <br />'; $nl=false;
} else {
echo ''; $nl=true;
}
}
?>
</body>
</html>