summaryrefslogtreecommitdiffstats
path: root/frontends/php/chart2.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-08-13 08:22:32 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-08-13 08:22:32 +0000
commitabaab90a1c9d3367f1ef636557cfe8e661716749 (patch)
tree3e266e5523a635c45a7e7ef6d4571e7323f26065 /frontends/php/chart2.php
parent8901654871973b4267f106a97183001189189c82 (diff)
- merger rev. 4546:4547 of branches/1.4.j [developed data monitoring of multiple nodes]
git-svn-id: svn://svn.zabbix.com/trunk@4549 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/chart2.php')
-rw-r--r--frontends/php/chart2.php15
1 files changed, 7 insertions, 8 deletions
diff --git a/frontends/php/chart2.php b/frontends/php/chart2.php
index 315044ce..1873500b 100644
--- a/frontends/php/chart2.php
+++ b/frontends/php/chart2.php
@@ -54,14 +54,13 @@ include_once 'include/page_header.php';
$denyed_hosts = get_accessible_hosts_by_user($USER_DETAILS, PERM_READ_ONLY, PERM_MODE_LT);
if( !($db_data = DBfetch(DBselect('SELECT g.*,h.host,h.hostid '.
- ' FROM graphs g '.
- ' LEFT JOIN graphs_items gi ON g.graphid=gi.graphid '.
- ' LEFT JOIN items i ON gi.itemid=i.itemid '.
- ' LEFT JOIN hosts h ON i.hostid=h.hostid '.
- ' WHERE g.graphid='.$_REQUEST['graphid'].
- /* ' and '.DBid2nodeid('g.graphid').'='.$ZBX_CURNODEID. */ /* NOTE: the chart can display any accesiable graph! */
- ' AND ( h.hostid not in ('.$denyed_hosts.') '.
- ' OR h.hostid is NULL) '))))
+ ' FROM graphs g '.
+ ' LEFT JOIN graphs_items gi ON g.graphid=gi.graphid '.
+ ' LEFT JOIN items i ON gi.itemid=i.itemid '.
+ ' LEFT JOIN hosts h ON i.hostid=h.hostid '.
+ ' WHERE g.graphid='.$_REQUEST['graphid'].
+ ' AND ( h.hostid not in ('.$denyed_hosts.') '.
+ ' OR h.hostid is NULL) '))))
{
access_deny();
}