* include/functions_db.php: fixed the include of extensions, mysql or
postgresql for the api call or Pandora Mobile.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3828 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/db/postgresql.php: fixed in function "postgresql_insert_id" the
lost var. Erased traces in the function "postgresql_process_sql". Added
function "postgresql_escape_string_sql".
* include/db/mysql.php: fixed duplicated function "mysql_process_sql". And
added function "mysql_escape_string_sql".
* include/auth/mysql.php: added method to autenticate with postgreSQL.
* include/functions_db.php: added functions "select_db_engine",
"connect_db". And divided the function "escape_string_sql" into avaliable
engines.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3827 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/db/postgresql.php, include/db/mysql.php,
include/functions_db.php: initial division of the DB core in several
engines, at the moment mysql and postgreSQL (not complete).
* include/functions_config.php, include/config_process.php: change source
code to use new functions.
* install.php: mark the mysql engine (in future select).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3826 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_config.php: Loads relative_path variable in user
session.
* include/functions_db.php: Added include call to
functions_extensions.php.
* godmode/groups/configure_group.php
godmode/groups/group_list.php: Added functionality to assign a skin to
a group.
* godmode/menu.php: Added an entry to skins submenu.
* godmode/users/configure_user.php: Added functionality to assign a skin to
a user.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3823 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php,
godmode/modules/manage_network_templates_form.php: cleaned source style.
* extensions/resource_registration.php: added extensión to import by xml
file the network component, wmi component, smnp component and local
component. And if the xml content a template, this component add into
template.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3785 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: fixed the check ACL in function
"get_agent_modules", the global search alert fixed with this, and I think
that fixed in other places.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3783 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php, include/fgraph.php,
include/functions_db.php, images/image_problem.opaque.png: fixed the bug
because this bug was two things the access to graph with not login in the
same machine to generate, and the transparent png that not crash with the
pdf library.
Fixes: #3139079
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3674 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: in function __ fixed when the Pandora don't
have extensions.
* operation/events/events_rss.php: cleaned source code.
* operation/events/events_list.php: added more info in the hidden expanded
row.
Fixes: #3102826
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3523 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php: added the function
"print_autocomplete_modules". This function is same to magic-select box for
agents instead this for modules.
* include/javascript/jquery.ui.datepicker.js,
include/javascript/jquery.ui.droppable.js: fixed end of lines that it
haven't semicolon end char.
* include/ajax/module.php: fix version of file that responds to ajax
request for the magic-select box for modules.
* include/functions_ui.php: in function "format_alert_row" use new call
for the "isAlertInPolicy2".
* include/functions_db.php: added in function "get_agent_modules" for the
parameter $filter, the posibility to search with the "like" mysql operator.
* images/lightning_blue.png: blue lighting for new magic-select box agents.
* godmode/agentes/configurar_agente.php: cleaned source code style.
* godmode/alerts/alert_list.list.php: use new call for the
"isAlertInPolicy2". And fixed the column align for policies and actions.
* godmode/reporting/reporting_builder.list_items.php: erased old source
code lines comments.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3509 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_data.sql: Updated build
* include/config_process.php: Updated build.
* include/functions_db.php: Fixed the way takes agent status for visual maps,
was a wrong filter on remote_contact timestamp, that info is not used to
calculate agent unknown status !.
* index.php: develop mode set to 0
* operation/snmpconsole/snmp_view.php: Removed a notice for a noninit var (again)
* images/*: New images for visual maps, old ones are moved to another dir
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3505 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: in function "format_array_to_where_clause_sql"
added lines for test when is a string start with % for check with LIKE
operator.
Fixes: #3098170
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3487 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: in function "pandora_audit" added new parameter
$info for to set more info in the audit. Cleaned source code style.
* godmode/users/configure_user.php, godmode/users/configure_profile.php: now
in the source code pick more info in the audit for actions to create,
update and delete profiles and user, and for action to add and remove
profiles to user.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3470 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: in function "pandora_audit" clean source code
style, use the Pandora DB interface and now return id the row in tsesion.
* index.php: fixed when login failed the audit.
* godmode/users/user_list.php: clean source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3468 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_config.php: fixed the change the flag tconfig
"can_block_policies", now the operation is between policy semaphore.
Fixes: #3091940
* include/functions_db.php: fixed the save user IP when the $config don't
load this var yet.
* include/functions_networkmap.php: fixed the translation call function when
the pandora don't load the function.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3444 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: cleaned source code style.
* extensions/system_info.php: first version of extension for extract system
info of Pandora System, at the moment run as PHP script shell, the source
code for console is commented because I will change for new source code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3385 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_io.php: Added functions ascii_to_html and html_to_ascii.
Also use this functions to convert no printing chars in function safe_input
and to revert the conversion in function safe_output.
* include/functions_db.php: Added function escape_string_sql, is a
wrapper db indepenten function to do the same that function mysql_real_escape_string
* index.php: Use function escape_string_sql with login parameters.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3372 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: Fixed the function get_agentmodule_id
to avoid the pending_delete modules
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3369 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: cleaned source code style.
* mobile/include/system.class.php: fixed when include this file in other
parts of pandora, as when unlogin try generate pdf file.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3330 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: in function "checklogin" fixed the include of
file "user.class.php". In function "__" fixed when try translate a empty
string.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3329 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php
operation/messages/message.php: Fixed the ACLs
to show only the user group users in the destination
users combo for bug: 3077857
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3318 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php
godmode/agentes/modificar_agente.php: Added the calls
to enterprise to delete an agent to all their policies
when we delete it for bug 3072471
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3266 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_html.php: fixed the width by default in the function
"print_table", now there isn't a default width (before it was 80%).
* include/pchart_graph.php: fixed in the function "add_events" when tryed
to add a event out the data.
* include/fgraph.php: check the user with the mobile methods.
* include/functions_db.php: in function "check_login" check the user with
the mobile methods.
* images/status_sets/default/severity_warning_pixel.png,
images/status_sets/default/severity_normal_pixel.png,
images/status_sets/default/severity_informational_pixel.png,
images/status_sets/default/severity_maintenance_pixel.png,
images/status_sets/default/severity_critical_pixel.png: added the image
files for to show in the event mobile's page.
* mobile/operation/agents/view_agents.php,
mobile/operation/agents/tactical.php,
mobile/operation/agents/view_alerts.php, mobile/operation/events/events.php,
mobile/operation/servers/view_servers.php, mobile/include/user.class.php,
mobile/include/system.class.php: changed the style the some pages to show
more clearly the pages in old m$-mobiles.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3265 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/fgraph.php: added function "grafico_modulo_sparse_mobile" for
to paint a mobile graph.
* include/functions_db.php: erased deprecate function "dame_grupo_icono".
* include/functions_module.php: moved the functions "format_delete",
"format_time", "format_data", "format_verbatim", "format_timestamp",
"format_delete", "format_delete_string", "format_delete_log4x" from the
file "operation/agentes/datos_agente.php" for to use in other source code
places.
* operation/agentes/datos_agente.php: extracted the functions
"format_delete", "format_time", "format_data", "format_verbatim",
"format_timestamp", "format_delete", "format_delete_string",
"format_delete_log4x" to "include/functions_module.php" for to use in other
source code.
* operation/agentes/tactical.php: cleaned source code style.
* operation/agentes/group_view.php: cleaned source code style.
* mobile/operation/agents/view_agents.php: added class "viewGraph" to show
graph and data of any module.
* mobile/operation/agents/tactical.php: added first version of page to show
tactical mobile page.
* mobile/operation/agents/view_alerts.php: added first version of page to
show alerts mobile page.
* mobile/operation/agents/group_view.php: added first version of page to
show group view mobile page.
* mobile/operation/servers/view_servers.php: added first version of page to
show servers mobile page.
* mobile/include/style/main.css: added many new styles.
* mobile/include/functions_web.php: added links into menu for new pages.
* mobile/include/system.class.php: fixed scope of method "getConfig".
* mobile/index.php: added hooks for new pages.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3250 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: in function "get_agent_module_info" added
the return "status" and "alert_value".
* include/auth/mysql.php: in function "process_user_login" cleaned the
source code style.
* include/functions_ui.php: in function "print_timestamp" added in the
parameter $option the check of units ('large' and 'tiny' at the moment).
Added the function "print_group_icon2" that it is the same of
"print_group_icon" but it has a new parameter $path for to set the images
path.
* include/functions.php: in function "human_time_comparation" added the
parameter $units to set the type return text for time unit (at the moment
only "large" and "tiny"). And in the function "human_time_description_raw"
added the paramter $units for to set the type of return text for units, at
the moment only "large" and "tiny".
* include/functions_db.php, operation/agentes/ver_agente.php: cleaned source
code.
* mobile/index.php, mobile/operation/agents,
mobile/operation/agents/view_agents.php, mobile/include/db.class.php,
mobile/include/style, mobile/include/style/main.css,
mobile/include/user.class.php, mobile/include/functions_web.php,
mobile/include/system.class.php, mobile/images/bricks.png,
mobile/images/up.png, mobile/images/zoom.png, mobile/images/down.png: added
first version of file for Pandora Mobile version.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3246 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php: Added support to '<>'
comparation in the format_array_to_where_clause_sql
function
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3204 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/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/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
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_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/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_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_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
* 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_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/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