summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/hosts.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-20 11:51:40 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-20 11:51:40 +0000
commitd57d1c42166cd82e6fb91bd0371b077e9e9f381b (patch)
tree73d9a9f349d7baf52c02011ae3f03ec61dbae7eb /frontends/php/include/hosts.inc.php
parent00ad786c34052a414e1c9d4a19dc4065b76192d8 (diff)
downloadzabbix-d57d1c42166cd82e6fb91bd0371b077e9e9f381b.tar.gz
zabbix-d57d1c42166cd82e6fb91bd0371b077e9e9f381b.tar.xz
zabbix-d57d1c42166cd82e6fb91bd0371b077e9e9f381b.zip
- Frontend improvements (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2547 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/hosts.inc.php')
-rw-r--r--frontends/php/include/hosts.inc.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/frontends/php/include/hosts.inc.php b/frontends/php/include/hosts.inc.php
index 147f7f94..70662082 100644
--- a/frontends/php/include/hosts.inc.php
+++ b/frontends/php/include/hosts.inc.php
@@ -191,6 +191,17 @@
return DBexecute($sql);
}
+ function get_group_by_groupid($groupid)
+ {
+ $result=DBselect("select * from groups where groupid=".$groupid);
+ if(DBnum_rows($result) == 1)
+ {
+ return DBfetch($result);
+ }
+ error("No groups with groupid=[$groupid]");
+ return FALSE;
+ }
+
function get_host_by_itemid($itemid)
{
$sql="select h.* from hosts h, items i where i.hostid=h.hostid and i.itemid=$itemid";