summaryrefslogtreecommitdiffstats
path: root/frontends/php/chart4.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/chart4.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/chart4.php')
-rw-r--r--frontends/php/chart4.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/frontends/php/chart4.php b/frontends/php/chart4.php
index 348cb7fc..ff994b39 100644
--- a/frontends/php/chart4.php
+++ b/frontends/php/chart4.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"]))
{
// show_table_header("<font color=\"AA0000\">No permissions !</font>");
// show_footer();
@@ -98,12 +98,12 @@
}
-// $trigger=get_trigger_by_triggerid($_GET["triggerid"]);
+// $trigger=get_trigger_by_triggerid($_REQUEST["triggerid"]);
// $str=$trigger["description"];
// if( strstr($str,"%s"))
// {
- $str=expand_trigger_description($_GET["triggerid"]);
+ $str=expand_trigger_description($_REQUEST["triggerid"]);
// }
$str=$str." (year ".date("Y").")";
@@ -129,7 +129,7 @@
{
$period_start=$start+7*24*3600*$i;
$period_end=$start+7*24*3600*($i+1);
- $stat=calculate_availability($_GET["triggerid"],$period_start,$period_end);
+ $stat=calculate_availability($_REQUEST["triggerid"],$period_start,$period_end);
$true[$i]=$stat["true"];
$false[$i]=$stat["false"];