diff options
| author | Simon | 2011-03-25 15:51:56 +0100 |
|---|---|---|
| committer | Simon | 2011-03-25 15:51:56 +0100 |
| commit | fe944ac09029d3e173b629f99e0b8ef4d8212d0b (patch) | |
| tree | 1c080155e4ac6e5d0472fbca4b9b39a0ca375c27 /application/controllers/StatsController.php | |
| parent | debuglevel aus (diff) | |
| download | pbs2-fe944ac09029d3e173b629f99e0b8ef4d8212d0b.tar.gz pbs2-fe944ac09029d3e173b629f99e0b8ef4d8212d0b.tar.xz pbs2-fe944ac09029d3e173b629f99e0b8ef4d8212d0b.zip | |
gruppengraph nach einloggen in /user/
Diffstat (limited to 'application/controllers/StatsController.php')
| -rw-r--r-- | application/controllers/StatsController.php | 28 |
1 files changed, 28 insertions, 0 deletions
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); + } + } +} + |
