コード例 #1
0
ファイル: newpolicyform.php プロジェクト: jackpf/ossim-arc
}
if ($insert != "") {
    if ($policies = Policy::get_list($conn, " AND id=UNHEX('{$insert}')")) {
        $order = $policies[0]->get_order();
        $group = $policies[0]->get_group();
        if (GET('insertafter') != "") {
            $order++;
            // insert after
        }
    }
}
$sign_line = FALSE;
if (!$open_source) {
    $def_server = Server::get_default_server($conn, FALSE);
    $server_h = Server::get_my_hierarchy($conn, $def_server);
    $sign_line = Policy::is_allowed_sign_line($conn, $def_server);
}
$tooltip_sing_line = _('This policy cannot use Log Line Sign because the AlienVault Server only allows Log Block Sign. In order to use this option, you can modify the Log Sign method in Deployment -> Servers.');
$paths = Asset::get_path_url(FALSE);
$asset_form_url = $paths['asset']['views'] . 'asset_form.php';
$net_form_url = $paths['network']['views'] . 'net_form.php';
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title><?php 
echo _("OSSIM Framework");
?>
</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
コード例 #2
0
ファイル: getpolicy.php プロジェクト: jackpf/ossim-arc
if ($policy_list[0]) {
    $total = $policy_list[0]->get_foundrows();
    if ($total == 0) {
        $total = count($policy_list);
    }
} else {
    $total = 0;
}
$engine = is_ctx_engine($conn, $ctx) ? 'engine' : 'ctx';
$xml .= "<rows>\n";
$xml .= "<page>{$page}</page>\n";
$xml .= "<total>{$total}</total>\n";
if ($total > 0) {
    list($conds_list, $pol_conds) = Policy::get_conditions_hash($conn, $ctx);
}
$server_sign_line = Policy::is_allowed_sign_line($conn);
$value_any = '<span style="color:#AAA;font-weight:bold">' . _('ANY') . '</span>';
foreach ($policy_list as $policy) {
    $id = $policy->get_id();
    $order = $policy->get_order();
    $xml .= "<row id='{$id}' col_order='{$order}' col_type='{$engine}'>";
    $tabla = "<img src='../pixmaps/tables/cross.png' border='0'/>";
    $active = !$policy->get_active() ? $tabla : str_replace("cross", "tick", $tabla);
    $xml .= "<cell><![CDATA[" . $active . "]]></cell>";
    $xml .= "<cell><![CDATA[" . $order . "]]></cell>";
    $pname = $policy->get_descr();
    $pname = empty($pname) ? _("Unknown") : "<a href='newpolicyform.php?ctx={$ctx}&id={$id}'>{$pname}</a>";
    /*Warning Tooltip */
    $tooltip = '';
    //Role list
    $role_list = $policy->get_role($conn);