summaryrefslogtreecommitdiffstats
path: root/frontends/php/chart5.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-08-01 15:51:49 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-08-01 15:51:49 +0000
commit45d9a5cfcd90e2086d74dce58338f75b721b647d (patch)
treec3cacfeb7d1a8e4ea936527d5146292a6af974ab /frontends/php/chart5.php
parent667ee48caee487831dbc44583e021832489e8390 (diff)
downloadzabbix-45d9a5cfcd90e2086d74dce58338f75b721b647d.tar.gz
zabbix-45d9a5cfcd90e2086d74dce58338f75b721b647d.tar.xz
zabbix-45d9a5cfcd90e2086d74dce58338f75b721b647d.zip
- 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
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 189f1b59..f8a8ab1b 100644
--- a/frontends/php/chart5.php
+++ b/frontends/php/chart5.php
@@ -28,20 +28,20 @@
$start_time=time(NULL);
- if(!isset($HTTP_GET_VARS["type"]))
+ if(!isset($_GET["type"]))
{
- $HTTP_GET_VARS["type"]="week";
+ $_GET["type"]="week";
}
- if($HTTP_GET_VARS["type"] == "month")
+ if($_GET["type"] == "month")
{
$period=30*24*3600;
}
- else if($HTTP_GET_VARS["type"] == "week")
+ else if($_GET["type"] == "week")
{
$period=7*24*3600;
}
- else if($HTTP_GET_VARS["type"] == "year")
+ else if($_GET["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",$HTTP_GET_VARS["triggerid"]))
+// if(!check_right_on_trigger("R",$_GET["triggerid"]))
// {
// ImagePng($im);
// ImageDestroy($im);
@@ -96,7 +96,7 @@
// }
- $service=get_service_by_serviceid($HTTP_GET_VARS["serviceid"]);
+ $service=get_service_by_serviceid($_GET["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($HTTP_GET_VARS["serviceid"],$period_start,$period_end);
+ $stat=calculate_service_availability($_GET["serviceid"],$period_start,$period_end);
$problem[$i]=$stat["problem"];
$ok[$i]=$stat["ok"];