diff options
| author | Pim van den Berg | 2014-11-11 23:01:15 +0100 |
|---|---|---|
| committer | Pim van den Berg | 2014-11-11 23:01:15 +0100 |
| commit | 82d88098f4203cf7402d4faf5ad100cada70efaf (patch) | |
| tree | 0c7e63a0e91493837dad20a802529b3051bd670a /inc/html.inc.php | |
| parent | type/base: allow rrdtool graph -l (lower-limit) to be configured via config o... (diff) | |
| download | apt-panopticon_cgp-82d88098f4203cf7402d4faf5ad100cada70efaf.zip apt-panopticon_cgp-82d88098f4203cf7402d4faf5ad100cada70efaf.tar.gz apt-panopticon_cgp-82d88098f4203cf7402d4faf5ad100cada70efaf.tar.bz2 apt-panopticon_cgp-82d88098f4203cf7402d4faf5ad100cada70efaf.tar.xz | |
make detail page accessible when using "canvas" graph_type
Closes #106
Diffstat (limited to '')
| -rw-r--r-- | inc/html.inc.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/inc/html.inc.php b/inc/html.inc.php index 161af73..bc22ba3 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php | |||
| @@ -338,7 +338,15 @@ function graphs_from_plugin($host, $plugin, $overview=false) { | |||
| 338 | isset($items['t']) ? $_GET['t'] = $items['t'] : $_GET['t'] = ''; | 338 | isset($items['t']) ? $_GET['t'] = $items['t'] : $_GET['t'] = ''; |
| 339 | isset($items['ti']) ? $_GET['ti'] = $items['ti'] : $_GET['ti'] = ''; | 339 | isset($items['ti']) ? $_GET['ti'] = $items['ti'] : $_GET['ti'] = ''; |
| 340 | $_GET['s'] = $time; | 340 | $_GET['s'] = $time; |
| 341 | $uuid = generate_uuid(); | ||
| 342 | printf('<canvas id="%s" class="rrd">', $uuid); | ||
| 341 | include $CONFIG['webdir'].'/graph.php'; | 343 | include $CONFIG['webdir'].'/graph.php'; |
| 344 | print '</canvas>'; | ||
| 345 | printf('<a href="%s%s"><img id="%s-img" alt="graph"></a>'."\n", | ||
| 346 | htmlentities($CONFIG['weburl']), | ||
| 347 | htmlentities(build_url('detail.php', $items, $time)), | ||
| 348 | $uuid | ||
| 349 | ); | ||
| 342 | } else { | 350 | } else { |
| 343 | printf('<a href="%1$s%2$s"><img src="%1$s%3$s"></a>'."\n", | 351 | printf('<a href="%1$s%2$s"><img src="%1$s%3$s"></a>'."\n", |
| 344 | htmlentities($CONFIG['weburl']), | 352 | htmlentities($CONFIG['weburl']), |
