';
- $output .= __(
- 'In the Open version of %s can not be edited nodes or map',
- get_product_name()
- );
- $output .= '
';
+ $id = 'dialog_node_edit';
+ if (!enterprise_installed()) {
+ $id = 'open_version_dialog';
+ }
- $output .= '';
$output .= '
';
@@ -3016,14 +3014,16 @@ class NetworkMap
true
);
- $output .= ui_toggle(
- html_print_table($table, true),
- __('Node options'),
- __('Node options'),
- '',
- true,
- true
- );
+ if (enterprise_installed()) {
+ $output .= ui_toggle(
+ html_print_table($table, true),
+ __('Node options'),
+ __('Node options'),
+ '',
+ true,
+ true
+ );
+ }
$table = new StdClass();
$table->id = 'relations_table';
@@ -3077,14 +3077,16 @@ class NetworkMap
true
);
- $output .= ui_toggle(
- html_print_table($table, true),
- __('Relations'),
- __('Relations'),
- '',
- true,
- true
- );
+ if (enterprise_installed()) {
+ $output .= ui_toggle(
+ html_print_table($table, true),
+ __('Relations'),
+ __('Relations'),
+ '',
+ true,
+ true
+ );
+ }
$output .= '
';
diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php
index 3edda7e357..4d3665db4d 100644
--- a/pandora_console/include/functions_config.php
+++ b/pandora_console/include/functions_config.php
@@ -852,6 +852,10 @@ function config_update_config()
if (!config_update_value('max_execution_event_response', get_parameter('max_execution_event_response'))) {
$error_update[] = __('Max execution event response');
}
+
+ if (!config_update_value('row_limit_csv', get_parameter('row_limit_csv'))) {
+ $error_update[] = __('Row limit in csv log');
+ }
break;
case 'vis':
@@ -1852,6 +1856,10 @@ function config_process_config()
config_update_value('max_macro_fields', 10);
}
+ if (!isset($config['row_limit_csv'])) {
+ config_update_value('row_limit_csv', 10000);
+ }
+
if (!isset($config['event_purge'])) {
config_update_value('event_purge', 15);
}
diff --git a/pandora_console/include/functions_profile.php b/pandora_console/include/functions_profile.php
index 4406fd72b6..e55a37ddf8 100644
--- a/pandora_console/include/functions_profile.php
+++ b/pandora_console/include/functions_profile.php
@@ -234,7 +234,7 @@ function profile_print_profile_table($id)
$sql = sprintf(
"SELECT tusuario_perfil.* FROM tusuario_perfil
INNER JOIN tperfil ON tperfil.id_perfil = tusuario_perfil.id_perfil
- WHERE id_usuario like '%s' AND id_grupo IN (%s) AND user_management = 0",
+ WHERE id_usuario like '%s' AND id_grupo IN (%s)",
$id,
$group_um_string
);
diff --git a/pandora_console/include/functions_users.php b/pandora_console/include/functions_users.php
index 73e7340838..16cc5464b8 100755
--- a/pandora_console/include/functions_users.php
+++ b/pandora_console/include/functions_users.php
@@ -752,6 +752,11 @@ function users_get_groups_UM($id_user)
foreach ($groups as $key => $group) {
if (!isset($return[$group['id_grupo']]) || (isset($return[$group['id_grupo']]) && $group['user_management'] != 0)) {
$return[$group['id_grupo']] = $group['user_management'];
+ $children = groups_get_children($group['id_grupo'], false, 'UM', false);
+ foreach ($children as $key => $child_group) {
+ $return[$child_group['id_grupo']] = $group['user_management'];
+ }
+
if ($group['id_grupo'] == '0') {
$return['group_all'] = $group['id_grupo'];
}
diff --git a/pandora_console/include/javascript/functions_pandora_networkmap.js b/pandora_console/include/javascript/functions_pandora_networkmap.js
index bb306ccd66..3450caa518 100644
--- a/pandora_console/include/javascript/functions_pandora_networkmap.js
+++ b/pandora_console/include/javascript/functions_pandora_networkmap.js
@@ -771,139 +771,137 @@ function move_to_networkmap(node) {
}
function edit_node(data_node, dblClick) {
- if (enterprise_installed) {
- var flag_edit_node = true;
- var edit_node = null;
+ var flag_edit_node = true;
+ var edit_node = null;
- //Only select one node
- var selection = d3.selectAll(".node_selected");
- var id;
+ //Only select one node
+ var selection = d3.selectAll(".node_selected");
+ var id;
- if (selection[0].length == 1) {
- edit_node = selection[0].pop();
- } else if (selection[0].length > 1) {
- edit_node = selection[0].pop();
- } else if (dblClick) {
- edit_node = d3.select("#id_node_" + data_node["id"] + networkmap_id);
- edit_node = edit_node[0][0];
- } else {
- flag_edit_node = false;
+ if (selection[0].length == 1) {
+ edit_node = selection[0].pop();
+ } else if (selection[0].length > 1) {
+ edit_node = selection[0].pop();
+ } else if (dblClick) {
+ edit_node = d3.select("#id_node_" + data_node["id"] + networkmap_id);
+ edit_node = edit_node[0][0];
+ } else {
+ flag_edit_node = false;
+ }
+
+ if (flag_edit_node) {
+ d3.selectAll(".node_selected").classed("node_selected", false);
+ d3.select(edit_node).classed("node_selected", true);
+
+ id = d3
+ .select(edit_node)
+ .attr("id")
+ .replace("id_node_", "");
+ var id_networkmap_lenght = networkmap_id.toString().length;
+ var id_node_length = id.length - id_networkmap_lenght;
+ id = id.substring(0, id_node_length);
+ var index_node = $.inArray(data_node, graph.nodes);
+ var node_selected = graph.nodes[index_node];
+ var selected_links = get_relations(node_selected);
+
+ $("select[name='shape'] option[value='" + node_selected.shape + "']").prop(
+ "selected",
+ true
+ );
+ $("select[name='shape']").attr(
+ "onchange",
+ "javascript: change_shape(" + node_selected.id_db + ");"
+ );
+ $("#node_options-fictional_node_update_button-1 input").attr(
+ "onclick",
+ "update_fictional_node(" + node_selected.id_db + ");"
+ );
+
+ $("#node_options-node_name-2 input").attr(
+ "onclick",
+ "update_node_name(" + node_selected.id_db + ");"
+ );
+
+ var params = [];
+ params.push("get_agent_info=1");
+ params.push("id_agent=" + node_selected["id_agent"]);
+ params.push("page=enterprise/operation/agentes/pandora_networkmap.view");
+
+ if (!enterprise_installed) {
+ params.push("page=operation/agentes/pandora_networkmap.view");
}
- if (flag_edit_node) {
- d3.selectAll(".node_selected").classed("node_selected", false);
- d3.select(edit_node).classed("node_selected", true);
-
- id = d3
- .select(edit_node)
- .attr("id")
- .replace("id_node_", "");
- var id_networkmap_lenght = networkmap_id.toString().length;
- var id_node_length = id.length - id_networkmap_lenght;
- id = id.substring(0, id_node_length);
- var index_node = $.inArray(data_node, graph.nodes);
- var node_selected = graph.nodes[index_node];
- var selected_links = get_relations(node_selected);
-
- $(
- "select[name='shape'] option[value='" + node_selected.shape + "']"
- ).prop("selected", true);
- $("select[name='shape']").attr(
- "onchange",
- "javascript: change_shape(" + node_selected.id_db + ");"
- );
- $("#node_options-fictional_node_update_button-1 input").attr(
- "onclick",
- "update_fictional_node(" + node_selected.id_db + ");"
- );
-
- $("#node_options-node_name-2 input").attr(
- "onclick",
- "update_node_name(" + node_selected.id_db + ");"
- );
-
- var params = [];
- params.push("get_agent_info=1");
- params.push("id_agent=" + node_selected["id_agent"]);
- params.push("page=enterprise/operation/agentes/pandora_networkmap.view");
-
- jQuery.ajax({
- data: params.join("&"),
- dataType: "json",
- type: "POST",
- url: window.base_url_homedir + "/ajax.php",
- success: function(data) {
- $("#node_details-0-1").html(
- '