Commit Graph

128 Commits

Author SHA1 Message Date
darode f6f7bbcaeb 2013-02-27 Dario Rodriguez <dario@artica.es>
* include/functions_events.php: Added new fields to events_create_event 
	function: critical warning and unknown instructions, source and tags.
	* include/functions_api.php: Reimplemented api_create_event API function, 
	the behaviour was completly wrong from documented and events_create_event
	function.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7733 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-27 16:03:22 +00:00
zarzuelo 637521475a 2013-02-22 Sergio Martin <sergio.martin@artica.es>
* include/functions_html.php
	include/styles/pandora.css
	include/functions_graph.php
	include/functions_events.php
	include/javascript/pandora.js
	operation/agentes/estado_generalagente.php: Improve agent view
	interface, work in hidden menus to improve more the graphs 
	layout.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7706 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-22 13:48:10 +00:00
zarzuelo 51654d991e 2013-02-21 Sergio Martin <sergio.martin@artica.es>
* include/functions_events.php
	operation/events/events_list.php: Little fixes
	of new layout of events

	* include/graphs/pChart/pPie.class.php: Fixed a 
	bug of the pChart library of ugly borders in the
	3d pie graphs



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7697 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-21 15:59:13 +00:00
zarzuelo 70a1554a35 2013-02-21 Sergio Martin <sergio.martin@artica.es>
* pandoradb_data.sql
	pandoradb.data.postgreSQL.sql
	pandoradb.data.oracle.sql
	extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql
	extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql
	extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql: Change a
	useless macro of internal event commands

	* include/functions_graph.php
	include/functions_events.php
	operation/agentes/estado_generalagente.php: Improve the layout
	of the agent detail view



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7696 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-21 14:26:00 +00:00
mdtrooper 6537c96db3 2013-02-20 Miguel de Dios <miguel.dedios@artica.es>
* godmode/servers/recon_script.php, godmode/servers/plugin.php,
	godmode/snmpconsole/snmp_filters.php,
	godmode/massive/massive_delete_alerts.php,
	godmode/massive/massive_enable_disable_alerts.php,
	godmode/massive/massive_edit_agents.php,
	godmode/massive/massive_delete_modules.php,
	godmode/massive/massive_add_action_alerts.php,
	godmode/massive/massive_delete_action_alerts.php: improved the code
	style.
	
	* include/ajax/events.php, include/functions_events.php,
	operation/agentes/custom_fields.php: fixed the show admin custom
	fields for user without permisitions.
	
	Fixes: #3605278




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7683 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-20 12:07:00 +00:00
mdtrooper b3a8f7da1b 2013-02-05 Miguel de Dios <miguel.dedios@artica.es>
* ajax.php: added the autologin hash for some ajax call of user
	without login (but with hash autologin).
	
	* godmode/reporting/reporting_builder.list_items.php,
	include/db/mysql.php: cleaned source code style.
	
	* include/functions_reporting.php, include/functions_events.php,
	operation/reporting/reporting_xml.php: optimized the get by steps
	the group events.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7588 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-05 14:46:16 +00:00
mdtrooper 79a5c23816 2013-01-31 Miguel de Dios <miguel.dedios@artica.es>
* include/styles/jquery-ui-1.10.0.custom.css,
	include/styles/images/ui-*,
	include/javascript/jquery.jquery-ui-1.10.0.custom.js,
	include/javascript/jquery-1.9.0.js: added the last version of
	jquery and jqueryUI.

	* godmode/reporting/visual_console_builder.editor.js,
	include/ajax/events.php, include/functions_events.php,
	include/functions_reporting.php,
	include/javascript/pandora_events.js,
	include/javascript/jquery.scrollTo.js,
	include/javascript/jquery.tablesorter.pager.js,
	include/javascript/jquery.tablesorter.js, include/functions_ui.php,
	extensions/update_manager/lib/functions.php,
	extensions/update_manager/main.php, extensions/agents_alerts.php,
	operation/events/events.php, general/login_page.php,
	general/logoff.php, general/header.php,
	general/login_help_dialog.php: fixes about the new jquery and
	jqueryUI version.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7554 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-31 16:49:08 +00:00
zarzuelo 7e6afb0696 2013-01-16 Sergio Martin <sergio.martin@artica.es>
* include/ajax/events.php
	include/functions_graph.php
	include/functions_events.php
	include/javascript/pandora_events.js
	include/functions_config.php
	operation/events/events_list.php
	operation/events/events.php: Create a new
	event visor to metaconsole history events

	* include/functions_api.php: Added a new API function
	to create netflow filters



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7483 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-16 12:57:11 +00:00
mdtrooper 5ba8450b97 2013-01-09 Miguel de Dios <miguel.dedios@artica.es>
* godmode/reporting/reporting_builder.php,
	godmode/reporting/reporting_builder.item_editor.php,
	godmode/agentes/agent_manager.php, include/functions_events.php,
	include/functions_reporting.php: added the option "no validaded" in
	the items for events.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7403 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-09 16:19:20 +00:00
zarzuelo 949650deb2 2013-01-09 Sergio Martin <sergio.martin@artica.es>
* pandoradb_data.sql
	pandoradb.sql
	pandoradb.postgreSQL.sql
	pandoradb.oracle.sql
	extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql
	extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql
	extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql:
	Add profile tags to the database structure

	* include/ajax/events.php
	include/functions.php
	include/functions_events.php
	include/functions_reporting.php
	include/functions_treeview.php
	include/functions_profile.php
	include/constants.php
	include/functions_tags.php
	operation/tree.php
	operation/users/user_edit.php
	operation/events/events_list.php
	pandoradb.data.postgreSQL.sql
	pandoradb.data.oracle.sql
	godmode/users/configure_user.php: Add new acl control with
	tags in events and tree views. Fix a lot of little bugs like ACLs
	in tree view (tags mode), add the tags mode on tree view of the normal 
	console, pass the ACL flag to some forgotten functions, etc.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7383 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-09 09:25:07 +00:00
mdtrooper d99abb39bb 2013-01-03 Miguel de Dios <miguel.dedios@artica.es>
* extensions/resource_registration.php,
	extensions/resource_exportation.php,
	operation/events/event_statistics.php,
	operation/events/events_list.php,
	operation/reporting/reporting_viewer.php,
	godmode/reporting/reporting_builder.php,
	godmode/reporting/reporting_builder.item_editor.php,
	include/functions_alerts.php, include/functions_reports.php,
	include/functions_events.php, include/graphs/fgraph.php,
	include/functions_graph.php, include/styles/pandora.css,
	include/functions_reporting.php, include/functions_agents.php: a lot
	of changes and fixes from the branch for the reports.
	
	MERGED FROM PANDORA_4.0




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7351 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-03 18:52:21 +00:00
zarzuelo c731e11a2b 2012-12-28 Sergio Martin <sergio.martin@artica.es>
* pandoradb_data.sql
	include/functions_users.php
	include/functions_visual_map.php
	include/ajax/skins.ajax.php
	include/ajax/events.php
	include/functions_custom_graphs.php
	include/functions.php
	include/functions_agents.php
	include/functions_graph.php
	include/functions_events.php
	include/functions_reporting.php
	include/functions_config.php
	include/functions_reports.php
	operation/visual_console/render_view.php
	operation/agentes/exportdata.php
	operation/menu.php
	operation/events/event_statistics.php
	operation/events/events_rss.php
	operation/events/export_csv.php
	operation/events/sound_events.php
	operation/events/events_list.php
	operation/events/events_marquee.php
	operation/events/events.php
	operation/reporting/reporting_viewer.php
	pandoradb.data.postgreSQL.sql
	pandoradb.data.oracle.sql
	extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql
	extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql
	extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql
	general/main_menu.php
	godmode/menu.php
	godmode/events/event_edit_filter.php
	godmode/events/events.php
	godmode/events/event_filter.php
	godmode/reporting/reporting_builder.list_items.php
	godmode/reporting/graph_builder.main.php
	godmode/reporting/visual_console_builder.wizard.php
	godmode/reporting/visual_console_builder.php
	godmode/reporting/reporting_builder.main.php
	godmode/reporting/visual_console_builder.data.php
	godmode/reporting/visual_console_builder.elements.php
	godmode/reporting/graph_builder.php
	godmode/reporting/graph_builder.graph_editor.php
	godmode/reporting/reporting_builder.php
	godmode/reporting/visual_console_builder.editor.php
	godmode/reporting/reporting_builder.item_editor.php
	godmode/reporting/graphs.php: Change all the event and reporting
	acl control to new flags ER,EW,EM,RR,RW,RM



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7342 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-28 17:06:17 +00:00
zarzuelo f0ee97536a 2012-12-21 Sergio Martin <sergio.martin@artica.es>
* include/functions_ui.php
	include/functions_events.php: Adapt details view of events
	to metaconsole links



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7320 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-21 11:11:22 +00:00
zarzuelo e8f3153d11 2012-12-20 Sergio Martin <sergio.martin@artica.es>
* include/ajax/events.php
	include/functions_events.php
	include/javascript/pandora_events.js: Adapt responses
	to metaconsole connection (retrieving of event address macro)
	and set format to tags in event view



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7317 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-20 15:33:23 +00:00
zarzuelo 57ab72b1a7 2012-12-18 Sergio Martin <sergio.martin@artica.es>
* include/ajax/events.php
	include/functions_graph.php
	include/functions_events.php
	include/javascript/pandora_events.js
	operation/events/events_list.php
	operation/events/events.php
	godmode/events/custom_events.php
	godmode/events/events.php: Add compatibility 
	with metaconsole in the event viewer



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7299 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-18 11:54:22 +00:00
hkosaka 534074b9b6 2012-12-18 Hirofumi Kosaka <kosaka@rworks.jp>
* include/functions_events.php: Fixed a typo (have a small
          meaning for localization). Merged from branch 4.x



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7295 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-18 07:58:15 +00:00
zarzuelo c9d7920e6b 2012-10-30 Sergio Martin <sergio.martin@artica.es>
* include/functions_events.php
	include/ajax/events.php
	include/functions_api.php
	godmode/alerts/alert_commands.php: Fix some
	event viewer bugs and command editor little
	aesthetic issues

	* pandoradb.sql
	pandoradb.postgreSQL.sql
	pandoradb.oracle.sql: Delete ttag_event table




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7113 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-30 11:48:28 +00:00
vgilc 581b7723c8 2012-10-16 Vanessa Gil <vanessa.gil@artica.es>
* include/functions_events.php
	  operation/reporting/reporting_xml.php: XML reports: graphs, events
	and modules.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7079 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-16 13:38:09 +00:00
zarzuelo e4378fc78d 2012-10-11 Sergio Martin <sergio.martin@artica.es>
* include/functions_events.php
	include/javascript/pandora_events.js
	include/ajax/events.php
	include/constants.php
	operation/events/events_validate.php
	operation/events/events_list.php
	operation/events/events.php: Change the validation events 
	system to validate passing the ids searialized avoiding a lot
	of operations. Improve counts and fix several bugs



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7071 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-11 17:49:17 +00:00
zarzuelo 659ffc0baa 2012-10-09 Sergio Martin <sergio.martin@artica.es>
* include/functions_events.php
	include/styles/jquery-ui-1.8.23.custom.css
	include/javascript/pandora_events.js
	include/ajax/events.php
	operation/events/events_list.php
	operation/events/events.php
	extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql
	godmode/menu.php
	godmode/events/event_responses.list.php
	godmode/events/custom_events.php
	godmode/events/event_responses.php
	godmode/events/events.php
	godmode/events/event_responses.editor.php: Added several changes on
	events system as responses editor and performer, and several
	fixes



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7058 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-09 16:05:32 +00:00
zarzuelo ca511ff2e8 2012-10-01 Sergio Martin <sergio.martin@artica.es>
* include/functions_events.php
	general/header.php 
	include/functions_modules.php
	include/javascript/pandora_events.js
	include/ajax/events.php
	include/functions.php
	operation/events/events_list.php
	operation/events/events.php: Change the event details view
	to modal window

	* include/styles/pandora_legacy.css
	include/styles/pandora.css
	images/status_sets/default/severity_major_pixel.png
	images/status_sets/default/severity_minor_pixel.png
	images/status_sets/default/severity_major.png
	images/status_sets/default/severity_minor.png: Change the 
	major/minor icons and colors



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7014 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-01 11:15:31 +00:00
vgilc c915c3c644 2012-09-10 Vanessa Gil <vanessa.gil@artica.es>
* pandoradb.sql
	  pandoradb.postgreSQL.sql
	  pandoradb.oracle.sql
	  extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql
	  extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql
	  extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql
	  godmode/agentes/configurar_agente.php
	  godmode/agentes/module_manager_editor.php
	  godmode/agentes/module_manager_editor_common.php
	  godmode/modules/manage_network_components.php
	  godmode/modules/manage_network_components_form.php
	  godmode/modules/manage_network_components_form_common.php
	  include/functions_alerts.php
	  include/functions_events.php
	  operation/events/events_list.php: Added several fields to modules
	and events.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6948 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-10 16:00:14 +00:00
