summaryrefslogtreecommitdiffstats
path: root/frontends/php/charts.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-05-30 09:52:51 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-05-30 09:52:51 +0000
commit37248fa7b984f33291fa9715f301787b17c28ee7 (patch)
treea5ee801c754c75201ce591b5efc6c3f348965ca5 /frontends/php/charts.php
parent9245d334df5ddcce1806d870b21585e6e5b45472 (diff)
downloadzabbix-37248fa7b984f33291fa9715f301787b17c28ee7.tar.gz
zabbix-37248fa7b984f33291fa9715f301787b17c28ee7.tar.xz
zabbix-37248fa7b984f33291fa9715f301787b17c28ee7.zip
- merged rev. 4205:4207 from branches/1.4.1 (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@4208 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/charts.php')
-rw-r--r--frontends/php/charts.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/php/charts.php b/frontends/php/charts.php
index 33725b73..d879e534 100644
--- a/frontends/php/charts.php
+++ b/frontends/php/charts.php
@@ -51,7 +51,7 @@ include_once "include/page_header.php";
"left"=> array(T_ZBX_INT, O_OPT, P_SYS, BETWEEN(0,65535*65535),NULL),
"right"=> array(T_ZBX_INT, O_OPT, P_SYS, BETWEEN(0,65535*65535),NULL),
"from"=> array(T_ZBX_INT, O_OPT, P_SYS, BETWEEN(0,65535*65535),NULL),
- "period"=> array(T_ZBX_INT, O_OPT, P_SYS, BETWEEN(0,65535*65535),NULL),
+ "period"=> array(T_ZBX_INT, O_OPT, P_SYS, BETWEEN(ZBX_MIN_PERIOD,ZBX_MAX_PERIOD),NULL),
"stime"=> array(T_ZBX_STR, O_OPT, P_SYS, NULL,NULL),
"action"=> array(T_ZBX_STR, O_OPT, P_SYS, IN("'go'"),NULL),
"reset"=> array(T_ZBX_STR, O_OPT, P_SYS, IN("'reset'"),NULL),
@@ -70,7 +70,7 @@ include_once "include/page_header.php";
$_REQUEST["keep"] = get_request("keep", 1); // possible excessed REQUEST variable !!!
- $_REQUEST["period"] = get_request("period",get_profile("web.graph[".$_REQUEST["graphid"]."].period", 3600));
+ $_REQUEST["period"] = get_request("period",get_profile("web.graph[".$_REQUEST["graphid"]."].period", ZBX_PERIOD_DEFAULT));
$effectiveperiod = navigation_bar_calc();
validate_group_with_host(PERM_READ_ONLY,array("allow_all_hosts","monitored_hosts","with_items", "always_select_first_host"));
@@ -85,7 +85,7 @@ include_once "include/page_header.php";
}
?>
<?php
- if($_REQUEST["graphid"] > 0 && $_REQUEST["period"] >= 3600)
+ if($_REQUEST["graphid"] > 0 && $_REQUEST["period"] >= ZBX_MIN_PERIOD)
{
update_profile("web.graph[".$_REQUEST["graphid"]."].period",$_REQUEST["period"]);
}