generate_device_link($drive), 'storage_descr' => $drive['storage_descr'], 'graph' => $mini_graph, 'storage_used' => $bar_link, 'storage_perc' => $perc . "%"); if ($_POST['view'] == "graphs") { $graph_array['height'] = "100"; $graph_array['width'] = "216"; $graph_array['to'] = $config['time']['now']; $graph_array['id'] = $drive['storage_id']; $graph_array['type'] = $graph_type; $return_data = true; include("includes/print-graphrow.inc.php"); unset($return_data); $response[] = array('hostname' => $graph_data[0], 'storage_descr' => $graph_data[1], 'graph' => $graph_data[2], 'storage_used' => $graph_data[3], 'storage_perc' => ''); } # endif graphs } $output = array('current'=>$current,'rowCount'=>$rowCount,'rows'=>$response,'total'=>$count); echo _json_encode($output);