diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-08-01 15:51:49 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-08-01 15:51:49 +0000 |
| commit | 45d9a5cfcd90e2086d74dce58338f75b721b647d (patch) | |
| tree | c3cacfeb7d1a8e4ea936527d5146292a6af974ab /frontends/php/map.php | |
| parent | 667ee48caee487831dbc44583e021832489e8390 (diff) | |
| download | zabbix-45d9a5cfcd90e2086d74dce58338f75b721b647d.tar.gz zabbix-45d9a5cfcd90e2086d74dce58338f75b721b647d.tar.xz zabbix-45d9a5cfcd90e2086d74dce58338f75b721b647d.zip | |
- 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
Diffstat (limited to 'frontends/php/map.php')
| -rw-r--r-- | frontends/php/map.php | 12 |
1 files changed, 6 insertions, 6 deletions
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<DBnum_rows($result);$i++) { $shostid1=DBget_field($result,$i,0); @@ -198,7 +198,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=".$HTTP_GET_VARS["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=".$_GET["sysmapid"]." and h.hostid=sh.hostid"); for($i=0;$i<DBnum_rows($result);$i++) { $host=DBget_field($result,$i,0); |
