diff options
| author | Simon | 2011-03-25 17:39:32 +0100 |
|---|---|---|
| committer | Simon | 2011-03-25 17:39:32 +0100 |
| commit | efa31df88b14a885ce993f682a323bd0ce3b468e (patch) | |
| tree | 1bad22da0e06e712feca0c034c3ea19537aaebde /application/controllers/StatsController.php | |
| parent | gruppengraph nach einloggen in /user/ (diff) | |
| download | pbs2-efa31df88b14a885ce993f682a323bd0ce3b468e.tar.gz pbs2-efa31df88b14a885ce993f682a323bd0ce3b468e.tar.xz pbs2-efa31df88b14a885ce993f682a323bd0ce3b468e.zip | |
Nicht benötigte Tabellen entfernt, Diagramm wird automatisch generiert, Stats-Controller um Url für Bilder
Diffstat (limited to 'application/controllers/StatsController.php')
| -rw-r--r-- | application/controllers/StatsController.php | 10 |
1 files changed, 3 insertions, 7 deletions
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; } } } |
