本文整理汇总了PHP中Tags::get_list方法的典型用法代码示例。如果您正苦于以下问题:PHP Tags::get_list方法的具体用法?PHP Tags::get_list怎么用?PHP Tags::get_list使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tags
的用法示例。
在下文中一共展示了Tags::get_list方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GET
$query = GET('query') != "" ? GET('query') : "";
$directive_id = GET('directive_id');
$sensor_query = GET('sensor_query');
$tag = GET('tag');
$num_events = GET('num_events');
$num_events_op = GET('num_events_op');
$params_string = "order={$order}&src_ip={$src_ip}&dst_ip={$dst_ip}&inf={$inf}&sup={$sup}&hide_closed={$hide_closed}&query={$query}&directive_id={$directive_id}&date_from={$date_from}&date_to={$date_to}&no_resolv={$no_resolv}&sensor_query={$sensor_query}&tag={$tag}";
$sensors = $hosts = $ossim_servers = array();
list($sensors, $hosts, $icons) = Host::get_ips_and_hostname($conn, true);
/*$networks = "";
$_nets = Net::get_all($conn);
$_nets_ips = $_host_ips = $_host = array();
foreach ($_nets as $_net) $_nets_ips[] = $_net->get_ips();
$networks = implode(",",$_nets_ips);*/
$hosts_ips = array_keys($hosts);
$tags = Tags::get_list($conn);
$tags_html = Tags::get_list_html($conn);
$date_from = GET('date_from');
$date_to = GET('date_to');
$num_alarms_page = GET('num_alarms_page');
$param_unique_id = GET('unique_id');
ossim_valid($order, OSS_ALPHA, OSS_SPACE, OSS_SCORE, OSS_NULLABLE, '.', 'illegal:' . _("order"));
ossim_valid($delete, OSS_DIGIT, OSS_NULLABLE, 'illegal:' . _("delete"));
ossim_valid($close, OSS_DIGIT, OSS_NULLABLE, 'illegal:' . _("close"));
ossim_valid($open, OSS_DIGIT, OSS_NULLABLE, 'illegal:' . _("open"));
ossim_valid($delete_day, OSS_ALPHA, OSS_SPACE, OSS_PUNC, OSS_NULLABLE, 'illegal:' . _("delete_day"));
ossim_valid($query, OSS_ALPHA, OSS_PUNC_EXT, OSS_SPACE, OSS_NULLABLE, 'illegal:' . _("query"));
ossim_valid($autorefresh, OSS_ALPHA, OSS_NULLABLE, 'illegal:' . _("autorefresh"));
ossim_valid($refresh_time, OSS_DIGIT, OSS_NULLABLE, 'illegal:' . _("refresh_time"));
ossim_valid($directive_id, OSS_DIGIT, OSS_NULLABLE, 'illegal:' . _("directive_id"));
ossim_valid($src_ip, OSS_IP_ADDRCIDR, OSS_NULLABLE, 'illegal:' . _("src_ip"));
示例2: explode
?>
</th>
</tr>
<?php
if ($msg != "") {
?>
<tr><td class="nobborder"><?php
echo $msg;
?>
</td></tr>
<?php
}
$tags = Tags::get_list($conn);
if ($id != "") {
$aux_tag = Tags::get_list($conn, "WHERE id={$id}");
$tag_selected = $aux_tag[$id]->get_bgcolor() . "_" . $aux_tag[$id]->get_fgcolor();
$bgcolor = "#" . $aux_tag[$id]->get_bgcolor();
$fgcolor = "#" . $aux_tag[$id]->get_fgcolor();
$tag_name = $aux_tag[$id]->get_name();
$italic = $aux_tag[$id]->get_italic();
$bold = $aux_tag[$id]->get_bold();
} else {
$tag_selected = "dee5f2_5a6986";
$aux = explode("_", $tag_selected);
$bgcolor = "#" . $aux[0];
$fgcolor = "#" . $aux[1];
$tag_name = "";
$italic = "";
$bold = "";
}
示例3: _
$_home_src = Asset_host::get_extended_name($conn, $geoloc, $alarm->get_src_ip(), $ctx, $event_info["src_host"], $event_info["src_net"]);
$src_home = $_home_src['is_internal'] ? "<img src='/ossim/alarm/style/img/home24.png' class='home_img' /> " : '';
/* Destination */
$_home_dst = Asset_host::get_extended_name($conn, $geoloc, $alarm->get_dst_ip(), $ctx, $event_info["dst_host"], $event_info["dst_net"]);
$dst_home = $_home_dst['is_internal'] ? "<img src='/ossim/alarm/style/img/home24.png' class='home_img' /> " : '';
$promiscous_title = _(is_promiscous(count($src['ip']), count($dst['ip']), $_home_src['is_internal'], $_home_dst['is_internal']));
if (count($src['ip']) > 1 || count($dst['ip']) > 1) {
$promiscous_icon = '/ossim/alarm/style/img/promiscuous.png';
} else {
$promiscous_icon = '/ossim/alarm/style/img/npromiscuous.png';
}
$tooltip = '';
//Tags related to the alarm
$tags = $alarm->get_tags();
if (!empty($tags)) {
$tags_list = Tags::get_list($conn);
$tlist = array();
foreach ($tags as $id_tag) {
$tag = $tags_list[$id_tag];
if (is_object($tag)) {
$tlist[] = "<div>" . $tag->get_name() . "</div>";
}
}
$tooltip = '<strong>' . _('Labels Applied') . ': </strong><br>' . implode('<br>', $tlist);
$tooltip = !empty($plugin_sid) ? '<br><br>' . $tooltip : $tooltip;
}
$directive_name = $alarm_name['name'];
if ($alarm_name["id"] != '') {
$intent = file_exists("/usr/share/ossim/www/alarm/style/img/" . $alarm_name["id"] . ".png") ? "<img src='style/img/" . $alarm_name["id"] . ".png' border='0' class='img_intent' title='" . $alarm_name["kingdom"] . "'>" : $alarm_name["kingdom"] . " —";
$alarm_title = $intent . " " . $alarm_name["category"] . " — " . $alarm_name["subcategory"];
} else {