$context_type = 'local'; $ext_ctxs = Session::get_external_ctxs($conn); if (!empty($ext_ctxs[$ctx])) { $is_ext_ctx = TRUE; $context_type = 'remote'; } $descr = $net->get_descr(); $icon = $net->get_html_icon(); $external = $net->get_external(); $asset_value = $net->get_asset_value(); $threshold_a = $net->get_threshold_a(); $threshold_c = $net->get_threshold_c(); $owner = $net->get_owner(); //Net Ips $ips = $net->get_ips(); $net_sensors = $net->get_sensors(); $sensors = $net_sensors->get_sensors(); //Net Scan $is_nagios_enabled = Asset_net_scan::is_plugin_in_net($conn, $id, 2007); //Closing database connection $db->close(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title><?php echo _('OSSIM Framework'); ?> </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<?php echo $asset->get_ips('string'); ?> </div> </div> <div> <div class='tray_title'> <?php echo _('Sensors'); ?> </div> <div class='tray_content'> <?php $asset_sensors_obj = $asset->get_sensors(); $asset_sensors = $asset_sensors_obj->get_sensors(); $sensors_string = ''; foreach ($asset_sensors as $sensor_id => $sensor_data) { if ($sensors_string != '') { $sensors_string .= ', '; } $sensors_string .= $sensor_data['ip'] . ' (' . $sensor_data['name'] . ')'; } echo $sensors_string; ?> </div> </div> </div>