From b1f866709a3ce30678e183e08d424247e761ca44 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Tue, 29 Sep 2009 22:07:01 +0200 Subject: make width and heigth of graphs configurable These configuration options have been added: - width - heigth - detail-width - detail-heigth --- graph.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'graph.php') 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']; $pinstance = $_GET['pi']; $type = $_GET['t']; $tinstance = $_GET['ti']; -$width = $_GET['x']; -$heigth = $_GET['y']; +$width = empty($_GET['x']) ? $CONFIG['width'] : $_GET['x']; +$heigth = empty($_GET['y']) ? $CONFIG['heigth'] : $_GET['y']; $seconds = $_GET['s']; if (!preg_match('/^[a-z]+$/', $plugin)) { -- cgit v1.1