From 2df0add71a11f83a90a5cf5068b8458ec71fa519 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Thu, 10 Jun 2010 14:52:46 +0000 Subject: [PATCH] revert 'rrdtool -' change for now git-svn-id: http://www.observium.org/svn/observer/trunk@1129 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/graph.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/html/graph.php b/html/graph.php index 38a6f5080b..a634b9833c 100644 --- a/html/graph.php +++ b/html/graph.php @@ -58,9 +58,10 @@ if($_GET['debug']) { if($rrd_options) { if($_GET['debug']) { echo("
".$config['rrdtool'] . " graph $graphfile $rrd_options\n\n"); }
-    $thing = popen($config['rrdtool'] . " -",'w');
-    fputs($thing, "graph $graphfile $rrd_options");
-    pclose($thing);
+    $thing = shell_exec($config['rrdtool'] . " graph $graphfile $rrd_options");    
+#    $thing = popen($config['rrdtool'] . " -",'w');
+#    fputs($thing, "graph $graphfile $rrd_options");
+#    pclose($thing);
     if(is_file($graphfile)) {
       header('Content-type: image/png');
       $fd = fopen($graphfile,'r');fpassthru($fd);fclose($fd);