summaryrefslogtreecommitdiffstats
path: root/frontends/php/map.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-10-24 05:20:19 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-10-24 05:20:19 +0000
commit9a1e779bc865fddde2adc39dde378f0a0439594a (patch)
tree472789ea587b232cb705de4a9f9783002a169566 /frontends/php/map.php
parentb9e14335fe68cdd6251239883f141a0e0556ac6b (diff)
downloadzabbix-9a1e779bc865fddde2adc39dde378f0a0439594a.tar.gz
zabbix-9a1e779bc865fddde2adc39dde378f0a0439594a.tar.xz
zabbix-9a1e779bc865fddde2adc39dde378f0a0439594a.zip
- all $_GET and $_POST replaced by $_REQUEST. Thanks to James Wells. (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@2215 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/map.php')
-rw-r--r--frontends/php/map.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/frontends/php/map.php b/frontends/php/map.php
index 4450f09d..e513aa66 100644
--- a/frontends/php/map.php
+++ b/frontends/php/map.php
@@ -31,7 +31,7 @@
$grid=50;
- $result=DBselect("select * from sysmaps where sysmapid=".$_GET["sysmapid"]);
+ $result=DBselect("select * from sysmaps where sysmapid=".$_REQUEST["sysmapid"]);
$row=DBfetch($result);
$name=$row["name"];
@@ -108,7 +108,7 @@
ImageString($im, 4,$x,1, $name , $colors["Dark Red"]);
}
- if(!isset($_GET["border"]))
+ if(!isset($_REQUEST["border"]))
{
ImageRectangle($im,0,0,$width-1,$height-1,$colors["Black"]);
}
@@ -119,14 +119,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",$_GET["sysmapid"]))
+ if(!check_right("Network map","R",$_REQUEST["sysmapid"]))
{
ImageOut($im);
ImageDestroy($im);
exit();
}
- if(!isset($_GET["noedit"]))
+ if(!isset($_REQUEST["noedit"]))
{
for($x=$grid;$x<$width;$x+=$grid)
{
@@ -144,7 +144,7 @@
# Draw connectors
- $result=DBselect("select shostid1,shostid2,triggerid,color_off,drawtype_off,color_on,drawtype_on from sysmaps_links where sysmapid=".$_GET["sysmapid"]);
+ $result=DBselect("select shostid1,shostid2,triggerid,color_off,drawtype_off,color_on,drawtype_on from sysmaps_links where sysmapid=".$_REQUEST["sysmapid"]);
for($i=0;$i<DBnum_rows($result);$i++)
{
$shostid1=DBget_field($result,$i,0);
@@ -235,7 +235,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,sh.icon_on,h.ip from sysmaps_hosts sh,hosts h where sh.sysmapid=".$_GET["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,sh.icon_on,h.ip from sysmaps_hosts sh,hosts h where sh.sysmapid=".$_REQUEST["sysmapid"]." and h.hostid=sh.hostid");
for($i=0;$i<DBnum_rows($result);$i++)
{
$host=DBget_field($result,$i,0);