slerena 7a84bf9cd3 2012-04-30 Sancho Lerena <slerena@artica.es>
All changes (except a small patch on function_groups) are
	ported from 4.0.2 development branch. 

	* include/help/en/help_main_help.php: Added new general
	introduction help file. Need work.

	* include/functions_events.php: Fixed link colors and other 
	aesthetic improvements.
	
	* include/styles/pandora_legacy.css
	include/styles/pandora_black.css
	include/styles/pandora.css
	include/styles/pandora_bluenavy.css
	include/styles/pandora_minimal.css
	include/styles/pandora_blackmetal.css
	include/styles/pandora_green.css:
	
	
	* extensions/agents_modules.php,
	include/functions_groups.php: now colors uses CSS instead
	fixed codes in code. In function_groups also I've also applied a missing
	patch from the 4.0 with corrections on the Group extration from the DB.
	
	* operation/events/sound_events.php: Fixed small format problem.
	
	* operation/events/events_list.php: Link on event now "zoom it" instead
	filter for the same events (nosense since agrupatio is the default view!). 
	Fixed a	lof of aesthetic issues, now uses CSS for most issues.

	* operation/agentes/tactical.php
	operation/agentes/estado_generalagente.php: more work in the visual
	aspect of the information.
	
	* images/status_sets/default/agent_ok.png
	images/status_sets/default/module_warning.png
	images/status_sets/default/module_ok.png
	images/status_sets/default/agent_warning.png: Replaced colors with
	more contrast, easier to view for operators!.
	
	* images/header_f2b.png
	images/header_f2.png: new style headers.
	
	* general/header.php: New icon for general help.
	
	* godmode/agentes/agent_manager.php: Removed ugly visualization for GIS
	agent icons. Now it's much better :)




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6236 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-30 19:22:07 +00:00
mdtrooper a3f8d63556 2012-04-27 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_events.php: into the function
	"events_validate_event" fixed the return false when fail validation.
	
	* include/functions_network_components.php: fixed the includes.
	
	* operation/agentes/exportdata.php: cleaned source code style.
	
	* include/functions_api.php: fixed the checking error to healty
	level into the function "get_events".
	
	MERGED FROM 4.0.2




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6212 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-27 12:52:33 +00:00
mdtrooper c440b53603 2012-04-26 Miguel de Dios <miguel.dedios@artica.es>
* operation/agentes/exportdata.php,
	operation/events/events_list.php: cleaned source code style.
	
	* include/functions_events.php,
	include/functions_network_components.php,
	include/functions_api.php: fixed some things, the function
	"events_validate_event" when can't update as validate any event
	return false, into the file "functions_network_components" added
	$config['homedir'] for situations where include in a other path that
	index. And show error when make a bad validate event.
	
	MERGED FROM 4.0.2




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6197 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-26 14:42:48 +00:00
slerena 9195bc889b 2012-04-18 Sancho Lerena <slerena@artica.es>
* operation/servers/recon_view.php: Fix	column header.

        * godmode/agentes/module_manager_editor_plugin.php: Now	plugin description
        is shown formatted (\n -> <br>). Some fields have better layout.

        * godmode/servers/plugin.php: Ajax load	of description is now formatted.

        * godmode/servers/manage_recontask.php:	Fix link to show recon server.

        * godmode/servers/manage_recontask_form.php: Wider textarea.

        * pandoradb_data.sql: New defaults (4 plugins, 2 recon scripts).

        * include/functions_events.php:	More space visible in event info, smaller
        font.

        * include/config_process.php: Updated version.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6028 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-18 18:28:08 +00:00
vgilc 5e0977a287 2012-03-14 Vanessa Gil <vanessa.gil@artica.es>
* godmode/alerts/alert_actions.php
	  godmode/alerts/alert_commands.php
  	  godmode/alerts/alert_templates.php
	  godmode/alerts/configure_alert_template.php
	  godmode/modules/manage_nc_groups.php
	  godmode/modules/manage_netwok_components.php
	  godmode/modules/manage_network_templates.php
	  godmode/modules/manage_network_templates_form.php
	  godmode/reporting/graph_builder.php
	  godmode/reporting/graphs.php
	  godmode/reporting/map_builder.php
	  godmode/reporting/reporting_builder.php
	  godmode/reporting/visual_console_builder.php
	  godmode/snmpconsole/snmp_alert.php
	  godmode/tag/edit_tag.php
	  godmode/tag/tag.php
	  include/functions_config.php
	  include/functions_events.php: Extended system audit log.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5769 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-03-14 17:51:39 +00:00
Ramon Novoa 3e674de0a0 2012-02-27 Ramon Novoa <rnovoa@artica.es>
* include/functions_events.php: Fixed an include path.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5655 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-02-27 17:24:03 +00:00
mdtrooper 6bf853b490 2012-02-24 Miguel de Dios <miguel.dedios@artica.es>
* pandora_console/include/functions_ui.php: changed the source code into the
	function "ui_get_full_url" for accept false for to return url with the home
	url or with any string (as query) return url with the php file.

	* pandora_console/include/functions_graph.php,
	pandora_console/include/functions_html.php,
	pandora_console/include/functions_events.php,
	pandora_console/include/functions_reporting.php,
	pandora_console/include/functions_api.php,
	pandora_console/include/functions.php, pandora_console/index.php,
	pandora_console/extensions/system_info.php,
	pandora_console/operation/agentes/stat_win.php,
	pandora_console/operation/menu.php,
	pandora_console/operation/events/events_rss.php,
	pandora_console/operation/events/events_marquee.php,
	pandora_console/operation/events/events.php: change in more part of source
	code to use "ui_get_full_url" instead the hard write method of $_SERVER
	vars, now Pandora Console run fine (in all actions I hope) with web servers
	in other ports instead the typical 80.

	Merged from branch pandora_4.0



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5646 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-02-24 13:48:46 +00:00
vgilc 8e0f58dc32 2012-02-16 Vanessa Gil <vanessa.gil@artica.es>
* include/functions_events.php 
	  operation/events/events_list: In event list: display always user name, 
	changed buttons, changed event type.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5609 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-02-16 09:38:03 +00:00
vgilc b17519d2a0 2012-02-10 Vanessa Gil <vanessa.gil@artica.es>
* include/functions_events.php
	  operation/events/events_list.php
	  operation/events/events_validate: Allowed post a comment 
	without changing the event's state.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5556 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-02-10 13:57:36 +00:00
juanmanuelr 0b2168912d 2012-02-08 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* images/skin/skin_default/include/styles/menu.css
	 include/styles/menu.css: Added godmode events icon in menu.

	* include/functions_events.php: Added functions to support custom 
	event filters. 

	* pandoradb.sql
	 pandoradb.postgreSQL.sql
	 pandoradb.oracle.sql
	 extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql
	 extras/pandoradb_migrate_4.0.x_to_4.1.oracle.sql
	 extras/pandoradb_migrate_4.0.x_to_4.1.postgreSQL.sql: Added table 
	 tevent_filter.
      
	* operation/events/events_list.php
	 operation/events/events.php: Added event filters 'live' editor.

	* general/shortcut_bar.php: Fixed some bugs due to ACLs.
	
	* general/header.php: Removed trace.

	* godmode/menu.php: Added event godmode section.
	 
	* godmode/events/event_edit_filter.php
	 godmode/events/custom_events.php
	 godmode/events/events.php
	 godmode/events/event_filter.php: Added files: Entry point in event
	 godmode section, events filter editor and event custom fields view.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5517 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-02-08 13:04:18 +00:00
juanmanuelr 324aa65402 2011-12-14 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_events.php
	godmode/agentes/module_manager_editor_common.php
	godmode/agentes/module_manager.php: Some corrections over this 
	views.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5259 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-12-14 13:52:46 +00:00
mdtrooper 4b97473f94 2011-09-14 Miguel de Dios <miguel.dedios@artica.es>
* include/functions.php: cleaned source code style.
	
	* include/functions_events.php: added the parameter to return only url
	in function "events_print_type_img".
	
	* include/functions_api.php: now the api in getevents return more data.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4954 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-09-15 13:19:11 +00:00
