* 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
* 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/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
* 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
* 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
* 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
* include/db/postgresql.php, include/db/mysql.php,include/functions_db.php:
created the function "postgresql_get_db_row" in to the engines mysql and
postgreSQL.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4017 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/db/postgresql.php, include/db/mysql.php, include/functions_db.php:
create the function "get_db_value" for the engine mysql and postgreSQL.
* index.php: cleaned source code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4014 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_console/include/functions_db.php: fixed in the function
"get_agent_modules" extract the agents when the current user user is admin.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4004 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_config.php: Fixed an error at the momment of accept the
license terms in enterprise installation process.
Fixes: #3183681
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4001 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_extensions.php: Extension menu entries text not
being stripped.
* operation/menu.php: Extension menu entries for visualconsole a bit
wider.
* godmode/reporting/visual_console_builder.data.php: Show a hint on
first letter of Visualconsole map to put the name in the menu.
Shortened input box, to avoid people enter long names and later be
cutted off.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3977 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_networkmap.php: Fixed the group maps
when the root group has not agents. Bug: 3152679
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3956 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: added in function "get_group_agents" the
parameter "$childGroups" for get the child groups. And in the function
"get_user_groups" added the parameter "$id_groups" for to get groups. Add
the function "get_id_groups_recursive" for to get groups in the tree groups.
* godmode/reporting/visual_console_builder.wizard.php: fixed the select box
of agents when user have agents in subgroup in any subgroup in the tree
group.
Fixes: #3180902
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3947 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php, operation/search_modules.php,
operation/search_agents.php: sorry, I didn't think about the subgroups may
have other subgroups (and this may be recursive), rewrite the SQL for
search with groups, now the groups come from the PHP function to get
all groups, children groups, grandchildren groups...
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3927 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php, operation/search_modules.php,
operation/search_agents.php: fixed SQL querys, this querys in previous
version haven't lines SQL code for to search into subgroups.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3925 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/ajax/visual_console_builder.ajax.php,
godmode/reporting/visual_console_builder.editor.js: fixed bug that erase the
label of items when moving in other position.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3919 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reports.php
godmode/reporting/reporting_builder.main.php
godmode/reporting/reporting_builder.php:Only administrator users can select and see
group All in this views.
Fix: #3183412, 3183413
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3911 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_custom_graphs.php
godmode/reporting/graph_builder.main.php
godmode/reporting/graphs.php: Only administrator users can select and see
group All in this views.
Fix: #3183419, 3183421
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3908 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/help/en/help_agent_status.php,
include/help/es/help_agent_status.php,
include/help/ja/help_agent_status.php: The 'no monitors' status does
not make sense now that all modules have a status.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3902 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_alerts.php: New function get_alert_actions_filter.
* operation/agentes/estado_agente.php: If user is not admin or doesn't have
'PM' privileges then don't display alerts of others groups.
* godmode/alerts/configure_alert_template.php: If user is not admin or doesn't have
'PM' privileges then don't display templates of others groups.
* godmode/alerts/configure_alert_action.php: Don't show "create command" option
in this view if current user is not administrator or or doesn't have
'PM' privileges.
* godmode/alerts/alert_list.builder.php: If user is not admin or doesn't have
'PM' privileges then don't display alerts of others groups.
Fixes: #3182557, 3182566
* include/functions_visual_map.php: Added a parameter in function get_user_layouts for
return All group or not.
* godmode/reporting/visual_console_builder.data.php: In map creation only display "All"
group if user has 'PM' privileges or is administrator.
* godmode/reporting/map_builder.php: If user is not admin or doesn't have
'PM' privileges then don't display maps of others groups.
* operation/visual_console/index.php: If user is not admin or doesn't have
'PM' privileges then don't display maps of others groups.
Fixes: #3175721, 3175730
* godmode/users/configure_user.php: Only are shown "pandora management" and
"database management" profiles if current user is not administrator or or doesn't have
'PM' privileges.
* godmode/alerts/alert_list.list.php: Fixed query for alert search.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3887 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_menu.php, operation/menu.php: Added a title to GIS
maps and Visual console maps in the menu. Fixes bug #3182148.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3884 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_visual_map.php: added links to services in the items in
the view of visualmap.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3882 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_visual_map.php: added function "createInternalNameItem"
and "get_items_parents".
*include/ajax/visual_console_builder.ajax.php,
godmode/reporting/visual_console_builder.editor.php: changed the method to
show items without name in visualmap as parents in the selectbox.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3875 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_visual_map.php: fixed the edit to set items with empty
names.
* include/ajax/visual_console_builder.ajax.php: fixed the position of
items "icons".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3873 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: fixed check "<>" in other case as the ajax
calls in the visual map.
* godmode/reporting/visual_console_builder.editor.js: cleaned source code
and added some comments.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3871 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/pandora.js, operation/agentes/ver_agente.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php: fixed when the agent haven't
any module and fixed when to try to create items without modules selected.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3865 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_alerts.php, operation/agentes/estado_agente.php: added
check ACL in the show actions in the creation and edit of alerts.
Fixes: #3166657
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3853 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: added in function "get_agent_modules" the
default value null for get modules of agents in user's group.
* godmode/massive/massive_delete_modules.php: fixed the select of modules
now get only the modules of agents in user's group and now you can delete
and view correcly the modules with acent or other not ascii characters.
Fixes: #3182143 and #3175722
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3849 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php: print_input_image function now uses skins.
* godmode/users/configure_profile.php: Added some variable initialization after
selectinf a defined profile.
Fixes: #3182041
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3837 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_config.php, include/api.php, godmode/setup/setup.php:
added the check by password the actions on API.
Pending tasks: #3180793
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3831 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: fixed the include of extensions, mysql or
postgresql for the api call or Pandora Mobile.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3828 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/db/postgresql.php: fixed in function "postgresql_insert_id" the
lost var. Erased traces in the function "postgresql_process_sql". Added
function "postgresql_escape_string_sql".
* include/db/mysql.php: fixed duplicated function "mysql_process_sql". And
added function "mysql_escape_string_sql".
* include/auth/mysql.php: added method to autenticate with postgreSQL.
* include/functions_db.php: added functions "select_db_engine",
"connect_db". And divided the function "escape_string_sql" into avaliable
engines.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3827 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/db/postgresql.php, include/db/mysql.php,
include/functions_db.php: initial division of the DB core in several
engines, at the moment mysql and postgreSQL (not complete).
* include/functions_config.php, include/config_process.php: change source
code to use new functions.
* install.php: mark the mysql engine (in future select).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3826 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_config.php: Loads relative_path variable in user
session.
* include/functions_db.php: Added include call to
functions_extensions.php.
* godmode/groups/configure_group.php
godmode/groups/group_list.php: Added functionality to assign a skin to
a group.
* godmode/menu.php: Added an entry to skins submenu.
* godmode/users/configure_user.php: Added functionality to assign a skin to
a user.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3823 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reportings.php: Added functionality to show only
wrong modules
* pandoradb.sql: Added column 'only_display_wrong" to treports_content
* operation/agentes/estado_agente.php: Truncated agent name to 25 chars
* extras/pandoradb_migrate_v3.2_to_v4.0.sql: Added column
'only_display_wrong" to treports_content
* godmode/reporting/reporting_builder.php: Added functionality to show
only wrong modules
* godmode/reporting/reporting_builder.item_editor.php: Added functionality
to show only wrong modules
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3814 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_fsgraph.php: Fixed html entities are displayed
on graphs when time format contains them.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3792 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/pandora_modules.js, pandoradb.sql,
extras/pandoradb_migrate_v3.2_to_v4.0.sql,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_network_components_form_network.php,
godmode/modules/manage_network_components.php: added the "post process"
parameter to network component and use in network component editor and
module editor.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3788 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php,
godmode/modules/manage_network_templates_form.php: cleaned source style.
* extensions/resource_registration.php: added extensión to import by xml
file the network component, wmi component, smnp component and local
component. And if the xml content a template, this component add into
template.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3785 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: fixed the check ACL in function
"get_agent_modules", the global search alert fixed with this, and I think
that fixed in other places.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3783 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php: In print_image function checks if skin
path is set for the current user and if it exists add it to the image path.
Added pos_tree option on print_image function.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3774 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/pChart/pChart.class: fixed in the function "drawTextBox" when
pass a empty $Text as empty array.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3768 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/pandora.js, operation/agentes/exportdata.php,
operation/agentes/ver_agente.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.elements.php: fixed to show by ajax
the disabled modules and the disabled agents.
Fixes: #3155701
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3766 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_data.sql: Updated SQL with version and new embedded "so".
* include/config_process.php: Version.
* images/os_icons/embedded.png,
images/networkmap/14.png: New embedded agent icon.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3765 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
* include/functions_visual_map.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.editor.php: fixed the resize
background, and now the visualmap the background resize. And now the items
move with resize the background.
Fixes: #3156131
Pending task: #2996500
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3750 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions.php: in function "format_for_graph" added the units
"exa", "zetta" and "yotta".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3748 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
* godmode/reporting/visual_console_builder.editor.js: Label parameter is now coded
in base 64 format when pgraph.php page is requested.
* godmode/reporting/visual_console_builder.editor.php: Added a javascript include.
* include/javascript/encode_decode_base64.js: Added new javascript function for base 64 encoding/decoding.
Fixes bug #3152661, #3147119
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3740 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/help/ja/help_create_agent.php,
include/help/ja/help_reconscript_definition.php,
include/help/ja/help_warning_status.php,
include/help/ja/help_manage_alert_list.php,
include/help/ja/help_critical_status.php: Added new help files in Japanese.
* include/help/ja/help_manage_alerts.php: Added a missing help file.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3739 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_visual_map.php: Changed the way of create marks
for graphs in visual console from divs to tables. Label parameter is
now coded in base 64 codification when pgraph.php page is requested.
Fixes bug #3152661, #3152673
* include/fgraph.php: Decode received parameter (label) in base 64 codification.
* godmode/reporting/visual_console_builder.editor.js: In Visual console builder editor
added some image borders to create marks around graphs.
Fixes bug #3152673
* operation/agentes/stat_win.php
godmode/reporting/graph_builder.preview.php: Label parameter is now coded
in base 64 format when pgraph.php page is requested.
Fixes bug #3152661
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3735 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pchart_graph.php: Remove axis values and legend in small graphs.
* functions_visual_map.php: Added marks (div borders) for beautify visual console graphs.
* fgraph.php: Dont show caption graphs in small graphs.
* functions.php: Added constants for visual console.
Fixes bug #3152673.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3730 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions.php: get_snmpwalk() now accepts a specific part of
the SNMP MIB, that allow to do not search the full mib on user selection.
(Used on the enterprise massive SNMP module adition).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3709 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_data.sql: added custom sql for reports, "Group view".
* include/functions_io.php: fixed the "safe_output" function when decode
the html entity < or > for < or > char.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3706 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions.php: in function "check_sql" added some changes in
the regular expression for pass the pandora field "delete_pending".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3702 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions.php: in function "string2image" fixed when the string
have slash characters.
* extensions/agents_modules.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3700 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/pandora.js: Translate space HTML entities.
Fixes bug #3142670.
* godmode/alerts/configure_alert_action.php: Added a link to the
macro help page.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3695 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php,
operation/reporting/reporting_xml.php: Draw baseline reports
in the future by default.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3687 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php, include/fgraph.php,
include/functions_db.php, images/image_problem.opaque.png: fixed the bug
because this bug was two things the access to graph with not login in the
same machine to generate, and the transparent png that not crash with the
pdf library.
Fixes: #3139079
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3674 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php, include/ajax/module.php: fixed when the module
have a scape html chars.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3658 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/fgraph.php: erased the deprecated function
"grafico_modulo_sparseOLD" and deprecated function
"grafico_modulo_sparse_mobile". And in the function added new
parameter $show_title with default value true for to show or no
the title. And when Pandora mobile for the graph now use the
function "grafico_modulo_sparse".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3623 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/OpenLayers/OpenLayers.js: backport to previous
version in SVN, the library has a dumb mistakes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3622 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/gis_maps/render_view.php: cleaned source code style.
* include/functions_ui.php: fixed in the function
"print_page_header" the check if the option is a separator that it
was true when the key was zero.
Fixes: #3115621
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3621 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/help/en/help_operation_visual_console.php,
include/help/es/help_operation_visual_console.php: added first
version of help file for the operation main page of Visual Console,
these have a explain for the especial name for visual consoles.
* operation/visual_console/index.php: added link to help in header.
operation/menu.php: added filter to hide the "Visual Console items"
in submenu that haven't first letter as "_", "," , "[" , "(". And
fixed the show name with safe_input entities.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3612 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_extensions.php: added functions
"get_disabled_extensions" and "getExtensionInfo".
* operation/extensions.php: erased the delete extension option.
* images/dot_green.disabled.png, images/dot_red.disabled.png: added files
for the table of features extension.
* godmode/extensions.php: show a table of extension with features and
action to disable and delete.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3606 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_events.php: Show text in Agent detail when no events
found. Commented old code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3589 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/tiny_mce/plugins/table/editor_plugin.js,
include/javascript/tiny_mce/plugins/advlink/editor_plugin.js,
include/javascript/tiny_mce/plugins/fullscreen/editor_plugin.js,
include/javascript/tiny_mce/plugins/template/editor_plugin.js,
include/javascript/tiny_mce/themes/advanced/editor_template.js: fixed end of
lines that it haven't semicolon end char.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3586 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
* general/error_install.php, general/error_perms.php, general/header.php,
general/logon_menu.php, general/logon_ok.php, include/functions_menu.php,
include/functions_ui.php, extensions/agents_modules.php,
operation/menu.php, godmode/menu.php, operation/estado_agente.php,
operation/agentes/estado_agente.php, operation/agentes/status_monitor.php,
operation/agentes/estado_monitores.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/estado_generalagente.php, pandoradb_data.sql: Closed
some HTML tags, autoclose others, added alt to images, and changed some
& to "&" to help validation for XHTML 1.0 Transitional. Tested and
not error found, but needs more tests...
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3572 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_data.sql,
DEBIAN/control,
DEBIAN/make_deb_package.sh,
include/config_process.php,
pandora_console.redhat.spec: Last updates on version and
spec files for release.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3569 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions.php: Check de enterprise version to
show the baseline graph option in reports
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3564 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php
include/functions.php
operation/reporting/reporting_xml.php
godmode/reporting/reporting_builder.item_editor.php: Added the
simple baseline graph to the html and xml report exports
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3563 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/languages/nb.po
include/languages/en.po
include/languages/mr.po
include/languages/nb.mo
include/languages/en.mo
include/languages/mr.mo: Added few new language
po and mo files
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3537 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/pandora_modules.js: Changed the enable
condition to the snmp walk button in the network to improve
the usability for bug 3102823
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3533 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_ui.php: Check that the alert has a 'standby' column
(compound alerts don't have it).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3530 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: in function __ fixed when the Pandora don't
have extensions.
* operation/events/events_rss.php: cleaned source code.
* operation/events/events_list.php: added more info in the hidden expanded
row.
Fixes: #3102826
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3523 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* extensions/system_info.php: change the funcionality of extension, now
generate a zip file in Pandora Console mode, and fixed the execution in the
term, and move to setup menu.
Fixes: #3102834
* include/config_process.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3517 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
* pandoradb_data.sql: Updated build
* include/config_process.php: Updated build.
* include/functions_db.php: Fixed the way takes agent status for visual maps,
was a wrong filter on remote_contact timestamp, that info is not used to
calculate agent unknown status !.
* index.php: develop mode set to 0
* operation/snmpconsole/snmp_view.php: Removed a notice for a noninit var (again)
* images/*: New images for visual maps, old ones are moved to another dir
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3505 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/jquery.ui.datepicker.js,
include/javascript/jquery.ui.dialog.js,
include/javascript/jquery.ui.draggable.js,
include/javascript/jquery.timeentry.js: fixed end of lines that it haven't
semicolon end char.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3492 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: in function "format_array_to_where_clause_sql"
added lines for test when is a string start with % for check with LIKE
operator.
Fixes: #3098170
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3487 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
* include/fgraph.php: Do not propagate compressed data to dates in the
future to make the baseline clearer.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3481 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/jquery.ui.datepicker.js, include/javascript/jquery.js,
include/javascript/jquery.ui.core.js,
include/javascript/tiny_mce/tiny_mce_popup.js,
include/javascript/OpenLayers/OpenLayers.js,
include/javascript/jquery.ui.resizable.js,
include/javascript/jquery.timeentry.js: : delete unpacked source code of js.
* include/functions_alerts.php: added header comment to function
"create_alert_action".
* godmode/alerts/alert_list.php: fixed the return status for message status
in actions "delete_alert", "add_action" and "delete_action".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3477 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_custom_graphs.php
godmode/reporting/graph_builder.preview.php: Fixed various bugs when
you try to render a custom graph without modules for bug 3096434
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3476 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_io.php
include/functions_ui.php: Fixed the html setting in the header
for the dashboard bug 3094692
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3475 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/jquery.ui.datepicker.js,
include/javascript/jquery.ui.core.js: fixed end of lines that it haven't
semicolon end char.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3473 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: in function "pandora_audit" added new parameter
$info for to set more info in the audit. Cleaned source code style.
* godmode/users/configure_user.php, godmode/users/configure_profile.php: now
in the source code pick more info in the audit for actions to create,
update and delete profiles and user, and for action to add and remove
profiles to user.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3470 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: in function "pandora_audit" clean source code
style, use the Pandora DB interface and now return id the row in tsesion.
* index.php: fixed when login failed the audit.
* godmode/users/user_list.php: clean source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3468 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_config.php: fixed the change the flag tconfig
"can_block_policies", now the operation is between policy semaphore.
Fixes: #3091940
* include/functions_db.php: fixed the save user IP when the $config don't
load this var yet.
* include/functions_networkmap.php: fixed the translation call function when
the pandora don't load the function.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3444 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/massive/massive_enable_disable_alerts.php: Improved template
selection to be selected more than one. Added agent selection. (It can
also be selected more than one.)
* godmode/include/functions_alerts.php: Added a argument, $id_agents
array, to get_agents_with_alert_template(). It is used to select
specific agents in the function.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3426 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_visual_map.php
include/ajax/visual_console_builder.ajax.php
godmode/reporting/visual_console_builder.php: Added the html support
in the label type items of the visual consoles for pending
task 3063404
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3425 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_migrate_v3.1_to_v3.2.sql: Variable for SQL custom reports has
more size now (custom SQL reports could be huge SQL sentences).
* godmode/reporting/reporting_builder.php,
godmode/reporting/reporting_builder.item_editor.php: Added suppor for the
new SQL graph reports (vbar, hbar and pie).
* include/fgraph.php: Support for new SQL graphs, with new function
graph_custom_sql_graph().
* include/functions_reporting.php: Support for new SQL graphs.
* operation/reporting/reporting_xml.php: Fixed some problems and added
support for graphs using session_id.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3413 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
* include/functions_db.php: cleaned source code style.
* extensions/system_info.php: first version of extension for extract system
info of Pandora System, at the moment run as PHP script shell, the source
code for console is commented because I will change for new source code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3385 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/config_process.php: fixed the execution in as script.
* include/fgraph.php: fixed in the "graphic_combined_module" when is empty.
And cleaned source code style.
* include/functions_extensions.php: cleaned source code style.
* extensions/pandora_logs.php: cleaned source code style. And set to
translation a string.
* extras/pandora_diag.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3382 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Fixed problem with SQL custom reports
because the SQL html encoding. Added a SQL check for secure user-input
SQL code.
* include/functions.php: Added check_sql() function to do a basic
safety check on SQL code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3381 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_io.php: Added \s character to list of HTML decoded/encoded
items to be converted from user entries (Safety for XSS and SQL Injection).
* pandoradb_data.sql: Added more default templates, actions and commands.
This is for remote agent management (refresh).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3376 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_io.php: Added functions ascii_to_html and html_to_ascii.
Also use this functions to convert no printing chars in function safe_input
and to revert the conversion in function safe_output.
* include/functions_db.php: Added function escape_string_sql, is a
wrapper db indepenten function to do the same that function mysql_real_escape_string
* index.php: Use function escape_string_sql with login parameters.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3372 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/pandora.js
include/functions_agents.php
operation/agentes/ver_agente.php
godmode/massive/massive_add_alerts.php
godmode/massive/massive_delete_alerts.php: Improved the
addition/deletion of alerts in massive operations to
select not only the agents (the modules too) for pending
task 3082862
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3371 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: Fixed the function get_agentmodule_id
to avoid the pending_delete modules
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3369 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/calendar.js, include/javascript/jquery.colorpicker.js:
fixed end of sentences with lost semicolons, the Eclipse IDE warned me some
this bugs.
* include/javascript/jquery.timeentry.js, include/help/en/help_wmiquery.php,
include/help/en/help_tcp_send.php, include/help/en/help_web_checks.php,
include/help/es/help_date_format.php, include/help/es/help_tcp_send.php,
include/help/es/help_agent_status.php, include/help/es/help_eventview.php,
include/help/es/help_configure_gis_map.php,
include/help/es/help_web_checks.php,
include/help/es/help_plugin_definition.php,
include/help/es/help_alert_macros.php, include/help/ja/help_wmiquery.php,
include/help/ja/help_date_format.php,
include/help/ja/help_alert-matches.php, include/help/ja/help_tcp_send.php,
include/help/ja/help_agent_status.php, include/help/ja/help_eventview.php,
include/help/ja/help_configure_gis_map.php,
include/help/ja/help_map_builder.php, include/help/ja/help_web_checks.php,
include/help/ja/help_plugin_definition.php,
include/help/ja/help_alert_macros.php,
include/help/ja/help_gis_setup_map_connection.php: cleaned html and fixed
unclose html tags in source code, the Eclipse IDE warned me some this bugs.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3363 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/calendar.js, include/FusionCharts/FusionCharts.js: fixed end of
sentences with lost semicolons, the Eclipse IDE warned me some this bugs.
* include/help/en/help_date_format.php,
include/help/en/help_agent_status.php, include/help/en/help_eventview.php,
include/help/en/help_configure_gis_map.php, include/help/en/help_alerts.php,
include/help/en/help_plugin_definition.php,
include/help/en/help_alert_macros.php,
include/help/en/help_gis_setup_map_connection.php,
general/license/pandora_info_en.html,
general/license/pandora_info_pt_BR.html,
general/license/pandora_info_es.html, general/license/pandora_info_ja.html,
general/pandora_help.php: cleaned html and fixed unclose html tags in source
code, the Eclipse IDE warned me some this bugs.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3362 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php
include/functions_visual_map.php
operation/reporting/graph_viewer.php
godmode/reporting/graph_builder.preview.php: Fixed the setting
of width and height on custom graphs setup. Increased the height
of the graph in few sections to fix the rise of the leyend
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3361 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/config_process.php: force the absolute path when include the
languages translation files.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3347 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/config_process.php: Set to 0 $config['debug'] by default to avoid
debug messages on normal operation mode, developers should setup debug
mode in their config.php file.
* pandoradb_data.sql: Added default template and action as sample.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3344 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/pandora.js
operation/agentes/ver_agente.php
godmode/massive/massive_operations.php
godmode/massive/massive_edit_modules.php: Restructured
the massive module editor to increase the power of the tool
adding multiple selection methods
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3336 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/pChart/pChart.class: merge bugfixes from the proyect
"Babel Enterprise" fixing by Dario Rodriguez <dario.rodriguez@artica.es>.
* include/fgraph.php: fixed undefined var $max_value in function
"graphic_combined_module".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3334 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/fgraph.php: fixed typo tiny error in function
"grafico_modulo_sparse" when use $show_event instead $show_events.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3332 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: cleaned source code style.
* mobile/include/system.class.php: fixed when include this file in other
parts of pandora, as when unlogin try generate pdf file.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3330 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: in function "checklogin" fixed the include of
file "user.class.php". In function "__" fixed when try translate a empty
string.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3329 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f