return false; } }); }); </script> </head> <body> <div id='kdb_list_container'> <?php if ($docs == 0) { echo "<div id='no_kdb'>" . _('No Documents Found') . "</div>"; } else { $parser = new KDB_Parser(); $parser->load_session_vars($vars); if (count($repository_list['taxonomy']) > 0) { $doc = array_shift($repository_list['taxonomy']); } elseif (count($repository_list['directive']) > 0) { $doc = array_shift($repository_list['directive']); } elseif (count($repository_list['plugin_sid']) > 0) { $doc = array_shift($repository_list['plugin_sid']); } ?> <div id='kdb_container'>
if (isset($title) || isset($doctext)) { ossim_valid($vuser, OSS_USER, OSS_NULLABLE, 'illegal:' . _("User")); ossim_valid($ventity, OSS_HEX, OSS_NULLABLE, 'illegal:' . _("Entity")); ossim_valid($title, OSS_TEXT, 'illegal:' . _("Tittle")); ossim_valid($keywords, OSS_TEXT, OSS_NULLABLE, 'illegal:' . _("Keywords")); if (ossim_error()) { $info_error[] = ossim_get_error(); ossim_clean_error(); $error = TRUE; } if ($doctext == "") { $info_error[] = _("Error in the 'text' field (missing required field)"); $error = TRUE; } if ($error == FALSE) { $parser = new KDB_Parser(); $parser->proccess_file($doctext); $info_error = $parser->is_valid(); if (count($info_error) > 0) { $error = TRUE; } } if ($error == FALSE) { $ctx = ""; if ($vuser != "") { $in_charge = $vuser; } elseif ($ventity != "") { $in_charge = $ventity; } else { $in_charge = 0; }
if (isset($title) || isset($doctext)) { ossim_valid($vuser, OSS_USER, OSS_NULLABLE, 'illegal:' . _("User")); ossim_valid($ventity, OSS_HEX, OSS_NULLABLE, 'illegal:' . _("Entity")); ossim_valid($title, OSS_TEXT, 'illegal:' . _("Tittle")); ossim_valid($keywords, OSS_TEXT, OSS_NULLABLE, 'illegal:' . _("Keywords")); if (ossim_error()) { $info_error[] = ossim_get_error(); ossim_clean_error(); $error = true; } if ($doctext == "") { $info_error[] = _("Error in the 'text' field (missing required field)"); $error = true; } if ($error == false) { $parser = new KDB_Parser(); $parser->proccess_file($doctext, $id_document); $info_error = $parser->is_valid(); if (count($info_error) > 0) { $error = true; } } if ($error == false) { Repository::update($conn, $id_document, $title, $doctext, $keywords); } } $sintax = new KDB_Sintax(); $labels_condition = $sintax->_labels_condition; $labels_actions = $sintax->_labels_actions; $labels_operators = $sintax->_labels_operators; $labels_variables = $sintax->_labels_variables;
$net = NULL; } if (is_object($net)) { $vars['_NET_CIDR'] = $net->get_ips(); $vars['_NET_NAME'] = $net->get_name(); } break; case 'host_group': $vars['_HG_NAME'] = Asset_group::get_name_by_id($conn, $keyname); break; case 'net_group': $vars['_NG_NAME'] = Net_group::get_name_by_id($conn, $keyname); break; } if (count($repository_list) > 0) { $parser = new KDB_Parser(); $parser->load_session_vars($vars); ?> <!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 gettext("OSSIM Framework"); ?> </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <meta http-equiv="Pragma" CONTENT="no-cache"/> <link rel="stylesheet" type="text/css" href="/ossim/style/av_common.css?t=<?php echo Util::get_css_id(); ?>