diff options
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; } } } |