juanmanuelr a864790187 2011-07-12 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_events.php
	include/functions.php
	operation/agentes/estado_monitores.php
	operation/agentes/networkmap.php
	godmode/modules/manage_nc_groups.php: Fixes in this views in order 
	to have compatibility with IE.
	
	Bug: #3274423



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4547 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-07-12 13:11:33 +00:00
Ramon Novoa 581bb9e7e1 2011-06-29 Ramon Novoa <rnovoa@artica.es>
* include/functions_events.php: Do not update validated events.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4501 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-06-29 15:35:02 +00:00
zarzuelo 74f83dbaa0 2011-06-17 Sergio Martin <sergio.martin@artica.es>
* include/functions_events.php: Fixed duplication of comments
	when validate events merged from 3.2.1



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4465 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-06-17 09:45:53 +00:00
zarzuelo 746907b39c 2011-06-15 Sergio Martin <sergio.martin@artica.es>
* include/functions_events.php: Fixed repeated values into
	array of event ids in delete function merged from validate function




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4450 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-06-15 09:19:06 +00:00
zarzuelo aa9507a0ac 2011-06-14 Sergio Martin <sergio.martin@artica.es>
* include/functions_events.php
	operation/events/events.php: Fixed multiple validation
	when events are grouped



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4443 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-06-14 11:45:17 +00:00
juanmanuelr d628635f02 2011-04-27 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_graph.php
	include/functions_users.php
	include/functions_events.php
	include/functions_html.php
	include/functions_menu.php
	include/styles/pandora.css
	include/graphs/functions_pchart.php
	include/functions_messages.php
	include/functions_exportserver.php
	include/functions_modules.php
	include/functions_reporting.php
	include/functions_filemanager.php
	include/functions_groups.php
	include/functions_gis.php
	include/functions_networkmap.php
	include/functions_servers.php
	include/functions_network_components.php
	include/functions_visual_map.php
	include/ajax/skins.ajax.php
	include/ajax/visual_console_builder.ajax.php
	include/help/en/help_gis_map_builder.php
	include/help/en/help_agent_status.php
	include/help/en/help_eventview.php
	include/help/en/help_configure_gis_map.php
	include/help/en/help_cascade_protection.php
	include/help/en/help_setup_gis_index.php
	include/help/es/help_gis_map_builder.php
	include/help/es/help_agent_status.php
	include/help/es/help_eventview.php
	include/help/es/help_configure_gis_map.php
	include/help/es/help_cascade_protection.php
	include/help/ja/help_gis_map_builder.php
	include/help/ja/help_agent_status.php
	include/help/ja/help_eventview.php
	include/help/ja/help_configure_gis_map.php
	include/help/ja/help_cascade_protection.php
	include/help/ja/help_setup_gis_index.php
	include/functions_ui.php
	include/functions_incidents.php
	include/functions.php
	include/functions_agents.php
	include/functions_db.php
	include/functions_fsgraph.php
	include/functions_extensions.php
	include/functions_ui_renders.php
	extensions/insert_data.php
	extensions/system_info.php
	extensions/extension_uploader.php
	extensions/agents_modules.php
	extensions/dbmanager.php
	extensions/resource_registration.php
	extensions/resource_exportation.php
	extensions/users_connected.php
	extensions/module_groups.php
	extensions/update_manager/settings.php
	extensions/update_manager/main.php
	operation/incidents/incident.incident.php
	operation/incidents/incident.php
	operation/incidents/incident.files.php
	operation/incidents/incident.tracking.php
	operation/incidents/incident_detail.php
	operation/incidents/incident.workunits.php
	operation/incidents/incident.list.php
	operation/search_modules.php
	operation/extensions.php
	operation/visual_console/render_view.php
	operation/visual_console/index.php
	operation/agentes/status_monitor.php
	operation/agentes/estado_ultimopaquete.php
	operation/agentes/datos_agente.php
	operation/agentes/alerts_status.php
	operation/agentes/estado_generalagente.php
	operation/agentes/custom_fields.php
	operation/agentes/estado_agente.php
	operation/agentes/networkmap.topology.php
	operation/agentes/alerts_status.functions.php
	operation/agentes/networkmap.groups.php
	operation/agentes/sla_view.php
	operation/agentes/exportdata.php
	operation/agentes/gis_view.php
	operation/agentes/estado_monitores.php
	operation/agentes/ver_agente.php
	operation/agentes/graphs.php
	operation/agentes/tactical.php
	operation/agentes/group_view.php
	operation/agentes/networkmap.php
	operation/agentes/stat_win.php
	operation/servers/view_server.php
	operation/servers/view_server_detail.php
	operation/search_agents.php
	operation/search_graphs.php
	operation/snmpconsole/snmp_view.php
	operation/users/user_edit.php
	operation/integria_incidents/incident.incident.php
	operation/integria_incidents/incident.php
	operation/integria_incidents/incident.files.php
	operation/integria_incidents/incident.tracking.php
	operation/integria_incidents/incident_detail.php
	operation/integria_incidents/incident.workunits.php
	operation/integria_incidents/incident.list.php
	operation/gis_maps/render_view.php
	operation/gis_maps/ajax.php
	operation/gis_maps/index.php
	operation/events/export_csv.php
	operation/events/sound_events.php
	operation/events/events_validate.php
	operation/events/events_list.php
	operation/events/events.php
	operation/search_alerts.php
	operation/messages/message.php
	operation/reporting/reporting_xml.php
	operation/reporting/reporting_viewer.php
	operation/reporting/graph_viewer.php
	operation/reporting/custom_reporting.php
	operation/search_reports.php
	operation/search_maps.php
	operation/search_results.php
	operation/search_users.php
	mobile/operation/agents/monitor_status.php
	mobile/operation/agents/view_agents.php
	mobile/operation/agents/tactical.php
	mobile/operation/agents/view_alerts.php
	mobile/operation/agents/group_view.php
	mobile/operation/events/events.php
	mobile/operation/servers/view_servers.php
	mobile/include/user.class.php
	general/pandora_help.php
	general/noaccess.php
	general/login_page.php
	general/logon_ok.php
	general/logoff.php
	general/ui/agents_list.php
	general/header.php
	godmode/groups/modu_group_list.php
	godmode/groups/configure_group.php
	godmode/groups/configure_modu_group.php
	godmode/groups/group_list.php
	godmode/admin_access_logs.php
	godmode/extensions.php
	godmode/db/db_sanity.php
	godmode/db/db_refine.php
	godmode/db/db_info.php
	godmode/db/db_event.php
	godmode/db/db_purge.php
	godmode/agentes/agent_template.php
	godmode/agentes/module_manager_editor_common.php
	godmode/agentes/module_manager_editor_network.php
	godmode/agentes/fields_manager.php
	godmode/agentes/module_manager_editor_wmi.php
	godmode/agentes/module_manager_editor_plugin.php
	godmode/agentes/agent_conf_gis.php
	godmode/agentes/module_manager_editor_prediction.php
	godmode/agentes/module_manager.php
	godmode/agentes/modificar_agente.php
	godmode/agentes/configurar_agente.php
	godmode/agentes/configure_field.php
	godmode/agentes/module_manager_editor.php
	godmode/agentes/planned_downtime.php
	godmode/agentes/manage_config_remote.php
	godmode/agentes/agent_manager.php
	godmode/servers/recon_script.php
	godmode/servers/plugin.php
	godmode/servers/manage_recontask.php
	godmode/servers/modificar_server.php
	godmode/servers/manage_recontask_form.php
	godmode/alerts/alert_list.list.php
	godmode/alerts/configure_alert_compound.php
	godmode/alerts/alert_compounds.php
	godmode/alerts/alert_list.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_list.builder.php
	godmode/alerts/alert_commands.php
	godmode/snmpconsole/snmp_alert.php
	godmode/snmpconsole/snmp_filters.php
	godmode/setup/file_manager.php
	godmode/setup/os.list.php
	godmode/setup/news.php
	godmode/setup/gis_step_2.php
	godmode/setup/links.php
	godmode/setup/setup.php
	godmode/setup/os.php
	godmode/setup/performance.php
	godmode/setup/setup_auth.php
	godmode/setup/gis.php
	godmode/setup/os.builder.php
	godmode/setup/setup_visuals.php
	godmode/users/user_list.php
	godmode/users/configure_user.php
	godmode/users/configure_profile.php
	godmode/gis_maps/configure_gis_map.php
	godmode/gis_maps/index.php
	godmode/massive/massive_add_alerts.php
	godmode/massive/massive_copy_modules.php
	godmode/massive/massive_delete_agents.php
	godmode/massive/massive_enable_disable_alerts.php
	godmode/massive/massive_operations.php
	godmode/massive/massive_delete_profiles.php
	godmode/massive/massive_edit_agents.php
	godmode/massive/massive_delete_action_alerts.php
	godmode/massive/massive_delete_modules.php
	godmode/massive/massive_add_profiles.php
	godmode/massive/massive_delete_alerts.php
	godmode/massive/massive_edit_modules.php
	godmode/massive/massive_standby_alerts.php
	godmode/massive/massive_add_action_alerts.php
	godmode/modules/manage_network_components_form.php
	godmode/modules/manage_nc_groups_form.php
	godmode/modules/manage_network_templates.php
	godmode/modules/module_list.php
	godmode/modules/manage_network_components_form_common.php
	godmode/modules/manage_network_components_form_network.php
	godmode/modules/manage_network_templates_form.php
	godmode/modules/manage_network_components_form_wmi.php
	godmode/modules/manage_network_components.php
	godmode/modules/manage_nc_groups.php
	godmode/modules/manage_network_components_form_plugin.php
	godmode/reporting/reporting_builder.list_items.php
	godmode/reporting/graph_builder.main.php
	godmode/reporting/visual_console_builder.wizard.php
	godmode/reporting/visual_console_builder.php
	godmode/reporting/reporting_builder.preview.php
	godmode/reporting/reporting_builder.main.php
	godmode/reporting/visual_console_builder.data.php
	godmode/reporting/visual_console_builder.elements.php
	godmode/reporting/graph_builder.php
	godmode/reporting/graph_builder.graph_editor.php
	godmode/reporting/reporting_builder.php
	godmode/reporting/visual_console_builder.editor.php
	godmode/reporting/reporting_builder.item_editor.php
	godmode/reporting/map_builder.php
	godmode/reporting/graphs.php
	godmode/reporting/graph_builder.preview.php: Now functions on 
	functions_html.php, functions_gis.php, functions_filemanager.php, 
	functions_exportserver.php have "html_", "gis_", "filemanager_" and
	"exportserver_" prefix respectively.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4281 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-04-27 13:43:31 +00:00
juanmanuelr aa46a12de4 2011-04-20 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_events.php
	include/functions_reporting.php: Fixed some mistakes of my last commit.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4264 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-04-20 11:31:25 +00:00
juanmanuelr ea7f7dadda 2011-04-20 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_events.php
	include/functions_reporting.php
	include/functions_alerts.php
	operation/incidents/incident_detail.php
	operation/agentes/status_events.php
	operation/agentes/tactical.php
	operation/integria_incidents/incident_detail.php
	operation/events/events_validate.php
	operation/events/events_list.php
	operation/events/events.php
	operation/reporting/reporting_xml.php: Functions in functions_events.php have "events_"
	prefix.  
	* index.php: Added some "db_" prefixes that I forgot in my last commit. Functions in 
	functions_events.php have "events_" prefix.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4260 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-04-20 09:09:40 +00:00
