Commit Graph

265 Commits

Author SHA1 Message Date
mdtrooper 4baf2f829a 2010-09-29 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: erased deprecate function "comprueba_login".



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3328 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-09-30 11:29:40 +00:00
zarzuelo 1940382424 2010-09-29 Sergio Martin <sergio.martin@artica.es>
* 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
2010-09-29 16:02:13 +00:00
zarzuelo d69c2ece08 2010-09-21 Sergio Martin <sergio.martin@artica.es>
* 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
2010-09-21 12:09:04 +00:00
mdtrooper 63a7d6730c 2010-09-21 Miguel de Dios <miguel.dedios@artica.es>
* 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
2010-09-21 08:59:01 +00:00
mdtrooper 4de9bf1991 2010-09-17 Miguel de Dios <miguel.dedios@artica.es>
* 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
2010-09-17 10:56:17 +00:00
mdtrooper b135a111d6 2010-09-15 Miguel de Dios <miguel.dedios@artica.es>
* 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
2010-09-15 15:54:59 +00:00
zarzuelo 55e88c3660 2010-08-31 Sergio Martin <sergio.martin@artica.es>
* 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
2010-08-31 10:48:11 +00:00
zarzuelo 67dffe5a70 2010-08-04 Sergio Martin <sergio.martin@artica.es>
* 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
2010-08-04 11:08:16 +00:00
zarzuelo 1373cd132b 2010-08-03 Sergio Martin <sergio.martin@artica.es>
* 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
2010-08-03 11:46:16 +00:00
zarzuelo c0b557c6c6 2010-07-26 Sergio Martin <sergio.martin@artica.es>
* 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
2010-07-26 12:45:25 +00:00
mdtrooper 52b88cb014 2010-07-26 Miguel de Dios <miguel.dedios@artica.es>
* 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
2010-07-26 12:34:44 +00:00
zarzuelo 9b6279d495 2010-07-23 Sergio Martin <sergio.martin@artica.es>
* 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
2010-07-23 12:14:07 +00:00
mdtrooper 24955130a6 2010-07-21 Miguel de Dios <miguel.dedios@artica.es>
* 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
2010-07-21 16:56:52 +00:00
mdtrooper 0568a29a33 2010-07-21 Miguel de Dios <miguel.dedios@artica.es>
* 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
2010-07-21 10:06:13 +00:00
mdtrooper 9f41e971ec 2010-07-19 Miguel de Dios <miguel.dedios@artica.es>
* 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
2010-07-19 12:13:17 +00:00
zarzuelo 97a61be2c2 2010-07-19 Sergio Martin <sergio.martin@artica.es>
* include/functions_db.php: Fixed an index error of
	groups array.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3023 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-07-19 09:32:09 +00:00
mdtrooper b6a3b408df 2010-07-15 Miguel de Dios <miguel.dedios@artica.es>
* 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
2010-07-15 15:20:43 +00:00
mdtrooper 1446aed5e3 2010-07-15 Miguel de Dios <miguel.dedios@artica.es>
* 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
2010-07-15 11:25:38 +00:00
mdtrooper e4222b1cef 2010-07-07 Miguel de Dios <miguel.dedios@artica.es>
* 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
2010-07-07 14:36:45 +00:00
zarzuelo b8e3b869ef 2010-07-01 Sergio Martin <sergio.martin@artica.es>
* 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
2010-07-01 10:46:08 +00:00
zarzuelo 38a66e7cfc 2010-06-28 Sergio Martin <sergio.martin@artica.es>
* 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
2010-06-28 11:49:07 +00:00
zarzuelo d8d2d23ba1 2010-05-14 Sergio Martin <sergio.martin@artica.es>
* 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
2010-05-14 09:25:39 +00:00
Ramon Novoa 942ee05e8b 2010-05-07 Ramon Novoa <rnovoa@artica.es>
* 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
2010-05-07 18:18:23 +00:00
raulmateos a34df658ff 2010-05-06 Raul Mateos <raulofpandora@gmail.com>
* include/config*.php: Updated year. Updated build.
	* include/functions_*.php: Updated year. Clean Code.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2674 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-06 15:53:38 +00:00
Ramon Novoa c62bf12718 2010-04-29 Ramon Novoa <rnovoa@artica.es>
* include/functions_reporting.php: Added TTO, TTR, MTBF and MTTR
          reports.

        * include/functions_db.php: Fixed get_previous_data and wrote
          get_next_data.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2639 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-04-29 15:31:14 +00:00
