summaryrefslogtreecommitdiffstats
path: root/frontends/php/sysmaps.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/sysmaps.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/sysmaps.php')
-rw-r--r--frontends/php/sysmaps.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/frontends/php/sysmaps.php b/frontends/php/sysmaps.php
index 9361f469..ee455047 100644
--- a/frontends/php/sysmaps.php
+++ b/frontends/php/sysmaps.php
@@ -37,23 +37,23 @@
?>
<?php
- if(isset($_GET["register"]))
+ if(isset($_REQUEST["register"]))
{
- if($_GET["register"]=="add")
+ if($_REQUEST["register"]=="add")
{
- $result=add_sysmap($_GET["name"],$_GET["width"],$_GET["height"],$_GET["background"],$_GET["label_type"]);
+ $result=add_sysmap($_REQUEST["name"],$_REQUEST["width"],$_REQUEST["height"],$_REQUEST["background"],$_REQUEST["label_type"]);
show_messages($result,"Network map added","Cannot add network map");
}
- if($_GET["register"]=="update")
+ if($_REQUEST["register"]=="update")
{
- $result=update_sysmap($_GET["sysmapid"],$_GET["name"],$_GET["width"],$_GET["height"],$_GET["background"],$_GET["label_type"]);
+ $result=update_sysmap($_REQUEST["sysmapid"],$_REQUEST["name"],$_REQUEST["width"],$_REQUEST["height"],$_REQUEST["background"],$_REQUEST["label_type"]);
show_messages($result,"Network map updated","Cannot update network map");
}
- if($_GET["register"]=="delete")
+ if($_REQUEST["register"]=="delete")
{
- $result=delete_sysmap($_GET["sysmapid"]);
+ $result=delete_sysmap($_REQUEST["sysmapid"]);
show_messages($result,"Network map deleted","Cannot delete network map");
- unset($_GET["sysmapid"]);
+ unset($_REQUEST["sysmapid"]);
}
}
?>
@@ -97,9 +97,9 @@
<?php
echo "<a name=\"form\"></a>";
- if(isset($_GET["sysmapid"]))
+ if(isset($_REQUEST["sysmapid"]))
{
- $result=DBselect("select * from sysmaps where sysmapid=".$_GET["sysmapid"]);
+ $result=DBselect("select * from sysmaps where sysmapid=".$_REQUEST["sysmapid"]);
$row=DBfetch($result);
$name=$row["name"];
$width=$row["width"];
@@ -123,9 +123,9 @@
show_table2_v_delimiter($col++);
echo "<form method=\"get\" enctype=\"multipart/form-data\" action=\"sysmaps.php\">";
- if(isset($_GET["sysmapid"]))
+ if(isset($_REQUEST["sysmapid"]))
{
- echo "<input class=\"biginput\" name=\"sysmapid\" type=\"hidden\" value=".$_GET["sysmapid"].">";
+ echo "<input class=\"biginput\" name=\"sysmapid\" type=\"hidden\" value=".$_REQUEST["sysmapid"].">";
}
echo S_NAME;
show_table2_h_delimiter();
@@ -150,7 +150,7 @@
for($i=0;$i<DBnum_rows($result);$i++)
{
$name=DBget_field($result,$i,0);
- if(isset($_GET["sysmapid"]) && ($background==$name))
+ if(isset($_REQUEST["sysmapid"]) && ($background==$name))
{
echo "<OPTION VALUE='".$name."' SELECTED>".$name;
}
@@ -209,7 +209,7 @@
show_table2_v_delimiter2();
echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"add\">";
- if(isset($_GET["sysmapid"]))
+ if(isset($_REQUEST["sysmapid"]))
{
echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"update\">";
echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"delete\" onClick=\"return Confirm('Delete system map?');\">";