juanmanuelr ae8410e36e * include/functions_graph.php
include/functions_html.php
	include/functions_messages.php
	include/db/postgresql.php
	include/db/mysql.php
	include/db/oracle.php
	include/functions_reporting.php
	include/functions_filemanager.php
	include/functions_gis.php
	include/auth/ldap.php
	include/auth/mysql.php
	include/functions_networkmap.php
	include/functions_network_components.php
	include/ajax/skins.ajax.php
	include/ajax/reporting.ajax.php
	include/ajax/visual_console_builder.ajax.php
	include/ajax/alert_list.ajax.php
	include/ajax/module.php
	include/functions_config.php
	include/functions_api.php
	include/help/en/help_timesource.php
	include/help/es/help_timesource.php
	include/help/ja/help_timesource.php
	include/config_process.php
	include/functions_ui.php
	include/functions_custom_graphs.php
	include/fgraph.php
	include/functions_incidents.php
	include/api.php
	include/functions_reports.php
	include/functions_ui_renders.php
	extensions/insert_data.php
	extensions/system_info.php
	extensions/extension_uploader.php
	extensions/pandora_logs.php
	extensions/agents_modules.php
	extensions/update_manager.php
	extensions/ssh_console.php
	extensions/dbmanager.php
	extensions/vnc_view.php
	extensions/resource_registration.php
	extensions/resource_exportation.php
	extensions/users_connected.php
	extensions/module_groups.php
	extensions/update_manager/load_updatemanager.php
	extensions/update_manager/lib/libupdate_manager_client.php
	extensions/update_manager/lib/libupdate_manager.php
	extensions/update_manager/lib/libupdate_manager_components.php
	extensions/update_manager/lib/libupdate_manager_updates.php
	extensions/update_manager/settings.php
	extensions/update_manager/main.php
	extensions/plugin_registration.php
	operation/incidents/incident.php
	operation/incidents/incident_detail.php
	operation/incidents/incident_statistics.php
	operation/search_modules.php
	operation/visual_console/render_view.php
	operation/visual_console/index.php
	operation/extensions.php
	operation/agentes/status_monitor.php
	operation/agentes/export_csv.php
	operation/agentes/estado_ultimopaquete.php
	operation/agentes/datos_agente.php
	operation/agentes/alerts_status.php
	operation/agentes/estado_generalagente.php
	operation/agentes/custom_fields.php
	operation/agentes/estado_agente.php
	operation/agentes/networkmap.topology.php
	operation/agentes/networkmap.groups.php
	operation/agentes/sla_view.php
	operation/agentes/exportdata.php
	operation/agentes/gis_view.php
	operation/agentes/estado_monitores.php
	operation/agentes/ver_agente.php
	operation/agentes/graphs.php
	operation/agentes/agent_fields.php
	operation/agentes/tactical.php
	operation/agentes/group_view.php
	operation/agentes/networkmap.php
	operation/agentes/stat_win.php
	operation/servers/view_server.php
	operation/servers/view_server_detail.php
	operation/menu.php
	operation/search_agents.php
	operation/search_graphs.php
	operation/snmpconsole/snmp_view.php
	operation/users/user_edit.php
	operation/gis_maps/render_view.php
	operation/gis_maps/ajax.php
	operation/integria_incidents/incident.php
	operation/integria_incidents/incident_detail.php
	operation/integria_incidents/incident_statistics.php
	operation/events/event_statistics.php
	operation/events/events_rss.php
	operation/events/export_csv.php
	operation/events/sound_events.php
	operation/events/events_validate.php
	operation/events/events_list.php
	operation/events/events_marquee.php
	operation/events/events.php
	operation/search_alerts.php
	operation/messages/message.php
	operation/reporting/reporting_xml.php
	operation/reporting/reporting_viewer.php
	operation/reporting/graph_viewer.php
	operation/search_reports.php
	operation/search_maps.php
	operation/search_users.php
	extras/pandora_diag.php
	mobile/operation/agents/monitor_status.php
	mobile/operation/agents/view_agents.php
	mobile/operation/agents/view_alerts.php
	mobile/operation/agents/group_view.php
	mobile/operation/events/events.php
	mobile/index.php
	general/error_authconfig.php
	general/links_menu.php
	general/logon_ok.php
	general/error_dbconfig.php
	general/ui/agents_list.php
	general/header.php
	godmode/groups/modu_group_list.php
	godmode/groups/configure_group.php
	godmode/groups/configure_modu_group.php
	godmode/groups/group_list.php
	godmode/admin_access_logs.php
	godmode/db/db_main.php
	godmode/db/db_audit.php
	godmode/db/db_sanity.php
	godmode/db/db_refine.php
	godmode/db/db_info.php
	godmode/db/db_event.php
	godmode/db/db_purge.php
	godmode/extensions.php
	godmode/agentes/agent_template.php
	godmode/agentes/module_manager_editor_common.php
	godmode/agentes/fields_manager.php
	godmode/agentes/agent_conf_gis.php
	godmode/agentes/module_manager_editor_prediction.php
	godmode/agentes/module_manager.php
	godmode/agentes/modificar_agente.php
	godmode/agentes/configurar_agente.php
	godmode/agentes/configure_field.php
	godmode/agentes/module_manager_editor.php
	godmode/agentes/planned_downtime.php
	godmode/agentes/manage_config_remote.php
	godmode/agentes/agent_manager.php
	godmode/servers/recon_script.php
	godmode/servers/plugin.php
	godmode/servers/manage_recontask.php
	godmode/servers/modificar_server.php
	godmode/servers/manage_recontask_form.php
	godmode/alerts/alert_list.list.php
	godmode/alerts/configure_alert_compound.php
	godmode/alerts/alert_compounds.php
	godmode/alerts/alert_list.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_list.builder.php
	godmode/alerts/alert_commands.php
	godmode/setup/file_manager.php
	godmode/setup/os.list.php
	godmode/setup/news.php
	godmode/setup/gis_step_2.php
	godmode/setup/links.php
	godmode/setup/setup.php
	godmode/setup/os.php
	godmode/setup/performance.php
	godmode/setup/setup_auth.php
	godmode/setup/gis.php
	godmode/setup/os.builder.php
	godmode/setup/setup_visuals.php
	godmode/snmpconsole/snmp_alert.php
	godmode/snmpconsole/snmp_filters.php
	godmode/users/user_list.php
	godmode/users/configure_profile.php
	godmode/gis_maps/configure_gis_map.php
	godmode/gis_maps/index.php
	godmode/massive/massive_add_alerts.php
	godmode/massive/massive_copy_modules.php
	godmode/massive/massive_delete_agents.php
	godmode/massive/massive_enable_disable_alerts.php
	godmode/massive/massive_operations.php
	godmode/massive/massive_delete_profiles.php
	godmode/massive/massive_edit_agents.php
	godmode/massive/massive_delete_action_alerts.php
	godmode/massive/massive_delete_modules.php
	godmode/massive/massive_add_profiles.php
	godmode/massive/massive_delete_alerts.php
	godmode/massive/massive_edit_modules.php
	godmode/massive/massive_standby_alerts.php
	godmode/massive/massive_add_action_alerts.php
	godmode/modules/manage_network_components_form.php
	godmode/modules/manage_nc_groups_form.php
	godmode/modules/manage_network_templates.php
	godmode/modules/module_list.php
	godmode/modules/manage_network_components_form_common.php
	godmode/modules/manage_network_components_form_network.php
	godmode/modules/manage_network_templates_form.php
	godmode/modules/manage_network_components_form_wmi.php
	godmode/modules/manage_network_components.php
	godmode/modules/manage_nc_groups.php
	godmode/reporting/visual_console_builder.wizard.php
	godmode/reporting/graph_builder.main.php
	godmode/reporting/reporting_builder.list_items.php
	godmode/reporting/visual_console_builder.php
	godmode/reporting/reporting_builder.preview.php
	godmode/reporting/reporting_builder.main.php
	godmode/reporting/visual_console_builder.data.php
	godmode/reporting/visual_console_builder.elements.php
	godmode/reporting/graph_builder.php
	godmode/reporting/visual_console_builder.preview.php
	godmode/reporting/graph_builder.graph_editor.php
	godmode/reporting/reporting_builder.php
	godmode/reporting/visual_console_builder.editor.php
	godmode/reporting/reporting_builder.item_editor.php
	godmode/reporting/map_builder.php
	godmode/reporting/graphs.php
	godmode/reporting/graph_builder.preview.php
	include/functions_db.php: Added some includes and functions of this code have "db_" prefix.
	* include/functions.php: Moved function check_login(), check_acl(), 
	dame_nombre_pluginid(), get_os_name() from functions_db.php to functions.php. 
	* include/functions_groups.php: Moved functions get_childrens(), safe_acl_group()
	 and get_parents(), give_disabled_group(), isAllGroups(), get_group_icon(), get_all_groups(), 	 
	get_id_groups_recursive(), get_user_groups_tree_recursive(), get_group_status(), 
	get_group_name(), get_group_users() from functions_db.php to this code. 
	* include/functions_profile.php: New library with profile functions. Moved functions 
	get_profile_name(), get_profiles(), create_user_profile(), delete_user_profile(), 
	delete_profile() from functions_db.php to this code. Added new parameter in function 
	get_profile() to retrieve profiles with filter conditions applied.
	* include/functions_users.php: New library with users functions. Moved functions 
	get_users_info(), get_all_model_groups(), get_user_groups(), get_user_groups_tree(), 
	get_user_first_group(), user_access_to_agent() from funtions_db.php to this code.
	* godmode/users/configure_user.php: Changed get_profile_filter() function to get_profile(). 
	* include/functions_agents.php: Moved functions get_group_agents(), get_agent_modules(), 
	get_agent_module_id(), get_agent_id(), get_agent_name(), get_agent_modules_data_count(), 
	check_alert_fired(), get_agent_interval(), get_agent_os(), give_agentmodule_flag(), 
	agent_add_address(), agent_delete_address(), get_agent_address(), get_agent_with_ip(), 
	get_agent_addresses(), get_agent_status(), delete_agent(), get_agentmodule_group(), 
	get_agent_group() from functions_db.php to this code.
	* include/functions_modules.php: Moved functions get_agentmodule(), get_agentmodule_id(), 
	get_agentmodule_is_init(), get_agent_modules_count(), get_module_type_name(), 
	get_module_type_icon(), get_agentmodule_agent(), get_agentmodule_agent_name(), 
	get_agentmodule_name(), get_agentmodule_type(), get_monitor_downs_in_period(), 		
	get_monitor_last_down_timestamp_in_period(), get_monitors_in_group(), 
	get_monitors_in_agent(), get_monitors_down(), get_moduletype_name(), 
	get_moduletype_description(), get_moduletypes(), get_module_interval(), show_icon_type(), 		
	give_modulecategory_name(),
 	give_agent_id_from_module_id(), get_module_status(), get_agent_module_last_value(), 
	get_previous_data(), get_agentmodule_modulegroup(), get_modulegroups(), 
	get_modulegroup_name() from functions_db.php to this code.
	* include/functions_alerts.php: Moved functions get_alert_type(), get_agent_alert_fired(),
	 get_module_alert_fired(), get_alert_fires_in_period(), get_group_alerts(), get_alerts_fired(), 
	get_alert_last_fire_timestamp_in_period(), get_agentmodule_status(), 
	get_agentmodule_last_status() from functions_db.php to this code.
	* include/functions_exportserver.php: Moved function dame_nombre_servidorexportacion() 
	from functions_db.php to this code.
	* include/functions_events.php: Moved functions get_group_events(), get_agent_events(), 
	get_module_events() from functions_db.php to this code.
	* include/functions_servers.php: Moved functions get_server_name(), show_server_type(), 
	check_server_status(), server_status() from functions_db.php to this code.
	* include/functions_network_profiles.php: Moved function get_networkprofile_name() 
	from functions_db.php to this code.
	* include/functions_visual_map.php: Moved functions get_layoutdata_x(), get_layoutdata_y() 
	from fucntions_db.php to this code.
	* include/functions_io.php: Moved function __() from functions_db.php to this code.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-04-19 18:42:49 +00:00
