summaryrefslogtreecommitdiffstats
path: root/frontends/php/chart2.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/chart2.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/chart2.php')
-rw-r--r--frontends/php/chart2.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/frontends/php/chart2.php b/frontends/php/chart2.php
index 86233ac4..6c1b5c5e 100644
--- a/frontends/php/chart2.php
+++ b/frontends/php/chart2.php
@@ -23,37 +23,37 @@
include "include/classes.inc.php";
$graph=new Graph();
- if(isset($_GET["period"]))
+ if(isset($_REQUEST["period"]))
{
- $graph->setPeriod($_GET["period"]);
+ $graph->setPeriod($_REQUEST["period"]);
}
- if(isset($_GET["from"]))
+ if(isset($_REQUEST["from"]))
{
- $graph->setFrom($_GET["from"]);
+ $graph->setFrom($_REQUEST["from"]);
}
- if(isset($_GET["stime"]))
+ if(isset($_REQUEST["stime"]))
{
- $graph->setSTime($_GET["stime"]);
+ $graph->setSTime($_REQUEST["stime"]);
}
- if(isset($_GET["border"]))
+ if(isset($_REQUEST["border"]))
{
$graph->setBorder(0);
}
- $result=DBselect("select name,width,height,yaxistype,yaxismin,yaxismax from graphs where graphid=".$_GET["graphid"]);
+ $result=DBselect("select name,width,height,yaxistype,yaxismin,yaxismax from graphs where graphid=".$_REQUEST["graphid"]);
$name=DBget_field($result,0,0);
- if(isset($_GET["width"])&&$_GET["width"]>0)
+ if(isset($_REQUEST["width"])&&$_REQUEST["width"]>0)
{
- $width=$_GET["width"];
+ $width=$_REQUEST["width"];
}
else
{
$width=DBget_field($result,0,1);
}
- if(isset($_GET["height"])&&$_GET["height"]>0)
+ if(isset($_REQUEST["height"])&&$_REQUEST["height"]>0)
{
- $height=$_GET["height"];
+ $height=$_REQUEST["height"];
}
else
{
@@ -67,7 +67,7 @@
$graph->setYAxisMin(DBget_field($result,0,4));
$graph->setYAxisMax(DBget_field($result,0,5));
- $result=DBselect("select gi.itemid,i.description,gi.color,h.host,gi.drawtype from graphs_items gi,items i,hosts h where gi.itemid=i.itemid and gi.graphid=".$_GET["graphid"]." and i.hostid=h.hostid order by gi.sortorder");
+ $result=DBselect("select gi.itemid,i.description,gi.color,h.host,gi.drawtype from graphs_items gi,items i,hosts h where gi.itemid=i.itemid and gi.graphid=".$_REQUEST["graphid"]." and i.hostid=h.hostid order by gi.sortorder");
for($i=0;$i<DBnum_rows($result);$i++)
{