From efa31df88b14a885ce993f682a323bd0ce3b468e Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 25 Mar 2011 17:39:32 +0100 Subject: Nicht benötigte Tabellen entfernt, Diagramm wird automatisch generiert, Stats-Controller um Url für Bilder --- application/controllers/StatsController.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'application/controllers/StatsController.php') diff --git a/application/controllers/StatsController.php b/application/controllers/StatsController.php index 024eacd..3aee1d2 100644 --- a/application/controllers/StatsController.php +++ b/application/controllers/StatsController.php @@ -14,14 +14,10 @@ class StatsController extends Zend_Controller_Action $userIDsNamespace = Zend_Session::namespaceGet('userIDs'); if($userIDsNamespace['groupID'] !=''){ - header("Content-Type: image/png"); - + header("Content-Type: image/png"); $n = new Pbs_Graph(); - $str = 'echo "'; - $str .= $n->graph($userIDsNamespace['groupID']); - $str .= '" | dot -Tpng '; - - passthru($str); + $str = $n->graph($userIDsNamespace['groupID']); + echo $str; } } } -- cgit v1.2.3-55-g7522