diff --git a/pandora_console/godmode/servers/modificar_server.php b/pandora_console/godmode/servers/modificar_server.php index 9062eab0a4..3b07e4a528 100644 --- a/pandora_console/godmode/servers/modificar_server.php +++ b/pandora_console/godmode/servers/modificar_server.php @@ -101,7 +101,40 @@ if (isset($_GET['server'])) { // Headers. $id_server = get_parameter_get('server_remote'); $ext = get_parameter('ext', ''); - ui_print_page_header(__('Remote Configuration'), 'images/gm_servers.png', false, 'servers', true); + $tab = get_parameter('tab', 'standard_editor'); + $advanced_editor = true; + + $server_type = (int) db_get_value( + 'server_type', + 'tserver', + 'id_server', + $id_server + ); + + $buttons = ''; + + if ($server_type !== 13) { + // Buttons. + $buttons = [ + 'standard_editor' => [ + 'active' => false, + 'text' => ''.html_print_image('images/list.png', true, ['title' => __('Standard editor')]).'', + ], + 'advanced_editor' => [ + 'active' => false, + 'text' => ''.html_print_image('images/pen.png', true, ['title' => __('Advanced editor')]).'', + ], + ]; + + $buttons[$tab]['active'] = true; + } + + ui_print_page_header(__('Remote Configuration'), 'images/gm_servers.png', false, 'servers', true, $buttons); + + if ($server_type !== 13 && $tab == 'standard_editor') { + $advanced_editor = false; + } + enterprise_include('godmode/servers/server_disk_conf_editor.php'); } else { // Header.