From c31d8e9959efade437fb0a661f6f44329cc74664 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 19 Apr 2011 15:43:00 +0200 Subject: Code autoformatiert --- application/controllers/StatsController.php | 34 ++++++++++++++--------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'application/controllers/StatsController.php') diff --git a/application/controllers/StatsController.php b/application/controllers/StatsController.php index 0b180e7..05762a4 100644 --- a/application/controllers/StatsController.php +++ b/application/controllers/StatsController.php @@ -13,39 +13,39 @@ class StatsController extends Zend_Controller_Action { - public function init() - { - $this->_helper->layout->disableLayout(); + public function init() + { + $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(); - } - - public function graphgroupAction(){ - - $userIDsNamespace = Zend_Session::namespaceGet('userIDs'); - + } + + public function graphgroupAction(){ + + $userIDsNamespace = Zend_Session::namespaceGet('userIDs'); + if(isset($userIDsNamespace['groupID'])){ header("Content-Type: image/png"); - header("Expires: 0"); + header("Expires: 0"); $n = new Pbs_Graph(); - + $level = $this->_request->getParam('level'); if(is_numeric($level) && $level != ''){ $n->setHiglightLevel($level); } $groupID = $userIDsNamespace['groupID']; - + $group = $this->_request->getParam('group'); if((Pbs_Acl::checkRight('gsdo') || Pbs_Acl::checkRight('gsdog')) && is_numeric($group)){ $groupID = $group; } - + $child = $this->_request->getParam('child'); if(Pbs_Acl::checkRight('glk') && $child != ''){ $n->newChild($child); } - - echo $n->graph($groupID); - } - } + + echo $n->graph($groupID); + } + } } -- cgit v1.2.3-55-g7522