aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/graph.php
diff options
context:
space:
mode:
authorPim van den Berg2009-09-29 22:07:01 +0200
committerPim van den Berg2009-09-29 22:07:01 +0200
commitb1f866709a3ce30678e183e08d424247e761ca44 (patch)
treea52f5aea35f90c1a061929263ff8d0fb7db2542f /graph.php
parentprevent warning when no categories are defined (diff)
downloadapt-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 'graph.php')
-rw-r--r--graph.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/graph.php b/graph.php
index 4747552..cc3aeb1 100644
--- a/graph.php
+++ b/graph.php
@@ -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
14if (!preg_match('/^[a-z]+$/', $plugin)) { 14if (!preg_match('/^[a-z]+$/', $plugin)) {