summaryrefslogtreecommitdiffstats
path: root/frontends/php/include
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include')
-rw-r--r--frontends/php/include/config.inc15
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)