Commit Graph

107 Commits

Author SHA1 Message Date
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
juanmanuelr 061409633f 2011-03-02 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_ui.php: Added missing variable initialization in function
	process_page_head. 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4051 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-02 16:28:07 +00:00
juanmanuelr 830742c25d 2011-03-01 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/ajax/skins.ajax.php: Replaced "give_acl" function call to 
	"check_acl". 
	* include/config_process.php: "block_size" and "flash_charts" user options
	override global options.
	* include/functions_ui.php: If user has assigned a skin then use skins's 
	css files if it's possible.
	* include/functions_db.php: Added missing function get_profile_filter.
	* include/functions_themes.php: New parameter "path" in order to list all
	css files of an specific path.
	* index.php: Added functions_themes.php include statement.
	* operation/users/user_edit.php
	godmode/users/configure_user.php: Added new user options: "skin", "block_size" 
	and "flash_charts". 
	* godmode/setup/setup_visuals.php: Removed "custom_logo" options in setup for
	pandora enterprise version. 




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4038 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-01 15:47:48 +00:00
Ramon Novoa 6e16725b57 2011-02-23 Ramon Novoa <rnovoa@artica.es>
* include/functions_ui.php: Call safe_output instead of
	  safe_output_html.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3991 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-23 10:26:56 +00:00
juanmanuelr 11098a76f8 2011-02-21 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* functions_ui.php: Fixed a graphical error displaying action list.

	Fixes: #3182502 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3966 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-21 18:38:36 +00:00
juanmanuelr 5c59fa4ae0 2011-02-03 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
*     include/functions_menu.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/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/es/modu_group_list.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.php
	      include/functions_db.php
	      include/functions_fsgraph.php
	      operation/incidents/incident_detail.php
	      operation/agentes/status_monitor.php
	      operation/agentes/estado_ultimopaquete.php
	      operation/agentes/alerts_status.php
	      operation/agentes/estado_generalagente.php
	      operation/agentes/estado_agente.php
	      operation/agentes/estado_monitores.php
	      operation/agentes/ver_agente.php
	      operation/agentes/group_view.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/sound_events.php
	      operation/search_alerts.php
	      operation/reporting/reporting_viewer.php
	      operation/reporting/custom_reporting.php
	      operation/search_reports.php
	      operation/search_users.php
	      general/pandora_help.php
	      general/noaccess.php
	      general/ui/agents_list.php
	      general/header.php
	      godmode/groups/modu_group_list.php
	      godmode/groups/configure_group.php
	      godmode/groups/group_list.php
	      godmode/extensions.php
	      godmode/db/db_sanity.php
	      godmode/db/db_info.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.php
	      godmode/agentes/modificar_agente.php
	      godmode/agentes/planned_downtime.php
	      godmode/agentes/agent_manager.php
	      godmode/servers/recon_script.php
	      godmode/servers/plugin.php
	      godmode/servers/manage_recontask.php
	      godmode/alerts/alert_list.list.php
	      godmode/alerts/configure_alert_compound.php
	      godmode/alerts/alert_compounds.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/os.list.php
	      godmode/setup/news.php
	      godmode/setup/links.php
	      godmode/setup/setup.php
	      godmode/users/user_list.php
	      godmode/gis_maps/configure_gis_map.php
	      godmode/massive/massive_add_alerts.php
	      godmode/massive/massive_delete_agents.php
	      godmode/massive/massive_enable_disable_alerts.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/module_list.php
	      godmode/modules/manage_network_templates_form.php
	      godmode/reporting/reporting_builder.list_items.php
	      godmode/reporting/reporting_builder.preview.php
	      godmode/reporting/visual_console_builder.elements.php
	      godmode/reporting/graph_builder.graph_editor.php
	      godmode/reporting/reporting_builder.item_editor.php
	      godmode/reporting/graphs.php: Changed the way of print images from "<src=.." 
	html tag to print_image function.

	* include/functions_ui.php
	  mobile/operation/agents/view_agents.php: print_group_icon2 function renamed to print_group_icon_with_path




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3800 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-04 13:30:50 +00:00
mdtrooper 7c6b945524 2011-01-19 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/module_manager.php: added to call to enterprise functions
	to delete "pseudo code" of local module when delete in multiple delete
	action.
	
	Fixes: #3161621

	* include/functions_filemanager.php: cleaned source code old unused
	comments.
	
	* include/functions_ui.php: in function "printTruncateText" fixed when pass
	0 character to trunk, now return all text. And in function
	"print_agent_name" cleaned source code style.
	
	* operation/agentes/estado_agente.php: fixed order of params in the call
	of function "print_agent_name".



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3751 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-01-20 13:47:27 +00:00
javilanz e3b13ee1c2 2010-01-17 Javier Lanz <javier.lanz@artica.es>
* trunk/pandora_console/include/functions_ui.php: Fixed an error in print_agent_name
	* trunk/pandora_console/extensions/module_groups.php: Fixed extension, now works properly. Fix #3160077
	* trunk/pandora_console/operation/agentes/estado_generalagente.php: Truncated agent & module names
	* trunk/pandora_console/godmode/reporting/visual_console_builder.elements.php: Fixed table style


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3747 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-01-17 17:03:38 +00:00
javilanz ab5b664f07 2010-01-14 Javier Lanz <javier.lanz@artica.es>
* trunk/pandora_console/include/functions_html.php: print_select function edited to deal with long fields.
	* trunk/pandora_console/include/functions_ui.php: printTruncateText function edited to truncate in the middle of the word.
	* trunk/pandora_console/pandoradb.sql: changed type for field "nombre" in "tgrupo" table.
	* trunk/pandora_console/pandora_console_install: added support for Fedora. Thanks to philipmbrown.
	* trunk/pandora_console/extensions/agents_modules.php: truncated text to 19 characters showing agent names
	* trunk/pandora_console/operation/agentes/group_view.php: Truncated group name to deal with long fields.
	* trunk/pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql: changed type for field "nombre" in "tgrupo" table.
	* trunk/pandora_console/godmode/groups/group_list.php: Truncated group name to deal with long fields.
	* trunk/pandora_console/godmode/agentes/modificar_agente.php: truncated agent names to deal with long fields.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3744 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-01-14 12:33:31 +00:00
