diff options
| author | michael pereira | 2011-03-25 17:24:17 +0100 |
|---|---|---|
| committer | michael pereira | 2011-03-25 17:24:17 +0100 |
| commit | 9615b25b5afd08263a09ae9ef71daeb9e545b6e5 (patch) | |
| tree | 98ccbd71450ca558bb4ebddeef5845b562e53fd8 /application/controllers | |
| parent | fixes (diff) | |
| parent | gruppengraph nach einloggen in /user/ (diff) | |
| download | pbs2-9615b25b5afd08263a09ae9ef71daeb9e545b6e5.tar.gz pbs2-9615b25b5afd08263a09ae9ef71daeb9e545b6e5.tar.xz pbs2-9615b25b5afd08263a09ae9ef71daeb9e545b6e5.zip | |
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/controllers')
| -rw-r--r-- | application/controllers/IndexController.php | 7 | ||||
| -rw-r--r-- | application/controllers/StatsController.php | 28 |
2 files changed, 32 insertions, 3 deletions
diff --git a/application/controllers/IndexController.php b/application/controllers/IndexController.php index d26f8d4..cf6673c 100644 --- a/application/controllers/IndexController.php +++ b/application/controllers/IndexController.php @@ -14,12 +14,13 @@ class IndexController extends Zend_Controller_Action $_SESSION['postdata'] = $_POST; $this->_redirect('/fbgui/index/index'); } - - + // action body - } + + } + } diff --git a/application/controllers/StatsController.php b/application/controllers/StatsController.php new file mode 100644 index 0000000..024eacd --- /dev/null +++ b/application/controllers/StatsController.php @@ -0,0 +1,28 @@ +<?php + +class StatsController extends Zend_Controller_Action +{ + + public function init() + { + $this->_helper->layout->disableLayout(); + $this->_helper->viewRenderer->setNoRender(); + } + + public function graphgroupAction(){ + + $userIDsNamespace = Zend_Session::namespaceGet('userIDs'); + + if($userIDsNamespace['groupID'] !=''){ + header("Content-Type: image/png"); + + $n = new Pbs_Graph(); + $str = 'echo "'; + $str .= $n->graph($userIDsNamespace['groupID']); + $str .= '" | dot -Tpng '; + + passthru($str); + } + } +} + |
