\n"; $graphs = db_fetch_assoc("select g.id,g.title,g.imageformatid, t.name from rrd_graph g left join def_image_type t on g.imageformatid=t.id and g.export=\"on\" order by g.title"); if (sizeof($graphs) > 0) { foreach ($graphs as $graph) { $graph_data_array["graph_width"] = $array_settings[width]; $graph_data_array["graph_height"] = $array_settings[height]; $graph_data_array["use"] = true; $graph_data_array["graph_nolegend"] = true; $graph_data_array["graph_start"] = -$array_settings[time_span]; $image_filename = "prev_".$graph[ID] .".". $graph[Name]; $graph_data_array["export"] = true; $graph_data_array["export_filename"] = $image_filename; /* use rraid of 1 (daily) for now as default */ rrdtool_function_graph($graph[ID],1,$graph_data_array); print "rrdtool Graph\n"; $k++; if ($k % $array_settings[column_number] == 0) { print " \n"; } } print "\n"; include_once ("include/bottom_footer.php");