} ?> </div> </div> <div id='tray_host_description' class='tray_section'> <div class='tray_title'> <?php echo _('Description'); ?> </div> <div class='tray_content'> <?php $descr = $asset->get_descr() != '' ? $asset->get_descr() : '-'; ?> <textarea readonly="readonly"><?php echo Util::utf8_encode2($descr); ?> </textarea> </div> </div> <div id='tray_host_description' class='tray_section'> <div id='tray_host_os'> <div class='tray_title'> <?php
$ext_ips[$_ip] = array('ip' => $ips[0], 'mac' => NULL); $asset->set_ips($ext_ips); } } /* echo '<pre>'; print_r($asset); echo '</pre>'; */ //Getting asset data $id = $asset->get_id(); $name = $asset->get_name(); $_ips = $asset->get_ips(); $ips = $_ips->get_ips(); $ips = array_keys($ips); $descr = html_entity_decode($asset->get_descr(), ENT_QUOTES, 'UTF-8'); $fqdns = $asset->get_fqdns(); $external = $asset->get_external(); $location = $asset->get_location(); $asset_value = $asset->get_asset_value(); $os_data = $asset->get_os(); $os = $os_data['value']; $model = $asset->get_model(); //CTX name $ctx_name = empty($ctx) ? _('None') : Session::get_entity_name($conn, $ctx); $ctx_name = Util::utf8_encode2($ctx_name); //Icon $icon = $asset->get_icon(); $icon = !empty($icon) ? 'data:image/png;base64,' . base64_encode($icon) : ''; //Server related to CTX $server_obj = Server::get_server_by_ctx($conn, $ctx);
//All sensors list($all_sensors, $s_total) = Av_sensor::get_list($conn, '', FALSE, TRUE); //Getting host data $id = $host->get_id(); $name = $host->get_name(); //CTX $ctx = $host->get_ctx(); $ctx_name = empty($ctx) ? _('None') : Session::get_entity_name($conn, $ctx); $is_ext_ctx = FALSE; $context_type = 'local'; $ext_ctxs = Session::get_external_ctxs($conn); if (!empty($ext_ctxs[$ctx])) { $is_ext_ctx = TRUE; $context_type = 'remote'; } $descr = $host->get_descr(); $icon = $host->get_html_icon(); $fqdns = $host->get_fqdns(); $external = $host->get_external(); $location = $host->get_location(); $latitude = $location['lat']; $longitude = $location['lon']; $zoom = $location['zoom']; $asset_value = $host->get_asset_value(); $threshold_a = $host->get_threshold_a(); $threshold_c = $host->get_threshold_c(); //Host Ips $host_ips = $host->get_ips(); $ips = $host_ips->get_ips('string'); //Host Sensors $host_sensors = $host->get_sensors();