summaryrefslogtreecommitdiffstats
path: root/application/controllers/StatsController.php
diff options
context:
space:
mode:
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);
+ }
+ }
}