'; if (isset($stats['policies'])) { $summary .= count($stats['policies']) . " x " . html_print_image($hack_metaconsole . 'images/policies.png',true) . ' '. __('Policies') . "
"; } if (isset($stats['groups'])) { // TODO: GET STATUS OF THE GROUPS AND ADD IT TO SUMMARY $summary .= count($stats['groups']) . " x " . html_print_image($hack_metaconsole . 'images/group.png',true) . ' ' . __('Groups') . "
"; } if (isset($stats['agents'])) { // TODO: GET STATUS OF THE AGENTS AND ADD IT TO SUMMARY $summary .= count($stats['agents']) . " x " . html_print_image($hack_metaconsole . 'images/bricks.png',true) . ' ' . __('Agents') . "
"; } if (isset($stats['modules'])) { // TODO: GET STATUS OF THE MODULES AND ADD IT TO SUMMARY $summary .= count($stats['modules']) . " x " . html_print_image($hack_metaconsole . 'images/brick.png',true) . ' ' . __('Modules') . "
"; } echo '

'.__('Map summary').'

'.$summary.''; break; case 'get_networkmap_summary_pandora_server': $id_server = (int)get_parameter('id_server', 0); $stats = get_parameter('stats', array()); $stats = json_decode(base64_decode($stats),true); $metaconsole = (bool)get_parameter('metaconsole', false); $hack_metaconsole = ''; if ($metaconsole) { $hack_metaconsole = '../../'; } $summary = '
'; if (isset($stats['agents'])) { $summary .= count($stats['agents']) . " x " . html_print_image($hack_metaconsole . 'images/bricks.png',true) . ' ' . __('Agents') . "
"; } echo '

'.__('Map summary').'

'.$summary.''; break; } ?>