From 5d025f61d42a5a831399f72ac9befa5ae90db237 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Tue, 27 Aug 2002 19:09:13 +0000 Subject: Misc changes. git-svn-id: svn://svn.zabbix.com/trunk@467 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/map.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'frontends/php/map.php') 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