* include/functions_api.php, include/functions_db.php,
operation/incidents/incident_detail.php, godmode/agentes/agent_template.php,
godmode/servers/manage_recontask.php, godmode/snmpconsole/snmp_alert.php,
godmode/users/configure_profile.php: change the source code
for to use process_sql_insert instead of the SQL (SQL write in multiple lines).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4071 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php, include/functions_db.php,
extensions/update_manager.php, extensions/plugin_registration.php,
operation/incidents/incident.php, operation/incidents/incident_detail.php,
godmode/agentes/planned_downtime.php, godmode/servers/recon_script.php,
godmode/snmpconsole/snmp_filters.php, godmode/setup/news.php,
godmode/modules/manage_network_templates_form.php: change the source code
for to use process_sql_insert instead of the SQL.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4067 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_modules.php, include/functions_reporting.php,
include/functions_gis.php, include/functions_servers.php,
include/ajax/reporting.ajax.php, include/fgraph.php,
include/functions_db.php, include/functions_alerts.php,
include/functions_reports.php, extensions/system_info.php,
extensions/agents_modules.php, operation/agentes/group_view.php,
operation/events/events_rss.php, operation/reporting/reporting_xml.php,
operation/reporting/reporting_viewer.php, extras/pandora_diag.php,
general/logon_ok.php, godmode/db/db_audit.php, godmode/db/db_event.php,
godmode/db/db_purge.php, godmode/agentes/planned_downtime.php,
godmode/setup/setup.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/modules/manage_network_templates.php,
godmode/modules/manage_network_templates_form.php,
godmode/reporting/reporting_builder.list_items.php,
godmode/reporting/reporting_builder.preview.php,
godmode/reporting/reporting_builder.php: changes for to use character " in
the SQL queries for PostgreSQL, in some cases. In other case there are more
changes for to create SQL query PostgreSQL.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4062 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/db/postgresql.php, include/db/mysql.php, include/functions_db.php:
fixed the function "get_db_all_rows_filter" for PostgreSQL engine, added
new function "get_db_last_error" and derivate functions in DB engines. And
added new parameter $status in function "process_sql".
* extensions/dbmanager.php, general/error_authconfig.php,
general/error_dbconfig.php, godmode/groups/modu_group_list.php,
godmode/groups/group_list.php, godmode/db/db_sanity.php,
godmode/agentes/fields_manager.php,
godmode/agentes/manage_config_remote.php, godmode/servers/recon_script.php,
godmode/servers/plugin.php, godmode/modules/module_list.php,
godmode/modules/manage_network_components_form_wmi.php,
godmode/reporting/graphs.php: changed the calls to mysql functions to own
functions, and rewrote some parts of source code for this action.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4057 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/setup/news.php, godmode/setup/links.php, include/fgraph.php,
operation/agentes/status_monitor.php, operation/reporting/graph_viewer.php:
changed the calls to mysql functions to own functions.
* godmode/agentes/module_manager.php: marked with a comment the source code
the SQL postgreSQL and mySQL standar querys.
* include/functions_html.php, include/db/postgresql.php,
include/functions_reporting.php, include/pchart_graph.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4056 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/agent_manager.php: fixed the return of ajax call to
search parents, now the agent names is without html entities.
Fixes: #3174872
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3957 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/configurar_agente.php: Fixed bad layout when
length of agent name is more than 25.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3930 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/module_manager.php: added to call to enterprise functions
to delete "pseudo code" of local module when delete in multiple delete
action.
Fixes: #3161621
* include/functions_filemanager.php: cleaned source code old unused
comments.
* include/functions_ui.php: in function "printTruncateText" fixed when pass
0 character to trunk, now return all text. And in function
"print_agent_name" cleaned source code style.
* operation/agentes/estado_agente.php: fixed order of params in the call
of function "print_agent_name".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3751 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* trunk/pandora_console/include/functions_html.php: print_select function edited to deal with long fields.
* trunk/pandora_console/include/functions_ui.php: printTruncateText function edited to truncate in the middle of the word.
* trunk/pandora_console/pandoradb.sql: changed type for field "nombre" in "tgrupo" table.
* trunk/pandora_console/pandora_console_install: added support for Fedora. Thanks to philipmbrown.
* trunk/pandora_console/extensions/agents_modules.php: truncated text to 19 characters showing agent names
* trunk/pandora_console/operation/agentes/group_view.php: Truncated group name to deal with long fields.
* trunk/pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql: changed type for field "nombre" in "tgrupo" table.
* trunk/pandora_console/godmode/groups/group_list.php: Truncated group name to deal with long fields.
* trunk/pandora_console/godmode/agentes/modificar_agente.php: truncated agent names to deal with long fields.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3744 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_extensions.php: added functions
"add_extension_godmode_tab_agent" and "add_extension_opemode_tab_agent" to
add the extensions tab in the header in operation and godmode.
* operation/agentes/ver_agente.php,
godmode/agentes/configurar_agente.php: added hook for to add the extension
tabs.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3585 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php: added the function
"print_autocomplete_modules". This function is same to magic-select box for
agents instead this for modules.
* include/javascript/jquery.ui.datepicker.js,
include/javascript/jquery.ui.droppable.js: fixed end of lines that it
haven't semicolon end char.
* include/ajax/module.php: fix version of file that responds to ajax
request for the magic-select box for modules.
* include/functions_ui.php: in function "format_alert_row" use new call
for the "isAlertInPolicy2".
* include/functions_db.php: added in function "get_agent_modules" for the
parameter $filter, the posibility to search with the "like" mysql operator.
* images/lightning_blue.png: blue lighting for new magic-select box agents.
* godmode/agentes/configurar_agente.php: cleaned source code style.
* godmode/alerts/alert_list.list.php: use new call for the
"isAlertInPolicy2". And fixed the column align for policies and actions.
* godmode/reporting/reporting_builder.list_items.php: erased old source
code lines comments.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3509 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php: cleaned source code style. And added line
comments for to explain obfuscated $$ operation in function
"print_input_text_extended".
* godmode/agentes/module_manager_editor_plugin.php: set the field
"plugin_parameters" with unlimited size.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3483 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* extensions/dbmanager.php, godmode/agentes/module_manager_editor.php,
godmode/massive/massive_add_alerts.php,
godmode/massive/massive_copy_modules.php,
godmode/massive/massive_delete_agents.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/massive/massive_edit_agents.php,
godmode/massive/massive_delete_action_alerts.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_add_profiles.php,
godmode/massive/massive_delete_alerts.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php: now in the source code pick
more info in the audit for actions.
Pending tasks: #3089687
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3480 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/modificar_agente.php,
godmode/agentes/configurar_agente.php: now in the source code pick more
info in the audit for actions to create, update and delete agent, and in
other hand for the actions to create, update, duplicate and delete module.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3472 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/configurar_agente.php,
godmode/massive/massive_edit_agents.php: erased the calls "debugPrint" found
in source code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3471 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/module_manager_editor_network.php: Added enterprise
check before isModuleAdopt(). It is not in opensource version.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3454 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/db/db_refine.php, godmode/agentes/manage_config_remote.php,
godmode/admin_access_logs.php, godmode/snmpconsole/snmp_filters.php,
godmode/snmpconsole/snmp_alert.php: Updated year, close html tags, put pixel
in tables, center some icons, small cosmetics changes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3450 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/module_manager_editor_network.php: added lines to unblock
SNMP community when the module is adopt.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3407 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_modules.php
godmode/agentes/module_manager.php
godmode/agentes/configurar_agente.php: Added clone module
into an agent to the manage modules view
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3404 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql, extras/pandoradb_migrate_v3.1_to_v3.2.sql: added in the
table "tagente_modulo" the field "policy_adopted" for to set a module
pre exist in policy as adopted.
*operation/agentes/status_monitor.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/estado_monitores.php,
godmode/agentes/module_manager_editor_common.php,
godmode/agentes/module_manager.php: show the icon of "adopted" or "adopted
but unlinked" in the list of modules.
Pending tasks: #3083123
* include/functions_modules.php: cleaned source code style in function
"update_agent_module".
* godmode/agentes/module_manager_editor_network.php: fixed warning messages
when use this file in policies.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3402 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php
include/functions_io.php
include/functions_ui.php
godmode/agentes/module_manager.php: Created a new safe input
function more soft than safe_input() for html code. Applied this
function (safe_input_html()) in few functions like print_image
or print_page_header.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3399 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* extensions/system_info.php: add TODO.
* godmode/agentes/module_manager_editor.php: fixed the ajax with the new
safe_ouput function.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3395 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/module_manager_editor_common.php
godmode/agentes/module_manager_editor.php: Fixed SQL
error when try to create a module called 0
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3368 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/configurar_agente.php: Added custom fields to the global
edit/insert code. Not really used here, but for the future.
* godmode/modules/module_list.php: Show ID of modules, useful information.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3364 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/configurar_agente.php: fixed the source code, now when you
create a agent, the agent have not a any module.
Fixes: #3077024
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3356 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/agentes/status_monitor.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/estado_monitores.php, godmode/agentes/module_manager.php:
fixed the icon of policy in list of modules, now show when the module is
unlinked. And cleaned source code style.
Fixes: #3078716
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3351 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/modificar_agente.php: Vertical aligned some icons.
TO DO: The table should be "migrated" to new table code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3304 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php
godmode/agentes/modificar_agente.php: Added the calls
to enterprise to delete an agent to all their policies
when we delete it for bug 3072471
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3266 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/config.inc.php: config_process.php is obtained from
defined path in homedir variable.
* godmode/agentes/module_manager_editor_network.php: Limit for
OID lenght was too short, DB gets 255 chars, now input also gets
255 chars.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/configurar_agente.php: Added local module
deletion in conf file to another place where the modules can
be deleted. Clean the code too
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3240 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/fields_manager.php: Added code to show text if no
fields defined, instead the table header.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3188 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agents/module_manager_editor.php: Changed if() statements
order. isModuleInPolicy() is not available in open source version.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3186 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_agents.php: Call to get_agents () with current
user and without returning "all" group, this avoid to render non-visible
(ACL) agents in the AJAX control to return an agent.
* pandoradb.sql: ttrap value* information resized.
* extensions/users_connected.php: ACL check before show users.
* operation/events/events_marquee.php: Added ACL check.
* operation/events/events.php: System events not shown to normal
users.
* operation/menu.php: Server view is now only for PM.
* extras/pandoradb_migrate_v3.1_to_v3.2.sql: ttrap value* alter
table.
* general/noaccess.php: Added code to avoid image usage when called
from different directories than standard.
* godmode/agentes/agent_manager.php: Proper call to
get_user_groups().
* godmode/menu.php: Profiles are now under user management.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3183 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql
operation/agentes/estado_generalagente.php
operation/agentes/custom_fields.php
operation/agentes/ver_agente.php
operation/agentes/agent_fields.php
extras/pandoradb_migrate_v3.1_to_v3.2.sql
godmode/agentes/fields_manager.php
godmode/agentes/configurar_agente.php
godmode/agentes/configure_field.php
godmode/agentes/agent_manager.php
godmode/menu.php: Added the custom field feature
including agents custom fields managment, agent
custom field viewer, custom fields added at the
agent configuration, customization of the custom
fields to display it in the agent details and
the creation of two new tables into the sql scripts
All for pending task: 3052918
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3181 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/massive_copy_modules.php
godmode/agentes/massive_add_alerts.php
godmode/agentes/massive_delete_agents.php
godmode/agentes/massive_delete_action_alerts.php
godmode/agentes/massive_delete_alerts.php
godmode/agentes/massive_edit_modules.php
godmode/agentes/massive_operations.php
godmode/agentes/massive_delete_modules.php
godmode/agentes/massive_add_action_alerts.php
godmode/menu.php
godmode/massive
godmode/massive/massive_copy_modules.php
godmode/massive/massive_add_alerts.php
godmode/massive/massive_delete_agents.php
godmode/massive/massive_operations.php
godmode/massive/massive_delete_action_alerts.php
godmode/massive/massive_delete_modules.php
godmode/massive/massive_delete_alerts.php
godmode/massive/massive_edit_modules.php
godmode/massive/massive_add_action_alerts.php: Created
a new section for massive operations and change the
structure of the files to new folder
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3164 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/module_manager_editor_common.php
godmode/agentes/module_manager_editor_network.php
godmode/agentes/module_manager_editor_wmi.php
godmode/agentes/module_manager_editor_plugin.php
godmode/agentes/module_manager_editor_prediction.php
godmode/agentes/module_manager_editor.php: Added the policy linkation
configuration in the modules form and allowed to modify modules
config if the module is unlinked
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3163 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f