summaryrefslogtreecommitdiffstats
path: root/application/controllers/StatsController.php
diff options
context:
space:
mode:
authorSimon2011-04-19 15:43:00 +0200
committerSimon2011-04-19 15:43:00 +0200
commitc31d8e9959efade437fb0a661f6f44329cc74664 (patch)
tree48afaad36266c251f3df4928ed18d6e09478413c /application/controllers/StatsController.php
parentAufgerÀumt und verschoben (diff)
downloadpbs2-c31d8e9959efade437fb0a661f6f44329cc74664.tar.gz
pbs2-c31d8e9959efade437fb0a661f6f44329cc74664.tar.xz
pbs2-c31d8e9959efade437fb0a661f6f44329cc74664.zip
Code autoformatiert
Diffstat (limited to 'application/controllers/StatsController.php')
-rw-r--r--application/controllers/StatsController.php34
1 files changed, 17 insertions, 17 deletions
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);
+ }
+ }
}