juanmanuelr 78870b8ae3 2011-04-13 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_events.php
	include/functions_html.php
	include/functions_modules.php
	include/functions_reporting.php
	include/functions_filemanager.php
	include/functions_gis.php
	include/functions_networkmap.php
	include/functions_visual_map.php
	include/ajax/reporting.ajax.php
	include/help/en/help_timesource.php
	include/help/es/help_timesource.php
	include/help/ja/help_timesource.php
	include/functions_ui.php
	include/functions.php
	include/functions_db.php
	include/functions_ui_renders.php
	index.php
	extensions/insert_data.php
	extensions/system_info.php
	extensions/extension_uploader.php
	extensions/pandora_logs.php
	extensions/agents_modules.php
	extensions/dbmanager.php
	extensions/resource_registration.php
	extensions/resource_exportation.php
	extensions/users_connected.php
	extensions/module_groups.php
	extensions/update_manager/settings.php
	extensions/update_manager/main.php
	extensions/plugin_registration.php
	operation/incidents/incident.php
	operation/incidents/incident.files.php
	operation/incidents/incident_detail.php
	operation/incidents/incident.workunits.php
	operation/incidents/incident.list.php
	operation/incidents/incident_statistics.php
	operation/search_modules.php
	operation/visual_console/render_view.php
	operation/visual_console/index.php
	operation/extensions.php
	operation/agentes/status_monitor.php
	operation/agentes/alerts_status.php
	operation/agentes/datos_agente.php
	operation/agentes/estado_ultimopaquete.php
	operation/agentes/custom_fields.php
	operation/agentes/estado_generalagente.php
	operation/agentes/networkmap.topology.php
	operation/agentes/estado_agente.php
	operation/agentes/alerts_status.functions.php
	operation/agentes/networkmap.groups.php
	operation/agentes/bulbs.php
	operation/agentes/sla_view.php
	operation/agentes/exportdata.php
	operation/agentes/gis_view.php
	operation/agentes/estado_monitores.php
	operation/agentes/ver_agente.php
	operation/agentes/graphs.php
	operation/agentes/agent_fields.php
	operation/agentes/tactical.php
	operation/agentes/group_view.php
	operation/agentes/networkmap.php
	operation/agentes/stat_win.php
	operation/servers/view_server.php
	operation/servers/view_server_detail.php
	operation/search_agents.php
	operation/search_graphs.php
	operation/snmpconsole/snmp_view.php
	operation/users/user_edit.php
	operation/gis_maps/render_view.php
	operation/gis_maps/ajax.php
	operation/gis_maps/index.php
	operation/integria_incidents/incident.php
	operation/integria_incidents/incident.files.php
	operation/integria_incidents/incident_detail.php
	operation/integria_incidents/incident.workunits.php
	operation/integria_incidents/incident.list.php
	operation/integria_incidents/incident_statistics.php
	operation/events/event_statistics.php
	operation/events/events_list.php
	operation/events/events.php
	operation/search_alerts.php
	operation/messages/message.php
	operation/reporting/reporting_viewer.php
	operation/reporting/graph_viewer.php
	operation/reporting/custom_reporting.php
	operation/search_reports.php
	operation/search_maps.php
	operation/search_results.php
	operation/search_users.php
	extras/pandora_diag.php
	mobile/operation/agents/monitor_status.php
	mobile/operation/agents/view_agents.php
	mobile/operation/agents/view_alerts.php
	mobile/operation/events/events.php
	mobile/operation/servers/view_servers.php
	mobile/include/functions_web.php
	general/footer.php
	general/noaccess.php
	general/logon_ok.php
	general/main_menu.php
	general/ui/agents_list.php
	general/header.php
	godmode/groups/modu_group_list.php
	godmode/groups/configure_group.php
	godmode/groups/configure_modu_group.php
	godmode/groups/group_list.php
	godmode/admin_access_logs.php
	godmode/db/db_main.php
	godmode/db/db_audit.php
	godmode/db/db_sanity.php
	godmode/db/db_refine.php
	godmode/db/db_info.php
	godmode/db/db_event.php
	godmode/db/db_purge.php
	godmode/extensions.php
	godmode/agentes/module_manager_editor_common.php
	godmode/agentes/module_manager_editor_network.php
	godmode/agentes/fields_manager.php
	godmode/agentes/module_manager_editor_wmi.php
	godmode/agentes/module_manager_editor_plugin.php
	godmode/agentes/module_manager_editor_prediction.php
	godmode/agentes/agent_conf_gis.php
	godmode/agentes/module_manager.php
	godmode/agentes/modificar_agente.php
	godmode/agentes/configurar_agente.php
	godmode/agentes/configure_field.php
	godmode/agentes/module_manager_editor.php
	godmode/agentes/planned_downtime.php
	godmode/agentes/manage_config_remote.php
	godmode/agentes/agent_manager.php
	godmode/servers/recon_script.php
	godmode/servers/plugin.php
	godmode/servers/manage_recontask.php
	godmode/servers/modificar_server.php
	godmode/servers/manage_recontask_form.php
	godmode/alerts/alert_list.list.php
	godmode/alerts/configure_alert_compound.php
	godmode/alerts/alert_compounds.php
	godmode/alerts/alert_list.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_list.builder.php
	godmode/alerts/alert_commands.php
	godmode/setup/file_manager.php
	godmode/setup/os.list.php
	godmode/setup/news.php
	godmode/setup/gis_step_2.php
	godmode/setup/links.php
	godmode/setup/setup.php
	godmode/setup/os.php
	godmode/setup/performance.php
	godmode/setup/setup_auth.php
	godmode/setup/gis.php
	godmode/setup/os.builder.php
	godmode/setup/setup_visuals.php
	godmode/snmpconsole/snmp_alert.php
	godmode/snmpconsole/snmp_filters.php
	godmode/users/user_list.php
	godmode/users/configure_user.php
	godmode/users/configure_profile.php
	godmode/gis_maps/configure_gis_map.php
	godmode/gis_maps/index.php
	godmode/massive/massive_add_alerts.php
	godmode/massive/massive_copy_modules.php
	godmode/massive/massive_delete_agents.php
	godmode/massive/massive_enable_disable_alerts.php
	godmode/massive/massive_operations.php
	godmode/massive/massive_delete_profiles.php
	godmode/massive/massive_edit_agents.php
	godmode/massive/massive_delete_action_alerts.php
	godmode/massive/massive_delete_modules.php
	godmode/massive/massive_add_profiles.php
	godmode/massive/massive_delete_alerts.php
	godmode/massive/massive_edit_modules.php
	godmode/massive/massive_standby_alerts.php
	godmode/massive/massive_add_action_alerts.php
	godmode/modules/manage_network_templates.php
	godmode/modules/module_list.php
	godmode/modules/manage_network_components_form_common.php
	godmode/modules/manage_network_components_form_network.php
	godmode/modules/manage_network_templates_form.php
	godmode/modules/manage_network_components_form_wmi.php
	godmode/modules/manage_network_components.php
	godmode/modules/manage_nc_groups.php
	godmode/modules/manage_network_components_form_plugin.php
	godmode/reporting/reporting_builder.list_items.php
	godmode/reporting/visual_console_builder.php
	godmode/reporting/reporting_builder.preview.php
	godmode/reporting/visual_console_builder.data.php
	godmode/reporting/visual_console_builder.elements.php
	godmode/reporting/graph_builder.php
	godmode/reporting/visual_console_builder.preview.php
	godmode/reporting/graph_builder.graph_editor.php
	godmode/reporting/reporting_builder.php
	godmode/reporting/visual_console_builder.editor.php
	godmode/reporting/reporting_builder.item_editor.php
	godmode/reporting/map_builder.php
	godmode/reporting/graphs.php
	godmode/reporting/graph_builder.preview.php: Now all functions of 
	include/functions_ui have ui_ prefix.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4212 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-04-13 16:11:02 +00:00
juanmanuelr f27b28d4a3 2011-04-11 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_events.php
	include/functions_messages.php
	include/db/oracle.php
	include/functions_modules.php
	include/functions_reporting.php
	include/functions_groups.php
	include/functions_gis.php
	include/auth/mysql.php
	include/functions_networkmap.php
	include/functions_servers.php
	include/functions_network_components.php
	include/ajax/reporting.ajax.php
	include/ajax/agent.php
	include/functions_config.php
	include/functions_api.php
	include/help/en/help_timesource.php
	include/help/es/help_timesource.php
	include/help/ja/help_timesource.php
	include/fgraph.php
	include/functions.php
	include/functions_agents.php
	include/functions_db.php
	include/functions_fsgraph.php
	include/functions_alerts.php
	include/functions_reports.php
	pandoradb.oracle.sql
	install.php
	extensions/system_info.php
	extensions/update_manager.php
	extensions/dbmanager.php
	extensions/users_connected.php
	extensions/module_groups.php
	extensions/update_manager/sql/update_manager.oracle.sql
	extensions/update_manager/load_updatemanager.php
	extensions/update_manager/lib/libupdate_manager_client.php
	extensions/update_manager/lib/libupdate_manager.php
	extensions/update_manager/lib/libupdate_manager_components.php
	extensions/update_manager/lib/libupdate_manager_updates.php
	operation/search_modules.php
	operation/agentes/status_monitor.php
	operation/agentes/alerts_status.php
	operation/agentes/datos_agente.php
	operation/agentes/estado_ultimopaquete.php
	operation/agentes/exportdata.php
	operation/agentes/gis_view.php
	operation/agentes/estado_monitores.php
	operation/agentes/ver_agente.php
	operation/snmpconsole/snmp_view.php
	operation/users/user_edit.php
	operation/gis_maps/render_view.php
	operation/gis_maps/ajax.php
	operation/events/events_rss.php
	operation/events/events_list.php
	operation/events/events_marquee.php
	operation/search_alerts.php
	operation/reporting/reporting_xml.php
	operation/reporting/reporting_viewer.php
	pandoradb.data.oracle.sql
	extras/pandora_diag.php
	mobile/operation/agents/monitor_status.php
	mobile/operation/agents/view_agents.php
	mobile/operation/events/events.php
	general/logon_ok.php
	godmode/groups/group_list.php
	godmode/admin_access_logs.php
	godmode/db/db_main.php
	godmode/agentes/agent_template.php
	godmode/agentes/module_manager.php
	godmode/agentes/modificar_agente.php
	godmode/agentes/configurar_agente.php
	godmode/agentes/module_manager_editor.php
	godmode/agentes/planned_downtime.php
	godmode/alerts/alert_list.list.php
	godmode/alerts/alert_compounds.php
	godmode/alerts/alert_list.php
	godmode/setup/setup.php
	godmode/modules/manage_network_templates.php
	godmode/modules/manage_network_templates_form.php
	godmode/reporting/reporting_builder.list_items.php
	godmode/reporting/reporting_builder.preview.php
	godmode/reporting/reporting_builder.php
	godmode/reporting/reporting_builder.item_editor.php: Support for Oracle DBMS
	over Console code.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4187 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-04-11 17:05:20 +00:00
javilanz 67dc758841 2011-03-21 Javier Lanz <javier.lanz@artica.es>
* include/functions_events.php: Truncated agent and module name
	* include/functions_reporting.php: Added functionality to store info of
	General, Top n and Exception reports
	* include/pchart_graph.php: Added function graph_sla_horizontal to print
	sla horizontal graph bar. (Not working properly yet)
	* include/pandora_graph.php: Added prototipe for
	function graph_sla_horizontal
	* include/fgraph.php: Added function graph_sla_pie to print sla pie graph
	* include/functions.php: Added options top n, exception and general for
	the combo box to select report type.
	* pandoradb.sql: added fome fields to treport_content table
	* extras/pandoradb_migrate_v3.2_to_v4.0.sql: added some fields to 
	treport_content table
	* godmode/reporting/reporting_builder.list_items.php: Truncated agent
	and module name
	* godmode/reporting/reporting_builder.preview.php: Added a bottom scroll
	bar to the report table
	* godmode/reporting/reporting_builder.php: Added variables for the new
	kinds of reports, top n, exception and general
	* godmode/reporting/reporting_builder.item_editor.php: Added html
	elements for the new kind of reports


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4111 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-21 17:20:18 +00:00
mdtrooper 16a31d8727 2011-03-08 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_events.php, include/functions_messages.php,
	include/auth/mysql.php, include/functions_api.php,
	include/functions_incidents.php, include/functions_db.php,
	operation/incidents/incident_detail.php,
	operation/snmpconsole/snmp_view.php, operation/reporting/graph_viewer.php,
	godmode/groups/group_list.php, godmode/agentes/module_manager.php,
	godmode/agentes/configurar_agente.php, godmode/agentes/planned_downtime.php,
	godmode/servers/recon_script.php, godmode/servers/manage_recontask.php,
	godmode/servers/modificar_server.php, godmode/snmpconsole/snmp_alert.php,
	godmode/snmpconsole/snmp_filters.php,
	godmode/modules/manage_network_templates_form.php: change the source code
	for to use process_sql_delete instead of the SQL. 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4070 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-08 16:12:58 +00:00
mdtrooper 5153e70aa4 2011-03-08 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_events.php, include/functions_messages.php,
	include/functions_incidents.php, include/functions_db.php,
	operation/incidents/incident.php, operation/agentes/ver_agente.php,
	operation/agentes/tactical.php, operation/servers/view_server_detail.php,
	operation/snmpconsole/snmp_view.php, godmode/groups/modu_group_list.php,
	godmode/agentes/configurar_agente.php, godmode/servers/manage_recontask.php,
	godmode/servers/modificar_server.php, godmode/snmpconsole/snmp_filters.php,
	godmode/setup/news.php, godmode/modules/manage_network_templates_form.php:
	change the source code for to use process_sql_update instead of the SQL.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4066 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-08 11:14:03 +00:00
mdtrooper 8e3a474bf4 2011-03-07 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_events.php, include/functions_reporting.php,
	include/functions_db.php, extensions/users_connected.php,
	general/logon_ok.php: added the SQL queries PostgreSQL
	compatible, in this case with the function to get unix_timestamp.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4060 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-07 11:48:44 +00:00
