summaryrefslogtreecommitdiffstats
path: root/frontends/php/report5.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-01-30 15:58:48 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-01-30 15:58:48 +0000
commite3693c12ab9e2bf934e1cb8194c1be5fe3650d86 (patch)
tree6d3ce9d0adf5ff71f0d4f4415a4a9854651840d8 /frontends/php/report5.php
parent042eb9179036479789a63b7eda13c84734a741e7 (diff)
downloadzabbix-e3693c12ab9e2bf934e1cb8194c1be5fe3650d86.tar.gz
zabbix-e3693c12ab9e2bf934e1cb8194c1be5fe3650d86.tar.xz
zabbix-e3693c12ab9e2bf934e1cb8194c1be5fe3650d86.zip
- fixed permissions for triggers (Eugene)
- developed 'mass update' functionality for items (Eugene) git-svn-id: svn://svn.zabbix.com/trunk@3772 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/report5.php')
-rw-r--r--frontends/php/report5.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/frontends/php/report5.php b/frontends/php/report5.php
index 8136c3ee..75da6155 100644
--- a/frontends/php/report5.php
+++ b/frontends/php/report5.php
@@ -64,18 +64,21 @@ include_once "include/page_header.php";
default: $time_dif=24*3600; break;
}
- $denyed_hosts = get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_ONLY, PERM_MODE_LT);
+ $accessible_hosts = get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_ONLY);
$result=DBselect("select h.host, t.triggerid, t.description, t.priority, count(distinct e.eventid) as count ".
" from hosts h, triggers t, functions f, items i, events e where ".
" h.hostid = i.hostid and i.itemid = f.itemid and t.triggerid=f.triggerid and ".
" t.triggerid=e.triggerid and e.clock>".(time()-$time_dif).
- " and h.hostid not in (".$denyed_hosts.") and ".DBid2nodeid("e.triggerid")."=".$ZBX_CURNODEID.
+ " and h.hostid in (".$accessible_hosts.") and ".DBid2nodeid("e.triggerid")."=".$ZBX_CURNODEID.
" group by h.host,t.triggerid,t.description,t.priority ".
" order by count desc, h.host, t.description, t.triggerid", 100);
while($row=DBfetch($result))
{
+ if(!check_right_on_trigger_by_triggerid(null, $row['triggerid'], $accessible_hosts))
+ continue;
+
$table->addRow(array(
$row["host"],
expand_trigger_description_by_data($row),