$conn = $db->connect(); $id = GET('id'); $msg = GET('msg'); ossim_valid($id, OSS_HEX, 'illegal:' . _('Asset group ID')); if (ossim_error()) { echo ossim_error(_('Error! Asset group not found')); exit; } $asset_group = new Asset_group($id); $asset_group->can_i_edit($conn); $asset_group->load_from_db($conn); //Getting group data $id = $asset_group->get_id(); $name = $asset_group->get_name(); $owner = $asset_group->get_owner(); $descr = $asset_group->get_descr(); $threshold_a = $asset_group->get_threshold('a'); $threshold_c = $asset_group->get_threshold('c'); $nagios = Asset_group_scan::is_plugin_in_group($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"/> <meta http-equiv="Pragma" content="no-cache"/>
<?php $owner = $group->get_owner() != '' ? $group->get_owner() : '<i>' . _('unknown') . '</i>'; echo Util::utf8_encode2($owner); ?> </div> </div> <div id='tray_host_description' class='tray_section'> <div class='tray_title'> <?php echo _('Description'); ?> </div> <div class='tray_content'> <?php $descr = $group->get_descr() != "" ? $group->get_descr() : '<i>' . _('none') . '</i>'; echo Util::utf8_encode2($descr); ?> </div> </div> <div class='tray_button_list'> <input type='button' class='tray_button' onclick='link_to("<?php echo $group_id; ?> ");' value="<?php echo _('Details'); ?> "> </div>