TRUE]); include($config['html_dir'] . "/pages/device/overview/information_extended.inc.php"); echo generate_box_open(); // Only show graphs for device_permitted(), don't show device graphs to users who can only see a single entity. if (isset($config['os'][$device['os']]['graphs'])) { $graphs = $config['os'][$device['os']]['graphs']; } elseif (isset($device['os_group'], $config['os'][$device['os_group']]['graphs'])) { $graphs = $config['os'][$device['os_group']]['graphs']; } else { // Default group $graphs = $config['os_group']['default']['graphs']; } $graph_array = []; $graph_array['height'] = "100"; $graph_array['width'] = "213"; $graph_array['to'] = get_time(); $graph_array['device'] = $device['device_id']; $graph_array['type'] = "device_bits"; $graph_array['from'] = get_time('day'); $graph_array['legend'] = "no"; $graph_array['bg'] = "FFFFFF00"; // Preprocess device graphs array $graphs_enabled = []; foreach ($device['graphs'] as $graph) { if ($graph['enabled']) { $graphs_enabled[] = $graph['graph']; } } //r($graphs); //r($graphs_enabled); echo '