mdtrooper 8dddb86702 2010-04-28 Miguel de Dios <miguel.dedios@artica.es>
* 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
2010-04-28 19:44:04 +00:00
mdtrooper 6b358c0e10 2010-04-27 Miguel de Dios <miguel.dedios@artica.es>
* 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
2010-04-27 17:43:32 +00:00
zarzuelo ce9fe70b91 2010-04-27 Sergio Martin <sergio.martin@artica.es>
* 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
2010-04-27 15:42:49 +00:00
mdtrooper 1bbb194939 2010-04-27 Miguel de Dios <miguel.dedios@artica.es>
* 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
2010-04-27 15:25:32 +00:00
zarzuelo d9088a6eb4 2010-04-22 Sergio Martin <sergio.martin@artica.es>
* 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
2010-04-22 16:51:23 +00:00
slerena 2696b815e5 2010-04-21 Sancho Lerena <slerena@artica.es>
* 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
2010-04-21 17:52:08 +00:00
mdtrooper 5df55a5ace 2010-04-19 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: rollback to the fixed (r2563) in the function
	"get_db_value_filter".



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2577 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-04-19 12:41:45 +00:00
mdtrooper b38ab821f2 2010-04-14 Miguel de Dios <miguel.dedios@artica.es>
* 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
2010-04-14 16:11:49 +00:00
mdtrooper f36696ebab 2010-04-14 Miguel de Dios <miguel.dedios@artica.es>
* 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
2010-04-14 15:14:30 +00:00
mdtrooper c83b34089b 2010-03-04 Miguel de Dios <miguel.dedios@artica.es>
* 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
2010-03-04 16:50:48 +00:00
slerena ab2dd5a5be 2010-03-03 Sancho Lerena <slerena@artica.es>
* (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
2010-03-03 17:10:37 +00:00
Ramon Novoa 8fc2d2a09f 2010-03-03 Ramon Novoa <rnovoa@artica.es>
* 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
2010-03-03 13:13:11 +00:00
slerena d5a369870d 2010-03-01 Sancho Lerena <slerena@artica.es>
* 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
2010-03-01 18:46:19 +00:00
slerena e79bc4095c 2010-02-01 Sancho Lerena <slerena@artica.es>
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
2010-02-01 19:22:34 +00:00
mdtrooper be35a2a1ee 2010-01-27 Miguel de Dios <miguel.dedios@artica.es>
* 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
2010-01-28 17:58:30 +00:00
Ramon Novoa 612c34185d 2009-12-23 Ramon Novoa <rnovoa@artica.es>
* include/functions_db.php: Fixed avg. calculation in custom reports.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2238 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-23 17:36:32 +00:00
mdtrooper d40c64d203 2009-12-23 Miguel de Dios <miguel.dedios@artica.es>
* 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
2009-12-23 11:48:19 +00:00
mdtrooper de5ee31aa4 2009-12-22 Miguel de Dios <miguel.dedios@artica.es>
* 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
2009-12-22 15:46:54 +00:00
mdtrooper 7458f10b93 2009-12-22 Miguel de Dios <miguel.dedios@artica.es>
* 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
2009-12-22 12:56:46 +00:00
Ramon Novoa 16eb0d2b96 2009-12-18 Ramon Novoa <rnovoa@artica.es>
* include/functions_reporting.php: Fixed SLA calculation. Was not working.

        * include/functions_fsgraph.php: Fixed bug #2913813.

        * include/functions_config.php, include/config_process.php,
          include/fgraph.php, include/functions_db.php,
          operation/events/export_csv.php, operation/agentes/export_csv.php,
          operation/agentes/datos_agente.php, godmode/menu.ph: Added history
          database support.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2214 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-18 09:52:25 +00:00
mdtrooper 703b222d8a 2009-12-09 Miguel de Dios <miguel.dedios@artica.es>
* 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
2009-12-10 17:46:25 +00:00
mdtrooper 4dc6aa99be 2009-12-08 Miguel de Dios <miguel.dedios@artica.es>
* 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
2009-12-08 20:21:16 +00:00
mdtrooper a18ddccdc3 2009-12-08 Miguel de Dios <miguel.dedios@artica.es>
* 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
2009-12-08 09:53:20 +00:00
mdtrooper dd26a2649f 2009-12-07 Miguel de Dios <miguel.dedios@artica.es>
* 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
2009-12-07 18:00:00 +00:00
slerena 8e9e98e92c 2009-12-1 Sancho Lerena <slerena@artica.es>
* 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
2009-12-01 23:10:00 +00:00