summaryrefslogtreecommitdiffstats
path: root/frontends/php/screens.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/screens.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/screens.php')
-rw-r--r--frontends/php/screens.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/frontends/php/screens.php b/frontends/php/screens.php
index f52e43b0..0b4b7b0c 100644
--- a/frontends/php/screens.php
+++ b/frontends/php/screens.php
@@ -55,7 +55,7 @@ include_once "include/page_header.php";
"from"=> array(T_ZBX_INT, O_OPT, P_SYS, BETWEEN(0,65535*65535),NULL),
"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),
- "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),
@@ -68,6 +68,7 @@ include_once "include/page_header.php";
if( 2 != $_REQUEST["fullscreen"] )
update_profile('web.screens.config', $_REQUEST['config']);
+
?>
<?php
@@ -76,6 +77,12 @@ include_once "include/page_header.php";
if( 2 != $_REQUEST["fullscreen"] )
update_profile("web.screens.elementid",$_REQUEST["elementid"]);
+
+ $_REQUEST["period"] = get_request('period',get_profile('web.screens'.$_REQUEST['elementid'].'.period', ZBX_PERIOD_DEFAULT));
+ if($_REQUEST["period"] >= ZBX_MIN_PERIOD)
+ {
+ update_profile('web.screens'.$_REQUEST['elementid'].'.period',$_REQUEST['period']);
+ }
?>
<?php