mdtrooper 78f0f2bef8 2010-11-23 Miguel de Dios <miguel.dedios@artica.es>
* operation/gis_maps/render_view.php: cleaned source code style.
	
	* include/functions_ui.php: fixed in the function
	"print_page_header" the check if the option is a separator that it
	was true when the key was zero.
	
	Fixes: #3115621



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3621 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-23 12:38:08 +00:00
raulmateos 4032cdbedd 2010-11-11 Raúl Mateos <raulofpandora@gmail.com>
* general/error_install.php, general/error_perms.php, general/header.php,
	general/logon_menu.php, general/logon_ok.php, include/functions_menu.php, 
	include/functions_ui.php, extensions/agents_modules.php, 
	operation/menu.php, godmode/menu.php, operation/estado_agente.php,
	operation/agentes/estado_agente.php, operation/agentes/status_monitor.php,
	operation/agentes/estado_monitores.php,
	operation/agentes/estado_ultimopaquete.php,
	operation/agentes/estado_generalagente.php, pandoradb_data.sql: Closed
	some HTML tags, autoclose others, added alt to images, and changed some 
	& to "&amp;" to help validation for XHTML 1.0 Transitional. Tested and
	not error found, but needs more tests...

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3572 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-11 11:16:09 +00:00
Ramon Novoa 97ef472bee 2010-11-04 Ramon Novoa <rnovoa@artica.es>
* include/functions_ui.php: Check that the alert has a 'standby' column
	  (compound alerts don't have it).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3530 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-04 18:31:37 +00:00
mdtrooper 0da8f29e9e 2010-11-03 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_html.php: added the function
	"print_autocomplete_modules". This function is same to magic-select box for
	agents instead this for modules.
	
	* include/javascript/jquery.ui.datepicker.js,
	include/javascript/jquery.ui.droppable.js: fixed end of lines that it
	haven't semicolon end char.
	
	* include/ajax/module.php: fix version of file that responds to ajax
	request for the magic-select box for modules.
	
	* include/functions_ui.php: in function "format_alert_row" use new call
	for the "isAlertInPolicy2".
	
	* include/functions_db.php: added in function "get_agent_modules" for the
	parameter $filter, the posibility to search with the "like" mysql operator.
	
	* images/lightning_blue.png: blue lighting for new magic-select box agents.
	
	* godmode/agentes/configurar_agente.php: cleaned source code style.
	
	* godmode/alerts/alert_list.list.php:  use new call for the
	"isAlertInPolicy2". And fixed the column align for policies and actions.
	
	* godmode/reporting/reporting_builder.list_items.php: erased old source
	code lines comments.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3509 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-03 17:45:39 +00:00
zarzuelo 9d065a5489 2010-10-28 Sergio Martin <sergio.martin@artica.es>
* include/functions_io.php
	include/functions_ui.php: Fixed the html setting in the header 
	for the dashboard bug 3094692 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3475 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-28 11:06:30 +00:00
mdtrooper 1fbffe56b5 2010-10-21 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_config.php: added check tconfig parameter
	"can_block_policies" in functions.
	
	Pending task: #3080762
	
	* operation/agentes/ver_agente.php: added hook enterprise the tab policy.
	
	Pending task: #3080762

	* include/functions_ui.php, operation/agentes/estado_monitores.php: cleaned
	source code style.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3442 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-21 15:06:53 +00:00
zarzuelo e70f434eb7 2010-10-14 Sergio Martin <sergio.martin@artica.es>
* include/functions_html.php
	include/functions_io.php
	include/functions_ui.php
	godmode/agentes/module_manager.php: Created a new safe input
	function more soft than safe_input() for html code. Applied this
	function (safe_input_html()) in few functions like print_image
	or print_page_header.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3399 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-14 12:27:09 +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
mdtrooper b135a111d6 2010-09-15 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_reporting.php: in function "get_agent_module_info" added
	the return "status" and "alert_value".
	
	* include/auth/mysql.php: in function "process_user_login" cleaned the
	source code style.

	* include/functions_ui.php: in function "print_timestamp" added in the
	parameter $option the check of units ('large' and 'tiny' at the moment).
	Added the function "print_group_icon2" that it is the same of
	"print_group_icon" but it has a new parameter $path for to set the images
	path.
	
	* include/functions.php: in function "human_time_comparation" added the
	parameter $units to set the type return text for time unit (at the moment
	only "large" and "tiny"). And in the function "human_time_description_raw"
	added the paramter $units for to set the type of return text for units, at
	the moment only "large" and "tiny".
	
	* include/functions_db.php, operation/agentes/ver_agente.php: cleaned source
	code.
	
	* mobile/index.php, mobile/operation/agents,
	mobile/operation/agents/view_agents.php, mobile/include/db.class.php,
	mobile/include/style, mobile/include/style/main.css,
	mobile/include/user.class.php, mobile/include/functions_web.php,
	mobile/include/system.class.php, mobile/images/bricks.png,
	mobile/images/up.png, mobile/images/zoom.png, mobile/images/down.png: added
	first version of file for Pandora Mobile version.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3246 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-09-15 15:54:59 +00:00
mdtrooper cbd9bc2d75 2010-09-09 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_networkmap.php: cleaned source code.
	
	* include/functions_ui.php: in function "print_os_icon" change the
	directory to search os icon because it change for new feature.
	
	* images/os_icons, images/os_icons/*: copied the icons image files into this
	dir for to use in new feature.
	
	* godmode/menu.php: added new item in submenu "Setup" for the management
	the OS.
	
	* godmode/setup/os.php: added the page to management the list OS of agents.
	
	Pending task: #3057663



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3234 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-09-09 12:19:11 +00:00
zarzuelo 9c418c436e 2010-08-23 Sergio Martin <sergio.martin@artica.es>
* include/functions_ui.php: Fixed the not hidden by
	default of the div in the toggle function



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3173 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-08-23 16:43:32 +00:00
zarzuelo 8b468fa551 2010-08-23 Sergio Martin <sergio.martin@artica.es>
* include/functions_ui.php: Added a function to toggle
	an html code easly. The function is called toggle()



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3172 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-08-23 16:35:25 +00:00
slerena 555f05848a 2010-08-18 Sancho Lerena <slerena@artica.es>
* include/functions_io.php: safe_input() modified to detect SQL injection
    attacks using /**/ strings.

    * index.php: Prevent HTTP response splitting attacks.

    * pandora_console.spec: Updated some spec variables and description.

    * pandoradb.sql,
    extras/pandoradb_migrate_v3.1_to_v3.2.sql: Added a new field in trecon_task
    to store the snmp_community on detected hosts in a recon task.

    * extras/pandora_diag.php: Fixed security problem in relative path.

    * general/pandora_help.php, 
    general/footer.php: Fixed security problem in relative path/include.

    * general/login_page.php: Fixed security problem in URL parsing.

    * godmode/servers/manage_recontask_form.php, 
    manage_recontask.php: Implemented new feature to use a snmp comunity on all
    network modules added to a new detected host.

    * config_process.php: Updated build.

    * functions.php: New version of safe_url_extraclean() function (security fix)
    and modified also enterprise_include* functions to have a secure include.

    * functions_ui.php: Secured function get_include_contents().

    * operation/agentes/gis_view.php: Secured url extraction/parsing.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3150 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-08-18 11:35:42 +00:00
zarzuelo e50146d424 2010-08-12 Sergio Martin <sergio.martin@artica.es>
* include/functions_ui.php: Improved the function print_status_image
	to allow an additional parameter for send it image options like
	style, width...



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3134 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-08-12 15:26:11 +00:00
zarzuelo 67dffe5a70 2010-08-04 Sergio Martin <sergio.martin@artica.es>
* include/styles/pandora.css
	include/functions_reporting.php
	include/functions_ui.php
	include/functions_db.php
	operation/agentes/status_monitor.php
	operation/agentes/estado_agente.php
	operation/agentes/bulbs.php
	operation/agentes/estado_monitores.php
	operation/agentes/group_view.php
	images/status_sets/default/module_no_data.png
	images/status_sets/default/alert_fired.png
	images/status_sets/default/agent_no_monitors.png
	images/status_sets/default/alert_fired_ball.png
	images/status_sets/default/agent_no_monitors_ball.png
	images/status_sets/default/agent_down_ball.png
	images/status_sets/default/agent_down.png: Fixed several modules
	and agents list status to use the new unknown status. Some images was
	changed too for show the same colour than the visual and network maps



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3091 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-08-04 11:08:16 +00:00
darode 89466842f6 2010-07-26 Dario Rodriguez <dario.rodriguez@integria.es>
* include/styles/pandora.css: Added css classes for separator.
	* include/functions_ui.php: Added suport to add a separator betwenn tabs
	in print_page_header.
	* operation/agentes/ver_agente.php: Fixed some problems with alt tag in
	images and added separator to tabs
	* godmode/agentes/configurar_agente.php: Fixed some problems with alt tag
	in images and added separator to tabs



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3059 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-07-26 11:08:59 +00:00
zarzuelo 7ddc24b32c 2010-06-25 Sergio Martin <sergio.martin@artica.es>
* include/functions_ui.php: Adding a parameter to
	printTruncateText to personalize the suffix string
	of a truncate string



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2927 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-06-25 08:12:25 +00:00
zarzuelo e625bc73a4 2010-06-25 Sergio Martin <sergio.martin@artica.es>
* include/functions_ui.php: Changed substr() to
        mb_strimwidth() into printTruncateText function



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2926 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-06-25 07:58:39 +00:00
zarzuelo a455988c09 2010-06-01 Sergio Martin <sergio.martin@artica.es>
* include/functions_ui.php: Fixed the group
	icon size to 16x16 pixels by default.
	Bug: 3008508



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2831 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-06-01 13:22:24 +00:00
zarzuelo 3b989805d0 2010-05-13 Sergio Martin <sergio.martin@artica.es>
* include/functions_ui.php: Fixed negative timestamp 
	for bug: 2926876



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2718 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-13 14:45:52 +00:00
zarzuelo 922a1d925f 2010-04-30 Sergio Martin <sergio.martin@artica.es>
* include/functions_ui.php: Fixed the access at the
	groups without icon. bug: 2944540 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2648 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-04-30 11:41:43 +00:00
zarzuelo bdcfd8fbe2 2010-04-30 Sergio Martin <sergio.martin@artica.es>
* include/functions_ui.php: Improved the printTruncateText
	function adding the parameter showTextInTitle



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2645 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-04-30 11:07:26 +00:00
mdtrooper 1e38d5307c 2010-04-29 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_ui.php: added the function "printTruncateText" for
	facilitate trunc texts, and add the eye candy the tooltip.

	* godmode/reporting/reporting_builder.list_items.php: used the new function
	"printTruncateText".



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2640 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-04-29 15:39:19 +00:00
zarzuelo d9088a6eb4 2010-04-22 Sergio Martin <sergio.martin@artica.es>
* include/functions_ui.php
       include/functions_agents.php
       include/functions_db.php: Change the way of validate
        the All group. Now the group All has id_group = 0
        and is not on the database

       * extensions/module_groups.php: Remove the All 
        group row from the table. Inprove the table style

       * operation/agentes/status_monitor.php
       operation/agentes/alerts_status.php
       operation/agentes/estado_agente.php
       operation/agentes/exportdata.php
       operation/agentes/networkmap.php 
       godmode/agentes/modificar_agente.php
       godmode/agentes/planned_downtime.php: Changed the
        All group on combos from 1 to 0



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2588 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-04-22 16:51:23 +00:00
mdtrooper 7dc7c09635 2010-04-05 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_ui.php: changed some parts of source code in the
	functions "format_alert_row" for show column modules in general view. In the
	function "pagination" added the parameter $offset_name with default value
	'offset' for to use several paginations in one page.

	* include/functions_agents.php: added the parameters $limit, $idGroup,
	$count in the function "get_agent_alerts_simple", and now you can limit the
	rows, search by id group and return the count of rows (without limit). And
	in the function "get_agent_alerts_compound" added the same parameters to
	another function $idGroup, $limit, $count for similar uses.

	* operation/agentes/alerts_status.php: cleaned more parts of source code,
	fixed the mad array_merge of alerts, fixed SQL with the searchs IN
	(large large list ids), fixed the pagination before loop all rows, now
	only loop the block page rows.

	* operation/agentes/alerts_status.functions.php: new file with the functions
	"forceExecution", "validateAlert", and "printFormFilterAlert".



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2542 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-04-06 12:46:34 +00:00
mdtrooper 4aff5411df 2010-03-17 Miguel de Dios <miguel.dedios@artica.es>
* include/config_process.php, install.php: change version number.
	* include/functions_ui.php: add in the function "print_page_header" a
	read boolean item "active" in array $buttons for paint disabled.
	* include/functions.php: add function "get_parameterBetweenListValues" this
	function get a parameter for a GET or POST but between a values.
	* godmode/reporting/visual_console_builder.php: added new editors for visual
	console, now it is developing, don't afray.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2511 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-03-17 19:07:49 +00:00
slerena 608291f137 2010-03-11 Snacho Lerena <slerena@artica.es>
* include/help/en/check_other_languages.sh: Small script to show 
        help files not translated.

        * include/functions_ui.php: Fixed call to undefined variable.

        * godmode/setup/setup.php: Small box for textarea.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2505 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-03-11 18:52:42 +00:00
slerena 6022740c10 2010-03-02 Sancho Leren <slerena@artica.es>
* include/functions_ui.php: Fixes default icon for operation
	mode in the title.

	* operation/incidents/incident.php
	operation/incidents/incident_detail.php
	operation/incidents/incident_statistics.php
	operation/snmpconsole/snmp_view.php
	operation/users/user.php
	operation/users/user_edit.php
	operation/users/user_statistics.php
	operation/events/event_statistics.php
	operation/events/export_csv.php
	operation/events/events_marquee.php
	operation/events/events.php
	operation/agentes/export_csv.php
	operation/agentes/datos_agente.php
	operation/agentes/estado_ultimopaquete.php
	operation/agentes/estado_generalagente.php
	operation/agentes/estado_agente.php
	operation/agentes/sla_view.php
	operation/agentes/gis_view.php
	operation/agentes/ver_agente.php
	operation/agentes/tactical.php
	operation/agentes/group_view.php
	operation/agentes/networkmap.php
	operation/messages/message.php
	operation/reporting/reporting_viewer.php
	operation/servers/view_server.php
	operation/servers/view_server_detail.php
	operation/search_results.php
	godmode/groups/configure_group.php
	godmode/groups/group_list.php
	godmode/agentes/agent_manager.php
	godmode/alerts/alert_list.php: Fixes with include(Config.php) in
	enterprise mode.:

	* general/header.php: Detection of Metaconsole to show less options.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2452 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-03-02 19:25:51 +00:00
slerena d7274f2288 2010-03-02 Sancho Lerena <slerena@artica.es>
* include/functions_reporting.php: Solved issue with several undefined
	vars.

	* include/functions_servers.php: Solved issue with several undefined
	vars. 

	* include/functions_config.php: Added metaconsola witch to readconfig.

	* include/config_process.php: Update build.. is YYMMDD !

	* include/functions_ui.php: Removed deprecated call to split and replaced
	by preg_split.

	* index.php: Activated developer mode.

	* operation/agentes/estado_monitores.php: Solved small problem with modules
	without history, filling missing column in table. Added headers

	* godmode/alerts/configure_alert_compound.php,
	operation/agentes/status_monitor.php
	godmode/alerts/configure_alert_template.php,
	godmode/alerts/alert_templates.php,
	godmode/alerts/configure_alert_action.php,
	godmode/alerts/configure_alert_command.php,
	godmode/alerts/alert_actions.php,
	godmode/alerts/alert_commands.php,
	godmode/modules/manage_network_templates.php,
	godmode/modules/module_list.php,
	godmode/modules/manage_network_components.php,
	godmode/modules/manage_nc_groups.php: Removed deprecated call to include
	config.php and in some cases, added new header style.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2444 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-03-02 14:13:00 +00:00
slerena 9c8b33b3d9 2010-02-25 Sancho Lerena <slerena@artica.es>
* include/functions_ui.php: Alert information now show the default
	actions properly,and the action conditions (max/min).

	* include/functions_alerts.php: Added support on get_alert_templates_types
	for new alert type "onchange".

	* pandoradb.sql,
	extras/pandoradb_migrate_v3.0_to_v3.1.sql: Added new support for alert
	type "onchange".

	* godmode/alerts/alert_list.php: Alert information now shows the default
	action (if exist) and have a link to edit the template directly from here.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2425 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-25 18:48:36 +00:00
mdtrooper 132ab90b41 2010-02-23 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: in function "activateAjaxRefresh" add the
	posibility to change refresh time in execution time.
	
	* include/functions_ui.php: add in the "print_page_header" the feature to
	pass a array of buttons/items.

	* include/javascript/openlayers.pandora.js: add the function
	"changeRefreshTime" for change the refresh time.

	* operation/gis_maps/render_view.php: change the top of page for to
	adapt the new header, and add refresh control.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2408 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-23 16:36:24 +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
mdtrooper 00774405de 2010-02-10 Miguel de Dios <miguel.dedios@artica.es>
* include/styles/pandora.css: add lost style for disable button.
	
	* include/functions_gis.php: fix the function "getAgentMap" now back run.

	* include/functions_ui.php: clean source code.
	
	* operation/agentes/ver_agente.php: add require javascript
	openlayers.pandora.js.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2336 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-10 10:16:51 +00:00
mdtrooper a4c4773bba 2009-12-24 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_ui.php: fix bug that show SQL error message and don't
	show the actions for compound alerts.
	* include/functions_alerts.php: in function "get_alert_agent_module_actions"
	add the parameter compound for search compound actions.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2241 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-24 15:57:09 +00:00
mdtrooper 8e786e3604 2009-11-30 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_ui.php: show the deault action with other style.
	Fixes: 2905966



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2146 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-11-30 15:42:57 +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 ea16c6757e 2009-11-25 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_ui.php: fix the bug in the pagination that write wrong
	the url of pages.
	Fixes: 2903774



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2134 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-11-25 15:18:50 +00:00
mdtrooper e5a1a06f6a 2009-11-25 Miguel de Dios <miguel.dedios@artica.es>
* index.php: clean source code, the blank end line in the end of document
	and show in the browser too.
	* include/functions_ui.php, operation/agentes/alerts_status.php: add new
	colummn, the action column that it show the actions of alert.
	* godmode/alerts/alert_templates.php: add the 'Time threshold' in the
	tooltip.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2130 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-11-25 11:00:59 +00:00
mdtrooper 006a81ff3f 2009-11-25 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_io.php, include/functions.php: change and add functions
	for manage the input output with correct encoding and decoding.

	*include/functions_html.php, include/functions_ui.php,
	operation/agentes/status_monitor.php,
	operation/agentes/estado_ultimopaquete.php,
	operation/agentes/estado_monitores.php: change the function "salida_limpia"
	for "safe_output" and other changes.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2128 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-11-25 09:12:42 +00:00
mdtrooper 7843cac20b 2009-10-21 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_ui.php: add param "style" in the function
	"print_agent_name" for set the css style in the agent name return html
	string.
	Add in the "format_alert_row" the features: show icon policy from
	enterprise and css grey disabled alert.
	*include/functions_agents.php: add in the function "get_agent_alerts_simple"
	and the function "get_agent_alerts_compound" the search "filter" param
	posibility "all_enabled".
	* operation/agentes/alerts_status, godmode/alerts/alert_list.php: add the
	show rows of disabled alert, and add the select the "all (enabled)" (by
	default show only alerts enabled). And add the icon of policy in the
	enterprise version.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2048 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-10-21 20:25:26 +00:00
Ramon Novoa 45f2fea29b 2009-10-08 Ramon Novoa <rnovoa@artica.es>
* include/functions_ui.php,
          include/functions_incidents.php,
          operation/incidents/incident_detail.php: Security related fixes.
          Thanks to ~finalbeta and ~remove from the Global-Evolution Security
          Group.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2012 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-10-08 14:25:37 +00:00