* include/functions_api.php, include/functions_db.php,
extensions/update_manager.php, extensions/plugin_registration.php,
operation/incidents/incident.php, operation/incidents/incident_detail.php,
godmode/agentes/planned_downtime.php, godmode/servers/recon_script.php,
godmode/snmpconsole/snmp_filters.php, godmode/setup/news.php,
godmode/modules/manage_network_templates_form.php: change the source code
for to use process_sql_insert instead of the SQL.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4067 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_modules.php, include/functions_reporting.php,
include/functions_gis.php, include/functions_servers.php,
include/ajax/reporting.ajax.php, include/fgraph.php,
include/functions_db.php, include/functions_alerts.php,
include/functions_reports.php, extensions/system_info.php,
extensions/agents_modules.php, operation/agentes/group_view.php,
operation/events/events_rss.php, operation/reporting/reporting_xml.php,
operation/reporting/reporting_viewer.php, extras/pandora_diag.php,
general/logon_ok.php, godmode/db/db_audit.php, godmode/db/db_event.php,
godmode/db/db_purge.php, godmode/agentes/planned_downtime.php,
godmode/setup/setup.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/modules/manage_network_templates.php,
godmode/modules/manage_network_templates_form.php,
godmode/reporting/reporting_builder.list_items.php,
godmode/reporting/reporting_builder.preview.php,
godmode/reporting/reporting_builder.php: changes for to use character " in
the SQL queries for PostgreSQL, in some cases. In other case there are more
changes for to create SQL query PostgreSQL.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4062 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* 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/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/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/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
* images/control*.png: Added two small images for sound control in setup.
* godmode/setup/setup.php: Use added images.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3455 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/setup/os.list.php, godmode/setup/os.builder.php,
godmode/setup/os.php: changed the source code and added "os.builder.php" and
"os.list.php" for to change the management page for to be a "tab page".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3235 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
* 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.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
* 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_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_html.php: added the function "print_select_groups" to
print the field select box for groups with tree style.
* include/functions_db.php: in function "get_user_groups" added test to
false value in parameter $privilege for get all groups without ACL test.
Fixed in function "get_user_groups_tree" the call to "get_user_groups" with
the correct parameters.
* operation/incidents/incident.php, operation/incidents/incident_detail.php,
operation/events/events.php, operation/agentes/status_monitor.php,
operation/agentes/estado_agente.php,
operation/agentes/alerts_status.functions.php,
operation/agentes/exportdata.php, operation/agentes/networkmap.php,
operation/messages/message.php, general/ui/agents_list.php,
godmode/groups/configure_group.php, godmode/groups/group_list.php,
godmode/agentes/massive_add_alerts.php,
godmode/agentes/massive_delete_agents.php,
godmode/agentes/massive_config.php,
godmode/agentes/massive_delete_action_alerts.php,
godmode/agentes/massive_delete_alerts.php,
godmode/agentes/modificar_agente.php,
godmode/agentes/massive_delete_modules.php,
godmode/agentes/massive_add_action_alerts.php,
godmode/agentes/planned_downtime.php,
godmode/agentes/manage_config_remote.php, godmode/agentes/agent_manager.php,
godmode/servers/manage_recontask_form.php,
godmode/alerts/configure_alert_compound.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/configure_alert_action.php, godmode/setup/gis_step_2.php,
godmode/users/configure_user.php, godmode/gis_maps/configure_gis_map.php,
godmode/reporting/graph_builder.main.php,
godmode/reporting/reporting_builder.main.php,
godmode/reporting/visual_console_builder.data.php: changed the fields select
box of group to tree style select box for groups.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3009 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_filemanager.php: added const MIME_TEXT. added source
code to handler the updload files, zips, delete files/dir and create text
files. Added function "delete_directory" for to delete recursive and or
not empty any dir, function "file_explorer" to show a file explorer,
"box_upload_file_complex" to show a controls to upload file or multiple
files in a zip, "box_upload_file_explorer" to show controls to upload
file, "box_upload_zip_explorer" to show controls to upload multiple files
in a zip, "box_create_text_explorer" to show controls to create text files,
and in function "get_file_manager_file_info" use new const MIME_TEXT.
* godmode/agentes/modificar_agente.php: cleaned source code, closed the <tr>
tag.
* godmode/agentes/configurar_agente.php: added hook to enterprise functions
for collection.
* godmode/menu.php: added hook to enterprise functions for collection.
* godmode/setup/file_manager.php:changed the source code for use new modular
functions to show and management files.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2969 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/setup/setup.php: Ask for confirmation before enabling
'Enforce https' since access to Pandora FMS Console may be lost.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2826 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/setup/performance.php: hidden option perfomance
'Compact CSS and JS into header' because in more Pandora installations have
problems.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2789 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/setup/gis_step_2.php
godmode/setup/gis.php: Created error and
successfuly messages when create, update or
delete a map connection for bug 2994197
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2736 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/setup/file_manager.php: Changed deprecated split() function to
explode(). Center delete image.
* modules/manage_network_components.php: Center delete image.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2679 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/setup/gis_step_2.php: Fixed the creation
of map connection without name and without type
of connection. Bug:2993713
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2638 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql
extras/pandoradb_migrate_v3.0_to_v3.1.sql
godmode/setup/gis_step_2.php
godmode/gis_maps/configure_gis_map.php: Added at the combos the
group All and asigned in creation layers -1 value to None value
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2633 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/menu.php, godmode/menu.php: Hooks to services pages (Enterprise)
* images/box.png: Icon for services (Enterprise)
* godmode/setup/gis_step_2.php, godmode/setup/gis.php: Links to help pages
* include/help/en/help_service_elements_management.php,
include/help/en/help_view_services_detail.php,
include/help/en/help_view_services.php,
include/help/en/help_services_management.php: first version of services
help pages.
* include/help/en/help_setup_gis_index.php,
include/help/en/help_configure_gis_map.php,
include/help/en/help_gis_setup_map_connection.php: GIS help pages updated
* include/styles/pandora_forms.css, include/styles/menu.css: New styles for
forms and style for service menu entry icons.
* include/ajax/agent.php: New AJAX file to get info about agents.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2544 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/help/en/check_other_languages.sh: Small script to show
help files not translated.
* include/functions_ui.php: Fixed call to undefined variable.
* godmode/setup/setup.php: Small box for textarea.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2505 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_data.sql: Added new default values for purge event,
string data, audit data, gis data, and snmp trap data.
* include/functions_config.php: Support for new gis_purge config
token.
* godmode/setup/performance.php: Added gis_purge to setup.
* godmode/users/user_list.php: Fixed bug which doesn't allow to
delete users.
* godmode/users/configure_user.php: Fixed bug with profile assigment
(Mixed the current user and selected user).
* Install.php: Show default user/password after install. Build update.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2501 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: cleaned source code of "printMap", now it is
more clean the code because it call the js_printMap only and it haven't the
num zoom levels.
* include/javascript/openlayers.pandora.js: cleaned source code of
"js_printMap", now it is more clean the code and it haven't the num zoom
levels.
* operation/gis_maps/render_view.php, godmode/setup/gis_step_2.php,
godmode/gis_maps/configure_gis_map.php: use new form of "printMap" and
"js_printMap".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2485 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: clean source code delete obsolete unused
function "get_agent_last_coords". Fixed the function "get_agent_icon_map"
now show default icon for agent without modules.
* operation/gis_maps/ajax.php: improve the style of bubble info agent and
fixed the position for agent without data GIS.
* operation/agentes/gis_view.php: clean the style delete the header. Change
the text of refresh button. Show the last coords for the agent.
* images/gis_map/icons/cross.pink.png, images/gis_map/icons/circle.pink.png:
add this image icons for to use in the preview map of config connection map.
* godmode/agentes/agent_conf_gis.php: clean the style delete the header.
* godmode/setup/gis_step_2.php: use the pink icons for the center and
default position in the preview map.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2476 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* (A lot of files): Updated include("config.php") and replaced
by global $config.
* functions_db.php, functions_html.php: Fixed way to get data
from the hash instead from the array.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2459 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: disabled the use of night version of
Openlayers. Change the "refreshMapView" javascript to load the library of
google maps with the api, and add function "refreshMapViewSecondStep"
for asincrone call in "refreshMapView" when load map google.
* include/javascript/openlayers.pandora.js: clean source code of
"js_refreshParentLines" and add the test if the parent agent is in the
map.
* godmode/setup/gis_step_2.php: disabled the use of night version of
Openlayers in function "printMap" and change the text of hierachy layer for
better english text.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2445 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/openlayers.pandora.js: Modified js_printMap to support
Gmap type of maps.
* include/functions_gis.php: Modified printMap to support Gmap type of maps
* godmode/setup/gis_step_2.php: Modified to load on demand the Gmaps api
TODO: Use the key from the gmap_key input box.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2440 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_data.sql: add the default map from Open street map, and set
active by default the GIS.
* godmode/setup/gis_step_2.php: fix tiny bugs in the form that the default
values for zooms were exchangeds.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2433 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/setup/gis_step_2.php: Modified to get the KEY to load the Google
Maps Javascript for the used domain. Now it stores the key, but still it
doesn't load dinamicaly the javascript to show the preview.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2417 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f