diff options
Diffstat (limited to 'detail.php')
-rw-r--r-- | detail.php | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -17,8 +17,6 @@ $pinstance = validate_get(GET('pi'), 'pinstance'); | |||
17 | $category = validate_get(GET('c'), 'category'); | 17 | $category = validate_get(GET('c'), 'category'); |
18 | $type = validate_get(GET('t'), 'type'); | 18 | $type = validate_get(GET('t'), 'type'); |
19 | $tinstance = validate_get(GET('ti'), 'tinstance'); | 19 | $tinstance = validate_get(GET('ti'), 'tinstance'); |
20 | $width = GET('x'); | ||
21 | $heigth = GET('y'); | ||
22 | $seconds = GET('s'); | 20 | $seconds = GET('s'); |
23 | 21 | ||
24 | $selected_plugins = !$plugin ? $CONFIG['overview'] : array($plugin); | 22 | $selected_plugins = !$plugin ? $CONFIG['overview'] : array($plugin); |
@@ -49,7 +47,12 @@ foreach($CONFIG['term'] as $key => $s) { | |||
49 | } | 47 | } |
50 | print "</ul>\n"; | 48 | print "</ul>\n"; |
51 | 49 | ||
52 | printf('<img src="%s%s">'."\n", $CONFIG['weburl'], build_url('graph.php', $_GET)); | 50 | if ($CONFIG['graph_type'] == 'canvas') { |
51 | chdir($CONFIG['webdir']); | ||
52 | include $CONFIG['webdir'].'/plugin/'.$plugin.'.php'; | ||
53 | } else { | ||
54 | printf('<img src="%s%s">'."\n", $CONFIG['weburl'], build_url('graph.php', $_GET)); | ||
55 | } | ||
53 | echo '</div>'; | 56 | echo '</div>'; |
54 | 57 | ||
55 | html_end(); | 58 | html_end(); |