diff options
author | Pim van den Berg | 2013-05-18 16:05:43 +0200 |
---|---|---|
committer | Pim van den Berg | 2013-05-18 16:08:09 +0200 |
commit | 5793a8cd003643974206e44ea752ab0966cfa8c0 (patch) | |
tree | 387a6a327af9834f2986ad3316be2183949d897a /detail.php | |
parent | jsrrdgraph: RrdGraph.js: fix undefined 2nd argument of RrdVdef function (diff) | |
download | apt-panopticon_cgp-5793a8cd003643974206e44ea752ab0966cfa8c0.zip apt-panopticon_cgp-5793a8cd003643974206e44ea752ab0966cfa8c0.tar.gz apt-panopticon_cgp-5793a8cd003643974206e44ea752ab0966cfa8c0.tar.bz2 apt-panopticon_cgp-5793a8cd003643974206e44ea752ab0966cfa8c0.tar.xz |
integrate jsrrdgraph in CGP
Diffstat (limited to '')
-rw-r--r-- | detail.php | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -47,7 +47,12 @@ foreach($CONFIG['term'] as $key => $s) { | |||
47 | } | 47 | } |
48 | print "</ul>\n"; | 48 | print "</ul>\n"; |
49 | 49 | ||
50 | 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 | } | ||
51 | echo '</div>'; | 56 | echo '</div>'; |
52 | 57 | ||
53 | html_end(); | 58 | html_end(); |