From abaab90a1c9d3367f1ef636557cfe8e661716749 Mon Sep 17 00:00:00 2001 From: osmiy Date: Mon, 13 Aug 2007 08:22:32 +0000 Subject: - 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 --- frontends/php/sysmaps.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontends/php/sysmaps.php') diff --git a/frontends/php/sysmaps.php b/frontends/php/sysmaps.php index 22728360..2749b671 100644 --- a/frontends/php/sysmaps.php +++ b/frontends/php/sysmaps.php @@ -75,7 +75,7 @@ include_once "include/page_header.php"; add_audit_if($result,AUDIT_ACTION_UPDATE,AUDIT_RESOURCE_MAP,'Name ['.$_REQUEST['name'].']'); show_messages($result,"Network map updated","Cannot update network map"); } else { - if(count(get_accessible_nodes_by_user($USER_DETAILS,PERM_READ_WRITE,PERM_MODE_LT,PERM_RES_IDS_ARRAY,$ZBX_CURNODEID))) + if(count(get_accessible_nodes_by_user($USER_DETAILS,PERM_READ_WRITE,PERM_MODE_LT,PERM_RES_IDS_ARRAY,get_current_nodeid()))) access_deny(); $result=add_sysmap($_REQUEST["name"],$_REQUEST["width"],$_REQUEST["height"], @@ -116,7 +116,7 @@ include_once "include/page_header.php"; $table->SetHeader(array(S_NAME,S_WIDTH,S_HEIGHT,S_MAP)); $result = DBselect("select sysmapid,name,width,height from sysmaps ". - " where ".DBid2nodeid("sysmapid")."=".$ZBX_CURNODEID." order by name"); + ' where '.DBin_node('sysmapid').' order by name'); while($row=DBfetch($result)) { if(!sysmap_accessiable($row["sysmapid"],PERM_READ_WRITE)) continue; -- cgit