* 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
* 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
* include/functions_networkmap.php: cleaned source code.
* include/functions_ui.php: in function "print_os_icon" change the
directory to search os icon because it change for new feature.
* images/os_icons, images/os_icons/*: copied the icons image files into this
dir for to use in new feature.
* godmode/menu.php: added new item in submenu "Setup" for the management
the OS.
* godmode/setup/os.php: added the page to management the list OS of agents.
Pending task: #3057663
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3234 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* fgraph.php: Graph "Modules per agent" was not working properly
due a invalid reference to array. Fixed.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3233 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_data.sql: added default value for "sound_alert",
"sound_critical" and "sound_warning" into table "tconfig".
* include/functions_config.php: in function "update_config" added to
update sounds.
* include/functions_alerts.php: added function "get_event_status_group" for
scan the events.
* operation/events/sound_events.php: added first version of event sound
window.
* operation/events/events.php: added the request for ajax of sound event
window.
* images/pause.button.png, images/ok.button.png,images/music_note.png,
images/play.button.png: added images for sound event window and button in
the head of events.
* godmode/setup/setup.php: added source code for to config the sounds of
events.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3219 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: Added support to '<>'
comparation in the format_array_to_where_clause_sql
function
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3204 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/pchart_graph.php,
include/fgraph.php,
include/functions_fsgraph.php: Minor (but important) changes on
graphs: combined wired mode available on flash, improved legends
on both types, and improved flash wired modes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3189 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
* operation/events/events.php: Fixed bug on event searches
in different languages than english.
* include/functions_reporting.php: Fixed notice on empty foreach.
* config_process.php: Trying to supress Deprecated messages.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3179 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_ui.php: Added a function to toggle
an html code easly. The function is called toggle()
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3172 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/styles/menu.css
godmode/massive/massive_operations.php: Fixed
the massive operations header new message and
added style to the menu image to massive operations
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3165 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php: fixed the function "print_checkbox_extended"
this function didn't use the parameter $atributes, now yes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3162 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_io.php: safe_input() modified to detect SQL injection
attacks using /**/ strings.
* index.php: Prevent HTTP response splitting attacks.
* pandora_console.spec: Updated some spec variables and description.
* pandoradb.sql,
extras/pandoradb_migrate_v3.1_to_v3.2.sql: Added a new field in trecon_task
to store the snmp_community on detected hosts in a recon task.
* extras/pandora_diag.php: Fixed security problem in relative path.
* general/pandora_help.php,
general/footer.php: Fixed security problem in relative path/include.
* general/login_page.php: Fixed security problem in URL parsing.
* godmode/servers/manage_recontask_form.php,
manage_recontask.php: Implemented new feature to use a snmp comunity on all
network modules added to a new detected host.
* config_process.php: Updated build.
* functions.php: New version of safe_url_extraclean() function (security fix)
and modified also enterprise_include* functions to have a secure include.
* functions_ui.php: Secured function get_include_contents().
* operation/agentes/gis_view.php: Secured url extraction/parsing.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3150 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions.php: erased deprecate function "entrada_limpia" for to
use only the english named "safe_input".
* godmode/setup/links.php: replaced the deprecate function "entrada_limpia"
for the english named "safe_input".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3143 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_visual_map.php: Added the alerts fired status
to the visual maps drawing an orange edge around the static graph icon
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3142 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions.php: Fixed a bug to generate the image
in string2image whenn the string contains a sharp (#)
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3138 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions.php: Added the function string2image to obtain an image
from a string with parameters like text color, background color, rotation degrees...
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3135 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_ui.php: Improved the function print_status_image
to allow an additional parameter for send it image options like
style, width...
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3134 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php: Added the function html2rgb for
convert a color string from format #FFFFFF to RGB values
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3131 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions.php: Added a function to call snmpwalk
functions setting the version, ip address, community...
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3126 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/help/ja/help_network_map.php,
include/help/ja/help_autocreate_blacklist.php: Added new help files
in Japanese.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3125 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/events/export_csv.php,
operation/agentes/stat_win.php,
operation/reporting/reporting_xml.php: Fixed includes.
* godmode/setup/setup_auth.php,
include/functions_config.php,
include/auth/mysql.php: Added support for a remote user blacklist.
* include/help/en/help_autocreate_blacklist.php,
include/help/es/help_autocreate_blacklist.php: Added to repository.
Blacklist help files.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3120 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_alerts.php: Fixed a typo bug for show
the message of succefully copied when you clone an alert action
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3116 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/auth/mysql.php, include/functions_config.php,
include/config_process.php, pandora_console.spec,
ajax.php, godmode/menu.php: Added support for different
authentication schemes. Local database and LDAP are
implemented.
* operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php: Small fixes. Use filter name
to compose file names.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3113 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_filemanager.php: added parameter $readOnly in the
function "file_explorer".
*pandoradb.sql, extras/pandoradb_migrate_v3.1_to_v3.2.sql: added into the
table "talert_template_modules" the column "id_policy_alerts".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3106 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_filemanager.php: move the action messages to $config
intermediate var.
* godmode/setup/file_manager.php: added the message of action with the
filemanager.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3104 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Fixed the get_agent_module_info function
for avoid to show the disabled modules information
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3100 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/styles/pandora.css
include/functions_reporting.php
include/functions_ui.php
include/functions_db.php
operation/agentes/status_monitor.php
operation/agentes/estado_agente.php
operation/agentes/bulbs.php
operation/agentes/estado_monitores.php
operation/agentes/group_view.php
images/status_sets/default/module_no_data.png
images/status_sets/default/alert_fired.png
images/status_sets/default/agent_no_monitors.png
images/status_sets/default/alert_fired_ball.png
images/status_sets/default/agent_no_monitors_ball.png
images/status_sets/default/agent_down_ball.png
images/status_sets/default/agent_down.png: Fixed several modules
and agents list status to use the new unknown status. Some images was
changed too for show the same colour than the visual and network maps
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3091 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_networkmap.php
include/functions_db.php: Fixed the networkmaps to do not shows
the not init modules and get the new unknown status
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3089 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/pchart_graph.php, include/fgraph.php: Removed title from
image charts. Show min, max and avg as part of the image.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3085 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php, include/fgraph.php,
include/functions_fsgraph.php, operation/agentes/stat_win.php: Moved
min, max and avg information into the chart to make it available to
reports an custom graphs.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3084 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_filemanager.php: cleaned source code, changed the show
to buttons of actions (create file, upload...) to out the list of files. And
check if the directory is writeable to show this buttons.
* include/get_file.php: added file to work as mediator between the Pandora
and file system, and added a some security checks as check login and others.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3083 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_networkmap.php
include/help/en/help_network_map.php
include/help/es/help_network_map.php
pandoradb.sql
operation/agentes/networkmap.topology.php
operation/agentes/networkmap.groups.php
operation/agentes/ver_agente.php
operation/agentes/networkmap.php
extras/pandoradb_migrate_v3.1_to_v3.2.sql: Created network maps
storage on database, clean the network maps code and fixed some
little bugs of the same section
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3078 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Updated reporting functions to work
with uncompressed data.
* include/fgraph.php, include/functions.php: Added a generic
function to check whether a module has compressed data.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3077 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php: Improved the print_select function
to allows agroupation of options
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3076 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: added new parameters in the function
"get_agentmodule_sla", the parameters days of week to search and range of
time. And use new parameteres in the call for SLA data in function
"render_report_html_item".
* pandoradb.sql, extras/pandoradb_migrate_v3.1_to_v3.2.sql: in table
"treport_content" added the fields for set days of week and range time
for SLA.
* operation/reporting/reporting_xml.php: use new parameters in the call for
SLA data.
* godmode/reporting/reporting_builder.php: added source code for save,
update new fields (days of week and time range).
* godmode/reporting/reporting_builder.item_editor.php: added source code to
show the fields (days of week and time range).
Pending task: #3033457
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3070 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: Changed the priority of the
status of agents and groups when get status from their
descendents
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3064 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: added into the function "get_group_icon" the
return icon for "all" group.
* godmode/groups/configure_group.php: fixed and cleaned source code, for
the dinamic change of parent icon, show the select of parent with the
parent selected, and fixed the position of parent icon image.
Fixes: #3034677
* godmode/groups/group_list.php: changed the source code for to show the
"all" group open branch by default.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3063 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f