diff options
author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-01-16 14:28:28 +0000 |
---|---|---|
committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-01-16 14:28:28 +0000 |
commit | 819114c84816786fa5bd16c933e0ea8d6d09f9d9 (patch) | |
tree | 6f5188b3404ffafd72c5aaee61386c285f692771 /frontends/php/popup.php | |
parent | 32e5c61ed67fadf2cf7670a1f5bfa55bf4831c9c (diff) | |
download | zabbix-819114c84816786fa5bd16c933e0ea8d6d09f9d9.tar.gz zabbix-819114c84816786fa5bd16c933e0ea8d6d09f9d9.tar.xz zabbix-819114c84816786fa5bd16c933e0ea8d6d09f9d9.zip |
- [ZBX-253] fixes problem in frontend with long int values (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5259 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/popup.php')
-rw-r--r-- | frontends/php/popup.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/frontends/php/popup.php b/frontends/php/popup.php index 7213ca68..f6d525aa 100644 --- a/frontends/php/popup.php +++ b/frontends/php/popup.php @@ -156,7 +156,7 @@ include_once "include/page_header.php"; $allowed_item_types = array(ITEM_TYPE_ZABBIX,ITEM_TYPE_SIMPLE,ITEM_TYPE_INTERNAL,ITEM_TYPE_AGGREGATE); - if(isset($_REQUEST['itemtype']) && !in_array($_REQUEST['itemtype'], $allowed_item_types)) + if(isset($_REQUEST['itemtype']) && !str_in_array($_REQUEST['itemtype'], $allowed_item_types)) unset($_REQUEST['itemtype']); check_fields($fields); @@ -224,12 +224,12 @@ include_once "include/page_header.php"; if($real_hosts) array_push($validation_param, "real_hosts"); - if(in_array($srctbl,array("triggers","logitems","items"))) + if(str_in_array($srctbl,array("triggers","logitems","items"))) { array_push($validation_param, "always_select_first_host"); validate_group_with_host(PERM_READ_LIST,$validation_param); } - elseif(in_array($srctbl,array('hosts','templates','host_templates'))) + elseif(str_in_array($srctbl,array('hosts','templates','host_templates'))) { validate_group(PERM_READ_LIST,$validation_param); } @@ -246,7 +246,7 @@ include_once "include/page_header.php"; } else { - if(in_array($srctbl,array('hosts','host_group','triggers','logitems','items', + if(str_in_array($srctbl,array('hosts','host_group','triggers','logitems','items', 'applications','screens','graphs','simple_graph', 'sysmaps','plain_text','screens2','overview','host_group_scr'))) { @@ -266,7 +266,7 @@ include_once "include/page_header.php"; if(!isset($ok)) $nodeid = get_current_nodeid(); unset($ok); - if(in_array($srctbl,array('hosts','templates','triggers','logitems','items','applications','host_templates','graphs','simple_graph','plain_text'))) + if(str_in_array($srctbl,array('hosts','templates','triggers','logitems','items','applications','host_templates','graphs','simple_graph','plain_text'))) { $groupid = get_request('groupid',get_profile('web.popup.groupid',0)); @@ -289,7 +289,7 @@ include_once "include/page_header.php"; if(!isset($ok) || $groupid == 0) unset($groupid); unset($ok); } - if(in_array($srctbl,array("help_items"))) + if(str_in_array($srctbl,array("help_items"))) { $itemtype = get_request("itemtype",get_profile("web.popup.itemtype",0)); $cmbTypes = new CComboBox("itemtype",$itemtype,"submit()"); @@ -297,7 +297,7 @@ include_once "include/page_header.php"; $cmbTypes->AddItem($type, item_type2str($type)); $frmTitle->AddItem(array(S_TYPE,SPACE,$cmbTypes)); } - if(in_array($srctbl,array("triggers","logitems","items",'applications','graphs','simple_graph','plain_text'))) + if(str_in_array($srctbl,array("triggers","logitems","items",'applications','graphs','simple_graph','plain_text'))) { $hostid = get_request("hostid",get_profile("web.popup.hostid",0)); $cmbHosts = new CComboBox("hostid",$hostid,"submit()"); @@ -332,7 +332,7 @@ include_once "include/page_header.php"; unset($ok); } - if(in_array($srctbl,array("triggers","hosts"))) + if(str_in_array($srctbl,array("triggers","hosts"))) { $btnEmpty = new CButton("empty",S_EMPTY, get_window_opener($dstfrm, $dstfld1, 0). @@ -513,7 +513,7 @@ include_once "include/page_header.php"; $form->AddItem($table); $form->Show(); } - elseif(in_array($srctbl,array("host_group"))) + elseif(str_in_array($srctbl,array("host_group"))) { $accessible_groups = get_accessible_groups_by_user($USER_DETAILS,PERM_READ_ONLY); @@ -536,7 +536,7 @@ include_once "include/page_header.php"; } $table->Show(); } - elseif(in_array($srctbl,array('host_templates'))) + elseif(str_in_array($srctbl,array('host_templates'))) { $table = new CTableInfo(S_NO_TEMPLATES_DEFINED); $table->SetHeader(array(S_NAME)); |