コード例 #1
0
//Database connection
$db = new ossim_db();
$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>