From d0972921ffd6a0d12eb377b6239b293e183ef556 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Wed, 2 Jun 2010 16:43:59 +0000 Subject: [PATCH] 2010-06-02 Miguel de Dios * godmode/agentes/module_manager_editor_plugin.php: fixed, now show the description of plugin selected. * godmode/servers/plugin.php: added the response to ajax for query the report description. Fixes: #3008494 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2848 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 12 +++++++++++- .../agentes/module_manager_editor_plugin.php | 19 +++++++++++++++++-- pandora_console/godmode/servers/plugin.php | 9 +++++++++ 3 files changed, 37 insertions(+), 3 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 578b1c678c..e8b22f2922 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,4 +1,14 @@ -2010-06-01 Miguel de Dios +2010-06-02 Miguel de Dios + + * godmode/agentes/module_manager_editor_plugin.php: fixed, now show the + description of plugin selected. + + * godmode/servers/plugin.php: added the response to ajax for query the + report description. + + Fixes: #3008494 + +2010-06-02 Miguel de Dios * include/functions_reporting.php, include/functions.php, godmode/reporting/reporting_builder.php, diff --git a/pandora_console/godmode/agentes/module_manager_editor_plugin.php b/pandora_console/godmode/agentes/module_manager_editor_plugin.php index 4ee4e71fce..9f7b811e93 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_plugin.php +++ b/pandora_console/godmode/agentes/module_manager_editor_plugin.php @@ -41,8 +41,9 @@ $extra_title = __('Plugin server module'); $data = array (); $data[0] = __('Plugin'); $data[1] = print_select_from_sql ('SELECT id, name FROM tplugin ORDER BY name', - 'id_plugin', $id_plugin, '', __('None'), 0, true, false, false, $disabledBecauseInPolicy); -$table_simple->colspan['plugin_1'][1] = 3; + 'id_plugin', $id_plugin, 'changePluginSelect();', __('None'), 0, true, false, false, $disabledBecauseInPolicy); +$table_simple->colspan['plugin_1'][2] = 2; +$data[2] = ''; push_table_simple ($data, 'plugin_1'); @@ -70,3 +71,17 @@ $table_simple->colspan['plugin_3'][1] = 3; push_table_simple ($data, 'plugin_3'); ?> + diff --git a/pandora_console/godmode/servers/plugin.php b/pandora_console/godmode/servers/plugin.php index 65f24ccc50..2095fc2f2d 100644 --- a/pandora_console/godmode/servers/plugin.php +++ b/pandora_console/godmode/servers/plugin.php @@ -14,6 +14,15 @@ // GNU General Public License for more details. +if (is_ajax ()) { + $get_plugin_description = get_parameter('get_plugin_description'); + $id_plugin = get_parameter('id_plugin'); + + $description = get_db_value_filter('description', 'tplugin', array('id' => $id_plugin)); + + echo safe_output($description); + return; +} // Load global vars global $config;