From 45d9a5cfcd90e2086d74dce58338f75b721b647d Mon Sep 17 00:00:00 2001 From: hugetoad Date: Sun, 1 Aug 2004 15:51:49 +0000 Subject: - use $_GET, $_POST, $_COOKIE to be PHP5-compatible. Thanks to Martin MOHNHAUP. (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@1368 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/map.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'frontends/php/map.php') diff --git a/frontends/php/map.php b/frontends/php/map.php index 067a37c2..c1b2cb4f 100644 --- a/frontends/php/map.php +++ b/frontends/php/map.php @@ -28,7 +28,7 @@ $grid=50; - $result=DBselect("select name,width,height,use_background,background from sysmaps where sysmapid=".$HTTP_GET_VARS["sysmapid"]); + $result=DBselect("select name,width,height,use_background,background from sysmaps where sysmapid=".$_GET["sysmapid"]); $name=DBget_field($result,0,0); $width=DBget_field($result,0,1); @@ -90,7 +90,7 @@ ImageFilledRectangle($im,0,0,$width,$height,$white); } - if(!isset($HTTP_GET_VARS["border"])) + if(!isset($_GET["border"])) { ImageRectangle($im,0,0,$width-1,$height-1,$colors["Black"]); } @@ -101,14 +101,14 @@ $str=date("m.d.Y H:i:s",time(NULL)); ImageString($im, 0,imagesx($im)-120,imagesy($im)-12,"$str", $gray); - if(!check_right("Network map","R",$HTTP_GET_VARS["sysmapid"])) + if(!check_right("Network map","R",$_GET["sysmapid"])) { ImagePng($im); ImageDestroy($im); exit(); } - if(!isset($HTTP_GET_VARS["noedit"])) + if(!isset($_GET["noedit"])) { for($x=$grid;$x<$width;$x+=$grid) { @@ -126,7 +126,7 @@ # Draw connectors - $result=DBselect("select shostid1,shostid2,triggerid,color_off,drawtype_off,color_on,drawtype_on from sysmaps_links where sysmapid=".$HTTP_GET_VARS["sysmapid"]); + $result=DBselect("select shostid1,shostid2,triggerid,color_off,drawtype_off,color_on,drawtype_on from sysmaps_links where sysmapid=".$_GET["sysmapid"]); for($i=0;$i