diff options
author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-06-20 08:42:25 +0000 |
---|---|---|
committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-06-20 08:42:25 +0000 |
commit | 3f8cf5f0da75fa8312c173e9e2c1e1e843811091 (patch) | |
tree | 1cb9f4841cb20bc2fd65a696181e70cbdf2cfb88 /frontends/php/charts.php | |
parent | 2804bdc7c298f114802a93d7c3312370c8602ba0 (diff) | |
download | zabbix-3f8cf5f0da75fa8312c173e9e2c1e1e843811091.tar.gz zabbix-3f8cf5f0da75fa8312c173e9e2c1e1e843811091.tar.xz zabbix-3f8cf5f0da75fa8312c173e9e2c1e1e843811091.zip |
- [DEV-137] changes in users profile system (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5782 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/charts.php')
-rw-r--r-- | frontends/php/charts.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/php/charts.php b/frontends/php/charts.php index 7970bf50..56ee2e4c 100644 --- a/frontends/php/charts.php +++ b/frontends/php/charts.php @@ -92,11 +92,11 @@ include_once 'include/page_header.php'; $_REQUEST["groupid"] = $_REQUEST["hostid"] = 0; } - $_REQUEST["graphid"] = get_request("graphid", get_node_profile("web.charts.graphid", 0));//get_profile("web.charts.graphid", 0)); + $_REQUEST['graphid'] = get_request('graphid', get_profile('web.charts.graphid', 0)); if(!in_node($_REQUEST["graphid"])) $_REQUEST["graphid"] = 0; - $_REQUEST["keep"] = get_request("keep", 1); // possible excessed REQUEST variable !!! - $_REQUEST["period"] = get_request("period",get_profile("web.graph[".$_REQUEST["graphid"]."].period", ZBX_PERIOD_DEFAULT)); + $_REQUEST["keep"] = get_request('keep', 1); // possible excessed REQUEST variable !!! + $_REQUEST["period"] = get_request('period',get_profile('web.graph.period', ZBX_PERIOD_DEFAULT, PROFILE_TYPE_INT, $_REQUEST['graphid'])); $effectiveperiod = navigation_bar_calc(); @@ -120,7 +120,7 @@ include_once 'include/page_header.php'; } if(($_REQUEST['graphid']>0) && ($_REQUEST['period'] >= ZBX_MIN_PERIOD)){ - update_profile('web.graph['.$_REQUEST['graphid'].'].period',$_REQUEST['period']); + update_profile('web.graph.period',$_REQUEST['period'],PROFILE_TYPE_INT,$_REQUEST['graphid']); } update_profile('web.charts.graphid',$_REQUEST['graphid']); |