diff options
author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-06-18 14:01:43 +0000 |
---|---|---|
committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-06-18 14:01:43 +0000 |
commit | 3a568d3f5e674426fe907fbfb81721994b4fe3db (patch) | |
tree | f06a46552fddf5896be28fb1d1f56fc582c05820 /frontends/php/charts.php | |
parent | 47df95b3d1a6669b988604a364c341b4094d1525 (diff) | |
download | zabbix-3a568d3f5e674426fe907fbfb81721994b4fe3db.tar.gz zabbix-3a568d3f5e674426fe907fbfb81721994b4fe3db.tar.xz zabbix-3a568d3f5e674426fe907fbfb81721994b4fe3db.zip |
- [DEV-137] fixes & improvements to favorites (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5780 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/charts.php')
-rw-r--r-- | frontends/php/charts.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/frontends/php/charts.php b/frontends/php/charts.php index 191e0856..7970bf50 100644 --- a/frontends/php/charts.php +++ b/frontends/php/charts.php @@ -92,7 +92,9 @@ include_once 'include/page_header.php'; $_REQUEST["groupid"] = $_REQUEST["hostid"] = 0; } - $_REQUEST["graphid"] = get_request("graphid", get_profile("web.charts.graphid", 0)); + $_REQUEST["graphid"] = get_request("graphid", get_node_profile("web.charts.graphid", 0));//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)); @@ -123,13 +125,13 @@ include_once 'include/page_header.php'; update_profile('web.charts.graphid',$_REQUEST['graphid']); - $h1 = array(S_GRAPHS_BIG.SPACE."/".SPACE); + $h1 = array(S_GRAPHS_BIG.SPACE.'/'.SPACE); $available_groups = get_accessible_groups_by_user($USER_DETAILS,PERM_READ_LIST); $available_hosts = get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_LIST); $available_graphs = get_accessible_graphs(PERM_READ_LIST, PERM_RES_IDS_ARRAY, get_current_nodeid()); - + if(($_REQUEST['graphid']>0) && ($row=DBfetch(DBselect('SELECT DISTINCT graphid, name FROM graphs WHERE graphid='.$_REQUEST['graphid'])))){ if(!graph_accessible($_REQUEST['graphid'])){ update_profile('web.charts.graphid',0); |