Example #1
0
$ctx = $net->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 = $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');
Example #2
0
?>
<div id='tray_container'>

    <div class="tray_triangle"></div>
    
    <div id='tray_host_owner' class='tray_section'>
        
        <div>
            <div class='tray_title'>
                <?php 
echo _('Owner');
?>
            </div>
            <div class='tray_content'>
                <?php 
$owner = $asset->get_owner() != '' ? $asset->get_owner() : '<i>' . _('unknown') . '</i>';
echo Util::utf8_encode2($owner);
?>
            </div>
        </div>
        
        <div>
            <div class='tray_title'>
                <?php 
echo _('CIDR');
?>
            </div>
            
            <div class='tray_content'>
                <?php 
echo $asset->get_ips('string');