Merge branch 'ent-11236-no-se-puede-configurar-servidor-con-remote-config-activo-en-metaconsola' into 'develop'

Ent 11236 no se puede configurar servidor con remote config activo en metaconsola

See merge request artica/pandorafms!5996
This commit is contained in:
Rafael Ameijeiras 2023-05-31 13:58:38 +00:00
commit bbfab161b2
2 changed files with 41 additions and 19 deletions

View File

@ -29,8 +29,8 @@
// Load global vars.
global $config;
require_once 'include/functions_servers.php';
require_once 'include/functions_graph.php';
require_once $config['homedir'].'/include/functions_servers.php';
require_once $config['homedir'].'/include/functions_graph.php';
check_login();
@ -205,24 +205,46 @@ if (isset($_GET['server']) === true) {
$buttons[$tab]['active'] = true;
ui_print_standard_header(
__('Remote Configuration'),
'images/gm_servers.png',
false,
'servers',
true,
$buttons,
[
if (is_metaconsole() === true) {
ui_print_standard_header(
__('Remote Configuration'),
'images/gm_servers.png',
false,
'servers',
true,
[],
[
'link' => '',
'label' => __('Servers'),
],
[
'link' => '',
'label' => __('Servers'),
],
[
'link' => 'index.php?sec=advanced&sec2=advanced/servers',
'label' => __('%s servers', get_product_name()),
],
]
);
} else {
ui_print_standard_header(
__('Remote Configuration'),
'images/gm_servers.png',
false,
'servers',
true,
$buttons,
[
'link' => 'index.php?sec=gservers&sec2=godmode/servers/modificar_server',
'label' => __('%s servers', get_product_name()),
],
]
);
[
'link' => '',
'label' => __('Servers'),
],
[
'link' => 'index.php?sec=gservers&sec2=godmode/servers/modificar_server',
'label' => __('%s servers', get_product_name()),
],
]
);
}
if ($tab === 'standard_editor') {
$advanced_editor = false;

View File

@ -259,7 +259,7 @@ foreach ($servers as $server) {
'images/agents@svg.svg',
true,
[
'title' => __('Manage satellite hosts'),
'title' => __('Manage server conf'),
'class' => 'main_menu_icon invert_filter',
]
);