summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
authorSimon2011-03-25 17:39:32 +0100
committerSimon2011-03-25 17:39:32 +0100
commitefa31df88b14a885ce993f682a323bd0ce3b468e (patch)
tree1bad22da0e06e712feca0c034c3ea19537aaebde /application/controllers
parentgruppengraph nach einloggen in /user/ (diff)
downloadpbs2-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')
-rw-r--r--application/controllers/StatsController.php10
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;
}
}
}