From fe944ac09029d3e173b629f99e0b8ef4d8212d0b Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 25 Mar 2011 15:51:56 +0100 Subject: gruppengraph nach einloggen in /user/ --- application/controllers/StatsController.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 application/controllers/StatsController.php (limited to 'application/controllers/StatsController.php') 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 @@ +_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); + } + } +} + -- cgit v1.2.3-55-g7522