summaryrefslogtreecommitdiffstats
path: root/frontends/php/map.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-08-27 19:09:13 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-08-27 19:09:13 +0000
commit5d025f61d42a5a831399f72ac9befa5ae90db237 (patch)
treeb1868be67e053ab8c3720d8ba043be51eec80811 /frontends/php/map.php
parente1252c8d4a9ef03bcffefb79b4cdfc97962b5abc (diff)
downloadzabbix-5d025f61d42a5a831399f72ac9befa5ae90db237.tar.gz
zabbix-5d025f61d42a5a831399f72ac9befa5ae90db237.tar.xz
zabbix-5d025f61d42a5a831399f72ac9befa5ae90db237.zip
Misc changes.
git-svn-id: svn://svn.zabbix.com/trunk@467 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/map.php')
-rw-r--r--frontends/php/map.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/php/map.php b/frontends/php/map.php
index 3ded71a2..e7ed50a6 100644
--- a/frontends/php/map.php
+++ b/frontends/php/map.php
@@ -8,7 +8,7 @@
$grid=50;
- $result=DBselect("select name,width,height from sysmaps where sysmapid=$sysmapid");
+ $result=DBselect("select name,width,height from sysmaps where sysmapid=".$HTTP_GET_VARS["sysmapid"]);
$name=DBget_field($result,0,0);
$width=DBget_field($result,0,1);
@@ -38,7 +38,7 @@
ImageFilledRectangle($im,0,0,$width,$height,$white);
ImageRectangle($im,0,0,$width-1,$height-1,$black);
- if(!isset($noedit))
+ if(!isset($HTTP_GET_VARS["noedit"]))
{
for($x=$grid;$x<$width;$x+=$grid)
{
@@ -56,7 +56,7 @@
# Draw connectors
- $result=DBselect("select shostid1,shostid2 from sysmaps_links where sysmapid=$sysmapid");
+ $result=DBselect("select shostid1,shostid2 from sysmaps_links where sysmapid=".$HTTP_GET_VARS["sysmapid"]);
for($i=0;$i<DBnum_rows($result);$i++)
{
$shostid1=DBget_field($result,$i,0);
@@ -76,7 +76,7 @@
# Draw hosts
$icons=array();
- $result=DBselect("select h.host,sh.shostid,sh.sysmapid,sh.hostid,sh.label,sh.x,sh.y,h.status,sh.icon from sysmaps_hosts sh,hosts h where sh.sysmapid=$sysmapid and h.hostid=sh.hostid");
+ $result=DBselect("select h.host,sh.shostid,sh.sysmapid,sh.hostid,sh.label,sh.x,sh.y,h.status,sh.icon from sysmaps_hosts sh,hosts h where sh.sysmapid=".$HTTP_GET_VARS["sysmapid"]." and h.hostid=sh.hostid");
for($i=0;$i<DBnum_rows($result);$i++)
{
$host=DBget_field($result,$i,0);