From 9a1e779bc865fddde2adc39dde378f0a0439594a Mon Sep 17 00:00:00 2001 From: hugetoad Date: Mon, 24 Oct 2005 05:20:19 +0000 Subject: - 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 --- frontends/php/sysmap.php | 78 ++++++++++++++++++++++++------------------------ 1 file changed, 39 insertions(+), 39 deletions(-) (limited to 'frontends/php/sysmap.php') diff --git a/frontends/php/sysmap.php b/frontends/php/sysmap.php index ae4a5848..cf20baeb 100644 --- a/frontends/php/sysmap.php +++ b/frontends/php/sysmap.php @@ -26,7 +26,7 @@ ?> No permissions !"); show_footer(); @@ -40,50 +40,50 @@ ?> "; echo ""; echo ""; - if(isset($_GET["sysmapid"])) + if(isset($_REQUEST["sysmapid"])) { - $map="\n"; - $result=DBselect("select h.host,sh.shostid,sh.sysmapid,sh.hostid,sh.label,sh.x,sh.y,h.status from sysmaps_hosts sh,hosts h where sh.sysmapid=".$_GET["sysmapid"]." and h.status not in (".HOST_STATUS_DELETED.") and h.hostid=sh.hostid"); + $map="\n"; + $result=DBselect("select h.host,sh.shostid,sh.sysmapid,sh.hostid,sh.label,sh.x,sh.y,h.status from sysmaps_hosts sh,hosts h where sh.sysmapid=".$_REQUEST["sysmapid"]." and h.status not in (".HOST_STATUS_DELETED.") and h.hostid=sh.hostid"); for($i=0;$i"; echo $map; - echo ""; + echo ""; } echo ""; @@ -117,7 +117,7 @@ table_begin(); table_header(array(S_HOST,S_LABEL,S_X,S_Y,S_ICON,S_ACTIONS)); - $result=DBselect("select h.host,sh.shostid,sh.sysmapid,sh.hostid,sh.label,sh.x,sh.y,sh.icon from sysmaps_hosts sh,hosts h where sh.sysmapid=".$_GET["sysmapid"]." and h.status not in (".HOST_STATUS_DELETED.") and h.hostid=sh.hostid order by h.host"); + $result=DBselect("select h.host,sh.shostid,sh.sysmapid,sh.hostid,sh.label,sh.x,sh.y,sh.icon from sysmaps_hosts sh,hosts h where sh.sysmapid=".$_REQUEST["sysmapid"]." and h.status not in (".HOST_STATUS_DELETED.") and h.hostid=sh.hostid order by h.host"); $col=0; while($row=DBfetch($result)) { @@ -138,7 +138,7 @@ table_begin(); table_header(array(S_HOST_1,S_HOST_2,S_LINK_STATUS_INDICATOR,S_ACTIONS)); - $result=DBselect("select linkid,shostid1,shostid2,triggerid from sysmaps_links where sysmapid=".$_GET["sysmapid"]." order by linkid"); + $result=DBselect("select linkid,shostid1,shostid2,triggerid from sysmaps_links where sysmapid=".$_REQUEST["sysmapid"]." order by linkid"); $col=0; while($row=DBfetch($result)) { @@ -160,7 +160,7 @@ $label1, $label2, $description, - "Delete" + "Delete" ),$col++); } table_end(); @@ -169,9 +169,9 @@ "; - if(isset($_GET["shostid"])) + if(isset($_REQUEST["shostid"])) { - $result=DBselect("select hostid,label,x,y,icon,url,icon_on from sysmaps_hosts where shostid=".$_GET["shostid"]); + $result=DBselect("select hostid,label,x,y,icon,url,icon_on from sysmaps_hosts where shostid=".$_REQUEST["shostid"]); $hostid=DBget_field($result,0,0); $label=DBget_field($result,0,1); $x=DBget_field($result,0,2); @@ -196,13 +196,13 @@ show_table2_v_delimiter($col++); echo "
"; - if(isset($_GET["shostid"])) + if(isset($_REQUEST["shostid"])) { - echo ""; + echo ""; } - if(isset($_GET["sysmapid"])) + if(isset($_REQUEST["sysmapid"])) { - echo ""; + echo ""; } echo "Host"; show_table2_h_delimiter(); @@ -212,8 +212,8 @@ { $hostid_=DBget_field($result,$i,0); $host_=DBget_field($result,$i,1); - if(isset($_GET["shostid"]) && ($hostid==$hostid_)) -// if(isset($_GET["hostid"]) && ($_GET["hostid"]==$hostid_)) + if(isset($_REQUEST["shostid"]) && ($hostid==$hostid_)) +// if(isset($_REQUEST["hostid"]) && ($_REQUEST["hostid"]==$hostid_)) { echo "