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 /graph.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-- | graph.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -7,8 +7,8 @@ $plugin = $_GET['p']; | |||
7 | $pinstance = $_GET['pi']; | 7 | $pinstance = $_GET['pi']; |
8 | $type = $_GET['t']; | 8 | $type = $_GET['t']; |
9 | $tinstance = $_GET['ti']; | 9 | $tinstance = $_GET['ti']; |
10 | $width = $_GET['x']; | 10 | $width = empty($_GET['x']) ? $CONFIG['width'] : $_GET['x']; |
11 | $heigth = $_GET['y']; | 11 | $heigth = empty($_GET['y']) ? $CONFIG['heigth'] : $_GET['y']; |
12 | $seconds = $_GET['s']; | 12 | $seconds = $_GET['s']; |
13 | 13 | ||
14 | if (!preg_match('/^[a-z]+$/', $plugin)) { | 14 | if (!preg_match('/^[a-z]+$/', $plugin)) { |