raulmateos c7eeb2fdf6 2011-03-02 Raul Mateos <raulofpandora@gmail.com>
* include/functions*.php: Updated year in files changed this year. Also
	changed spaces to tabs.

	* pandora_console_install, pandora_console_upgrade,
	pandora.data.postgreSQL.sql, pandoradb_data.sql

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4053 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-02 21:56:48 +00:00
mdtrooper 1cfce3b525 2011-02-27 Miguel de Dios <miguel.dedios@artica.es>
* extensions/users_connected.php: fixed the double negation in the
	check_acl.

	* include/functions_events.php, include/functions_modules.php,
	include/functions_reporting.php, include/functions_filemanager.php,
	include/functions_config.php, include/ajax/reporting.ajax.php,
	include/ajax/visual_console_builder.ajax.php,
	include/ajax/alert_list.ajax.php, include/help/es/modu_group_list.php,
	include/fgraph.php, include/functions.php, include/functions_db.php,
	include/functions_alerts.php, include/functions_reports.php,
	extensions/insert_data.php, extensions/system_info.php,
	extensions/pandora_logs.php, extensions/agents_modules.php,
	extensions/dbmanager.php, extensions/resource_registration.php,
	extensions/update_manager/settings.php, extensions/update_manager/main.php,
	extensions/plugin_registration.php, operation/incidents/incident.php,
	operation/incidents/incident_detail.php,
	operation/incidents/incident_statistics.php, operation/extensions.php,
	operation/visual_console/render_view.php,
	operation/visual_console/index.php, operation/agentes/status_monitor.php,
	operation/agentes/export_csv.php,
	operation/agentes/estado_ultimopaquete.php,
	operation/agentes/datos_agente.php, operation/agentes/alerts_status.php,
	operation/agentes/estado_generalagente.php,
	operation/agentes/custom_fields.php, operation/agentes/estado_agente.php,
	operation/agentes/networkmap.topology.php,
	operation/agentes/networkmap.groups.php, operation/agentes/sla_view.php,
	operation/agentes/exportdata.php, operation/agentes/gis_view.php,
	operation/agentes/estado_monitores.php, operation/agentes/ver_agente.php,
	operation/agentes/graphs.php, operation/agentes/agent_fields.php,
	operation/agentes/group_view.php, operation/agentes/networkmap.php,
	operation/servers/view_server.php, operation/servers/view_server_detail.php,
	operation/menu.php, operation/snmpconsole/snmp_view.php,
	operation/users/user_edit.php, operation/events/event_statistics.php,
	operation/events/export_csv.php, operation/events/sound_events.php,
	operation/events/events_validate.php, operation/events/events_list.php,
	operation/events/events_marquee.php, operation/events/events.php,
	operation/search_reports.php, operation/reporting/reporting_xml.php,
	operation/reporting/reporting_viewer.php,
	operation/reporting/graph_viewer.php, operation/search_maps.php,
	mobile/operation/agents/monitor_status.php,
	mobile/operation/agents/view_agents.php, mobile/index.php, 
	general/ui/agents_list.php, godmode/groups/modu_group_list.php,
	godmode/groups/configure_group.php, godmode/groups/configure_modu_group.php,
	godmode/groups/group_list.php, godmode/admin_access_logs.php,
	godmode/extensions.php, godmode/db/db_main.php, godmode/db/db_audit.php,
	godmode/db/db_sanity.php, godmode/db/db_refine.php, godmode/db/db_info.php,
	godmode/db/db_event.php, godmode/db/db_purge.php,
	godmode/agentes/fields_manager.php, godmode/agentes/module_manager.php,
	godmode/agentes/modificar_agente.php, godmode/agentes/configurar_agente.php,
	godmode/agentes/configure_field.php, godmode/agentes/planned_downtime.php,
	godmode/agentes/manage_config_remote.php, godmode/servers/recon_script.php,
	godmode/servers/plugin.php, godmode/servers/manage_recontask.php,
	godmode/servers/modificar_server.php,
	godmode/servers/manage_recontask_form.php, godmode/menu.php,
	godmode/alerts/alert_list.list.php,
	godmode/alerts/configure_alert_compound.php,
	godmode/alerts/alert_compounds.php, godmode/alerts/alert_list.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_list.builder.php,
	godmode/alerts/alert_commands.php, godmode/snmpconsole/snmp_alert.php,
	godmode/snmpconsole/snmp_filters.php, godmode/setup/file_manager.php,
	godmode/setup/os.list.php, godmode/setup/news.php,
	godmode/setup/gis_step_2.php, godmode/setup/links.php,
	godmode/setup/setup.php, godmode/setup/os.php, 
	godmode/setup/performance.php, godmode/setup/setup_auth.php,
	godmode/setup/gis.php, godmode/setup/os.builder.php,
	godmode/setup/setup_visuals.php, godmode/users/user_list.php,
	godmode/users/configure_user.php, godmode/users/configure_profile.php,
	godmode/gis_maps/configure_gis_map.php, godmode/gis_maps/index.php,
	godmode/massive/massive_add_alerts.php,
	godmode/massive/massive_copy_modules.php,
	godmode/massive/massive_delete_agents.php,
	godmode/massive/massive_operations.php,
	godmode/massive/massive_edit_agents.php,
	godmode/massive/massive_delete_action_alerts.php,
	godmode/massive/massive_delete_modules.php,
	godmode/massive/massive_delete_alerts.php,
	godmode/massive/massive_edit_modules.php,
	godmode/massive/massive_add_action_alerts.php,
	godmode/modules/manage_network_components_form.php,
	godmode/modules/manage_nc_groups_form.php,
	godmode/modules/manage_network_templates.php,
	godmode/modules/module_list.php,
	godmode/modules/manage_network_components_form_common.php,
	godmode/modules/manage_network_components_form_network.php,
	godmode/modules/manage_network_templates_form.php,
	godmode/modules/manage_network_components_form_wmi.php,
	godmode/modules/manage_network_components.php,
	godmode/modules/manage_nc_groups.php,
	godmode/reporting/reporting_builder.list_items.php,
	godmode/reporting/graph_builder.main.php,
	godmode/reporting/visual_console_builder.wizard.php,
	godmode/reporting/visual_console_builder.php,
	godmode/reporting/reporting_builder.preview.php,
	godmode/reporting/reporting_builder.main.php,
	godmode/reporting/visual_console_builder.data.php,
	godmode/reporting/visual_console_builder.elements.php,
	godmode/reporting/graph_builder.php,
	godmode/reporting/visual_console_builder.preview.php,
	godmode/reporting/graph_builder.graph_editor.php,
	godmode/reporting/reporting_builder.php,
	godmode/reporting/visual_console_builder.editor.php,
	godmode/reporting/reporting_builder.item_editor.php,
	godmode/reporting/map_builder.php, godmode/reporting/graphs.php,
	godmode/reporting/graph_builder.preview.php: replaced obsolete "give_acl" to
	"check_acl" and erased the "give_acl".



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4025 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-28 12:02:08 +00:00
raulmateos 34979e528f 2010-11-17 Raúl Mateos <raulofpandora@gmail.com>
* include/functions_events.php: Deleted old code. Simplify.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3595 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-17 11:43:48 +00:00
raulmateos 8071a45912 2010-11-15 Raúl Mateos <raulofpandora@gmail.com>
* include/functions_events.php: Show text in Agent detail when no events
	found. Commented old code.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3589 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-15 17:07:30 +00:00
mdtrooper 3068e497ce 2010-10-27 Miguel de Dios <miguel.dedios@artica.es>
* godmode/admin_access_logs.php: added hooks to enterprise code, and added
	new filter with more options.

	* include/functions_db.php: erase the deprecated function "audit_db", and
	added in function "pandora_audit" two new parameters $user_id, $ip for
	pass this values when it are differents to the default values. Finally
	replaced the depecrated "audit_db" for "pandora_audit".
	
	* include/functions_events.php, include/functions_filemanager.php, 
	include/ajax/reporting.ajax.php,
	include/ajax/visual_console_builder.ajax.php,
	include/ajax/alert_list.ajax.php, include/help/es/modu_group_list.php,
	include/functions_incidents.php, index.php, extensions/agents_modules.php,
	extensions/insert_data.php, extensions/system_info.php,
	extensions/dbmanager.php, extensions/update_manager/settings.php,
	extensions/pandora_logs.php, extensions/plugin_registration.php,
	operation/incidents/incident.php, operation/incidents/incident_detail.php,
	operation/incidents/incident_statistics.php, operation/extensions.php,
	operation/visual_console/render_view.php,
	operation/agentes/status_monitor.php, operation/agentes/export_csv.php,
	operation/agentes/datos_agente.php, operation/agentes/alerts_status.php,
	operation/agentes/estado_generalagente.php,
	operation/agentes/custom_fields.php, operation/agentes/estado_agente.php,
	operation/agentes/networkmap.topology.php,
	operation/agentes/networkmap.groups.php, operation/agentes/sla_view.php,
	operation/agentes/gis_view.php, operation/agentes/estado_monitores.php,
	operation/agentes/ver_agente.php, operation/agentes/graphs.php,
	operation/agentes/agent_fields.php, operation/agentes/tactical.php,
	operation/agentes/group_view.php, operation/agentes/networkmap.php, 
	operation/servers/view_server.php,operation/servers/view_server_detail.php,
	operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
	operation/gis_maps/render_view.php, operation/events/event_statistics.php,
	operation/events/sound_events.php, operation/events/events_validate.php,
	operation/events/events_list.php, operation/events/events_marquee.php,
	operation/events/events.php, operation/reporting/reporting_xml.php,
	operation/reporting/reporting_viewer.php,
	operation/reporting/graph_viewer.php,
	mobile/operation/agents/view_agents.php, mobile/index.php,
	godmode/groups/modu_group_list.php, godmode/groups/configure_group.php,
	godmode/groups/configure_modu_group.php, godmode/groups/group_list.php,
	godmode/extensions.php, godmode/db/db_main.php, godmode/db/db_audit.php,
	godmode/db/db_sanity.php, godmode/db/db_refine.php, godmode/db/db_info.php,
	godmode/db/db_event.php, godmode/db/db_purge.php,
	godmode/agentes/fields_manager.php, godmode/agentes/module_manager.php,
	godmode/agentes/modificar_agente.php, godmode/agentes/configurar_agente.php,
	godmode/agentes/configure_field.php, godmode/agentes/planned_downtime.php,
	godmode/agentes/manage_config_remote.php, godmode/agentes/agent_manager.php,
	godmode/servers/manage_export.php, godmode/servers/recon_script.php,
	godmode/servers/manage_export_form.php, godmode/servers/plugin.php,
	godmode/servers/manage_recontask.php, godmode/servers/modificar_server.php,
	godmode/servers/manage_recontask_form.php,
	godmode/alerts/alert_list.list.php,
	godmode/alerts/configure_alert_compound.php,
	godmode/alerts/alert_compounds.php, godmode/alerts/alert_list.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_list.builder.php,
	godmode/alerts/alert_commands.php, godmode/snmpconsole/snmp_alert.php,
	godmode/snmpconsole/snmp_filters.php, godmode/setup/file_manager.php,
	godmode/setup/os.list.php, godmode/setup/news.php,
	godmode/setup/gis_step_2.php, godmode/setup/links.php,
	godmode/setup/setup.php, godmode/setup/os.php,
	godmode/setup/performance.php, godmode/setup/setup_auth.php,
	godmode/setup/gis.php, godmode/setup/os.builder.php,
	godmode/setup/setup_visuals.php, godmode/users/user_list.php,
	godmode/users/configure_user.php, godmode/users/configure_profile.php,
	godmode/gis_maps/configure_gis_map.php, godmode/gis_maps/index.php,
	godmode/massive/massive_add_alerts.php,
	godmode/massive/massive_copy_modules.php,
	godmode/massive/massive_delete_agents.php,
	godmode/massive/massive_enable_disable_alerts.php,
	godmode/massive/massive_operations.php,
	godmode/massive/massive_delete_profiles.php,
	godmode/massive/massive_edit_agents.php,
	godmode/massive/massive_delete_action_alerts.php,
	godmode/massive/massive_delete_modules.php,
	godmode/massive/massive_add_profiles.php,
	godmode/massive/massive_delete_alerts.php,
	godmode/massive/massive_edit_modules.php,
	godmode/massive/massive_standby_alerts.php,
	godmode/massive/massive_add_action_alerts.php,
	godmode/modules/manage_network_components_form.php,
	godmode/modules/manage_nc_groups_form.php,
	godmode/modules/manage_network_templates.php,
	godmode/modules/module_list.php,
	godmode/modules/manage_network_components_form_common.php,
	godmode/modules/manage_network_components_form_network.php,
	godmode/modules/manage_network_templates_form.php,
	godmode/modules/manage_network_components_form_wmi.php,
	godmode/modules/manage_network_components.php,
	godmode/modules/manage_nc_groups.php,
	godmode/reporting/reporting_builder.list_items.php,
	godmode/reporting/graph_builder.main.php,
	godmode/reporting/visual_console_builder.wizard.php,
	godmode/reporting/visual_console_builder.php,
	godmode/reporting/reporting_builder.preview.php,
	godmode/reporting/reporting_builder.main.php,
	godmode/reporting/visual_console_builder.data.php,
	godmode/reporting/map_builder_wizard.php,
	godmode/reporting/visual_console_builder.elements.php,
	godmode/reporting/graph_builder.php,
	godmode/reporting/visual_console_builder.preview.php,
	godmode/reporting/graph_builder.graph_editor.php,
	godmode/reporting/reporting_builder.php,
	godmode/reporting/visual_console_builder.editor.php,
	godmode/reporting/reporting_builder.item_editor.php,
	godmode/reporting/graphs.php, godmode/reporting/graph_builder.preview.php:
	Replaced the depecrated "audit_db" for "pandora_audit".



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3467 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-27 10:47:07 +00:00
zarzuelo 52e705862c 2010-09-29 Sergio Martin <sergio.martin@artica.es>
* include/functions_events.php: Change to the new status 
	images and names to the events on the tactical view.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3312 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-09-29 10:35:47 +00:00
