diff options
Diffstat (limited to 'detail.php')
-rw-r--r-- | detail.php | 23 |
1 files changed, 15 insertions, 8 deletions
@@ -15,12 +15,12 @@ if (empty($_GET['y'])) | |||
15 | if ($CONFIG['graph_type'] == 'hybrid') | 15 | if ($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(); | |||
30 | printf('<fieldset id="%s">', htmlentities($host)); | 30 | printf('<fieldset id="%s">', htmlentities($host)); |
31 | printf('<legend>%s</legend>', htmlentities($host)); | 31 | printf('<legend>%s</legend>', htmlentities($host)); |
32 | 32 | ||
33 | echo <<<EOT | ||
34 | <input type="checkbox" id="navicon" class="navicon" /> | ||
35 | <label for="navicon"></label> | ||
36 | |||
37 | EOT; | ||
38 | |||
33 | if (!$plugins = collectd_plugins($host)) { | 39 | if (!$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); | |||
40 | echo '<div class="graphs">'; | 46 | echo '<div class="graphs">'; |
41 | plugin_header($host, $plugin); | 47 | plugin_header($host, $plugin); |
42 | 48 | ||
43 | $args = $_GET; | 49 | $args = GET(); |
44 | print '<ul class="time-range">' . "\n"; | 50 | print '<ul class="time-range">' . "\n"; |
45 | foreach($CONFIG['term'] as $key => $s) { | 51 | foreach($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 | } |
64 | echo '</div>'; | 71 | echo '</div>'; |
65 | echo "</fieldset>\n"; | 72 | echo "</fieldset>\n"; |