summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/hosts.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-12-06 15:48:46 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-12-06 15:48:46 +0000
commit224ef1379dfb1c35ca45dcee50072406c76f714a (patch)
tree5079d7ad6d2a847e28dabf22a7f2f7e27dcb10b7 /frontends/php/include/hosts.inc.php
parent9950cb73ea6abb9150f265baa127efd52454f671 (diff)
downloadzabbix-224ef1379dfb1c35ca45dcee50072406c76f714a.tar.gz
zabbix-224ef1379dfb1c35ca45dcee50072406c76f714a.tar.xz
zabbix-224ef1379dfb1c35ca45dcee50072406c76f714a.zip
- added supporting of sqlite database for frontend (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3571 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/hosts.inc.php')
-rw-r--r--frontends/php/include/hosts.inc.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/frontends/php/include/hosts.inc.php b/frontends/php/include/hosts.inc.php
index fdb729b7..b4459d7d 100644
--- a/frontends/php/include/hosts.inc.php
+++ b/frontends/php/include/hosts.inc.php
@@ -46,9 +46,9 @@ require_once "include/items.inc.php";
}
if($groupid==null)
- $result = DBexecute("select * from groups where name=".zbx_dbstr($name));
+ $result = DBselect("select * from groups where name=".zbx_dbstr($name));
else
- $result = DBexecute("select * from groups where name=".zbx_dbstr($name).
+ $result = DBselect("select * from groups where name=".zbx_dbstr($name).
" and groupid<>$groupid");
if(DBfetch($result))
@@ -378,7 +378,7 @@ require_once "include/items.inc.php";
return false;
}
- function get_hosts_by_templateid($templateid)
+ function &get_hosts_by_templateid($templateid)
{
return DBselect("select h.* from hosts h, hosts_templates ht where h.hostid=ht.hostid and ht.templateid=$templateid");
}
@@ -593,9 +593,9 @@ require_once "include/items.inc.php";
}
if($applicationid==null)
- $result = DBexecute("select * from applications where name=".zbx_dbstr($name)." and hostid=".$hostid);
+ $result = DBselect("select * from applications where name=".zbx_dbstr($name)." and hostid=".$hostid);
else
- $result = DBexecute("select * from applications where name=".zbx_dbstr($name)." and hostid=".$hostid.
+ $result = DBselect("select * from applications where name=".zbx_dbstr($name)." and hostid=".$hostid.
" and applicationid<>$applicationid");
$db_app = DBfetch($result);
@@ -709,7 +709,7 @@ require_once "include/items.inc.php";
}
- function get_applications_by_templateid($applicationid)
+ function &get_applications_by_templateid($applicationid)
{
return DBselect("select * from applications where templateid=".$applicationid);
}
@@ -736,12 +736,12 @@ require_once "include/items.inc.php";
return false;
}
- function get_items_by_applicationid($applicationid)
+ function &get_items_by_applicationid($applicationid)
{
return DBselect("select i.* from items i,items_applications ia where i.itemid=ia.itemid and ia.applicationid=$applicationid");
}
- function get_applications_by_hostid($hostid)
+ function &get_applications_by_hostid($hostid)
{
return DBselect("select * from applications where hostid=$hostid");
}