summaryrefslogtreecommitdiffstats
path: root/frontends/php/chart5.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/chart5.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/chart5.php')
-rw-r--r--frontends/php/chart5.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/frontends/php/chart5.php b/frontends/php/chart5.php
index e31fe341..d2d0ce24 100644
--- a/frontends/php/chart5.php
+++ b/frontends/php/chart5.php
@@ -28,20 +28,20 @@
$start_time=time(NULL);
- if(!isset($_GET["type"]))
+ if(!isset($_REQUEST["type"]))
{
- $_GET["type"]="week";
+ $_REQUEST["type"]="week";
}
- if($_GET["type"] == "month")
+ if($_REQUEST["type"] == "month")
{
$period=30*24*3600;
}
- else if($_GET["type"] == "week")
+ else if($_REQUEST["type"] == "week")
{
$period=7*24*3600;
}
- else if($_GET["type"] == "year")
+ else if($_REQUEST["type"] == "year")
{
$period=365*24*3600;
}
@@ -88,7 +88,7 @@
ImageFilledRectangle($im,0,0,$x,$y,$white);
ImageRectangle($im,0,0,$x-1,$y-1,$black);
-// if(!check_right_on_trigger("R",$_GET["triggerid"]))
+// if(!check_right_on_trigger("R",$_REQUEST["triggerid"]))
// {
// ImageOut($im);
// ImageDestroy($im);
@@ -96,7 +96,7 @@
// }
- $service=get_service_by_serviceid($_GET["serviceid"]);
+ $service=get_service_by_serviceid($_REQUEST["serviceid"]);
$str=$service["name"]." (year ".date("Y").")";
$x=imagesx($im)/2-ImageFontWidth(4)*strlen($str)/2;
@@ -120,7 +120,7 @@
{
$period_start=$start+7*24*3600*$i;
$period_end=$start+7*24*3600*($i+1);
- $stat=calculate_service_availability($_GET["serviceid"],$period_start,$period_end);
+ $stat=calculate_service_availability($_REQUEST["serviceid"],$period_start,$period_end);
$problem[$i]=$stat["problem"];
$ok[$i]=$stat["ok"];