diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-11-25 10:27:05 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-11-25 10:27:05 +0000 |
| commit | 8aee7a4bf11b6a36d74892f56d8937219cba0be0 (patch) | |
| tree | 8cb0ef378685a801cc14e2228ca4bf7fe46238ff /frontends/php/include/maps.inc.php | |
| parent | 4eeeb02ee16f99f6b2d692f7e863ebfca66c1c63 (diff) | |
| download | zabbix-8aee7a4bf11b6a36d74892f56d8937219cba0be0.tar.gz zabbix-8aee7a4bf11b6a36d74892f56d8937219cba0be0.tar.xz zabbix-8aee7a4bf11b6a36d74892f56d8937219cba0be0.zip | |
Cleanup of PHP code.
git-svn-id: svn://svn.zabbix.com/trunk@2357 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/maps.inc.php')
| -rw-r--r-- | frontends/php/include/maps.inc.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/frontends/php/include/maps.inc.php b/frontends/php/include/maps.inc.php index 08fdc2c8..9845240f 100644 --- a/frontends/php/include/maps.inc.php +++ b/frontends/php/include/maps.inc.php @@ -34,6 +34,21 @@ return $result; } + function get_sysmaps_hosts_by_shostid($shostid) + { + $sql="select * from sysmaps_hosts where shostid=$shostid"; + $result=DBselect($sql); + if(DBnum_rows($result) == 1) + { + return DBfetch($result); + } + else + { + error("No sysmap host with shostid=[$shostid]"); + } + return $result; + } + # Delete System Map function delete_sysmap( $sysmapid ) |
