summaryrefslogtreecommitdiffstats
path: root/frontends/php/include
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-12-07 14:03:27 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-12-07 14:03:27 +0000
commitabace169fdc81d2f83c84fd29b7e6a8c75c0e5d3 (patch)
tree21bb9d6bec76c86039660dbbeab8250d00dd2e64 /frontends/php/include
parent9d01e6f52cd54727a3337df573e7043ad779fb06 (diff)
- removed bulkloader (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3574 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
-rw-r--r--frontends/php/include/bulkloader.inc.php90
-rw-r--r--frontends/php/include/locales/en_gb.inc.php17
-rw-r--r--frontends/php/include/page_header.php1
3 files changed, 0 insertions, 108 deletions
diff --git a/frontends/php/include/bulkloader.inc.php b/frontends/php/include/bulkloader.inc.php
deleted file mode 100644
index 7db0f10c..00000000
--- a/frontends/php/include/bulkloader.inc.php
+++ /dev/null
@@ -1,90 +0,0 @@
-<?php
-/*
-** ZABBIX
-** Copyright (C) 2000-2005 SIA Zabbix
-**
-** This program is free software; you can redistribute it and/or modify
-** it under the terms of the GNU General Public License as published by
-** the Free Software Foundation; either version 2 of the License, or
-** (at your option) any later version.
-**
-** This program is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** GNU General Public License for more details.
-**
-** You should have received a copy of the GNU General Public License
-** along with this program; if not, write to the Free Software
-** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-**/
-require_once "include/config.inc.php";
-
-/*
-** This include file contains all of the non-standard functions required
-** by the bulk loader system.
-**/
-
- // This function takes a host group name and populates the database.
- // Returns: 0 if unable to create, otherwise it returns the groupID
- function create_Host_Group($group)
- {
- $result=DBselect("select distinct(groupid) from groups where name=".zbx_dbstr($group));
- $row=DBfetch($result);
- if($row)
- {
- return $row["groupid"];
- }
- $groupid = get_dbid("groups","groupid");
-
- $result=DBexecute("insert into groups (groupid,name) values ($groupid,".zbx_dbstr($group).")");
- if($result)
- {
- return $groupid;
- }
- else
- {
- return 0;
- }
- }
-
- // This function takes a user group name and populates the database.
- // Returns: 0 if unable to create, otherwise it returns the groupID
- function create_User_Group($group)
- {
- $result=DBselect("select distinct(usrgrpid) from usrgrp where name='$group'");
- $row=DBfetch($result);
- if($row)
- {
- return $row["usrgrpid"];
- }
-
- $usrgrpid=get_dbid("usrgrp","usrgrpid");
- $result=DBexecute("insert into usrgrp (usrgrpid,name) values ($usrgrpid,'$group')");
- if($result)
- {
- return $usrgrpid;
- }
- else
- {
- return 0;
- }
- }
-
- // This function adds user to a user group based on ID numbers.
- // Returns: 0 on failure, otherwise it returns 1
- function add_User_To_Group($groupid=0,$userid=0)
- {
- if($groupid==0||$userid==0)
- {
- return 0;
- }
- $id=get_dbid("users_groups","id");
- $result=DBexecute("insert into users_groups (id,usrgrpid,userid) values ($id,$groupid,$userid)");
- if($result)
- {
- return $id;
- }
- return 0;
- }
-
-?>
diff --git a/frontends/php/include/locales/en_gb.inc.php b/frontends/php/include/locales/en_gb.inc.php
index d0a52d7d..3b54c118 100644
--- a/frontends/php/include/locales/en_gb.inc.php
+++ b/frontends/php/include/locales/en_gb.inc.php
@@ -1081,23 +1081,6 @@
"S_HOST_PROFILES"=> "Host profiles",
"S_HOST_PROFILES_BIG"=> "HOST PROFILES",
-// bulkloader.php
- "S_MENU_BULKLOADER"=> "Bulkloader",
- "S_BULKLOADER_MAIN"=> "Bulkloader: Main Page",
- "S_BULKLOADER_HOSTS"=> "Bulkloader: Hosts",
- "S_BULKLOADER_ITEMS"=> "Bulkloader: Items",
- "S_BULKLOADER_USERS"=> "Bulkloader: Users",
- "S_BULKLOADER_TRIGGERS"=> "Bulkloader: Triggers",
- "S_BULKLOADER_ACTIONS"=> "Bulkloader: Actions",
- "S_BULKLOADER_ITSERVICES"=> "Bulkloader: IT Services",
-
- "S_BULKLOADER_IMPORT_HOSTS"=> "Import Hosts",
- "S_BULKLOADER_IMPORT_ITEMS"=> "Import Items",
- "S_BULKLOADER_IMPORT_USERS"=> "Import Users",
- "S_BULKLOADER_IMPORT_TRIGGERS"=> "Import Triggers",
- "S_BULKLOADER_IMPORT_ACTIONS"=> "Import Actions",
- "S_BULKLOADER_IMPORT_ITSERVICES"=> "Import IT Services",
-
// popup.php
"S_EMPTY"=> "Empty",
"S_STANDARD_ITEMS_BIG"=> "STANDARD ITEMS",
diff --git a/frontends/php/include/page_header.php b/frontends/php/include/page_header.php
index 9e799dac..b5921767 100644
--- a/frontends/php/include/page_header.php
+++ b/frontends/php/include/page_header.php
@@ -208,7 +208,6 @@ COpt::profiling_start("page");
),
array("url"=>"services.php" ,"label"=>S_IT_SERVICES ),
array("url"=>"exp_imp.php" ,"label"=>S_EXPORT_IMPORT ),
- array("url"=>"bulkloader.php" ,"label"=>S_MENU_BULKLOADER ),
array("url"=>"popup.php")
)
),