From ca98b85a6aab48b82c835b95bea815743ce99b40 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Mon, 24 Mar 2003 21:02:37 +0000 Subject: Added permissions from Screens. git-svn-id: svn://svn.zabbix.com/trunk@717 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/config.inc.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'frontends/php/include/config.inc.php') diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php index b9acfc03..d4975708 100644 --- a/frontends/php/include/config.inc.php +++ b/frontends/php/include/config.inc.php @@ -306,6 +306,23 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid"; return $result; } + function get_screen_by_screenid($screenid) + { + global $ERROR_MSG; + + $sql="select * from screens where scid=$screenid"; + $result=DBselect($sql); + if(DBnum_rows($result) == 1) + { + return DBfetch($result); + } + else + { + $ERROR_MSG="No screen with screenid=[$screenid]"; + } + return $result; + } + function get_map_by_sysmapid($sysmapid) { global $ERROR_MSG; @@ -3213,6 +3230,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid"; echo "