aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/detail.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--detail.php23
1 files changed, 15 insertions, 8 deletions
diff --git a/detail.php b/detail.php
index 777294b..3cd7155 100644
--- a/detail.php
+++ b/detail.php
@@ -15,12 +15,12 @@ if (empty($_GET['y']))
15if ($CONFIG['graph_type'] == 'hybrid') 15if ($CONFIG['graph_type'] == 'hybrid')
16 $CONFIG['graph_type'] = 'canvas'; 16 $CONFIG['graph_type'] = 'canvas';
17 17
18$host = validate_get(GET('h'), 'host'); 18$host = GET('h');
19$plugin = validate_get(GET('p'), 'plugin'); 19$plugin = GET('p');
20$pinstance = validate_get(GET('pi'), 'pinstance'); 20$pinstance = GET('pi');
21$category = validate_get(GET('c'), 'category'); 21$category = GET('c');
22$type = validate_get(GET('t'), 'type'); 22$type = GET('t');
23$tinstance = validate_get(GET('ti'), 'tinstance'); 23$tinstance = GET('ti');
24$seconds = GET('s'); 24$seconds = GET('s');
25 25
26$selected_plugins = !$plugin ? $CONFIG['overview'] : array($plugin); 26$selected_plugins = !$plugin ? $CONFIG['overview'] : array($plugin);
@@ -30,6 +30,12 @@ html_start();
30printf('<fieldset id="%s">', htmlentities($host)); 30printf('<fieldset id="%s">', htmlentities($host));
31printf('<legend>%s</legend>', htmlentities($host)); 31printf('<legend>%s</legend>', htmlentities($host));
32 32
33 echo <<<EOT
34<input type="checkbox" id="navicon" class="navicon" />
35<label for="navicon"></label>
36
37EOT;
38
33if (!$plugins = collectd_plugins($host)) { 39if (!$plugins = collectd_plugins($host)) {
34 echo "Unknown host\n"; 40 echo "Unknown host\n";
35 return false; 41 return false;
@@ -40,7 +46,7 @@ plugins_list($host, $selected_plugins);
40echo '<div class="graphs">'; 46echo '<div class="graphs">';
41plugin_header($host, $plugin); 47plugin_header($host, $plugin);
42 48
43$args = $_GET; 49$args = GET();
44print '<ul class="time-range">' . "\n"; 50print '<ul class="time-range">' . "\n";
45foreach($CONFIG['term'] as $key => $s) { 51foreach($CONFIG['term'] as $key => $s) {
46 $args['s'] = $s; 52 $args['s'] = $s;
@@ -59,7 +65,8 @@ if ($CONFIG['graph_type'] == 'canvas') {
59} else { 65} else {
60 printf("<img src=\"%s%s\">\n", 66 printf("<img src=\"%s%s\">\n",
61 htmlentities($CONFIG['weburl']), 67 htmlentities($CONFIG['weburl']),
62 htmlentities(build_url('graph.php', $_GET))); 68 htmlentities(build_url('graph.php', GET()))
69 );
63} 70}
64echo '</div>'; 71echo '</div>';
65echo "</fieldset>\n"; 72echo "</fieldset>\n";