* 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
* include/functions_agents.php: Fixed SQL errors in
alerts view with not administrator users for bug: 3078113
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3321 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_groups.php: added first version of file with the
function "checkUsedGroup".
*include/Image/Canvas.php, include/Image/Canvas/GD.php,
include/functions.php, mobile/operation/agents/view_agents.php: cleaned
source code style.
* godmode/groups/group_list.php: fixed the check if the group to delete is
empty.
Fixes: #3074223
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3320 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php
operation/messages/message.php: Fixed the ACLs
to show only the user group users in the destination
users combo for bug: 3077857
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3318 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_events.php: Change to the new status
images and names to the events on the tactical view.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3312 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php: Added style parameter to the
print_extended_select_for_time function
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3309 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_menu.php, operation/events/events_list.php: cleaned
style source code.
* operation/menu.php: added subentry in "View events" for "Sound Events".
* operation/events/events_rss.php: added source code for the $id_agent equal
-2 (this mean that get the agent by text name) and added new check for new
status.
* operation/events/events.php: added source code for the $id_agent equal -2
(this mean that get the agent by text name).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3305 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: added function "set_module_data" for to hook
call to create module data across web api.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3283 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php: in function "print_select_groups" and function
"print_select_from_sql" added source code to check $config['text_char_long']
for show small text in this widgets.
* include/functions.php: in function "get_event_types" and "get_priorities"
added source code to check $config['text_char_long'] for show small text in
this widgets. And in function "get_priority_class" cleaned source code.
* operation/agentes/status_monitor.php, operation/events/events.php: cleaned
source code style.
* images/pandora.ico.gif: added image file for to use in the mobile footer.
* mobile/operation/agents/monitor_status.php,
mobile/operation/agents/view_agents.php,
mobile/operation/agents/tactical.php,
mobile/operation/agents/group_view.php, mobile/operation/events/events.php,
mobile/include/style/main.css, mobile/include/functions_web.php,
mobile/index.php, general/footer.php: continued the develop, yep the
Pandora Console Mobile is complete (only rest the bugs).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3269 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/functions_html.php: fixed the width by default in the function
"print_table", now there isn't a default width (before it was 80%).
* include/pchart_graph.php: fixed in the function "add_events" when tryed
to add a event out the data.
* include/fgraph.php: check the user with the mobile methods.
* include/functions_db.php: in function "check_login" check the user with
the mobile methods.
* images/status_sets/default/severity_warning_pixel.png,
images/status_sets/default/severity_normal_pixel.png,
images/status_sets/default/severity_informational_pixel.png,
images/status_sets/default/severity_maintenance_pixel.png,
images/status_sets/default/severity_critical_pixel.png: added the image
files for to show in the event mobile's page.
* mobile/operation/agents/view_agents.php,
mobile/operation/agents/tactical.php,
mobile/operation/agents/view_alerts.php, mobile/operation/events/events.php,
mobile/operation/servers/view_servers.php, mobile/include/user.class.php,
mobile/include/system.class.php: changed the style the some pages to show
more clearly the pages in old m$-mobiles.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3265 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_delete_action_alerts.php: Fixed
addition/deletion for compound alerts does not work.
* include/functions_alerts.php: To fix above problem, added a function,
delete_alert_compound_action().
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3264 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
* include/functions_events.php
pandoradb.sql
extras/pandoradb_migrate_v3.1_to_v3.2.sql
operation/events/events_validate.php
operation/events/events_list.php
operation/events/events.php: Deleted several
columns from the events view and adding a
show/hide advanced fields feature.
Added a new state 'in process' to validation
and an input comment when a status is changed.
* include/fgraph.php: Fixed quotes
in constant definition
* include/functions_ui.php
include/functions_agents.php
include/functions_alerts.php
operation/agentes/alerts_status.php
operation/agentes/alerts_status.functions.php
images/bell_pause.png
godmode/alerts/alert_list.list.php
godmode/alerts/alert_list.php
godmode/massive/massive_operations.php
godmode/massive/massive_standby_alerts.php: Added
the feature of set and set off on standby an alert
in the alets management and view if an alert is in
standby in the rest of views.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3251 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/fgraph.php: added function "grafico_modulo_sparse_mobile" for
to paint a mobile graph.
* include/functions_db.php: erased deprecate function "dame_grupo_icono".
* include/functions_module.php: moved the functions "format_delete",
"format_time", "format_data", "format_verbatim", "format_timestamp",
"format_delete", "format_delete_string", "format_delete_log4x" from the
file "operation/agentes/datos_agente.php" for to use in other source code
places.
* operation/agentes/datos_agente.php: extracted the functions
"format_delete", "format_time", "format_data", "format_verbatim",
"format_timestamp", "format_delete", "format_delete_string",
"format_delete_log4x" to "include/functions_module.php" for to use in other
source code.
* operation/agentes/tactical.php: cleaned source code style.
* operation/agentes/group_view.php: cleaned source code style.
* mobile/operation/agents/view_agents.php: added class "viewGraph" to show
graph and data of any module.
* mobile/operation/agents/tactical.php: added first version of page to show
tactical mobile page.
* mobile/operation/agents/view_alerts.php: added first version of page to
show alerts mobile page.
* mobile/operation/agents/group_view.php: added first version of page to
show group view mobile page.
* mobile/operation/servers/view_servers.php: added first version of page to
show servers mobile page.
* mobile/include/style/main.css: added many new styles.
* mobile/include/functions_web.php: added links into menu for new pages.
* mobile/include/system.class.php: fixed scope of method "getConfig".
* mobile/index.php: added hooks for new pages.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3250 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: in function "get_agent_module_info" added
the return "status" and "alert_value".
* include/auth/mysql.php: in function "process_user_login" cleaned the
source code style.
* include/functions_ui.php: in function "print_timestamp" added in the
parameter $option the check of units ('large' and 'tiny' at the moment).
Added the function "print_group_icon2" that it is the same of
"print_group_icon" but it has a new parameter $path for to set the images
path.
* include/functions.php: in function "human_time_comparation" added the
parameter $units to set the type return text for time unit (at the moment
only "large" and "tiny"). And in the function "human_time_description_raw"
added the paramter $units for to set the type of return text for units, at
the moment only "large" and "tiny".
* include/functions_db.php, operation/agentes/ver_agente.php: cleaned source
code.
* mobile/index.php, mobile/operation/agents,
mobile/operation/agents/view_agents.php, mobile/include/db.class.php,
mobile/include/style, mobile/include/style/main.css,
mobile/include/user.class.php, mobile/include/functions_web.php,
mobile/include/system.class.php, mobile/images/bricks.png,
mobile/images/up.png, mobile/images/zoom.png, mobile/images/down.png: added
first version of file for Pandora Mobile version.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3246 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f