zarzuelo 428e4e0baf 2010-09-17 Sergio Martin <sergio.martin@artica.es>
* include/functions_events.php
	pandoradb.sql
	extras/pandoradb_migrate_v3.1_to_v3.2.sql
	operation/events/events_validate.php
	operation/events/events_list.php
	operation/events/events.php: Deleted several
	columns from the events view and adding a
	show/hide advanced fields feature. 
	Added a new state 'in process' to validation
	and an input comment when a status is changed.

	* include/fgraph.php: Fixed quotes
	in constant definition

	* include/functions_ui.php
	include/functions_agents.php
	include/functions_alerts.php
	operation/agentes/alerts_status.php
	operation/agentes/alerts_status.functions.php
	images/bell_pause.png
	godmode/alerts/alert_list.list.php
	godmode/alerts/alert_list.php
	godmode/massive/massive_operations.php
	godmode/massive/massive_standby_alerts.php: Added
	the feature of set and set off on standby an alert
	in the alets management and view if an alert is in
	standby in the rest of views.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3251 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-09-17 12:34:11 +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
slerena e76cdb0747 2010-02-19 Sancho Lerena <slerena@artica.es>
* 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
2010-02-19 15:16:03 +00:00
slerena b8d839b5c7 2009-11-27 Sancho lerena <slerena@artica.es>
* 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
2009-11-27 20:02:12 +00:00
mdtrooper d282ca5301 2009-10-21 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_events.php: tiny fix, the icon for event not validate
	was old file.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2047 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-10-21 20:13:17 +00:00
mdtrooper c5109fccb8 2009-10-07 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, extras/pandoradb_migrate_v2.x_to_v3.0.sql: change the field
	"name" in the table "tagente" to binary varchar.
	* include/functions_events.php, operation/events/events.php: add new
	columns, the severity colummn and the validate colummn.
	* images/tag_red.png, images/tick.png,
	images/status_sets/default/severity_informational.png,
	images/status_sets/default/severity_maintenance.png,
	images/status_sets/default/severity_critical.png,
	images/status_sets/default/severity_warning.png,
	images/status_sets/default/severity_normal.png: add the new files to use in
	the events list new colummns.
	* include/help/en/help_eventview.php: change the content in this help for
	show help info of new colummns.
	Comments: I hate the massive and mixed commits...but I have not choice, and
	in this commit there are two parts, the changes in the sql table and the
	changes in the event list colummn. 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2011 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-10-07 18:43:08 +00:00
mdtrooper 889b4b2f73 2009-09-17 Miguel de Dios <miguel.dedios@artica.es>
* pandora_console/include/functions_events.php: fix the insert event,
	before Pandora console inserted timestamp as string timestamp, now Pandora
	console insert the event with clean and numeric unix timestamp.
	* pandora_console/include/functions_alerts.php: cleanup the sourcecode.
	Fixes: 2854087



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1952 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-17 09:45:18 +00:00
mdtrooper 27fbab8686 2009-08-24 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_menu.php, include/functions_html.php,
	include/functions_events.php, include/functions_messages.php,
	include/functions_modules.php, include/functions_exportserver.php,
	include/functions_reporting.php, include/functions_filemanager.php,
	include/pchart_graph.php, include/pandora_graph.php, include/auth/ldap.php,
	include/auth/mysql.php, include/config.inc.php,
	include/functions_networkmap.php, include/functions_servers.php,
	include/functions_network_profiles.php, include/gettext.php,
	include/functions_network_components.php, include/functions_visual_map.php,
	include/fgraph2.php, include/Image/image_functions.php,
	include/functions_config.php, include/config_process.php,
	include/functions_ui.php, include/htmlawed.php,
	include/functions_custom_graphs.php, include/fgraph.php,
	include/functions_incidents.php, include/functions.php,
	include/functions_agents.php, include/functions_db.php,
	include/functions_themes.php, include/streams.php,
	include/functions_fsgraph.php, include/functions_alerts.php,
	include/functions_reports.php, include/functions_extensions.php,
	include/functions_ui_renders.php: change or add the subpackage in phpdoc
	comment blocks for to organize more the result phpdoc files. Start to
	document undocument functions. 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1882 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-26 15:37:47 +00:00
mdtrooper ff52bf27ed 2009-08-24 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_menu.php, include/functions_html.php,
	include/functions_events.php, include/functions_messages.php,
	include/functions_modules.php, include/functions_exportserver.php,
	include/functions_reporting.php, include/functions_filemanager.php,
	include/pchart_graph.php, include/pandora_graph.php, include/auth/dev.php,
	include/auth/ldap.php, include/auth/mysql.php, include/config.inc.php,
	include/functions_networkmap.php, include/functions_servers.php,
	include/FusionCharts/FusionCharts_Gen.php,
	include/FusionCharts/FusionCharts.php,
	include/functions_network_profiles.php, include/gettext.php,
	include/functions_network_components.php, include/functions_visual_map.php,
	include/fgraph2.php, include/Image/image_functions.php,
	include/functions_config.php, include/help/en/help_plugin_parameters.php,
	include/help/en/help_snmpcommunity.php, include/help/en/help_wmiquery.php,
	include/help/en/help_postprocess.php,
	include/help/en/help_prediction_source_module.php,
	include/help/en/help_date_format.php, include/help/en/help_recontask.php,
	include/help/en/help_alert-matches.php, include/help/en/help_tcp_send.php,
	include/help/en/help_wmifield.php, include/help/en/help_duplicateconfig.php,
	include/help/en/help_agent_status.php,
	include/help/en/help_manage_alerts.php, include/help/en/help_wmikey.php,
	include/help/en/help_alert_type.php,
	include/help/en/help_network_component.php,
	include/help/en/help_time_stamp-comparation.php,
	include/help/en/help_eventview.php, include/help/en/help_timesource.php,
	include/help/en/help_alert_validation.php,
	include/help/en/help_map_builder.php,
	include/help/en/help_alert_recovery.php,
	include/help/en/help_module_type.php,
	include/help/en/help_planned_downtime.php,
	include/help/en/help_serverlag.php, include/help/en/help_alerts.php,
	include/help/en/help_snmpwalk.php,
	include/help/en/help_module_definition.php,
	include/help/en/help_plugin_definition.php,
	include/help/en/help_wminamespace.php, include/help/en/help_snmpoid.php
	include/help/en/help_manageconfig.php,
	include/help/es/help_alert_validation.php,
	include/help/es/help_plugin_parameters.php,
	include/help/es/help_snmpcommunity.php, include/help/es/help_wmiquery.php,
	include/help/es/help_map_builder.php, include/help/es/help_postprocess.php,
	include/help/es/help_date_format.php,
	include/help/es/help_alert_recovery.php,
	include/help/es/help_prediction_source_module.php,
	include/help/es/help_module_type.php,
	include/help/es/help_planned_downtime.php,
	include/help/es/help_alert-matches.php, include/help/es/help_recontask.php,
	include/help/es/help_alerts.php, include/help/es/help_serverlag.php,
	include/help/es/help_snmpwalk.php,
	include/help/es/help_module_definition.php,
	include/help/es/help_tcp_send.php, include/help/es/help_duplicateconfig.php,
	include/help/es/help_wmifield.php, include/help/es/help_manage_alerts.php,
	include/help/es/help_wmikey.php, include/help/es/help_plugin_definition.php,
	include/help/es/help_alert_type.php, include/help/es/help_snmpoid.php,
	include/help/es/help_wminamespace.php,
	include/help/es/help_network_component.php,
	include/help/es/help_time_stamp-comparation.php,
	include/help/es/help_manageconfig.php, include/help/es/help_timesource.php,
	include/config_process.php, include/functions_ui.php, include/htmlawed.php,
	include/functions_custom_graphs.php, include/fgraph.php,
	include/functions_incidents.php, include/functions.php,
	include/functions_agents.php, include/functions_db.php,
	include/functions_themes.php, include/streams.php,
	include/functions_fsgraph.php, include/functions_alerts.php,
	include/functions_reports.php, include/functions_extensions.php,
	include/functions_ui_renders.php: change comments blocks for delete the
	warnings to construct phpDoc Files, give a struct and order in the
	phpDoc files.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1881 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-25 17:39:28 +00:00
slerena 9d3c86bdde 2009-06-08 Sancho Lerena <slerena@artica.es>
* Massive header update.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1738 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-06-08 18:26:14 +00:00
Esteban Sanchez d3019cb494 2009-05-28 Esteban Sanchez <estebans@artica.es>
* install.php: Use server address if the db host is not localhost.
	Fixes #2796790.

	* include/functions_agents.php: Fixed an array cast on
	get_agent_alerts_compound().

	* include/functions_events.php: Critical and warning colors where
	swapped on print_events_table().

	* include/functions_reporting.php: Fixed alerts count on
	get_group_stats() and count combined alerts too. Fixes #2791577

	* operation/agentes/tactical.php: Style corrections.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1719 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-05-28 11:32:12 +00:00
Esteban Sanchez 74c0c25b78 2009-05-04 Esteban Sánchez <estebans@artica.es>
* include/functions_agents.php: Added create_agent(), 
	
	* include/functions_db.php: Renamed dame_agente_id() to get_agent_id ().
	Added process_sql_begin(), process_sql_rollback() and process_sql_commit()
	and use MySQL functions directly because the Pandora cache was avoiding
	more than one execution.

	* include/functions_incidents.php, include/functions_messages.php,
	godmode/agentes/massive_delete_agents.php,
	godmode/agentes/massive_delete_alerts.php,
	godmode/agentes/massive_delete_modules.php,
	godmode/agentes/massive_edit_modules.php,
	godmode/db/db_purge.php,
	include/functions_events.php: Use new transaction functions.
	
	* include/functions_modules.php: Sanitize some values. Added
	create_agent_module_from_network_component(), create_agent_module()
	and get_network_component().
	
	* godmode/agentes/configurar_agente.php: Use get_agent_id() and transaction
	functions.
	
	* reporting/fgraph.php, operation/reporting/reporting_viewer.php: Use
	get_agent_id(). 
	
	* godmode/setup/file_manager.php: Removed unnecesary variable.
	
	* operation/agentes/ver_agente.php: Replaced exit with return on ajax
	operation.
	
	* include/config_process.php: Updated build number.
	
	* include/functions_network_profiles.php: Fixed documentation.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1672 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-05-04 10:10:19 +00:00
guruevi 2b083b7904 2009-04-09 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_reporting.php: Added get_agent_module_info which gives
	valuable information that can be re-used and expanded
	
	* include/functions_events.php, include/functions_ui.php: The chunk_split 
	only works with set width removed for wide css. General cleanup
	
	* include/functions_db.php: get_group_agents allows search now
	
	* include/styles/pandora_width.css, include/styles/pandora.css, 
	include/styles/menu.css: The menu for the agent editor is now even with the
	operation menu and also takes up the whole width
	
	* operation/agentes/tactical.php: Changed for width. Now takes up the wide
	
	* operation/agentes/estado_agente.php: Rewritten. Now outputs variable
	width table and is cleaner

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1606 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-09 21:06:17 +00:00
Esteban Sanchez 4e90c86b1e 2009-03-31 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/module_manager_editor_plugin.php: Added plugin
	components select. Fixes #2707900.

	* godmode/alerts/alert_list.php: Fixed an error when showing agents
	list.

	* include/functions_events.php: Added get_similar_events_ids() to get
	events which are similars (same description and agent module). Renamed
	process_event_delete() and process_event_validate(). Added
	similars flag to both delete_event() an validate_event().

	* include/functions_reporting.php: Added timestamp parameter to select
	statements to fix #2707841.

	* include/functions_ui.php: Added a class to pagination divs.

	* operation/agentes/estado_generalagente.php: Style correction.
	Removed period on agent access graph.

	* operation/agentes/exportdata.php: Fixed many notices by including
	config.php instead of using global. Style corrections.

	* operation/events/events.php: When the events were grouped and
	deleted or validated, only one was being updated. Added AJAX support
	to validate and delete single operations. Style corrections. Fixed
	#2707872

	* reporting/fgraph.php: Many fixes on agent access graph. Fixes
	#2707856

	* reporting/pandora_graph.php: Added a couple of properties to the
	class.

	* reporting/pchart_graph.php: Do not add the grid or axis labels on
	charts if asked. Show no progress bar if value is 0 and a title is
	shown. Style corrections.

	* include/styles/pandora_width.css: Renamed to panoramic theme. Added
	style for event_control element.

	* include/styles/pandora.css: Added style for event_control element.

	* godmode/modules/manage_network_components.php: Fixed table width for
	panoramic theme.

	* ajax.php: Added remote_addr to config array.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1582 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-01 08:04:49 +00:00
