Exemple #1
0
* On Debian GNU/Linux systems, the complete text of the GNU General
* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
****************************************************************************/
/**
* Class and Function List:
* Function list:
* Classes list:
*/
require_once 'classes/Security.inc';
require_once "classes/Repository.inc";
require_once "ossim_db.inc";
$db = new ossim_db();
$conn = $db->connect();
$repository_list = Repository::get_repository_linked($conn, GET('keyname'), GET('type'));
if (count($repository_list) > 0) {
    ?>
	<!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="../style/style.css"/>
		<style type='text/css'>
			body { margin: 0px;}
		</style>
Exemple #2
0
$docs = 0;
if ($plugin_id != '' && $plugin_sid != '') {
    $db_kdb = new ossim_db();
    $conn_kdb = $db_kdb->connect();
    //Taxonomy
    $ptype = Product_type::get_product_type_by_plugin($conn_kdb, $plugin_id);
    $cat = Category::get_category_subcategory_by_plugin($conn_kdb, $plugin_id, $plugin_sid);
    $keyname = (empty($ptype['id']) ? 0 : $ptype['id']) . "##" . (empty($cat['cid']) ? 0 : $cat['cid']) . "##" . (empty($cat['scid']) ? 0 : $cat['scid']);
    $repository_list['taxonomy'] = Repository::get_repository_linked($conn_kdb, $keyname, 'taxonomy');
    //Directive
    if ($plugin_id == '1505') {
        $repository_list['directive'] = Repository::get_linked_by_directive($conn_kdb, $plugin_sid);
    }
    //Plugin SID
    $keyname = "{$plugin_sid}##{$plugin_id}";
    $repository_list['plugin_sid'] = Repository::get_repository_linked($conn_kdb, $keyname, 'plugin_sid');
    $docs = count($repository_list['directive']) + count($repository_list['plugin_sid']) + count($repository_list['taxonomy']);
    $db_kdb->close($conn_kdb);
}
?>

<!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 _('AlienVault ' . (Session::is_pro() ? 'USM' : 'OSSIM'));
?>
 </title>
	
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
	<meta http-equiv="Pragma" content="no-cache"/>
Exemple #3
0
*
*/
require_once 'av_init.php';
Session::logcheck("configuration-menu", "Osvdb");
$type = GET('type');
$keyname = GET('keyname');
$nosize = GET('nosize') ? GET('nosize') : 0;
ossim_valid($type, OSS_INPUT, 'Illegal:' . _("Link Type"));
ossim_valid($keyname, OSS_HEX, 'Illegal:' . _("Keyname"));
ossim_valid($nosize, OSS_DIGIT, OSS_NULLABE, 'Illegal:' . _("nosize parameter"));
if (ossim_error()) {
    die(ossim_error());
}
$db = new ossim_db();
$conn = $db->connect();
$repository_list = Repository::get_repository_linked($conn, $keyname, $type);
$vars = array();
switch ($type) {
    case 'host':
        try {
            $host = Asset_host::get_object($conn, $keyname);
        } catch (Exception $e) {
            $host = NULL;
        }
        if (is_object($host)) {
            $vars['_HOST_NAME'] = $host->get_name();
            $vars['_HOST_IP'] = $host->get_ips();
            $vars['_HOST_FQDN'] = $host->get_fqdns();
            $vars['_HOST_DESC'] = $host->get_descr();
        }
        break;