From 15377955b388639cbfdcbbe684e09f2bde30cafa Mon Sep 17 00:00:00 2001 From: hugetoad Date: Fri, 22 Jun 2001 20:20:43 +0000 Subject: Support for table sysmaps. git-svn-id: svn://svn.zabbix.com/trunk@104 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/config.inc | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'frontends/php/include') diff --git a/frontends/php/include/config.inc b/frontends/php/include/config.inc index 7a786647..ad2c4fdc 100644 --- a/frontends/php/include/config.inc +++ b/frontends/php/include/config.inc @@ -411,6 +411,22 @@ { echo "TRIGGERS"; } +?> + + + + + +.html")) + { + echo "[SYSTEM MAPS]"; + } + else + { + echo "SYSTEM MAPS"; + } ?> @@ -643,6 +659,14 @@ $result=DBexecute($sql); } + # Delete System Map + + function delete_sysmap( $sysmapid ) + { + $sql="delete from sysmaps where sysmapid=$sysmapid"; + $result=DBexecute($sql); + } + # Delete Action by userid function delete_actions_by_userid( $userid ) @@ -831,6 +855,14 @@ } } + # Add System Map + + function add_sysmap($name,$width,$height) + { + $sql="insert into sysmaps (name,width,height) values ('$name',$width,$height)"; + $result=DBexecute($sql); + } + # Add Host definition function add_host($host,$port,$status) -- cgit