* 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
* include/functions_networkmap.php: Changed the color of the
modules, agents and groups with alerts fired in the network
maps from yellow to orange.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3062 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* images/mimetypes/text.png: added lost image file in previous commits about
collections.
*images/tag_red.disabled.png, images/cross.disabled.png,
images/chart_curve.disabled.png, images/config.disabled.png,
images/chart_bar.disabled.png, images/photo.disabled.png,
images/camera.disabled.png, images/binary.disabled.png: added image files
for the new palete buttons (when it are disabled) in visual console editor.
* include/styles/pandora.css: added the styles for the new buttons of
visual console editor (label and icon), and some changes for new style for
buttons of the palete in this page.
* include/functions_html.php: in function "print_button" added new
parameter $imageButton to set the button as image button, by default is
false.
* include/ajax/visual_console_builder.ajax.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/visual_console_builder.constans.php: change the buttons
palete for a palete with more small buttons as icon buttons, added new items
for visual map (icon and label). And fixed the dinamic change label color
for any elements.
* include/functions_visual_map.php: added the new items (label and icon)
and cleaned the source code.
Pending task: #3019641
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3061 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/styles/pandora.css: Added css classes for separator.
* include/functions_ui.php: Added suport to add a separator betwenn tabs
in print_page_header.
* operation/agentes/ver_agente.php: Fixed some problems with alt tag in
images and added separator to tabs
* godmode/agentes/configurar_agente.php: Fixed some problems with alt tag
in images and added separator to tabs
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3059 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_networkmap.php
include/functions_db.php
operation/agentes/networkmap.topology.php
operation/agentes/networkmap.groups.php
operation/agentes/ver_agente.php
operation/agentes/networkmap.php: Rewritted the get status of modules
and agents and writted the same feature for groups and policys. Added
the groups view network map. All for pending task: 3019636
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3057 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php: lost in previus commit the change to
"print_select_groups" the new parameter $id_group, to don't show the group
with id and children of this group.
* include/functions_db.php: in function "format_array_to_where_clause_sql"
added to order as array several fields.
* operation/agentes/estado_ultimopaquete.php: added the icons and source
code for order rows of list alerts by columns Module Name, Type, Interval
and Timestamp.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3051 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_agents.php: in function "get_agent_alerts_simple"
changed the query for added the posibility of sort the rows.
* include/functions_db.php: in function "format_array_to_where_clause_sql"
added the posibility of order pass as array of field and sort order.
*godmode/alerts/alert_list.list.php: added the icons and source code for
order rows of list alerts by columns Disabled, Agent Name, Module Name or
Template Name.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3046 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_agents.php: in function "get_agents" added the parameter
$order to order list of agents.
* operation/agentes/estado_agente.php: added icons for order by columns and
source code for management this ordenation by Name, Os, Interval, Group and
Last Contact.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3030 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: fixed in the function "get_user_groups", order
the list of groups by id_grupo for to other external operations.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3028 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/auth/mysql.php: added function "get_users" the check to $order
parameter if it is array, extract the field and order.
* operation/users/user.php, godmode/users/user_list.php: added posibility to
sort by columns ID User, Full name or Last Contanct.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3022 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.php: added function "array_key_to_offset" to resolve
the offset in associative array.
* include/functions_db.php: added function "get_childrens" for get the
childrens of a group, "get_parents" for get the parents of a group (with the
flag propagate or not as you want). In function "check_acl" added the method
to scan groups that propagate flag in the branches. Added functions
"get_user_groups_tree_recursive" and "get_user_groups_tree" for extract the
groups as treefied list. Added in the function "get_db_all_rows_in_table"
added the parameter $order to get with ASC or DESC order the rows, by
default is ASC as mySQL.
* godmode/groups/configure_group.php: added the field of propagate to update
or creation a group.
* godmode/groups/group_list.php: changed for the group trees the source code
for to show the table as dinamic table that if the row have branch, you can
click and desplegate children rows.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3008 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_filemanager.php: changed the form to upload one or more
files to more easy. And changed other things for stetic reasons.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3003 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/help/en/help_reporting_main_tab.php: Added help for report
creator for English.
* include/help/es/help_reporting_main_tab.php: Added help for report
creator for Spanish.
Fixes: #3013763
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3000 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_visual_map.php
godmode/reporting/visual_console_builder.editor.php: Fixed the
visualmaps for ignore the disabled and delete pending modules
for bug: 3022892
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2998 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/pandora_visual_console.js: in function "draw_line"
changed the const 15 value to dinamic value half width of image.
Fixes: #3019645
* godmode/reporting/visual_console_builder.editor.js: cleaned source code
and deleted unused function "eventsButtonsToolbox", this function was in
old wip version of visual editor.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2991 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_filemanager.php: cleaned source code. And added function
"read_recursive_dir" to give a content of dir in a array.
* include/functions_config.php: added $config['collection_max_size'].
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2982 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_filemanager.php: added in source code lines to test
hash of directories or files for give more security to filemanager.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2973 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_filemanager.php: added var global through $config to
return status of operation. And clean messages of filemanager.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2972 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: changed in function "get_db_all_rows_filter" the
parameter $filter to set empty array as default value.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2970 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
* include/functions_db.php: Fixed the notice when
delete a IP adress from agent configuration for
bug: 3016410
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2946 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/reporting/visual_console_builder.php
godmode/reporting/visual_console_builder.editor.js:
Fixed the setting of original size by javascript when you
choose 0 x 0 in the visual map background for Bug: 3020721
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2931 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: Fixed the get_agent_modules
function to avoid return the pending delete modules
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2929 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_ui.php: Adding a parameter to
printTruncateText to personalize the suffix string
of a truncate string
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2927 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php: Added a parameter into
print_select function to set style a selective
options into the select form control
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2921 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/auth/mysql.php
operation/users/user.php
godmode/users/user_list.php: Added pagination
to users list in operations and administration
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2920 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Fixed the colspan
into the Custom Graph report item for bug: 3013859
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2906 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Disabled DB cache for
get_agent_module_info () to avoid memory errors in big
environments.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2867 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/auth/ldap.php
include/fgraph.php
godmode/reporting/graph_builder.php: Changed the deprecated
function split() by explode() function for bug: 2989970
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2849 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php, include/functions.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/reporting_builder.item_editor.php: added the code for
show a new item event_report_group.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2846 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php
operation/agentes/status_monitor.php
operation/agentes/group_view.php: Fixed the group
view table values for bug 3010321 and added the log4x
type of module to asynchronous exception for bug
3008759
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2842 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/FusionCharts/FusionCharts_Gen.php: Fixed the
blank line over the first dashboard widget when the
wisget is a graph (enterprise).
Bug: 3006989
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2825 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: added new calls for api
"set_new_alert_template", "set_delete_module", "set_new_module",
"set_alert_actions", "set_new_event", "set_event_validate_filter_pro",
"set_event_validate_filter" and "get_events". Added support function
"otherParameter2Filter".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2812 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/help/es/help_gis_map_builder.php,
general/license/pandora_info_pt_br.html: fixed close open tags, the eclipse
searched this bugs and advised me.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2805 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/config_process.php: fixed test php trace level constant
E_DEPRECATED, now it is correct test version (5.3.0) not 5.2.11.
Fixes: #3005558
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2788 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/fgraph.php: fixed again when execute fgraphs.php without login in
the case is execute in host machine (as when execute the cron).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2786 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/fgraph.php: fixed the fgraph when cron get a report in PDF for to
send, and this situation the fgraph execute in localhost althought it'snt
login.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2746 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/pandora.js: added function
"agent_changed_by_multiple_agents_id" for response to change agent in
wizard in visual console editor.
* operation/agentes/ver_agente.php: added response to
"get_agent_modules_json_for_multiple_agents_id" for the ajax previous
function.
* godmode/reporting/visual_console_builder.wizard.php: used new javascript
function.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2743 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/pandora_modules.js,
godmode/agentes/module_manager_editor.php: fixed the snmp_walk for version
2, 2c and 3. Need more test for version 3.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2740 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/pandora.js,
godmode/reporting/visual_console_builder.wizard.php: fixed the select box
modules for when select many agents.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2739 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/gettext.php: Changed the judgment method for 64bit systems.
'x86_64' is not acceptable by some systems.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2734 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php
operation/agentes/ver_agente.php
godmode/agentes/massive_edit_modules.php: Fixed the
ACL check into groups combo for bug 3001500 and
All agents display for bug 2999431
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2727 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/gettext.php: Sorry I forget part of changes in "fixed the bug of
pseudo-gettext with diferent arquitectures. Now check the arquitecture
before."
Fixes: #2991545
* godmode/agentes/configurar_agente.php: fixed lost the require file.
Fixes: #3000337
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2726 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/gettext.php: fixed the bug of pseudo-gettext with diferent
arquitectures. Now check the arquitecture before.
Fixes: #2991545
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2720 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php
operation/agentes/status_monitor.php: Fixed full monitor
checks in tactical view and monitor status filter
on monitor detail
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2715 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/pandora.js: check if exist the "any" text translation.
* godmode/reporting/visual_console_builder.wizard.php: add the "any"
translation.
Fixes: #3000496
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2713 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/help/ja/help_cascade_protection.php: Updated a help file
to reflect recursive cascade protection.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2689 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/fgraph.php: Fixed a typo in grafico_modulo_boolean.
Fixed the alert and event scale. Removed the 'last' element
from the chart data array (does not seem to be used anywhere).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2683 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php, include/fgraph.php,
include/functions_db.php, include/functions_fsgraph.php: Fixed
a lot of chart and report code related to Pandora FMS's data
compression algorithm.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2678 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/config.inc.php: fixed the operation require when the php file to
call config.php have a file with same name of "config_process.php" ...in
rare cases.
* include/config_process.php: fixed the operation require when the php file
to call config.php have a file with same name of "functions.php",
"functions_db.php", "functions_config.php" ...in rare cases.
* include/functions.php, include/functions_config.php: cleaned the source
code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2672 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_visual_map.php: fixed notices php messages when the
visual map has the item label (item image without image and only text).
* godmode/reporting/visual_console_builder.php: changed the icon tab for
the wizard, before it was a pill, now it is a wand.
* godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.editor.php: fixed the validate
static graph item.
Fixes: #2994103
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2669 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: fixed the php notice message when the
index not exist in the var $data in the function "get_agentmodule_sla".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2667 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: changed the style to show data in the
items "TTRT", "TTO", "MTBF" and "MTTR".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2663 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: fixed in the function
"get_agentmodule_data_average" prevent to use the var without value.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2662 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Added the
high variation for the graphs when the
parameter $mini is true
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2661 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Added "mini"
parameter. Usefull for print the report with less
size
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2657 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: added the parameter "$html" in the
function "alert_reporting_agent" and "alert_reporting_module", this flag is
for return the html table or object table, by default the html. And fixed
the title of "alert_report_module" and "alert_report_agent", fixed return
of list "event_report_module" in the function "render_report_html_item".
* godmode/reporting/reporting_builder.item_editor.php: fixed the lost field
"period" in the item "database_serialized".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2654 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: added the parameter "$html" in the
function "get_module_detailed_event_reporting", this flag is for return
the html table or object table, by default the html.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2653 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_ui.php: Improved the printTruncateText
function adding the parameter showTextInTitle
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2645 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_io.php: added in the function "safe_output" the flag
$utf8 for set the encoding of output, by default true.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2643 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_ui.php: added the function "printTruncateText" for
facilitate trunc texts, and add the eye candy the tooltip.
* godmode/reporting/reporting_builder.list_items.php: used the new function
"printTruncateText".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2640 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_visual_map.php: Fixed the critical render
from an object that was not static graph when was heredated
from another layout. Bug 2940950
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2635 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: added function "alert_reporting_agent"
for make the html list of agent alerts, added function
"alert_reporting_module" for same thing before function instead it is for
modules. In report item "event_report_agent" fixed the output. Added report
items "alert_report_module", "alert_report_agent", "url" and
"database_serialized".
* include/functions_db.php: added function "get_agent_alert_fired" for
to extract the alerts fired of agent, and added "get_module_alert_fired"
for alerts fired of module.
* godmode/reporting/reporting_builder.php,
godmode/reporting/reporting_builder.item_editor.php: fixed the renamed
column "row_separator" of previus commit.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2631 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_data.sql: Updated version to 3.1
* pandoradb_migrate_v3.0_to_v3.1.sql: Fix, set log4x correct type id.
* include/functions_gis.php: Fixed a notice by undefined value.
* images/gis_maps/icons: Deleted several non-useful icons.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2629 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/pChart/pChart.class:
* include/pChart/pData.class
* include/fgraph.php: Fixed bug with eventgraph in graph_event_module().
* include/functions.php: return_graphtype() uses now the log4x id 24 in
ttipo_modulo, fixing the problem in graph visualizer. Anyway, log4x graphs
doesn't work on php >= 5.3.x :((
* operation/agentes/estado_monitores.php: Fixed id (24) for link in log4x.
* operation/agentes/stat_win.php: Included missing functions_reporting.php
include, it was missing.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2621 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: in function
"get_agents_detailed_event_reporting" fixed param for $id_agents to array
type, fixed the loop to save events and fixed in the loop to make the table.
Added the function "get_module_detailed_event_reporting" for events of any
module. In function "render_report_html_item" remove trace function, added
the render option "event_report_module" for render list of events of any
module.
* include/functions_db.php: added function "get_module_events".
* operation/gis_maps/ajax.php: cleaned source code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2619 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php
operation/gis_maps/ajax.php
godmode/agentes/planned_downtime.php
godmode/agentes/manage_config_remote.php: Fixed many all group
control from 1 to 0 value. Remove deprecated functions
list_group() and list_group2() from functions_db.php
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2618 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: added render html for "text" and "sql"
item.
* include/ajax/reporting.ajax.php: added request for the custom SQL.
* include/functions_db.php: in function "get_db_value_filter" fixed the
field when the field is escape string.
* godmode/reporting/reporting_builder.item_editor.php: added the preview of
custom SQL.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2617 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: cleaned source code of
"render_report_html_item" function for new types of report items.
* include/functions.php: cleaned source code of "get_report_types" function
and added new types of report items.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2614 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/pandora.js: The id_group filter in
agent_module_autocomplete is no longer needed.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2609 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/pandora.js: in the function
"agent_changed_by_multiple_agents"fixed the id of "All" group, now it's the
0.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2608 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/config_process.php: Fixed a doble include in the
functions_enterprise.php file (breaks the tab "inventory" in the
agent view).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2606 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/ajax/reporting.ajax.php: added ajax respond to delete_sla_item and
add_sla actions.
* include/functions.php: added in the function "get_report_types" new types
of items/contents for reporting.
* pandoradb.sql: added columns custom_logo, header, first_page, footer,
custom_font into the table treport. And in the table treport_content have
new columns text, external_source, treport_custom_sql_id, header_definition,
row_separator, line_separator. Added new table treport_custom_sql.
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: added changes for DB that it
same to pandoradb.sql.
* images/sort_none.png, images/sort_down.png, images/sort_up.png: added the
images for order list items for reports.
* godmode/reporting/reporting_builder.list_items.php,
godmode/reporting/reporting_builder.main.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/reporting_builder.item_editor.php: made new forms to
manage the reporting, now Pandora have tabs and list of items. In the list
of items, you can order manually or automatically the items.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2595 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/pandora.js: added function
"agent_changed_by_multiple_agents" for query ajax with one or more agent
select.
* operation/agentes/ver_agente.php: added ajax response to
"get_agent_modules_json_for_multiple_agents".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2594 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_ui.php
include/functions_agents.php
include/functions_db.php: Change the way of validate
the All group. Now the group All has id_group = 0
and is not on the database
* extensions/module_groups.php: Remove the All
group row from the table. Inprove the table style
* operation/agentes/status_monitor.php
operation/agentes/alerts_status.php
operation/agentes/estado_agente.php
operation/agentes/exportdata.php
operation/agentes/networkmap.php
godmode/agentes/modificar_agente.php
godmode/agentes/planned_downtime.php: Changed the
All group on combos from 1 to 0
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2588 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/pandora.js: erased trace line in the source of function
"agent_changed", and force to select by default the none option.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2586 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/pandora.js: changed function "agent_changed" for take
the translate any or none texts from ajax or global var.
* operation/agentes/ver_agente.php: added to package data the translate
text for any.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2585 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Added function render_report_html_item()
to render a given report element in HTML format. Fixed a small problem in
SUM report type (int truncate invalidate most of SUM reports when not using
a _inc data type).
* include/functions.php: Updated all "is_module_xxx" from using ereg
(deprecated) to use preg_match.
* include/functions_db.php: Moved reporting functions
get_agentmodule_data_average(); get_agentmodule_data_max(),
get_agentmodule_data_min() and get_agentmodule_data_sum() from here
to functions_reporting.php.
* godmode/groups/group_list.php: Removing a group put all agents assigned
to that group in other available group (choosen in realtime).
* AUTHORS: Authors file update, was very outdated!.
* operation/agentes/estado_generalagente.php: Fixed bug #2990430.
* operation/reporting/reporting_viewer.php: Some changes for better
structuration of the HTML reporting viewer. Removed big chunk of code
and put in function_reporting/render_report_html_item() function.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2583 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/pandora.js: small improve, added new parameter into
the function "agent_module_autocomplete", the parameter is "noneValue" for
add a option for none module in the select of modules
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2582 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/pandora.js: Added function agent_module_autocomplete
to use with a text box, a hidden field and a selector to select an agent
and a module from the agent.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2575 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/module_manager.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_network_templates_form.php: Changed the substr()
to mb_strimwidth(). Strings should be truncated with displayed length,
not number of characters.
* godmode/include/functions.php: Added wrapper mb_strimwidth().
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2574 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/ajax/agent.php: Modified to return the agent name at the i
begining of the serialized result.
* godmode/agentes/configurar_agente.php: Added help links and TODO tag
to remember to change the tabs to use the print_page_header function.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2571 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php: added check new attribute "styleTable" to
object table, this is for pass the style table.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2568 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: fixed bug in the function
"format_array_to_update_sql" when the field yet escaped.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2565 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: fixed bug in the function "get_db_value_filter"
when the field's name is a reserve word of mysql crash.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2563 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/help/ja/help_configure_gis_map.php,
include/help/ja/help_gis_map_builder.php,
include/help/ja/help_gis_setup_map_connection.php,
include/help/ja/help_setup_gis_index.php: Added the GIS help files
in Japanese.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2555 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_extensions.php: Changed the function to use,
from substr() to mb_substr(). substr() can't handle multibyte strings
correctly.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2553 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/jquery.pandora.controls.js: changed the page to ajax in
the event "pandoraSelectAgentAlert".
* include/ajax/alert_list.ajax.php: new file with the source code of ajax
request.
* godmode/agentes/massive_config.php: changed the page to ajax in the
event "source_id_agent" in the javascript source code.
* godmode/alerts/alert_list.list.php: cleaned unused javascript source code
that is for use in alert_list.builder.php.
* godmode/alerts/alert_list.php: erase the php ajax source code and
copy to alert_list.ajax.php. And move the action messages (create, delete
...) bellow to header.
* godmode/alerts/alert_list.builder.php: : cleaned unused javascript source
code that is for use in alert_list.list.php.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2547 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_agents.php: changed the functions
"get_agent_alerts_simple" and "get_agent_alerts_compound" delete new
parameter $limit because you can set the pagination limit in the parameter
$options.
* operation/agentes/alerts_status.php: changed the calls to previus
functions.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2545 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/functions_agents.php: added parameter $where for SQL in function
"get_agent_alerts_compound".
* operation/agentes/alerts_status.php: use the new free search for filter
the rows of alerts.
* operation/agentes/alerts_status.functions.php: added parameter in the
function "printFormFilterAlert", the parameter $free_search and add
input text control for free search.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2543 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_ui.php: changed some parts of source code in the
functions "format_alert_row" for show column modules in general view. In the
function "pagination" added the parameter $offset_name with default value
'offset' for to use several paginations in one page.
* include/functions_agents.php: added the parameters $limit, $idGroup,
$count in the function "get_agent_alerts_simple", and now you can limit the
rows, search by id group and return the count of rows (without limit). And
in the function "get_agent_alerts_compound" added the same parameters to
another function $idGroup, $limit, $count for similar uses.
* operation/agentes/alerts_status.php: cleaned more parts of source code,
fixed the mad array_merge of alerts, fixed SQL with the searchs IN
(large large list ids), fixed the pagination before loop all rows, now
only loop the block page rows.
* operation/agentes/alerts_status.functions.php: new file with the functions
"forceExecution", "validateAlert", and "printFormFilterAlert".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2542 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_visual_map.php: in function "printItemInVisualConsole"
changed the text align of elements label to center.
* operation/visual_console/render_view.php: changed the title to Pandora's
header.
* godmode/reporting/visual_console_builder.php: fixed the id of visual
console in the update wizard action.
* godmode/reporting/visual_console_builder.editor.php: small changes in the
style. Set the width and height for module graph.
* godmode/reporting/visual_console_builder.editor.js: set the default value
for width and height for module graph in the function "cleanFields". And in
the function "createItem" deleted br tag the simple value.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2532 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php: added new parameter for function
"print_select" for style. In the function "print_input_hidden" added the
parameter $class for set the class of input.
* godmode/reporting/map_builder.php: delete old code, now it have only
source code of paint list of visual consoles.
* godmode/reporting/visual_console_builder.data.php: cleaned style the of
form.
* godmode/reporting/visual_console_builder.elements.php: cleaned the rows of
table, delete label color field and change the text type for a icon.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2531 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_visual_map.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.elements.php: worked about the new
visual console builder editor, now it is finished but I will clean and
comment the source code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2528 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/ajax/visual_console_builder.ajax.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/visual_console_builder.constans.php,
godmode/reporting/visual_console_builder.editor.js: worked about the new
visual console builder editor, now it is developing, don't afray.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2527 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/ajax/visual_console_builder.ajax.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/map_builder.php,
godmode/reporting/visual_console_builder.editor.js: worked about the new
visual console builder editor, now it is developing, don't afray.
* godmode/reporting/visual_console_builder.constans.php: added the file that
it has the constans.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2526 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/config_process.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/visual_console_builder.editor.js: worked about the new
visual console builder editor, now it is developing, don't afray.
* include/javascript/jquery.colorpicker.js: we used the old versión, and
patch with self code for z-index to upper position.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2525 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_visual_map.php,
include/ajax/visual_console_builder.ajax.php,
godmode/reporting/visual_console_builder.preview.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/visual_console_builder.editor.js: worked about the new
visual console builder editor, now it is developing, don't afray.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2524 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/jquery.ui.resizable.js: add library of jQuery.ui for
resizable elements.
* include/functions_visual_map.php
*include/ajax, include/ajax/visual_console_builder.ajax.php: add the
file for ajax request from visual console builder editor.
* include/config_process.php: change $build_version.
* include/functions.php: in function "safe_url_extraclean" fix to pages
with '.' character.
* godmode/reporting/visual_console_builder.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.elements.php: worked about the
new visual console builder editor, now it is developing, don't afray.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2521 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/help/en/check_other_languages.sh: Moved from include/help
and rewritten to be more usable. This is a script to check if there
are missing help files for each language (taken as parameter).
* operation/agentes/datos_agente.php: Cannot detete data from here.
Removed old support for individual data delete due the new table
schema.
* extras/check_other_languages.sh: Moved from include/help
* godmode/agentes/modificar_agente.php: Admin can see everything
even if agent has a invalid group (group which not exist). This
was important because agents with invalid group was "Invisible"
until now.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2519 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/Image/Graph/Plot/Bubble.php: New chart type: bubble
* include/Image/Graph.php: Add the new bubble chart to the available charts
* include/functions.php: Refactoring way to get type of graph from module type
* operation/agentes/estado_ultimopaquete.php: Added links to access log4x graphics
* include/fgraph.php: Add log4x graphics rutines.
* operation/agentes/stat_win.php: Add support to show log4x graphic.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2512 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/config_process.php, install.php: change version number.
* include/functions_ui.php: add in the function "print_page_header" a
read boolean item "active" in array $buttons for paint disabled.
* include/functions.php: add function "get_parameterBetweenListValues" this
function get a parameter for a GET or POST but between a values.
* godmode/reporting/visual_console_builder.php: added new editors for visual
console, now it is developing, don't afray.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2511 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, operation/gis_maps/render_view.php : Changed
some english phrases to make it more clear.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2487 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
New theme for the maps: New images and background color for the Openlayers
controls.
* include/javascript/OpenLayers/OpenLayers.js: Channged background color
on some components to fit the new theme.
* include/javascript/OpenLayers/img/south-mini.png,
include/javascript/OpenLayers/img/zoom-plus-mini.png,
include/javascript/OpenLayers/img/zoom-world-mini.png,
include/javascript/OpenLayers/img/zoom-minus-mini.png,
include/javascript/OpenLayers/img/zoombar.png,
include/javascript/OpenLayers/img/west-mini.png,
include/javascript/OpenLayers/img/slider.png,
include/javascript/OpenLayers/img/layer-switcher-maximize.png,
include/javascript/OpenLayers/img/north-mini.png,
include/javascript/OpenLayers/img/east-mini.png: New images for the new
theme of the Openlayers controls.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2484 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/pandora.js: change the code into function
"html_entity_decode" for fix the decode in IE6 and rename the function to
"js_html_entity_decode" for clean source code.
* include/javascript/jquery.pandora.controls.js,
include/javascript/pandora_modules.js, godmode/alerts/alert_list.php,
godmode/alerts/configure_alert_action.php,
godmode/reporting/reporting_builder.php, godmode/reporting/map_builder.php,
godmode/reporting/graph_builder.php: use the rewrite new function javascript
js_html_entity_decode.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2483 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
* godmode/gis_maps/configure_gis_map.php: Change help link.
* godmode/gis_maps/index.php: Added help link.
* include/help/en/help_gis_map_builder.php,
include/help/en/help_configure_gis_map.php: first version of the help
pages.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2473 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: in function "printMap2" disable by default
to add the control "layerSwitcher".
* operation/gis_maps/render_view.php: add the "layerSwitcher" to controls to
show.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2472 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: in function "getAgentMap" change the controls
delete overview and change PanZoom for PanZoomBar because the overview
fail with google map, and PanZoomBar now the map view is more tall.
* operation/gis_maps/render_view.php: delete overview because the overview
fail with google.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2471 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: in function "get_user_groups" add third
parameter $returnAllGroup by true for default. Fix in the function
"get_group_agents" now if pass the id_group as 0 or 1 (all group) search
for all groups.
* godmode/agentes/agent_manager.php: use the new parameter for function
"get_user_groups" for don't show the all group.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2470 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_data.sql: Added news, default timezone and other
minor changes. GIS is disabled by default now.
* include/config_process.php: Force a timezone if not defined.
* operation/gis_maps/index.php,
operation/agentes/gis_view.php: Config.php and header stuff
* operation/servers/view_server_detail.php
operation/menu.php: Recon operation detail is now shown in the left
menu.
* admin_access_logs.php,
db/db_audit.php
db/db_info.php
db/db_event.php
agentes/configurar_agente.php
gis_maps/configure_gis_map.php
gis_maps/index.php: More headers and config.php include stuff.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2469 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: add comment include for javascript include
for more to easy change version openlayers for test.
* include/javascript/OpenLayers/OpenLayers.js: warning the source code is
compress. In the method "drawFeature" for the class "Renderer" backport some
part of code for to extend the style attributes (labelYOffset in this case).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2465 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: added missing num_zoom_levels value to
the baselayers hash when printing the Agent Map
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2461 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: add in the last time a function "printMap2"
that it is a clean function. Change the function "printMap" to call
"printMap2".
* include/javascript/openlayers.pandora.js: in function "js_printMap" set
the spherical Mercator for google maps.
* operation/gis_maps/render_view.php: add to list of $baselayers the name
of baselayer. Change order of div for map because now the script don't
call when document ready.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2458 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: Use mysql_fetch_assoc instead of
mysql_fetch_array to avoid duplicate results (hash and array).
* godmode/alerts/configure_alert_template.php: Added 'matches_value'
support to 'onchange' alerts.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2457 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: add new parameter to function "addPath" the
$lastPosition for paint the line to last position that this position is not
in the table tgis_data_history. In function "getAgentMap" use the new
parameter in the function "addPath".
* operation/gis_maps/render_view.php: tiny fix in the include javascript
of google. And few stetic changes in the top menu. And add the new parameter
to "addPath".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2455 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: Added a missing break and remove debugging
code.
* operation/gis_maps/render_view.php: Added code to render Gmap type of
maps.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2446 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/functions_reporting.php: Solved issue with several undefined
vars.
* include/functions_servers.php: Solved issue with several undefined
vars.
* include/functions_config.php: Added metaconsola witch to readconfig.
* include/config_process.php: Update build.. is YYMMDD !
* include/functions_ui.php: Removed deprecated call to split and replaced
by preg_split.
* index.php: Activated developer mode.
* operation/agentes/estado_monitores.php: Solved small problem with modules
without history, filling missing column in table. Added headers
* godmode/alerts/configure_alert_compound.php,
operation/agentes/status_monitor.php
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_templates.php,
godmode/alerts/configure_alert_action.php,
godmode/alerts/configure_alert_command.php,
godmode/alerts/alert_actions.php,
godmode/alerts/alert_commands.php,
godmode/modules/manage_network_templates.php,
godmode/modules/module_list.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php: Removed deprecated call to include
config.php and in some cases, added new header style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2444 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: add function "addParentLines", in ths function
make a hierachy layer and call "js_refreshParentLines" for paint hierachy
lines. In function "activateAjaxRefresh" use the function
"js_refreshParentLines" for repaint the lines.
*include/javascript/openlayers.pandora.js: add the global var
"storeLayerNameHierachy" for save the text localiced name of Hierachy lines
layer. Add the function "js_refreshParentLines" for paint the lines from
parent to sons. In function "changeShowStatus" add the
"js_refreshParentLines"
* operation/gis_maps/render_view.php: use the function "addParentLines" for
start the parent lines.
* operation/agentes/gis_view.php: clean sourcecode.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2442 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
* include/styles/menu.css,
include/functions_db.php,
operation/menu.php: New code for give support for Metaconsole. Added nocache
settings in some SQL main functions to avoid globally usage of SQL cache.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2439 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: in fuction "getAgentsLayer" fix when none data
for agents in this layer.
* operation/gis_maps/render_view.php: fix link to edit map and fix the text
of header.
operation/gis_maps/index.php: use function "print_page_header".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2437 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: now function "getAgentMap" return true or false
if there is default map or not.
* operation/agentes/gis_view.php, godmode/agentes/agent_conf_gis.php: show
message of error when there isn't a default map
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2436 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: update with the new data in
the sql data file of pandora.
include/config_process.php: update the version.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2435 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: use zoom level.
* godmode/gis_maps/configure_gis_map.php: include the things about
default zoom level in function "validateMapData", "getMapData" and add
the function "getNumZoomLevelsOfConnectionDefault".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2430 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_ui.php: Alert information now show the default
actions properly,and the action conditions (max/min).
* include/functions_alerts.php: Added support on get_alert_templates_types
for new alert type "onchange".
* pandoradb.sql,
extras/pandoradb_migrate_v3.0_to_v3.1.sql: Added new support for alert
type "onchange".
* godmode/alerts/alert_list.php: Alert information now shows the default
action (if exist) and have a link to edit the template directly from here.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2425 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* ChangeLog: I did'nt upload in previous commit the changelog.
* include/functions_gis.php: refactor the name of function "addPoint"
to "addAgentPoint". In function "get_agent_icon_map" add new parameter
$status for pass the status.
* include/javascript/openlayers.pandora.js: add function "js_addAgentPoint"
is same more or less "js_addPoint" and too for "js_addAgentPointExtent" and
"js_addPointExtent".
* operation/gis_maps/render_view.php: add the id_parent in the call of
"addAgentPoint".
* operation/gis_maps/ajax.php: clean source code and add the id_parent to
return json for each agent.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2423 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: in function "addPath" fix the query to extract
the path from a time.
* operation/agentes/gis_view.php: add no-ajax control for filter the time
to show path.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2421 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: in function "addPath" add the parameter
$history_time for to set limit in seconds to past where to start path.
Use new parameter in function "getAgentMap".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2420 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: change the setup params "maxExtent",
"maxResolution", "numZoomLevels" from map to baselayer. Add new function
"getAgentsLayer" to get agent info of agents in layer, but only agents not
in group in layer.
* operation/gis_maps/render_view.php: use new function "getAgentsLayer".
* operation/gis_maps/ajax.php: fix the extract agent gis info, and clean
source code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2418 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: fix map to show correct position the agent
icons in the function "printMap".
* include/javascript/openlayers.pandora.js: fix map to show correct position
the agent icons in the function "js_printMap".
* godmode/gis_maps/configure_gis_map.php: fix a mechanographic mistake in a
text.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2415 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: in function "printMap" add the posibility to
show the Static_Image base layer (WIP because it'snt show the icons), in
function "getAgentMap" pass the status in the feature.
* include/javascript/openlayers.pandora.js: in the function "js_printMap"
add the posibility to show the Static_Image base layer (WIP).
* operation/gis_maps/render_view.php: clean source code for the part of
baselayers and add the code for Static Image baselayer.
* godmode/setup/gis_step_2.php: clean source code uninitialize vars, add
the preview static image var (WIP because it'snt show the icons).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2414 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: fix the refresh time in function
"activateAjaxRefresh", in functions "activateAjaxRefresh" and "addPoint"
add status agent.
* include/javascript/openlayers.pandora.js: add function "changeShowStatus"
for change show icons by status, in function "changeRefreshTime" add reset
timer, in function "js_addPoint" and "js_addPointExtent" add the state and
hide if it's necesary.
* operation/gis_maps/render_view.php: change the style of page, and add
controls for hide agent icons by state.
* operation/gis_maps/ajax.php: add the option "get_map_connection_data" in
switch for get map connection data.
* godmode/gis_maps/configure_gis_map.php: start to develop the preview map
in editor.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2412 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: in function "activateAjaxRefresh" add the
posibility to change refresh time in execution time.
* include/functions_ui.php: add in the "print_page_header" the feature to
pass a array of buttons/items.
* include/javascript/openlayers.pandora.js: add the function
"changeRefreshTime" for change the refresh time.
* operation/gis_maps/render_view.php: change the top of page for to
adapt the new header, and add refresh control.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2408 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: change the function "activateAjaxRefresh" for
refresh also the agent maps, and in the function "getAgentMap" show icon
with status the agent maps.
* operation/gis_maps/ajax.php: in the switch option "get_new_positions"
return GIS data for agent maps, in the "point_agent_info" and
"point_path_info" option change for new tables.
* operation/agentes/gis_view.php: add the ajax moving agent and click
bubble info.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2405 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* images/groups_small/*.ok.png, images/groups_small/*.default.png,
images/groups_small/*.bad.png, images/groups_small/*.warning.png: add the
group images for diferent status, it's used in the GIS map.
* godmode/agentes/agent_manager.php: change for new form to name the icons
with status.
* include/functions_gis.php: clean source code in function "addPoint",
rewrite the function "get_agent_icon_map" for used icons with state for
group, change some parts of source code in the function "getArrayListIcons"
for new form to name the icons.
* images/gis_map/icons/*.png: change some icons.
* operation/agentes/estado_generalagente.php: show message when there isn't
the GIS data.
* operation/gis_maps/ajax.php: change the source code and db query to
return the GIS data for return default position for agent without GIS data.
* operation/gis_maps/render_view.php: show agents without GIS data.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2396 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* functions_events.php: Fixed typo (switched meaning) in two labels.
* include/styles/pandora.css: Changed background color of th default style.
* include/functions_reporting.php: Improved function get_group_stats(). Now
supports stats from batch-mode and get realtime stats in a more efficient
way. Fixed get_fired_alerts_reporting_table() to avoid problems in external
reporting (PDF & XML).
* include/functions_servers.php: get_server_performance() now uses batch mode
stats reporting, and improved also the realtime stats generation. Same with
function get_server_info().
* include/functions_config.php: Added new config tokens (not fully
implemented yet) for event, trap, strings and audit automatic purge.
* include/functions_ui.php: Added new print_page_header() function to set
the new standard header in all pages, using the "tabbed" format to show
the title, subtitle and other options like help, or custom-tabs for the page
* pandoradb.sql: Added tserver.stat_utimestamp field. Added indexes to
tsession table. Fixed typo in field name in tgroup_stat: agents_uknown to
agents_unknown.
* extensions/ext_backup: New directory to place "deleted" extensions.
* extensions/dbmanager/dbmanager.css: Table names now are in it's original
lowercase/uppercase format.
* extensions/dbmanager.php: Updated headers, and now return "empty" when
a search is empty, instead "error" as before.
* extensions/users_connected.php
extensions/module_groups.php
extensions/plugin_registration.php
extensions/pandora_logs.php
operation/incidents/incident.php
operation/snmpconsole/snmp_view.php
operation/users/user.php
operation/users/user_edit.php
godmode/agentes/planned_downtime.php
operation/events/events.php
operation/visual_console/index.php
operation/agentes/estado_generalagente.php
operation/agentes/estado_agente.php
operation/agentes/exportdata.php
operation/agentes/ver_agente.php
operation/agentes/status_monitor.php
operation/agentes/alerts_status.php
operation/users/user_statistics.php: Added new header format.
* operation/agentes/estado_grupo.php: Removed old group view.
* operation/agentes/tactical.php: Adapted to use new realtime/batch
statistical system. Placed events above server info. Showing only pending
events and other minor changes.
* operation/agentes/group_view.php: NEW screen, replacing old one. Probably
most ugly, but much more useful than before.
* operation/agentes/networkmap.php: Added title.
* operation/messages/message.php: Added title and adding some exists in
code was missing before.
* operation/reporting/reporting_viewer.php: Added title.
* operation/reporting/graph_viewer.php: Added title.
* operation/reporting/custom_reporting.php: Added title.
* operation/servers/view_server.php:
* operation/menu.php: Replaced old group view with new (this has english
name). Removed autorefresh "by default" in server view.
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Fixed typo.
* extras/pandora_diag.php: Minor changes, removed some info and added other.
* general/logon_ok.php: Minor aesthetic changes.
* general/header.php: Fixed missing ";"
* operation/extensions.php,
godmode/extensions.php: Added support for delete extensions.
* godmode/menu.php: New setup items.
* godmode/setup/setup.php,
godmode/setup/performance.php,
godmode/setup/setup_visuals.php: Reordered setup options, new setup section
"Performance", added new performance options to set "realtime" statistics
or "batchmode" with it's own interval. Some setup info is now shared with
the servers (but it it's any change in setup, servers should be restarted
anyway).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: adapt to new tables.
* include/javascript/openlayers.pandora.js
* operation/gis_maps/render_view.php: adapt to new tables.
* operation/gis_maps/ajax.php: adapt to new tables.
* operation/agentes/gis_view.php: clean source code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2386 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: check in the function "addPath" if the agent
haven't history data. And clean source code.
* operation/agentes/gis_view.php: change to use new tables, and show
messages when the agent haven't data GIS.
* godmode/agentes/agent_conf_gis.php: change the message for agent without
data GIS.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2376 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php: hightlight that the parameter $script in
function print_input_text_extended isn't in use.
* include/functions_gis.php: create function "getDataLastPositionAgent"
that return row of position and other data for id agent.
* godmode/agentes/agent_conf_gis.php: add the validate fields and adapt
to new tables.
* godmode/agentes/configurar_agente.php: adapt to new tables.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2375 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: add the parameter id layer in the function
"makeLayer" for add the id layer (id of db) in the layer. Fill in the
sourcecode in the function "activateAjaxRefresh" that now show new
agents in the map in real time and add make changes in this function.
* operation/gis_maps/render_view.php: use the new parameter in the call
of function "makeLayer".
* operation/gis_maps/ajax.php: add code to return new positions (and name
and icon) when the ask the positions in "activateAjaxRefresh".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2373 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: add the function "getMapConnection" get the row
of connection for id connection, "updateMap" function update the all data in
the DB, "validateMapData" function validate the map data previous update or
save in the database and if it's invalid, write the css code for set colors
and other styles, "getMapData" return all data about map for id map,
"addConectionMapsInForm" tranlate the map connection array to html code and
javascript for to write in the form when edit, "addLayerList" translate the
layer array to html code and javascript for write in the form when edit.
* operation/gis_maps/render_view.php: fix the link to edit map.
* godmode/gis_maps/configure_gis_map.php: change many parts of the source
code for add the method the edit in the form and add more usability
to form.
* godmode/gis_maps/index.php: fix the links to edit and view map.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2370 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: in the function "saveMap" set the first map
as default.
* godmode/setup/gis_step_2.php: minor stetic change the link of refresh by
button.
* godmode/gis_maps/index.php: add many alerts in the change the default map
and delete any map. And fix the delete map parameter.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2359 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: clean source code, delete javascript debug
info messages for firebug.
* godmode/agentes/module_manager_editor_network.php,
godmode/agentes/configurar_agente.php: add support for SMNP ver3 in the
forms to add or edit "Network module".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2352 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/reporting/reporting_viewer_pdf.php
include/functions_reporting_pdf.php: Small fixes for PDF reporting.
Decode entities to show texts correctly in description of each element.
* pandoradb.sql: new enterprise structures.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2345 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: in function "saveMap" now save the default
connection.
* operation/gis_maps/ajax.php: add option "get_data_conexion" for get by
ajax the data connection when pass id_connection.
* godmode/gis_maps/configure_gis_map.php: now you can set the default
connection and too load the data by default for each connection.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2344 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: Changes in several tables and new tgroup_stat table.
Added several index and dropped some fields in tagente_datos and
tagente_datos_string tagent_access.
* godmode/setup/setup.php,
* include/functions_config.php: Management of new timezone settings and
realtime stats parameters.
* include/config_process.php: New timezone management. Updated build.
* pandoradb_data.sql: Build update. Added new tokens realtimestats and
stats_interval.
* install.php: Several changes: Now display GPL licence, better SQL error
management, and steps are shown now as text instead a progress bar. Also
show version and build of the installer.
* extensions/dbmanager.php: Removed some warnings
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Updated with latest changs.
* godmode/agentes/module_manager_editor_network.php
godmode/agentes/configurar_agente.php
godmode/agentes/module_manager_editor.php: Implemented partial support for
SNMP v3. Miguel will finish the work :-)
* index.php: Session close function deprecated, replaced by a more standard
method with unset.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2338 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: add in the function "getAgentMap" a new
parameter "centerInAgent" (default true) for center the map in the last
position of agent.
* operation/agentes/ver_agente.php: clean source code.
* godmode/agentes/agent_conf_gis.php: add page that you can change the
position of agent.
* godmode/agentes/configurar_agente.php: add the code to update the changed
coords of agent, and show the tab to access the agent_conf_gis.php.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2337 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: clean source code, and extract the javascript
code to openlayers.pandora.js.
* include/javascript/openlayers.pandora.js: new file, have a source code of
gis in javascript.
* operation/gis_maps/render_view.php, operation/gis_maps/index.php,
operation/agentes/gis_view.php, godmode/agentes/agent_manager.php,
godmode/setup/gis.php, godmode/gis_maps/configure_gis_map.php,
godmode/gis_maps/index.php: add the require javascript to
"openlayers.pandora.js".
* godmode/setup/gis_step_2.php: add the source code to improve usability,
now can set with the mouse points of center and default position for agents
without gis data.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2335 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: add javascript function "isInt" for test int
values, rename some javascript functions for to avoid typing mistakes with
similar name functions in PHP. Add the function "activateAjaxRefresh" and
"getArrayListIcons".
* operation/gis_maps/ajax.php: add new operation "get_new_positions" for
ajax refresh the points.
* operation/gis_maps/render_view.php: change the source code for to use new
functions as "activateAjaxRefresh" for example.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2330 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
Changes ported from 3.0 branch.
* include/javascript/pandora_visual_console.js: Thiner lines in maps.
* include/functions_visual_map.php: Fixed several issues in visual maps
(bad hierarchy status color, limited depth for recursion, get unknown
for agents and modules, and line color is now always associated to
parent status) and non-status elements like labels, graphs or progress
bars now doesnt propagate module status to parents.
* include/functions_db.php: Added parameter to get_db_all_rows_sql() to
avoid use of cache. Function process_sql() was not properly checking if
cache usage was disabled and was always using cache. Added support for
checking unknown status in get_agentmodule_status() function.
* extensions/dbmanager/dbmanager.css,
extensions/dbmanager.php: Fixed width of textarea.
* operation/events/events.php: Fixed bug #2943907.
* operation/agentes/exportdata.php: Fixed problem exporting CSV
when data to export is TOO big, using an internal cache to read
data.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2327 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/gis_maps/render_view.php: Fixed call to get_agent_names to
get the names in the same case as they are in the DB.
* operation/agentes/gis_view.php: Changed size of the map to be relative
* include/functions_gis.php: Fixed the call to addPoint in getAgentMap
to use the new parameters.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2322 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: add function "deleteMap" for to delete the map
and other rows in tables related.
* godmode/gis_maps/index.php: use the "deleteMap" in link of delete map.
* include/functions_db.php: add function "clean_cache" for clean the
problematic (sometimes) cache.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2317 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: Modiffied addPoint and addPointExtent to
receive more parmeters so it's possible to use any kind of point.
Modified comments on saveMap2
* operation/gis_maps/render_view.php: Used map_id instead if id when
the parameter passed in the url is a map id.
Fixed to work with the new function getMapConf.
Improved "pure" view. Still some things are hardcoded and needs improvement
* operation/gis_maps/ajax.php: Modified to suppor calls to get info of
different kind of points. Removed hardcoded data.
* operation/gis_maps/index.php: Used map_id instead if id when
the parameter passed in the url is a map id.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2315 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: fix a typing "print_r" in function "getMapConf"
and fill with code the function saveMap2 and add the commment in format
phpdoc.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2314 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: add the prototipe of function "saveMap2" at
the moment for to develop in next hours or days.
* include/javascript/jquery.json.js: add json plugin for jquery.
* godmode/gis_maps/configure_gis_map.php: rewrite all source code, change
the form and adapt to new gis tables.
* godmode/gis_maps/index.php: few changes for more correct source code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2312 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: Added more Openlayers Controls to the case
on the printMap function, fixed typo manual_placemen -> manual_placement,
added gectConectionConf and getAgentMap functions (last one still with
some hardcoded values). Function get_agent_last_coords now also returns the
agent name.
* operation/agentes/estado_generalagente.php: Added last position
information, and timezone offset if is not 0
* operation/agentes/gis_view.php: Added map with the last position of the
agent and table with the previous positions of the agent.
* operation/agentes/ver_agente.php: Used agent icon to show status
if icon_path is defined.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2310 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: add functions "saveMapConnection" and
"deleteMapConnection".
* godmode/setup/gis_step_2.php, godmode/setup/gis.php: add the forms to
make, edit and delete map connections.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2308 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions.php: Fixed problem in show_event_type() function
who mades events.php to do a invalid filtering by event status.
* operation/events/events_rss.php: Added optional (commented code)
support for filtering RSS request by the API ACL. need to implement a switch
in the config array to use here ACLs or not.
* operation/events/events.php: Fixed problem filterings events by status
(warning, critical, normal and not-normal).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2306 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/config_process.php: small fix for to erase a alert message in php
when call a ajax.php.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2302 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/config_process.php: use the flag "$develop_bypass" to change the
method to show the php messages for developing purposes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2297 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/styles/menu.css, godmode/gis_maps, godmode/menu.php,
godmode/gis_maps/configure_gis_map.php, godmode/gis_maps/index.php: add the
page to manipulate the GIS maps and add the page to create (and edit not at
the moment) the GIS maps.
* operation/gis_maps/render_view.php: small changes in the develop of
render, add events and popups.
* include/functions_gis.php: add code for respond to events, add function
"saveMap" to save a map.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2294 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php, operation/gis_maps/ajax.php: code for GIS maps,
now show correctly the path points and start to show the popup for this
points.
* include/javascript/OpenLayers/lib/Gears/gears_init.js,
include/javascript/OpenLayers/lib/OpenLayers/Format/ArcXML/Features.js:
some files of OpenLayers that I erased in the previous clean.
* images/spinner.gif: image for ajax loading.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2287 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/OpenLayers/*: include the OpenLayers library into the
Pandora file system for GIS use.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2278 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/OpenLayers/*: include the OpenLayers library into the
Pandora file system for GIS use.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2277 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: Custom graph weights now can be float.
* include/config_process.php: Updated version to 3.1-dev
This is the first commit of 3.1 version ! :-)
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2261 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/Image/image_functions.php: PHP 5.2 and higher does
not support (deprecated) get_mimetype. Avoiding headers lets
the browser to decide contents of stream and now this works
on modern PHP, before not :(
* extensions/hello: Removed sample.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2257 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_servers.php: Fixed notice (division by 0).
* include/functions_visual_map.php: Fixed problem in graphs
embedded in the visual console maps (problem with & in
fgraph call !!?).
* include/config_process.php: Added supression of DEPRECATED
system messages for PHP 5.2.11 or higher insted 5.3
* godmode/agentes/module_manager_editor_prediction.php: Fixed
several missing fields in the prediction module edition.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2256 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/config_process: Fixed problems detected in system/user
language settings. Now use config["language"] avoiding use of old
token "language_code"
* include/function_config.php: config["language"] is now a "stardard"
config token, avoding to use as special one, was giving a big headache in
order to maintain old compatibility. Now will use config["language"] always
and create it if doesnt exist using english as base lang.
* pandoradb_data.sql: Token is not "language" instead "language_code"
* godmode/setup/setup.php: Use config["language"], manage like other
variable in the sytem, avoiding conflicts and problems detected.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2246 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_ui.php: fix bug that show SQL error message and don't
show the actions for compound alerts.
* include/functions_alerts.php: in function "get_alert_agent_module_actions"
add the parameter compound for search compound actions.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2241 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: fix warning messages when pass only group as
string or integer in the function "isAllGroups".
* include/functions_reporting.php: fix ambiguous colummn in query in the
function "get_group_stats".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2233 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_custom_graphs.php: fix the name of custom graphs in the
config select box in widget.
Fixes: 2918740
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2232 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/config_process.php, include/functions_db.php: fix alert message
when the history DB is'nt setup.
* general/header.php: fix alert message when the custom logo didn't exit.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2231 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/fgraph.php: clean source code, fix when try show boolean without
data, and some changes in "grafico_modulo_sparse".
* operation/agentes/stat_win.php: clean source code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2230 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php: add debug function "f2str" that return as
string any call of function, for example "var_dump".
*include/fgraph.php: into function "grafico_modulo_boolean" re-add alarms,
clean source code and show again the flash graph.
*include/functions_db.php: fix the access to IP client, it used very
deprecate var, that clean of notice php message of error for this cause.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2229 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_console.spec: Ypdated build.
* pandora_console_upgrade: Applied patch for more verbose information, submitted in
Sourceforge.
* pandoradb_data.sql: Updated version to FINAL build and version ;-)
* include/config_process.php: Updated build.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2221 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/fgraph.php: fix print image error as tag <image> instead content
file when there is error in data string. And add new type of graph, error
graph.
Fixes: 2908174
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2204 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_servers.php: tiny fix (a zero division) the tactical
view when start with a empty Pandora.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2202 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/fgraph.php: fix in the function "grafico_modulo_boolean" for
show correct graph, and clean source code.
* include/functions_extensions.php: change include_once to require_once for
more security.
Fixes: 2883786
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2201 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/swiftmailer/* : add the library "Swift Mailer" for make more
easy and less bugs the source code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2196 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/swiftmailer/* : add the library "Swift Mailer" for make more
easy and less bugs the source code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2195 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: change the function
"get_db_all_row_by_steps_sql", now it support more connection with
parameter $new for new conection and $result for connection.
* operation/events/export_csv.php: rewrite to adapt the new
"get_db_all_row_by_steps_sql".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2190 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* images/god9.png: New image.
* include/styles/menu.css: Added style for new menu item.
* godmode/menu.php: New menu item.
* godmode/reporting/map_builder.php: Updated internal links and title
because it will be a new entry in the menu.
* operation/visual_console/render_view.php: Updated internal link for
setup.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2189 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/db/db_info.php: Added icon to download database info.
* include/style/tip.css: Removed unused style. Still help style is in
the file. Not removed, maybe used some day...
* operation/agentes/estado_grupo.php: Added colours to the numbers.
Added the text "modules".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2183 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: in function "create_user_profile" add the
parameter $assignUser to set assign user in table. And add the function
"get_db_num_rows" that return the num of rows get from SQL.
* include/functions_api.php: add functions for new calls in the API,
"set_new_user" create new user, "set_delete_user" delete a user,
"set_add_user_profile" attach a user into group and profile,
"set_delete_user_profile" deattach a user into group and profile,
"set_new_incident" add new incident, "set_new_note_incident" add into
new note into incident.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2180 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: add in "get_db_all_rows_filter" new parameter
$returnSQL for return the string formated SQL instead the data. And add new
function "get_db_all_row_by_steps_sql" that return row by row the data of
query.
* operation/events/export_csv.php: fixed the memory overload when try save
into CSV a 10000 events or more, now use "get_db_all_row_by_steps_sql" for
extract row by row the data.
Fixes: 2859758
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2175 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_modules.php: in the function "create_agent_module" add
new parameter $disableACL (by default false) for use in API.
* include/functions_api.php: add new functions for add new features to
api, functions: "set_new_agent" create agent, "set_delete_agent"
delete agent, "set_create_network_module" create network module,
"get_module_data" get module data as CSV format in a period time,
"get_graph_module_data" get a image file of module data in a period time.
* include/functions_db.php: in function "delete_agent" add new parameter
$disableACL (by default false) for use in API for example.
* operation/agentes/datos_agente.php: clean source code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2170 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* extensions/users_connected.php: New extension that shows
currently active users connected to console.
* extensions/pandora_logs.php: New extension that show to the
user the contents of main log files (console, and server logs)
only for Pandora administrators, of course.
* general/header.php: Removed text label, this give problems
on some languages and doesn't give needed information.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2167 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/styles/pandora.css: Modified style for 3.0
* images/pandora_textlogo.png,
images/pandora_header_logo_enterprise.png,
images/custom_logo/none.png
images/custom_logo/sourceforge.png
images/custom_logo/artica_logo.png
images/header.jpg
images/pandora_header_logo.png
images/pandora_logo.png: New logos and background for 3.0 style.
* general/login_page.php: Updated style.
* general/logon_ok.php: Removed small bug in the audit log block.
* general/header.php: Pandora logo is now in left, and custom logo
at right.
* include/functions_config.php: By default custom logo is "none"
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2157 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Fixed some innacurate queries, skipping
non-init modules, async modules and keepalive modules.
* include/functions_servers.php: Improved LAG calculation algorithm, now
is VERY precise. Added performance meter for local & remote checks.
* include/config_process.php: error_reporting() has better default values
now (skipping notices and non-important messages) for pandora_console.log
* include/functions_agents.php: Fixing a problem in an alert SQL on function
get_agent_alerts_simple().
* include/functions_db.php: get_server_info() moved to functions_servers.php
* operation/events/events.php: Fixed a bug with pagination and other bug with
user validated events search.
* operation/agentes/status_monitor.php: Better management of async modules,
non init and unknown modules. Now works as expected.
* operation/agentes/estado_monitores.php: Removed blank space between icons to
let table row more compact.
* operation/agentes/tactical.php: Added performance information. Removed some
information (not used) from snmp and recon servers.
* general/header.php: Latest changes here don't work as expected. Rewritten
and now works fine (enterprise/open logo in header).
* godmode/admin_access_logs.php: Fixed pagination bug in tracker. Added table
layout with two alternate colors (rowOdd method).
* operation/servers/view_server.php,
* godmode/servers/modificar_server.php: Added include to functions_servers.php
to use the new server functions, moved from functions_db.php.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2151 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_alerts.php: fix the select box of correlation alerts,
now it has the XOR operation.
Fixes: 2849260
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2150 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: SLA readjust to be used in SLA view.
* include/config_process.php,
* include/functions_config.php: Added support for custom_logo option.
* include/help/en/help_agent_access.php,
include/help/en/help_custom_logo.php: New help topics.
* include/functions_agents.php: Replaced audit_db with pandora_audit().
* include/functions_db.php: pandora_audit() will replace audit_db().
* operation/agentes/sla_view.php: now show render ok modules with min_critical
defined and uses to calculate automatically a SLA based on it's critical
definition.
* operation/messages/message.php: Message view was not working!. Fixed
* Some new images added:
images/people_2.png
images/MiniLogoArtica.jpg
images/pandora_header_logo_enterprise.png
images/custom_logo
images/custom_logo/sourceforge.png
images/custom_logo/artica_logo.png
images/custom_logo/pandora_logo_head.png
images/pandora_header_logo.png
images/people_1.png:
* general/header.php: Changes to add new custom logo feature and replace
logos with a image instead text.
* godmode/setup/setup_visuals.php: now is possible to choose a custom logo
to be displayed in header.
*operation/agentes/ver_agente.php,
* godmode/agentes/configurar_agente.php: Tabs do not have text at sides. This
avoid problems in other languages different than english with long text strings.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2148 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_agents.php: added new parameter for order the result of
query, $orderby.
* operation/agentes/alerts_status.php, godmode/alerts/alert_list.php: use
new parameter to order by module name.
Fixes: 2902603
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2147 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_alerts.php: fix deletion of compound alerts in the
function "delete_alert_agent_module".
Fixes: 2902618
* godmode/agentes/configurar_agente.php: use the "delete_alert_agent_module"
instead the sql method.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2145 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_agents.php: fix now don't show alerts with
delete pending modules.
* index.php: clean source code, end return that show in browser.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2143 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/menu.php: User section has no ACL check, always can be seen.
* index.php: Added suppor for user-defined custom language (this code was
on my disk for 3 months, pending to be commited!).
* include/functions_db.php,
* include/functions_agents.php,
* godmode/alerts/alert_list.php,
* godmode/agentes/modificar_agente.php,
* godmode/agentes/configurar_agente.php: Added audit calls to several
management operations who don't have or have insufficient audit info.
* godmode/users/configure_user.php: Fixed several annoyings bugs. Added
custom language support, and added more audit info on management operations.
* godmode/users/user_list.php: More audit info.
* include/config_process.php: Add new debug option to render error log to
/pandora_console.log. Also set timezone if not defined (this makes warnings
on several PHP 5.x setups). Added user custom language support.
* include/functions_events.php: More audit info. Fixed problems with HTML
encoding render.
* functions_io.php: Some cleaning.
* include/functions_messages.php: Fixed problems with HTML
encoding render.
* functions_ui.php: Fixed problems with HTML encoding render in
print_string_substr() function.
* auth/mysql.php: is_user_admin() functions seems to be broken ¿?¿!. Fixed.
* styles/pandora.css: removed green colored left border in default style.
* message.php, incident*: Fixed problems with HTML encoding render.
* user.php: Better ACL check before let user to view/edit another user.
* user_edit: Removed some un-used form fields, some arrangements in layout,
and FIXED forever problems with password change (new code written).
* users/user_statistics.php: Now user can see its own audit records.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2139 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php: add disabled parameter in functions,
"print_input_password" and "print_checkbox".
* godmode/agentes/module_manager_editor_common.php,
godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/agentes/module_manager_editor_plugin.php,
godmode/agentes/module_manager_editor_prediction.php: check the module is in
any policy and disable some form fields.
Fixes: 2902631
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2138 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_alerts.php: add more values into function
"get_alert_template_threshold_values", values as 1 week, 2 weeks, 1 month
and 6 months.
* godmode/alerts/configure_alert_template.php: change the default value
to 1 day.
Fixes: 2902458
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2135 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_ui.php: fix the bug in the pagination that write wrong
the url of pages.
Fixes: 2903774
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2134 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_filemanager.php: fix bug that the url content "//" in
cases for example install in root of www directory. Only fix in this part
of source code because the rest of sources run fine.
Fixes: 2903005
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2131 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* index.php: clean source code, the blank end line in the end of document
and show in the browser too.
* include/functions_ui.php, operation/agentes/alerts_status.php: add new
colummn, the action column that it show the actions of alert.
* godmode/alerts/alert_templates.php: add the 'Time threshold' in the
tooltip.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2130 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_modules.php: fix the deletion of module in the function
"delete_agent_module" for change the name to avoid the row collision. This
change is advised by Sancho lerena.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2129 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_io.php, include/functions.php: change and add functions
for manage the input output with correct encoding and decoding.
*include/functions_html.php, include/functions_ui.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/estado_monitores.php: change the function "salida_limpia"
for "safe_output" and other changes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2128 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions.php: change the "safe_input" for estandarize the input
and clean bugs for this cause. Now Pandora Console depends of 5.2.3 PHP
version or up.
* extensions/dbmanager.php: change the source code to use correctly the
"safe_input".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2120 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/configurar_agente.php: fix the web module, change the
field to save the request retry.
* godmode/agentes/configurar_agente.php: change the query for tactical view
the counts of modules before count the disabled modules.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2103 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/config_process.php: COme back to non-persistent pconnect
who seems to raise some "MySQL has gone away" in PHP 5.3.x
* extensions/update_manager/sql/update_manager.sql: Updated update
manager URL to point 3.0 version.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2096 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/servers/view_server_detail.php: Change title to show the
father section and some added texts.
* include/help/en/help_*.php: Several language fixes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2095 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/alerts/configure*.php: Improving integrity of
appareance in title.
* godmode/alerts/alert_actions.php, godmode/alerts/alert_templates.php:
Added text if no action, list or template defined.
* godmode/alerts/alert_list.php: Small fix
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2070 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/config_process.php: Updated build/version.
* pandora_console.spec: Updated to release 2; preparing the rc2.
* godmode/agentes/module_manager.php: Fixed a small problem, don't allow
to create network modules if not have the snmpconsole due a bad SQL. Fixed.
* include/api.php: Removed ending line.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2069 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: fix the tiny bug that not set the default
separator in function "get_tree_agents".
* godmode/reporting/reporting_builder.php: fix the bug that don't change the
select box of module.
Fixes: 2888988
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2066 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: add in the function "isInACL" the posibility
to no filter if set in ACL the character "*".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2054 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_console/include/functions_api.php,
pandora_console/include/api.php: new feature, API to call by format url for
values or CSV list of values to connect Pandora with your or other
aplications. Please see the wiki for more information.
* pandora_console/include/functions_agents.php,
pandora_console/godmode/setup/setup.php: add the field ACL IP list for
access API and change the function "update_config_value" for divide in
chunks the list of IPs and save in serveral rows (if necesary). And change
the function "process_config" to paste the chunks of rows in one config
item.
* pandora_console/include/functions_config.php,
pandora_console/include/functions_db.php: changes for engage the
API with Pandora Console. The function "get_agent_alerts_simple" add
parammeter "allModules" return all modules (disabled and enabled). The
function "get_group_agents" add the parameter "noACL" for engage the API
call.
* pandora_console/godmode/agentes/agent_manager.php: fix typo and ident
source code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2051 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_ui.php: add param "style" in the function
"print_agent_name" for set the css style in the agent name return html
string.
Add in the "format_alert_row" the features: show icon policy from
enterprise and css grey disabled alert.
*include/functions_agents.php: add in the function "get_agent_alerts_simple"
and the function "get_agent_alerts_compound" the search "filter" param
posibility "all_enabled".
* operation/agentes/alerts_status, godmode/alerts/alert_list.php: add the
show rows of disabled alert, and add the select the "all (enabled)" (by
default show only alerts enabled). And add the icon of policy in the
enterprise version.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2048 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
RC1 Release
* include/help/en/help_ff_threshold.php: Added missing help topic.
* general/error_perms.php, general/error_install.php: Removed print of
version, don't know this variable at this point.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2042 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/fgraph.php,
include/functions_fsgraph.php: Solves a small problem with Flash graphs
when pandora fms console install dir is "/".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2036 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: Fixed bug #2859919 (Transaction lock timeout).
* include/error*: Fixed a formatting error and added better error
message when mysql is up but credentials doesn't work.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2034 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_custom_graphs.php, operation/reporting/graph_viewer.php,
godmode/reporting/graphs.php, godmode/reporting/graph_builder.php,
godmode/menu.php: change the process to create graphs, now you can edit
all parts of any grahps (edit, delete, add..) and has a list of graphs.
Start to add ACL in graphs...only pending test.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2033 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/config_process.php: Update build after last changes.
* godmode/agentes/planned_downtime*.php: Improving integrity of
appareance in title.
* Changelog: Correct some dates.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2031 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/pandora_modules.js,
godmode/agentes/module_manager_editor.php: add the type as parse in the
module data in the local component, in the ajax (request in php and load
in js).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2022 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* general/ui/agents_list.php: remove the pass-by-reference in the two calls
to "render_agent_field" because it are not necesary that in the function
"render_agent_field" there aren't any change in the $agent param.
* include/styles/pandora.css: fix minor bug that the path to arrow.png was
wrong.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2020 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/events/events.php: Replaced old icon (red cross) by a
white tick.
* images/tick_off.png: White tick.
* include/config_process.php: Ooopps, this is RC1 !
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2019 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f