mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Change refr in visual console. Tiquet: #3277
This commit is contained in:
parent
0984a06f25
commit
1c374acc3f
@ -43,7 +43,7 @@ if (!defined('METACONSOLE')) {
|
|||||||
$id_layout = (int) get_parameter ('id_layout');
|
$id_layout = (int) get_parameter ('id_layout');
|
||||||
$copy_layout = (bool) get_parameter ('copy_layout');
|
$copy_layout = (bool) get_parameter ('copy_layout');
|
||||||
$delete_layout = (bool) get_parameter ('delete_layout');
|
$delete_layout = (bool) get_parameter ('delete_layout');
|
||||||
$refr = (int) get_parameter('refr', 60);
|
$refr = (int) get_parameter('refr', $config['vc_refr']);
|
||||||
$offset = (int) get_parameter('offset', 0);
|
$offset = (int) get_parameter('offset', 0);
|
||||||
$pagination = (int) get_parameter ("pagination", $config["block_size"]);
|
$pagination = (int) get_parameter ("pagination", $config["block_size"]);
|
||||||
|
|
||||||
|
@ -619,7 +619,7 @@ switch ($activeTab) {
|
|||||||
if (isset($config['vc_refr']) and $config['vc_refr'] != 0)
|
if (isset($config['vc_refr']) and $config['vc_refr'] != 0)
|
||||||
$view_refresh = $config['vc_refr'];
|
$view_refresh = $config['vc_refr'];
|
||||||
else
|
else
|
||||||
$view_refresh = '60';
|
$view_refresh = '300';
|
||||||
|
|
||||||
if (!defined('METACONSOLE')) {
|
if (!defined('METACONSOLE')) {
|
||||||
$url_base = 'index.php?sec=reporting&sec2=godmode/reporting/visual_console_builder&action=';
|
$url_base = 'index.php?sec=reporting&sec2=godmode/reporting/visual_console_builder&action=';
|
||||||
|
@ -1274,7 +1274,7 @@ function config_process_config () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!isset ($config['vc_refr'])) {
|
if (!isset ($config['vc_refr'])) {
|
||||||
config_update_value ('vc_refr', 60);
|
config_update_value ('vc_refr', 300);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($config['agent_size_text_small'])) {
|
if (!isset($config['agent_size_text_small'])) {
|
||||||
|
@ -131,16 +131,6 @@ if (check_acl ($config['id_user'], 0, "AR")) {
|
|||||||
"godmode/reporting/map_builder",
|
"godmode/reporting/map_builder",
|
||||||
"godmode/reporting/visual_console_builder");
|
"godmode/reporting/visual_console_builder");
|
||||||
|
|
||||||
if (!empty($config['vc_refr'])) {
|
|
||||||
$sub["godmode/reporting/map_builder"]["refr"] = $config['vc_refr'];
|
|
||||||
}
|
|
||||||
else if (((int)get_parameter('refr', 0)) > 0) {
|
|
||||||
$sub["godmode/reporting/map_builder"]["refr"] = (int)get_parameter('refr', 0);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$sub["godmode/reporting/map_builder"]["refr"] = 60;
|
|
||||||
}
|
|
||||||
|
|
||||||
$layouts = db_get_all_rows_in_table ('tlayout', 'name');
|
$layouts = db_get_all_rows_in_table ('tlayout', 'name');
|
||||||
$sub2 = array ();
|
$sub2 = array ();
|
||||||
|
|
||||||
@ -239,7 +229,7 @@ if (check_acl ($config['id_user'], 0, "RR")) {
|
|||||||
$menu_operation["reporting"]["text"] = __('Reporting');
|
$menu_operation["reporting"]["text"] = __('Reporting');
|
||||||
$menu_operation["reporting"]["sec2"] = "godmode/reporting/reporting_builder";
|
$menu_operation["reporting"]["sec2"] = "godmode/reporting/reporting_builder";
|
||||||
$menu_operation["reporting"]["id"] = "oper-reporting";
|
$menu_operation["reporting"]["id"] = "oper-reporting";
|
||||||
$menu_operation["reporting"]["refr"] = 60;
|
$menu_operation["reporting"]["refr"] = 300;
|
||||||
|
|
||||||
$sub = array ();
|
$sub = array ();
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ $vc_refr = false;
|
|||||||
if (isset($config['vc_refr']) and $config['vc_refr'] != 0)
|
if (isset($config['vc_refr']) and $config['vc_refr'] != 0)
|
||||||
$view_refresh = $config['vc_refr'];
|
$view_refresh = $config['vc_refr'];
|
||||||
else
|
else
|
||||||
$view_refresh = '60';
|
$view_refresh = '300';
|
||||||
|
|
||||||
// Get input parameter for layout id
|
// Get input parameter for layout id
|
||||||
if (! $id_layout) {
|
if (! $id_layout) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user