-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard.php
More file actions
26 lines (20 loc) · 786 Bytes
/
dashboard.php
File metadata and controls
26 lines (20 loc) · 786 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
<?php
error_reporting(E_ALL & ~E_NOTICE);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
require_once 'conf/common.inc.php';
require_once 'inc/html.inc.php';
require_once 'inc/collectd.inc.php';
html_start();
print '<div class="dashboard cols-' . $CONFIG['dashboard']['cols'] . '">';
foreach ($CONFIG['dashboard']['graphs'] as $plugin) {
print '<div class="dashboard-graph">';
printf('<h2><a href="%s">%s</a></h2>'."\n", $CONFIG['weburl'].'host.php?h='.htmlentities($plugin['h']), get_host_alias($plugin['h']));
printf('<a href="%s">'."\n", build_url('detail.php', $plugin));
printf('<img src="%s">'."\n", build_url('graph.php', $plugin));
print '</a>';
print '</div>';
}
print '</div>';
html_end();
?>