summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/graphs.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-02-01 11:54:29 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-02-01 11:54:29 +0000
commit939838fff9c58f1a80e18f09e0b5d2bf8bcc876e (patch)
tree34a4e06e46fa86b105e9a4bac2602a6a4359615b /frontends/php/include/graphs.inc.php
parent24372356bb3dbd748c65bdb829069a14af3ac022 (diff)
finished interface for web monitoring
git-svn-id: svn://svn.zabbix.com/trunk@3782 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/graphs.inc.php')
-rw-r--r--frontends/php/include/graphs.inc.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/frontends/php/include/graphs.inc.php b/frontends/php/include/graphs.inc.php
index 50ab85de..76855f29 100644
--- a/frontends/php/include/graphs.inc.php
+++ b/frontends/php/include/graphs.inc.php
@@ -672,12 +672,14 @@
$form->AddItem(S_PERIOD.SPACE);
- if(in_array($_REQUEST["period"],array(3600,2*3600,4*3600,8*3600,12*3600,24*3600,7*24*3600,31*24*3600,365*24*3600)))
+ $period = get_request('period', 3600);
+
+ if(in_array($period,array(3600,2*3600,4*3600,8*3600,12*3600,24*3600,7*24*3600,31*24*3600,365*24*3600)))
$custom_per = 3*3600;
else
- $custom_per = $_REQUEST["period"];
+ $custom_per = $period;
- $cmbPeriod = new CComboBox("period",$_REQUEST["period"],"submit()");
+ $cmbPeriod = new CComboBox("period",$period,"submit()");
$cmbPeriod->AddItem($custom_per,"custom");
$cmbPeriod->AddItem(3600,"1h");
$cmbPeriod->AddItem(2*3600,"2h");