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/sysmap.php | 76 ++++++++++++++++++++++++------------------------ 1 file changed, 38 insertions(+), 38 deletions(-) (limited to 'frontends/php/sysmap.php') diff --git a/frontends/php/sysmap.php b/frontends/php/sysmap.php index 40e8d1f5..339b490c 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($HTTP_GET_VARS["sysmapid"])) + if(isset($_GET["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=".$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 from sysmaps_hosts sh,hosts h where sh.sysmapid=".$_GET["sysmapid"]." and h.hostid=sh.hostid"); for($i=0;$i"; echo $map; - echo ""; + echo ""; } echo ""; @@ -123,7 +123,7 @@ echo "Actions"; echo ""; - $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=".$HTTP_GET_VARS["sysmapid"]." 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=".$_GET["sysmapid"]." and h.hostid=sh.hostid order by h.host"); $col=0; for($i=0;$iActions"; echo ""; - $result=DBselect("select linkid,shostid1,shostid2,triggerid from sysmaps_links where sysmapid=".$HTTP_GET_VARS["sysmapid"]." order by linkid"); + $result=DBselect("select linkid,shostid1,shostid2,triggerid from sysmaps_links where sysmapid=".$_GET["sysmapid"]." order by linkid"); $col=0; for($i=0;$i$label1"; echo "$label2"; echo "$description"; - echo "Delete"; + echo "Delete"; echo ""; } echo ""; @@ -217,9 +217,9 @@ echo "
"; echo ""; - if(isset($HTTP_GET_VARS["shostid"])) + if(isset($_GET["shostid"])) { - $result=DBselect("select hostid,label,x,y,icon from sysmaps_hosts where shostid=".$HTTP_GET_VARS["shostid"]); + $result=DBselect("select hostid,label,x,y,icon from sysmaps_hosts where shostid=".$_GET["shostid"]); $hostid=DBget_field($result,0,0); $label=DBget_field($result,0,1); $x=DBget_field($result,0,2); @@ -238,13 +238,13 @@ show_table2_v_delimiter(); echo "
"; - if(isset($HTTP_GET_VARS["shostid"])) + if(isset($_GET["shostid"])) { - echo ""; + echo ""; } - if(isset($HTTP_GET_VARS["sysmapid"])) + if(isset($_GET["sysmapid"])) { - echo ""; + echo ""; } echo "Host"; show_table2_h_delimiter(); @@ -254,8 +254,8 @@ { $hostid_=DBget_field($result,$i,0); $host_=DBget_field($result,$i,1); - if(isset($HTTP_GET_VARS["shostid"]) && ($hostid==$hostid_)) -// if(isset($HTTP_GET_VARS["hostid"]) && ($HTTP_GET_VARS["hostid"]==$hostid_)) + if(isset($_GET["shostid"]) && ($hostid==$hostid_)) +// if(isset($_GET["hostid"]) && ($_GET["hostid"]==$hostid_)) { echo "