ossim_valid($id, OSS_HEX, 'illegal:' . _('Host ID')); if (ossim_error()) { echo ossim_error(_('Error! Host not found')); exit; } /**************************************************** ******************** Host data ********************* ****************************************************/ //Database connection $db = new ossim_db(); $conn = $db->connect(); $host = new Asset_host($conn, $id); $host->load_from_db($conn); //CTX $ctx = $host->get_ctx(); $is_nagios_enabled = $host->is_nagios_enabled($conn); $is_ext_ctx = FALSE; $ext_ctxs = Session::get_external_ctxs($conn); if (!empty($ext_ctxs[$ctx])) { $is_ext_ctx = TRUE; } //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>