Esteban Sanchez 12d47a5547 2009-02-27 Esteban Sanchez <estebans@artica.es>
* godmode/groups/configure_group.php: Removed javascript console.log

	* godmode/reporting/map_builder.php: Fixed typo on file_exists()

	* include/functions.php: Added format_integer_round().

	* include/functions_db.php: Added fields to get_db_row(). Array values
	to make "IN" SQL statements were in wrong function. Added support for
	order in format_array_to_where_clause_sql().

	* include/functions_events.php: Added get_event(). Fixed
	print_event_type_img() which causes double printing in some cases.

	* operation/events/events.php: Added get_event_tooltip AJAX operation.
	Style correction by replacing $row with $event.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1495 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-27 12:48:05 +00:00
Esteban Sanchez ec7b3c558a 2009-02-26 Esteban Sanchez <estebans@artica.es>
* include/functions_events.php: Added get_events() function. Replaced
	"..." with html entity and reuse previously calculated value.

	* include/functions_reporting.php: Fixed get_agent_module_sla() to
	allow no max value to be checked. That was causing some errors on
	monitor reports.

	* operation/agentes/sla_view.php,
	operation/reporting/reporting_xml.php,
	operation/reporting/reporting_viewer.php: Do not use max value on
	monitor SLA.
	
	* operation/events/events.php: Replaced exit for return.

	* include/functions_db.php: Added support for arrays in
	format_array_to_update_sql() that will be transformed to a "IN ()"
	statement.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1489 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-26 15:34:14 +00:00
guruevi e33f20f460 2009-02-20 Evi Vanoost <vanooste@rcbi.rochester.edu>
* pandoradb_migrate_20_to_21.sql, pandoradb.sql: Fixed going up/down
	strings
	
	* godmode/setup/setup.php: Fixed event hours display
	
	* operation/events/events.php: Fixed several major bugs with pagination
	and the new event types.
	
	* include/functions.php, include/functions_ui.php, 
	include/functions_html.php: Moved pagination and print_help_tip to 
	functions_ui.php. Repeat id's are now fixed backwards compatible. 
	Also fixed a bug in print_select where type comparisons against would 
	fail since PHP evaluates strings to (int) 0
	
	* include/functions_events.php: Added print_event_type_img () and altered
	the other functions to work with it

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1471 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-20 21:48:09 +00:00
guruevi 176f33d738 2009-02-13 Evi Vanoost <vanooste@rcbi.rochester.edu>
* general/logon_ok.php: Simplified and added correct ampersand tags
	
	* general/footer.php: Now use print_image function to print image
	
	* general/main_menu.php: Wrapped JS into CDATA
	
	* include/functions_events.php: Use print_image to print images. Use
	multibyte so Farsi/Arabian names don't mess up when cut. Also added
	&shy; tags every 8 characters to the Event Description so that long module
	names (like GigabitEthernet) don't break the table layout.
	
	* include/functions.php: Moved pandora_help to functions_ui.php, return
	valid refresh links and don't double encode safe_input (otherwise &amp;
	gets encoded as &amp;amp;)
	
	* include/functions_ui.php: Added print_help_icon and deprecated 
	pandora_help (new style function naming)
	
	* include/functions_html.php: Partially rewrote print_image for fully
	compatible functionality. Much simplified as well.
	
	* extensions/update_manager.php: Print out correct link and image tag
	
	* operation/agentes/networkmap.php: Is now correct HTML. Should work in
	all compliant browsers. If IE6 still doesn't work, upgrade
	
	* operation/agentes/tactical.php: Use print_image for images.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1456 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-13 20:23:44 +00:00
Esteban Sanchez 1b98e797a2 2009-01-12 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/alert_manager.php: Complete rewritten of the alert
	system when assigned alerts to an agent.

	* pandoradb.sql: New tables for alert system. These are:
	talert_commands, talert_actions, talert_templates,
	talert_template_modules, talert_template_module_actions. No migration
	tool is available yet.

	* godmode/alerts/configure_alert_template.php,
	godmode/alerts/configure_alert_action.php,
	godmode/alerts/alert_templates.php,
	godmode/alerts/configure_alert_command.php,
	godmode/alerts/alert_actions.php: Added to repository. Administration
	interface to new alert system.

	* godmode/alerts/modify_alert.php: Deleted from repository.

	* godmode/setup/setup.php: Added an example of the date format. Main
	table has now percentage width.

	* godmode/menu.php, operation/menu.php: Added new alert options.
	Removed refr value when it's not neccesary.

	* include/styles/pandora.css: Added width to textarea elements. Style
	correction and cleanup. Tables doesn't have a odd-even pattern, but
	the hovered row now changes its colour. New styles for alert pages.

	* include/functions_custom_graphs.php: Added to repository. custom
	graphs functions moved here.

	* include/functions_incidents.php, include/functions_events.php: Moved
	to LGPL. Style comment corrections.

	* include/functions_html.php: Documentation style correction. Added
	print_input_file() and print_label().

	* include/functions_ui.php: Doc style correction.

	* operation/reporting/graph_viewer.php: Include new function file with
	custom graphs. Use generic functions.

	* index.php: Unset pass from POST and REQUEST arrays.
	
	* include/functions_db.php: Some documentation updated to new format.
	Added format_array_to_update_sql() to generate SQL sentences for
	updates. Style correction.

	* godmode/agentes/configurar_agente.php: Variables renamed to have a
	meaning.

	* extensions/update_manager/main.php: Mark an string translatable.

	* extensions/update_manager/lib/libupdate_manager_client.php,
	godmode/alerts/configure_alert.php, include/functions.php,
	godmode/agentes/module_manager.php, operation/agentes/networkmap.php,
	operation/reporting/reporting_viewer.php, 
	godmode/agentes/manage_config.php: Style correction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 14:31:01 +00:00
guruevi c385a6b0cc 2009-01-08 Evi Vanoost <vanooste@rcbi.rochester.edu>
* general/footer.php: Made image link relative. It wasn't working for me.
	
	* include/functions.php, include/functions_exportserver.php,
	include/functions_incidents.php, include/functions_visual_map.php, 
	include/functions_db.php, include/functions_extensions.php,
	include/functions_reporting.php, include/functions_events.php,
	include/functions_html.php, include/functions_ui.php: 
	Updated documentation to adhere to PHPDoc and parses without errors
	
	* include/functions.php: Removed unsafe_string function (magic_quotes)
	Made pagination possible to return instead of print
	
	* include/functions_db.php: Removed give_modulecategory_name 
	(Module types etc. are now in database). Was unused.
	
	* reporting/fgraph.php: Removed unsafe_string usage

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1323 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-08 15:52:13 +00:00
guruevi 05a5a32235 2008-12-16 Evi Vanoost <vanooste@rcbi.rochester.edu>
* general/logon_ok.php, godmode/agentes/modificar_agente.php, 
	godmode/agentes/planned_downtime.php, 
	godmode/agentes/manage_recontask.php, godmode/setup/news.php, 
	operation/agentes/datos_agente.php, operation/agentes/estado_agente.php,
	operation/agentes/status_events.php, operation/agentes/tactical.php, 
	operation/events/events.php, operation/incidents/incidents.php,
	operation/incidents/incident_detail.php, operation/messages/message.php:
	Function updates and new function definitions
	
	* include/functions.php: safe_input used utf_decode which gives problems
	with foreign chars since everything else is (or should be UTF-8) fixed.
	format_datetime is no longer necessary - use print_timestamp for output.
	Extended multibyte wrapper functions.
	
	* include/functions_db.php: give_server_name is now get_server_name; 
	dame_so_name is now get_os_name; dame_so_icon is now print_os_icon;
	show_icon_group is now print_group_icon; give_network_profile_name is now
	get_networkprofile_name; smal_event_table is now print_events_table
	
	* include/functions_events.php: print_events_table was moved here and 
	fixed. Now calculates the cutoff of event and agent text.
	
	* include/functions_html.php: Added title to print_table function and 
	updated documentation. print_timestamp now uses the new function 
	definitions (array) and handles 0-dates better. print_group_icon and 
	print_os_icon added and extended. Added print_agent_name. This function 
	fixes issues that show up when cutting off agent names with multibyte char
	
	* operation/servers/view_server.php: Rewrite with new functions

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1295 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-17 14:26:42 +00:00
guruevi adc80c1247 2008-12-10 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions.php: format_for_graph is now much simpler and uses 
	format_numeric.
	
	* include/functions_db.php: give_note_author, give_incident_author, 
	dame_numero_notas, borrar_incidencia, event_insert and 
	return_event_description are now in their respective functions_*.php files
	but under a new name. Fixed delete_agent transaction error detection
	
	* include/functions_events.php: Added get_event_description and
	create_event (formerly return_event_description and event_insert)
	
	* include/functions_html.php: print_timestamp attributes should be default
	empty, not required. Added print_username for a consistent username print
	
	* operation/agentes/ver_agente.php: Function renaming (create_event)
	
	* operation/incidents/incident.php: Partial rewrite. Uses new functions. 
	Also added some of feature request #2264838
	
	* operation/incidents/incident_detail.php: Partial rewrite. Uses new 
	functions. Added some of feature request #2264838 functionality.
	
	* operation/incidents/incident_search.php, 
	operation/incidents/incident_statistics.php: Minor style update
	
	* pandoradb.sql: New tincidencia and tnota layout. No use for tnota_inc
	
	* include/functions_incidents.php: All incidents functions. Documentation
	will be online soon. Also includes an upgrade mechanism for SVN users. 
	Mechanism should be removed for a stable version and integrated into 
	install/upgrade tool.

	* lib/PandoraFMS/DB.pm: New table layout doesn't require timestamp anymore

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1285 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-10 20:15:38 +00:00
guruevi 34ca6bff42 2008-11-14 Evi Vanoost <vanooste@rcbi.rochester.edu>
* operation/incidents/incident_detail.php, incident.php: Update ACL's
        to reflect IR rights instead of default AR

        * operation/events/events.php: Updated style and html for new
        functions. Fixes Bug #2267593

        * index.php: Put REMOTE_ADDR in $config as well. It's easier to
        globalize in functions.

        * include/functions_reporting.php: Updated event_reporting to accept
        any type of date. Style update. get_group_stats didn't need global

        * include/functions_html.php: Updated print_table documentation with
        pre-existing $table->id. Also added $table->headclass[] for classes
        in headers

        * include/functions_events.php: New-style function file to aggregate
        events functions.

        * include/functions_db.php: gime_idgroup_from_idevent is now in
        functions_events.php as get_events_group. Renamed get_events_in_group
        to get_group_events return_priority is now get_priority_name

        * include/functions.php: Added safe_int function to clean up and remove
        non-ints from either single values or arrays of values. Also has min
        and max limiters. Added $pagination in lieu of $config["block_size"]
        to pagination function. That way larger block sizes (eg in events)
        will display correctly. Added strtotime on format_datetime

        * godmode/db/db_event.php: After an ACL error, it's better to exit


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1244 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-14 15:37:32 +00:00