diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-08-13 08:22:32 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-08-13 08:22:32 +0000 |
| commit | abaab90a1c9d3367f1ef636557cfe8e661716749 (patch) | |
| tree | 3e266e5523a635c45a7e7ef6d4571e7323f26065 /frontends/php/config.php | |
| parent | 8901654871973b4267f106a97183001189189c82 (diff) | |
| download | zabbix-abaab90a1c9d3367f1ef636557cfe8e661716749.tar.gz zabbix-abaab90a1c9d3367f1ef636557cfe8e661716749.tar.xz zabbix-abaab90a1c9d3367f1ef636557cfe8e661716749.zip | |
- 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/config.php')
| -rw-r--r-- | frontends/php/config.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/frontends/php/config.php b/frontends/php/config.php index 9e2ba870..a422878f 100644 --- a/frontends/php/config.php +++ b/frontends/php/config.php @@ -96,7 +96,7 @@ include_once "include/page_header.php"; } else { /* ADD */ if(count(get_accessible_nodes_by_user($USER_DETAILS,PERM_READ_WRITE,PERM_MODE_LT, - PERM_RES_IDS_ARRAY,$ZBX_CURNODEID))) + PERM_RES_IDS_ARRAY,get_current_nodeid()))) { access_deny(); } @@ -129,7 +129,7 @@ include_once "include/page_header.php"; elseif(isset($_REQUEST["save"])&&in_array($_REQUEST["config"],array(0,5,7))) { - 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(); /* OTHER ACTIONS */ @@ -211,7 +211,7 @@ include_once "include/page_header.php"; else { if(count(get_accessible_nodes_by_user($USER_DETAILS,PERM_READ_WRITE,PERM_MODE_LT, - PERM_RES_IDS_ARRAY,$ZBX_CURNODEID))) + PERM_RES_IDS_ARRAY,get_current_nodeid()))) { access_deny(); } @@ -233,7 +233,7 @@ include_once "include/page_header.php"; { $result = false; - if(($map_data = DBfetch(DBselect("select * from valuemaps where ".DBid2nodeid("valuemapid")."=".$ZBX_CURNODEID. + if(($map_data = DBfetch(DBselect('select * from valuemaps where '.DBin_node('valuemapid'). " and valuemapid=".$_REQUEST["valuemapid"])))) { $result = delete_valuemap($_REQUEST["valuemapid"]); @@ -303,9 +303,9 @@ include_once "include/page_header.php"; $table=new CTableInfo(S_NO_IMAGES_DEFINED); $table->setHeader(array(S_NAME,S_TYPE,S_IMAGE)); - $result=DBselect("select imageid,imagetype,name from images". - " where ".DBid2nodeid("imageid")."=".$ZBX_CURNODEID. - " order by name"); + $result=DBselect('select imageid,imagetype,name from images'. + ' where '.DBin_node('imageid'). + ' order by name'); while($row=DBfetch($result)) { if($row["imagetype"]==1) $imagetype=S_ICON; @@ -338,7 +338,7 @@ include_once "include/page_header.php"; $table = new CTableInfo(); $table->SetHeader(array(S_NAME, S_VALUE_MAP)); - $db_valuemaps = DBselect("select * from valuemaps where ".DBid2nodeid("valuemapid")."=".$ZBX_CURNODEID); + $db_valuemaps = DBselect('select * from valuemaps where '.DBin_node('valuemapid')); while($db_valuemap = DBfetch($db_valuemaps)) { $mappings_row = array(); |
