diff options
author | Pim van den Berg | 2009-09-29 22:07:01 +0200 |
---|---|---|
committer | Pim van den Berg | 2009-09-29 22:07:01 +0200 |
commit | b1f866709a3ce30678e183e08d424247e761ca44 (patch) | |
tree | a52f5aea35f90c1a061929263ff8d0fb7db2542f /detail.php | |
parent | prevent warning when no categories are defined (diff) | |
download | apt-panopticon_cgp-b1f866709a3ce30678e183e08d424247e761ca44.zip apt-panopticon_cgp-b1f866709a3ce30678e183e08d424247e761ca44.tar.gz apt-panopticon_cgp-b1f866709a3ce30678e183e08d424247e761ca44.tar.bz2 apt-panopticon_cgp-b1f866709a3ce30678e183e08d424247e761ca44.tar.xz |
make width and heigth of graphs configurable
These configuration options have been added:
- width
- heigth
- detail-width
- detail-heigth
Diffstat (limited to '')
-rw-r--r-- | detail.php | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -4,6 +4,12 @@ require_once 'conf/common.inc.php'; | |||
4 | require_once 'inc/html.inc.php'; | 4 | require_once 'inc/html.inc.php'; |
5 | require_once 'inc/collectd.inc.php'; | 5 | require_once 'inc/collectd.inc.php'; |
6 | 6 | ||
7 | # use width/height from config if nothing is given | ||
8 | if (empty($_GET['x'])) | ||
9 | $_GET['x'] = $CONFIG['detail-width']; | ||
10 | if (empty($_GET['y'])) | ||
11 | $_GET['y'] = $CONFIG['detail-heigth']; | ||
12 | |||
7 | $host = $_GET['h']; | 13 | $host = $_GET['h']; |
8 | $plugin = $_GET['p']; | 14 | $plugin = $_GET['p']; |
9 | $pinstance = $_GET['pi']; | 15 | $pinstance = $_GET['pi']; |