diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2001-06-24 17:14:02 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2001-06-24 17:14:02 +0000 |
commit | 0db5010365e68d85776cc095012f95d6b2cdcd60 (patch) | |
tree | f11d4dc01ff677630e7cce3cc02db6cc40117387 /frontends/php/include | |
parent | 8a7434e7df3385c008a7825536eb4c069620fd98 (diff) | |
download | zabbix-0db5010365e68d85776cc095012f95d6b2cdcd60.tar.gz zabbix-0db5010365e68d85776cc095012f95d6b2cdcd60.tar.xz zabbix-0db5010365e68d85776cc095012f95d6b2cdcd60.zip |
Change of sysmap information became possible.
git-svn-id: svn://svn.zabbix.com/trunk@107 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
-rw-r--r-- | frontends/php/include/config.inc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/frontends/php/include/config.inc b/frontends/php/include/config.inc index fc2d28bc..ad78f306 100644 --- a/frontends/php/include/config.inc +++ b/frontends/php/include/config.inc @@ -167,6 +167,7 @@ ($page["file"]=="latestalarms.html")|| ($page["file"]=="alerts.html")|| ($page["file"]=="history.html")|| + ($page["file"]=="maps.html")|| ($page["file"]=="index.html")) { $sql="select password_required from config"; @@ -874,6 +875,14 @@ } } + # Update System Map + + function update_sysmap($sysmapid,$name,$width,$height) + { + $sql="update sysmaps set name='$name',width=$width,height=$height where sysmapid=$sysmapid"; + $result=DBexecute($sql); + } + # Add System Map function add_sysmap($name,$width,$height) @@ -896,6 +905,12 @@ $result=DBexecute($sql); } + function update_sysmap_host($shostid,$sysmapid,$hostid,$label,$x,$y) + { + $sql="update sysmaps_hosts set hostid=$hostid,label='$label',x=$x,y=$y where shostid=$shostid"; + $result=DBexecute($sql); + } + # Add Host definition function add_host($host,$port,$status) |