diff --git a/pandora_console/godmode/servers/modificar_server.php b/pandora_console/godmode/servers/modificar_server.php
index 11e98a1004..721b1597c6 100644
--- a/pandora_console/godmode/servers/modificar_server.php
+++ b/pandora_console/godmode/servers/modificar_server.php
@@ -55,12 +55,12 @@ if (isset($_GET["server"])) {
}
elseif (isset($_GET["server_remote"])) {
-
// 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);
enterprise_include("godmode/servers/server_disk_conf_editor.php");
- }
+}
else {
// Header
ui_print_page_header (__('Pandora servers'), "images/gm_servers.png", false, "servers", true);
@@ -119,7 +119,8 @@ else {
$correct = false;
$id_server = get_parameter ("id_server");
- $server_md5 = md5(io_safe_output(servers_get_name ($id_server,'none')), FALSE);
+ $ext = get_parameter ("ext", '');
+ $server_md5 = md5(io_safe_output(servers_get_name ($id_server,'none') . $ext), FALSE);
if (file_exists ($config["remote_config"] . "/md5/" . $server_md5 . ".srv.md5")) {
// Server remote configuration editor
diff --git a/pandora_console/godmode/servers/servers.build_table.php b/pandora_console/godmode/servers/servers.build_table.php
index 5f03a29c64..0c8f542f2d 100644
--- a/pandora_console/godmode/servers/servers.build_table.php
+++ b/pandora_console/godmode/servers/servers.build_table.php
@@ -124,9 +124,14 @@ foreach ($servers as $server) {
}
$data[7] = ui_print_timestamp ($server['keepalive'], true);
+
+ $ext = '_server';
+ if ($server['type'] != 'data')
+ $ext = '';
+
$safe_server_name = servers_get_name($server["id_server"]);
- if (!isset($names_servers[$safe_server_name])){
- if (servers_check_remote_config ($safe_server_name) && enterprise_installed()) {
+ if (($server['type'] == 'data' || $server['type'] == 'enterprise satellite')) {
+ if (servers_check_remote_config ($safe_server_name . $ext) && enterprise_installed()) {
$names_servers[$safe_server_name] = true;
} else {
$names_servers[$safe_server_name] = false;
@@ -154,8 +159,8 @@ foreach ($servers as $server) {
array('title' => __('Edit')));
$data[8] .= '';
- if ($names_servers[$safe_server_name] === true) {
- $data[8] .= '';
+ if (($names_servers[$safe_server_name] === true) && ($server['type'] == 'data' || $server['type'] == 'enterprise satellite')) {
+ $data[8] .= '';
$data[8] .= html_print_image ('images/remote_configuration.png', true,
array('title' => __('Remote configuration')));
$data[8] .= '';