From 62b2159ff47a23a661d1a0c9f4c84c94977760df Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Wed, 9 Sep 2009 11:05:59 +0000 Subject: [PATCH] 2009-09-09 Miguel de Dios * godmode/agentes/massive_edit_modules.php: add more (user and pass for wmi or plugin) fields to massive edit. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1923 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ .../godmode/agentes/massive_edit_modules.php | 22 ++++++++++++++----- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 6143bec66b..9f127fbb30 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2009-09-09 Miguel de Dios + + * godmode/agentes/massive_edit_modules.php: add more (user and pass for + wmi or plugin) fields to massive edit. + 2009-09-09 Miguel de Dios * include/functions_db.php: add new function "get_all_groups", this function diff --git a/pandora_console/godmode/agentes/massive_edit_modules.php b/pandora_console/godmode/agentes/massive_edit_modules.php index 4e48e0e56a..3598758738 100644 --- a/pandora_console/godmode/agentes/massive_edit_modules.php +++ b/pandora_console/godmode/agentes/massive_edit_modules.php @@ -115,6 +115,7 @@ if (! $module_type) { $table->rowstyle['edit3'] = 'display: none'; $table->rowstyle['edit4'] = 'display: none'; $table->rowstyle['edit5'] = 'display: none'; + $table->rowstyle['edit6'] = 'display: none'; } $agents = get_group_agents (array_keys (get_user_groups ()), false, "none"); $module_types = get_db_all_rows_filter ('tagente_modulo,ttipo_modulo', @@ -199,11 +200,20 @@ $table->data['edit4'][2] = __('Group'); $table->data['edit4'][3] = print_select (get_modulegroups(), 'id_module_group', '', '', __('Select'), 0, true, false, false); +$table->data['edit5'][0] = __('Username'); +$table->data['edit5'][1] = print_input_text ('plugin_user', '', '', 15, 60, true); +$table->data['edit5'][2] = __('Password'); +$table->data['edit5'][3] = print_input_password ('plugin_pass', '', '', 15, 60, true); + + + + + /* FF stands for Flip-flop */ -$table->data['edit5'][0] = __('FF threshold').' '.print_help_icon ('ff_threshold', true); -$table->data['edit5'][1] = print_input_text ('min_ff_event', '', '', 5, 15, true); -$table->data['edit5'][2] = __('Historical data'); -$table->data['edit5'][3] = print_checkbox ("history_data", 1, '', true); +$table->data['edit6'][0] = __('FF threshold').' '.print_help_icon ('ff_threshold', true); +$table->data['edit6'][1] = print_input_text ('min_ff_event', '', '', 5, 15, true); +$table->data['edit6'][2] = __('Historical data'); +$table->data['edit6'][3] = print_checkbox ("history_data", 1, '', true); echo '
'; print_table ($table); @@ -256,13 +266,13 @@ $(document).ready (function () { $("#module_name").change (function () { if (this.value <= 0) { // $("td#delete_table-0-1").css ("width", "85%"); - $("tr#delete_table-edit1, tr#delete_table-edit2, tr#delete_table-edit3, tr#delete_table-edit4, tr#delete_table-edit5").hide (); + $("tr#delete_table-edit1, tr#delete_table-edit2, tr#delete_table-edit3, tr#delete_table-edit4, tr#delete_table-edit5, tr#delete_table-edit6").hide (); return; } $("td#delete_table-0-1, td#delete_table-edit1-1, td#delete_table-edit2-1").css ("width", "35%"); $("#form_edit input[type=text]").attr ("value", ""); $("#form_edit input[type=checkbox]").removeAttr ("checked"); - $("tr#delete_table-edit1, tr#delete_table-edit2, tr#delete_table-edit3, tr#delete_table-edit4, tr#delete_table-edit5").show (); + $("tr#delete_table-edit1, tr#delete_table-edit2, tr#delete_table-edit3, tr#delete_table-edit4, tr#delete_table-edit5, tr#delete_table-edit6").show (); }); $("#groups_select").change (