diff options
Diffstat (limited to '')
-rw-r--r-- | detail.php | 17 |
1 files changed, 9 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'), 'h'); | 18 | $host = GET('h'); |
19 | $plugin = validate_get(GET('p'), 'p'); | 19 | $plugin = GET('p'); |
20 | $pinstance = validate_get(GET('pi'), 'pi'); | 20 | $pinstance = GET('pi'); |
21 | $category = validate_get(GET('c'), 'c'); | 21 | $category = GET('c'); |
22 | $type = validate_get(GET('t'), 't'); | 22 | $type = GET('t'); |
23 | $tinstance = validate_get(GET('ti'), 'ti'); | 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); |
@@ -40,7 +40,7 @@ plugins_list($host, $selected_plugins); | |||
40 | echo '<div class="graphs">'; | 40 | echo '<div class="graphs">'; |
41 | plugin_header($host, $plugin); | 41 | plugin_header($host, $plugin); |
42 | 42 | ||
43 | $args = $_GET; | 43 | $args = GET(); |
44 | print '<ul class="time-range">' . "\n"; | 44 | print '<ul class="time-range">' . "\n"; |
45 | foreach($CONFIG['term'] as $key => $s) { | 45 | foreach($CONFIG['term'] as $key => $s) { |
46 | $args['s'] = $s; | 46 | $args['s'] = $s; |
@@ -59,7 +59,8 @@ if ($CONFIG['graph_type'] == 'canvas') { | |||
59 | } else { | 59 | } else { |
60 | printf("<img src=\"%s%s\">\n", | 60 | printf("<img src=\"%s%s\">\n", |
61 | htmlentities($CONFIG['weburl']), | 61 | htmlentities($CONFIG['weburl']), |
62 | htmlentities(build_url('graph.php', $_GET))); | 62 | htmlentities(build_url('graph.php', GET())) |
63 | ); | ||
63 | } | 64 | } |
64 | echo '</div>'; | 65 | echo '</div>'; |
65 | echo "</fieldset>\n"; | 66 | echo "</fieldset>\n"; |