* conf/pandora_server.conf
lib/PandoraFMS/Config.pm
lib/PandoraFMS/DataServer.pm: Added support for Openstreetmaps
API for reverse geolocation.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4073 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* 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_reporting.php: added the SQL query with correct
date operations for PostgreSQL.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4065 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php, godmode/admin_access_logs.php: changes for the
interval operator in PostgreSQL.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4064 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.oracle.sql: Added to repository. Creation script with some
tables of pandora db schema for Oracle DBMS.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4063 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
* general/logon_ok.php: change the SQL in postgreSQL and some parts of
source code to use the colummns with the case sensitive.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4061 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_events.php, include/functions_reporting.php,
include/functions_db.php, extensions/users_connected.php,
general/logon_ok.php: added the SQL queries PostgreSQL
compatible, in this case with the function to get unix_timestamp.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4060 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: made rollback the version of function
"select_db_engine" because I had a mistake in the previous commit.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4059 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/db/postgresql.php, include/db/mysql.php, include/functions_db.php:
the function "get_system_time" and derivate functions in DB engines.
* include/functions_gis.php, include/functions_servers.php,
include/help/en/help_timesource.php, include/help/es/help_timesource.php,
include/help/ja/help_timesource.php, include/functions.php,
operation/agentes/estado_agente.php, operation/agentes/gis_view.php,
operation/gis_maps/render_view.php: added the SQL queries PostgreSQL
compatible, in this case with the function to get unix_timestamp.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4058 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
* include/functions_reporting.php: refixed the status when the agent have
any module critical and any alert fired.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4054 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions*.php: Updated year in files changed this year. Also
changed spaces to tabs.
* pandora_console_install, pandora_console_upgrade,
pandora.data.postgreSQL.sql, pandoradb_data.sql
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4053 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: added the call to
"get_agentmodule_status" without check the alerts status for the color.
* include/functions_db.php: in function "get_agentmodule_status" added new
parameter "$without_alerts" flag for check without alerts.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4049 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/db/postgresql.php, include/db/mysql.php, include/functions.php:
separate the function "mysql_safe_sql_string" into the two version for MySQL
and PostgreSQL engine.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4048 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/db/postgresql.php, include/db/mysql.php, include/functions.php:
separate the function "mysql_safe_sql_string" into the two version for MySQL
and PostgreSQL engine.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4047 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/db/postgresql.php: fixed in the function
"postgresql_get_db_all_rows_in_table" unclose quotes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4046 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/help/es/modu_group_list.php: erased the unused php file. I think
that this file wrong uploaded.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4045 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/modules/pandora_module_factory.cc, unix/pandora_agent: Changed
module_post_process to module_postprocess to match the documentation.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4044 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* install.php: modified the source code for install postgreSQL DB to make
the pandora user db as owner of tables.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4043 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/db/postgresql.php, include/db/mysql.php, include/functions_db.php:
separate the function "process_sql_rollback" into the two version for
MySQL and PostgreSQL engine.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4042 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/db/postgresql.php, include/db/mysql.php, include/functions_db.php:
separate the function "get_db_all_row_by_steps_sql", "process_sql_begin",
"process_sql_commit" and "process_sql_rollback" into the two version for
MySQL and PostgreSQL engine.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4040 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/ajax/skins.ajax.php: Replaced "give_acl" function call to
"check_acl".
* include/config_process.php: "block_size" and "flash_charts" user options
override global options.
* include/functions_ui.php: If user has assigned a skin then use skins's
css files if it's possible.
* include/functions_db.php: Added missing function get_profile_filter.
* include/functions_themes.php: New parameter "path" in order to list all
css files of an specific path.
* index.php: Added functions_themes.php include statement.
* operation/users/user_edit.php
godmode/users/configure_user.php: Added new user options: "skin", "block_size"
and "flash_charts".
* godmode/setup/setup_visuals.php: Removed "custom_logo" options in setup for
pandora enterprise version.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4038 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/db/postgresql.php, include/db/mysql.php, include/functions_db.php:
separate the function "format_array_to_update_sql", "process_sql_update",
"process_sql_delete" into the two version for MySQL and PostgreSQL engine.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4037 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* win32/modules/pandora_module.h,
win32/modules/pandora_module_factory.cc,
win32/modules/pandora_module.cc,
unix/pandora_agent,
shellscript/linux/pandora_agent: Set the module min, max and
post_process in the XML data file.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4036 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/db/postgresql.php, include/db/mysql.php, include/functions_db.php:
separate the function "get_db_all_rows_filter", "get_db_num_rows",
"get_db_all_rows_field_filter" and "get_db_all_fields_in_table" into the two
version for MySQL and PostgreSQL engine.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4035 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/db/postgresql.php, include/db/mysql.php, include/functions_db.php:
separate the function "get_db_value_sql", "get_db_row_sql" and
"get_db_row_filter" into the two version for MySQL and PostgreSQL engine.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4034 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/db/postgresql.php, include/db/mysql.php, include/functions_db.php:
separate the function "get_db_value_filter" and
"format_array_to_where_clause_sql" into the two version for MySQL and
PostgreSQL engine.
* operation/events/events_list.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4033 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php: new parameter in function print_image in
order to return only src field of image.
* include/ajax/visual_console_builder.ajax.php
include/functions_gis.php
godmode/groups/configure_group.php
godmode/alerts/configure_alert_compound.php
godmode/setup/os.builder.php
godmode/reporting/visual_console_builder.editor.js
godmode/reporting/visual_console_builder.editor.php
godmode/reporting/reporting_builder.item_editor.php: Changed the way of create
images from "<img=.." html tag to print_image function.
* include/ajax/skins.ajax.php: Added to repository. New php callback for
skins support inside javascript code.
* ajax.php: Load of relative_path variable in ajax user session.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4028 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* extensions/update_manager.php: replaced obsolete "give_acl" to "check_acl"
and erased the "give_acl".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4026 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/ajax/visual_console_builder.ajax.php
godmode/reporting/visual_console_builder.editor.js: Status information is
saved when static graph are created in visual console.
* godmode/reporting/visual_console_builder.elements.php: Fixed wrong call to
__() function from functions_db.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4023 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_data.sql, pandoradb.data.postgreSQL.sql: in the table "tgrupo"
reordered the last field, this field is "custom_id" with '' value.
* pandoradb.postgreSQL.sql: commented the first lines before it was for
make manuallity the schema. Fixed in the "talert_templates" the column
"id_alert_action" can be null, and fixed the type of column "id_language"
in table "tlanguage". And move to empty lines some end line comments and
group in one line the functions for avoid the error in the install.
* include/db/postgresql.php: fixed in the function "postgresql_get_db_row"
the quotes for the field, the correct quotes is " for PostgreSQL.
* include/auth/mysql.php, include/functions_db.php: cleaned source code
style.
* install.php: now the installer can install a schema and data in PostgreSQL
database.
* extensions/update_manager.php: added some code and TODO comment to fix or
develop the method to use postgreSQL.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4021 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/db/postgresql.php: in function "postgresql_connect_db" added
quotes for special names in user or password or host. Fixed in function
"postgresql_process_sql" the output errors.
* install.php: begin to make a source code to install Pandora in DB schema
on PostgreSQL.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4019 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f