Commit Graph

697 Commits

Author SHA1 Message Date
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
Ramon Novoa 80e6fb75f1 2009-01-08 Ramon Novoa <rnovoa@artica.es>
* include/functions.php,
          pandoradb.sql,
          operation/agentes/estado_alertas.php,
          operation/agentes/estado_monitores.php,
          operation/agentes/ver_agente.php: Added support for forced alert
          execution.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1322 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-08 11:53:14 +00:00
guruevi d95cc86e82 2009-01-07 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions.php: Removed safe_sql_string. Cleaned documenation so
	it would be parsed without errors by phpdoc
	
	* include/functions_exportserver.php: Aggregate all exportserver functions
	here.
	
	* include/functions_db.php: Cleaned up documentation. Added 
	get_modulegroups and get_modulegroup_name.
	
	* godmode/db/db_refine.php: Fixed the selection box.

	* godmode/agentes/agent_disk_conf_editor.php: Added todo. Don't handle 
	the footer anymore
	
	* godmode/agentes/agent_template.php, 
	godmode/agentes/module_manager_editor_plugin.php,
	godmode/agentes/module_manager_editor_wmi.php, 
	godmode/agentes/module_manager_editor.php,
	godmode/agentes/module_manager_editor_data.php,
	godmode/agentes/alert_manager_editor.php,
	godmode/agentes/module_manager_editor_network.php, 
	godmode/agentes/module_manager.php, godmode/agentes/agent_manager.php,
	godmode/agentes/alert_manager.php: 
	Removed the ACL part since it was redundant due to the inclusion. 
	Just made sure that it was included (checking on $id_agente)
	
	* godmode/agentes/manage_config.php,
	godmode/agentes/manage_config_remote.php,
	godmode/agentes/planned_downtime.php: Style fix
	
	* godmode/agentes/configurar_agente.php
	godmode/agentes/module_manager_editor_prediction.php: Fixed prediction 
	module creation/update bugs
	
	* godmode/setup/links.php: No more relying on antique (PHP4) functions

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1321 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-07 15:57:33 +00:00
Esteban Sanchez fa69ce621b 2009-01-07 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/modificar_agente.php: Old functions replace with new
	ones. Removed one indentation level when there's no access rights.
	
	* include/functions_ui.php: Wrong variable was being used in
	print_group_icon() to store the output and an incosistent behaviour
	was happening.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1320 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-07 10:49:42 +00:00
Esteban Sanchez 976278eec0 2009-01-07 Esteban Sanchez <estebans@artica.es>
* include/functions_ui.php: Added to repository. Functions that prints
	UI elements for Pandora. Let's make functions_html.php a single HTML
	library instead of mixing it up with Pandora specific elements.

	* include/functions.php: Fixed inline doc. Added functions_ui.php.

	* include/functions_html.php: Functions moved to functions_ui.php.
	Fixed checkbox ids in print_checkbox_extended().

	* general/main_menu.php: Make refr attribute optional. Do not print
	class attribut tag if no class was given.

	* general/login_page.php: Show login error message if login fails.
	Put POST values into the form instead of the URL.

	* index.php: Cleaned up login code to become easier.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1319 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-07 10:42:38 +00:00
raulmateos 353c861ea8 2009-01-06 Raul Mateos <raulofpandora@gmail.com>
* Files were forgotten :-D

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1318 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-06 13:22:11 +00:00
raulmateos 00e1bea1be 2009-01-06 Raul Mateos <raulofpandora@gmail.com>
* index.php: Updated build.
	* general/footer.php: Fixed small issue, thanks to Jure Pečar for
	reporting.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1317 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-06 13:21:32 +00:00
guruevi 22c0ec25da 2009-01-05 Evi Vanoost <vanooste@rcbi.rochester.edu>
* godmode/agentes/alert_manager_editor.php, 
	godmode/snmpconsole/snmp_alert.php, include/functions_reporting.php,
	include/functions_reporting.php:
	Function updates
	
	* include/functions.php: show_alert_show_view is now format_alert_row
	
	* include/functions_db.php: get_simple_alerts_in_agent is now 
	get_agent_alerts_simple; get_combined_alerts_in_agent is now 
	get_agent_alerts_combined; get_alerts_in_agent is now get_agent_alerts;
	dame_nombre_alerta is now get_alert_type; get_alerts_in_group is now
	get_group_alerts; dame_id_grupo set to deprecated; Added 
	process_alerts_validate to validate alerts passed to it.
	
	* index.php: Set UTF-8 encoding standard for multibyte functions
	
	* operation/agentes/estado_alertas.php: Rewritten
	
	* operation/agentes/ver_agente.php: Put alert validation in a function

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1316 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-05 18:41:14 +00:00
jorgonzalez 34c0b35eee 2009-01-05 Jorge Gonzalez <jorgegonz@artica.es>
* include/languages/es.po, include/languages/es.mo: Updated Spanish 
          translation.

        * include/languages/index.pot: Updated po template. 
 


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1314 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-05 08:13:31 +00:00
jorgonzalez fa63bc22f7 2008-12-29 Jorge Gonzalez <jorgegonz@artica.es>
* include/languages/es.po, include/languages/es.mo: Updated Spanish 
          translation.

        * include/languages/index.pot: Updated po template.                              



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1313 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-29 09:35:32 +00:00
guruevi bc221d3211 2008-12-24 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_reporting.php, include/functions_db.php, 
	include/functions_html.php, operation/agentes/datos_agente.php, 
	operation/agentes/estado_agente.php, 
	operation/agentes/estado_generalagente.php, 
	operation/agentes/estado_grupo.php, operation/agentes/estado_monitores.php,
	operation/agentes/networkmap.php, operation/agentes/status_monitor.php,
	operation/incidents/incident_detail.php, 
	operation/reporting/reporting_viewer.php, 
	operation/reporting/reporting_xml.php, reporting/fgraph.php, 
	godmode/db/db_audit.php, godmode/db/db_event.php, godmode/db/db_purge.php:
	Added get_system_time in favor of time ();

	* include/functions.php: Added get_system_time which gets the time from 
	a source based on user preference

	* include/help/en/help_timesource.php: Explanation of timesource.
	
	* godmode/setup/setup.php, include/config_process.php: Added timesource
	selection and preference

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1310 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-24 16:53:00 +00:00
raulmateos 8864dc4095 2008-12-24 Raul Mateos <raulofpandora@gmail.com>
* index.php: Updated build, again due to the use of the new custom ID.

	* reporting/fgraph2.php: Test for ezcomponents.

	* operation/events/event_statistics.php: Use of fgraph2 if test var is
	set in the URL. It uses ezComponents, that need to be installed. 
	This shows a 3D chart. Probably not will be used, but it's an idea
	about how to improve graphs in pandora. To test, just add &test to the
	event_statistics URL.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1308 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-24 12:51:59 +00:00
guruevi daccd18dfd 2008-12-23 Evi Vanoost <vanooste@rcbi.rochester.edu>
* index.php: Cleaned up some old stuff and fixed the order of GET/POST
	
	* general/header.php: Added tags for custom branding and todo
	
	* general/login_page.php: Cleaned up some old stuff and fixed always
	redirecting the user to the overview if they followed a link.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1306 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-23 21:41:05 +00:00
Ramon Novoa e98f7c6022 2008-12-23 Ramon Novoa <rnovoa@artica.es>
* godmode/agentes/configurar_agente.php: Properly insert the custom ID
          when creating the keepalive module (there was a typo).




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1305 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-23 18:52:59 +00:00
guruevi 60168a5e92 2008-12-23 Evi Vanoost <vanooste@rcbi.rochester.edu
* include/functions.php: Fixed format_numeric in case there are characters
	in a number or the number is not a number. Fixes notices from fmod.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1304 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-23 14:22:14 +00:00
Ramon Novoa 1e51f01713 2008-12-23 Ramon Novoa <rnovoa@artica.es>
* pandoradb_data.sql, include/config.php, pandoradb.sql,
          godmode/groups/configure_group.php,
          godmode/groups/group_list.php,
          godmode/agentes/module_manager_editor_network.php,
          godmode/agentes/module_manager_editor_wmi.php,
          godmode/agentes/module_manager_editor_plugin.php,
          godmode/agentes/module_manager_editor_prediction.php,
          godmode/agentes/module_manager_editor_data.php,
          godmode/agentes/configurar_agente.php,
          godmode/agentes/module_manager_editor.php,
          godmode/agentes/agent_manager.php: Added support for a custom ID to
          agents, modules and groups.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1303 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-23 13:12:03 +00:00
guruevi 5022fa5e22 2008-12-22 Evi Vanoost <vanooste@rcbi.rochester.edu>
* godmode/agentes/agent_template.php: Rewritten to use new functions
	
	* godmode/agentes/configurar_agente.php: Fixed adding empty ips
	
	* godmode/db/db_purge.php: Fixed bug #2445819 ?

	* godmode/db/db_refine.php: Rewritten to use new functions. Fixed bug 
	#2445819 ?

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1301 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-22 21:16:03 +00:00
jorgonzalez fa335140ed 2008-12-22 Jorge Gonzalez <jorgegonz@artica.es>
* pandoradb_data.sql: Added Dutch to translations.

	* include/languages/Makefile: Added Dutch to translations.

	* include/languages/index.pot: Updated po template file.

	* include/languages/cs.po, include/languages/pt_BR.po, 
	include/languages/pl.mo, include/languages/it.mo, 
	include/languages/ko.po, include/languages/sl.mo, 
	include/languages/sk.po, include/languages/uk.po, 
	include/languages/pt.mo, include/languages/ro.po, 
	include/languages/ast.mo, include/languages/bn.po, 
	include/languages/cs.mo, include/languages/ar.po, 
	include/languages/pt_BR.mo, include/languages/ko.mo, 
	include/languages/fr.po, include/languages/sk.mo, 
	include/languages/uk.mo, include/languages/ro.mo, 
	include/languages/ca.po, include/languages/da.po, 
	include/languages/tr.po, include/languages/sv.po, 
	include/languages/de.po, include/languages/ja.po, 
	include/languages/zh_TW.po, include/languages/bn.mo, 
	include/languages/he.po, include/languages/fi.po, 
	include/languages/ar.mo, include/languages/hi.po, 
	include/languages/zh_CN.po, include/languages/fr.mo, 
	include/languages/te.po, include/languages/eu.po, 
	include/languages/hu.po, include/languages/ca.mo, 
	include/languages/da.mo, include/languages/tr.mo, 
	include/languages/sv.mo, include/languages/de.mo, 
	include/languages/ru.po, include/languages/ja.mo, 
	include/languages/zh_TW.mo, include/languages/he.mo, 
	include/languages/fi.mo, include/languages/hi.mo, 
	include/languages/zh_CN.mo, include/languages/el.po, 
	include/languages/gl.po, include/languages/te.mo, 
	include/languages/eu.mo, include/languages/hu.mo, 
	include/languages/pl.po, include/languages/it.po, 
	include/languages/sl.po, include/languages/pt.po, 
	include/languages/ru.mo, include/languages/ast.po, 
	include/languages/el.mo, include/languages/gl.mo

	* include/languages/nl.po, include/languages/nl.mo: Added Dutch 
	translation from Rosetta.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1299 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-22 10:21:21 +00:00
raulmateos 4111c0dfb8 2008-12-21 Raul Mateos <raulofpandora@gmail.com>
* index.php: Updated build, there were some changes in last month that make
	this build to change.
	* include/styles/link.css: updated and renamed to menu.css, more coherent.
	Updated header.
	* include/styles/pandora.css: updated header. Reduced height in
	administration and link menu titles.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1298 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-21 15:26:55 +00:00
guruevi 3034f01a5e 2008-12-19 Evi Vanoost <vanooste@rcbi.rochester.edu>
* general/footer.php: Updated print_timestamp to always print full.
	Removed the center tag (deprecated in HTML 4.01)
	
	* general/header.php: Fixed some CSS.
	
	* general/links_menu.php: Rewritten for new css style
	
	* general/main_menu.php: Rewritten for new css style and to avoid 
	repetition in writing tags uses an array and functions
	
	* godmode/menu.php: Rewritten for new css style and to avoid repetition
	writing tags
	
	* include/functions_html.php: Added option to override prominent time
	
	* include/styles/link.css: Rewritten the whole CSS. Now all menu options
	are directly available through slide-outs (pure CSS, no JS) and avoids div
	for each single item. The pages renders quite a bit faster too.
	
	* include/styles/pandora.css: Fixed some bad tags and removed stuff that 
	was for the rewritten menu.
	
	* index.php: Added &nbsp; to div. IE will in some situations not render 
	empty divs.
	
	* operation/menu.php: Rewritten for new CSS style
	
	* include/styles/god.css, include/styles/op.css: 


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1297 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-19 21:45:20 +00:00
jorgonzalez ec794a1f31 2008-12-18 Jorge Gonzalez <jorgegonz@artica.es>
* pandoradb_data.sql, pandoradb.sql: removed extra '-' which made the 
          file invalid for mysql population.   

        * include/languages/es.po, include/languages/es.mo: Updated Spanish
          translation.

        * include/languages/index.pot: Updated po template.

        * general/footer.php: changed format_datetime to print_timestamp.

        * godmode/setup/setup.php: moved the enterprise hook so the table 
          fields show properly in both versions. 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1296 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-18 11:41:20 +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
Esteban Sanchez caf5492185 2008-12-16 Esteban Sanchez <estebans@artica.es>
* include/functions_html.php: Added missing documentation and fixed a
        bit more. Added print_image() to prints an image HTML element.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1293 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-16 10:20:33 +00:00
guruevi 3a1af9efde 2008-12-12 Evi Vanoost <vanooste@rcbi.rochester.edu>
* pandora_console/operation/agentes/datos_agente.php: Rewrite. Uses new
	functions and better security and validation
	
	* pandora_console/include/functions_db.php: Renamed some functions and
	created agentmodule functions for consistency with documentation and to
	avoid searching for and typing certain function names: 
	get_agentmodules is now get_agent_modules; 
	dame_grupo is now get_group_name; 
	dame_nombre_agente is now get_agent_name; get_agentmodule_agent is new; 
	dame_nombre_agente_agentemodulo is now get_agentmodule_agent_name;
	dame_nombre_modulo_agentemodulo is now get_agentmodule_name;
	dame_id_tipo_modulo_agentemodulo is now get_agentmodule_type;
	dame_nombre_tipo_modulo is now get_moduletype_name; dame_nombre_grupo is
	now get_group_name; get_agentmodule_count is get_agent_modules_count;
	get_agentmodule_group is new; get_agent_group is new;
	
	* pandora_console/include/functions_reporting.php, 
	pandora_console/include/functions.php,
	pandora_console/operation/incidents/incident.php,
	pandora_console/operation/users/user.php,
	pandora_console/operation/users/user_edit.php,
	pandora_console/operation/events/events.php,
	pandora_console/operation/visual_console/index.php,
	pandora_console/operation/agentes/estado_grupo.php,
	pandora_console/operation/agentes/export_csv.php,
	pandora_console/operation/agentes/estado_agente.php,
	pandora_console/operation/agentes/estado_ultimopaquete.php,
	pandora_console/operation/agentes/estado_generalagente.php,
	pandora_console/operation/agentes/sla_view.php,
	pandora_console/operation/agentes/exportdata.php,
	pandora_console/operation/agentes/ver_agente.php,
	pandora_console/operation/agentes/tactical.php,
	pandora_console/operation/agentes/networkmap.php,
	pandora_console/operation/messages/message.php,
	pandora_console/operation/reporting/reporting_xml.php,
	pandora_console/operation/reporting/reporting_viewer.php,
	pandora_console/reporting/fgraph.php,
	pandora_console/godmode/groups/group_list.php,
	pandora_console/godmode/users/user_list.php,
	pandora_console/godmode/users/configure_user.php,
	pandora_console/godmode/db/db_refine.php,
	pandora_console/godmode/db/db_info.php,
	pandora_console/godmode/db/db_purge.php,
	pandora_console/godmode/agentes/manage_config.php,
	pandora_console/godmode/agentes/modificar_agente.php,
	pandora_console/godmode/agentes/configurar_agente.php,
	pandora_console/godmode/agentes/manage_config_remote.php,
	pandora_console/godmode/modules/manage_network_components_form_network.php,
	pandora_console/godmode/modules/manage_network_components_form_wmi.php,
	pandora_console/godmode/reporting/reporting_builder.php,
	pandora_console/godmode/reporting/map_builder.php,
	pandora_console/godmode/reporting/graph_builder.php: Renamed functions


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1291 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-12 21:54:40 +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 523a9c8779 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@1284 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-10 20:15:13 +00:00
raulmateos 1b1a277ff1 2008-12-03 Raul Mateos <raulofpandora@gmail.com>
* operation/agentes/tactical.php: Added text if there are no servers.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1282 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-03 14:11:44 +00:00
raulmateos 61655acb25 2008-12-03 Raul Mateos <raulofpandora@gmail.com>
* include/functions_db.php: Now if no event, table shows "no event" text.
	Cosmetic table header change.
	* operation/agentes/tactical.php: Solve warning if no servers defined.
	Cosmetic table header change.
	* operation/events/events.php: Change "error" class to "not found" class.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1280 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-03 12:41:09 +00:00
jorgonzalez 0b95e7052a 2008-12-02 Jorge Gonzalez <jorgegonz@artica.es>
* include/languages/index.pot: Updated Spanish translation.

        * include/languages/fr.po, include/languages/fr.mo: Updated French  
          translation.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1276 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-02 11:42:24 +00:00
jorgonzalez a6d37be77c 2008-12-02 Jorge gonzalez <jorgegonz@artica.es>
* pandoradb_data.sql: Added Bengali to translations.

        * include/languages/index.pot: Updated po template.

        * include/languages/bn.po, include/languages/bn.mo: Added Bengali   
          translation from Rosetta and GNOME Translation Memory.

        * include/languages/Makefile: Added Bengali to translations.

        * include/languages/de.po, include/languages/de.mo: Updated German  
          translation from Rosetta.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1275 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-02 11:29:51 +00:00
Esteban Sanchez 068b17029e 2008-12-02 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/manage_config.php: Fixed SQL sentence generation
        when copying a module. It was causing PHP notices and nothing was
        being copied.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1272 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-02 08:11:42 +00:00
jorgonzalez 9843334767 2008-12-01 Jorge Gonzalez <jorgegonz@artica.es>
* include/languages/index.pot: Updated po template.

        * include/languages/de.po, include/languages/de.mo: Updated German  
          translation from Rosetta translations.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1269 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-01 08:30:51 +00:00
jorgonzalez 453c3d534d 2008-11-27 Jorge Gonzalez <jorgegonz@artica.es>
* pandoradb_data.sql: Added Greek translation.

	* include/languages/index.pot: Updated po template.

	* include/languages/Makefile: Added 'el' files for translation.

	* include/languages/cs.po, include/languages/pt_BR.po, 
	  include/languages/es.po, include/languages/pl.mo, 
	  include/languages/it.mo, include/languages/sl.mo, 
	  include/languages/sk.po, include/languages/uk.po, 
	  include/languages/pt.mo, include/languages/ro.po, 
	  include/languages/ast.mo, include/languages/cs.mo, 
	  include/languages/ar.po, include/languages/pt_BR.mo, 
	  include/languages/es.mo, include/languages/fr.po, 
	  include/languages/sk.mo, include/languages/uk.mo, 
	  include/languages/ro.mo, include/languages/ca.po, 
	  include/languages/da.po, include/languages/tr.po, 
	  include/languages/sv.po, include/languages/de.po, 
	  include/languages/ja.po, include/languages/zh_TW.po, 
	  include/languages/he.po, include/languages/fi.po, 
	  include/languages/ar.mo, include/languages/hi.po, 
	  include/languages/zh_CN.po, include/languages/fr.mo, 
	  include/languages/te.po, include/languages/eu.po, 
	  include/languages/hu.po, include/languages/ca.mo, 
	  include/languages/da.mo, include/languages/tr.mo, 
	  include/languages/de.mo, include/languages/sv.mo, 
	  include/languages/ru.po, include/languages/ja.mo, 
	  include/languages/zh_TW.mo, include/languages/he.mo, 
	  include/languages/fi.mo, include/languages/hi.mo, 
	  include/languages/zh_CN.mo, include/languages/gl.po, 
	  include/languages/te.mo, include/languages/eu.mo, 
	  include/languages/hu.mo, include/languages/pl.po, 
	  include/languages/it.po, include/languages/sl.po, 
	  include/languages/pt.po, include/languages/ru.mo, 
	  include/languages/ast.po, include/languages/gl.mo, 
	  include/languages/ko.mo, include/languages/ko.po: Added Greek
	  translation, updated translations.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1267 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-27 14:40:55 +00:00
slerena 3d0b20a047 2008-11-26 Sancho Lerena <slerena@artica.es>
* godmode/agentes/configurar_agente.php: Fixed problem with agent module
        groups.

        * include/config_process.php: Fixed typo on prominent_time config token.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1265 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-26 16:52:09 +00:00
jorgonzalez 55cdcaefe2 2008-11-26 Jorge Gonzalez <jorgegonz@artica.es>
* pandoradb_data.sql: Added korean translation.

        * include/languages/index.pot: Updated po template.

        * include/languages/Makefile: Added 'ko' files for translation.

        * include/languages/ko.mo, include/languages/ko.po: Added korean
          translation.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1261 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-26 09:03:31 +00:00
jorgonzalez a3c4a4f5cc 2008-11-24 Jorge Gonzalez <jorgegonz@artica.es>
* include/languages/index.pot: Updated po template.

        * include/languages/es.po, include/languages/es.mo,
          include/languages/da.po, include/languages/da.mo: Updated
          translations.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1260 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-24 16:10:40 +00:00
raulmateos 652133523f 2008-11-23 Raul Mateos <raulofpandora@gmail.com>
* index.php: Develop Bypass set to 1, to help debugging. Updated build.
	* extensions/update_manager/settings.php: Use print_input_password instead
	print_input_text for proxy password.
	* godmode/modules/manage_network_components_form_wmi.php: Cosmetic change. Closed some HTML tags.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1257 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-23 17:05:38 +00:00
guruevi cb3221be05 2008-11-21 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions.php: Added function_exists check for multibyte 
	functions. Thanks to Glen Eustace for bug report. mb_string extension

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1256 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-21 20:16:14 +00:00
guruevi f2ccf22c30 2008-11-21 Evi Vanoost <vanooste@rcbi.rochester.edu>
* operation/agentes/estado_monitores: Quick fix

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1255 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-21 19:00:06 +00:00
guruevi 5e8d3fa275 2008-11-21 Evi Vanoost <vanooste@rcbi.rochester.edu>
* godmode/setup/setup.php: Added prominent_time value to configuration.
	Also made setup.php available for singular GET requests. Implements 
	feature request #2267582

	* include/config_process.php: Added prominent_time to configuration. Also
	made sure some values are inserted into the database. Implements 
	feature request #2267582
	
	* include/functions.php: Removed give_human_time(). Fixed 
	human_time_description_raw and human_time_comparation for 0 values
	
	* include/functions_db.php: Called safe_input in get_agentmodules
	
	* include/functions_html.php: Added print_timestamp for feature request
	#2267582. Timestamps should be printed using this function.
	
	* include/styles/pandora.css: Simplified CSS for f9 classes
	
	* operation/agentes/estado_monitores: Rewrite. Also implemented 
	Glen Eustace's (from Godzone) feature request.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1254 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-21 17:58:30 +00:00
guruevi 65d81fa325 2008-11-20 Evi Vanoost <vanooste@rcbi.rochester.edu>
* operation/snmpconsole/snmp_view.php, godmode/snmpconsole/snmp_view.php:
	Added legend to satisfy feature request #2204169. Also made filters 
	persistent
	
	* operation/events/events.php: Usage of new function
	
	* operation/agentes/ver_agente.php,
	operation/agentes/estado_monitores.php: A bit of style update
	Fixed bug where $intervalo actually came from index.php
	
	* index.php: Put refresh in config (to prevent above bug)
	
	* include/styles/pandora_width.css, include/styles/pandora_red.css,
	include/styles/pandora_black.css, include/styles/pandora.css:
	Update so you can use datos_<color> in other things than td
	
	* include/functions_db.php: give_agentinterval is now get_agent_interval
	
	* include/functions.php: Added get_priority_class to find background 
	color classes		


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1253 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-20 21:26:59 +00:00
jorgonzalez af4d6c6cb9 2008-11-20 Jorge Gonzalez <jorgegonz@artica.es>
* pandoradb_data.sql: Corrected mistake for languages Slovak and
          Slovenian.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1252 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-20 18:33:51 +00:00
jorgonzalez eaf5660b4b 2008-11-20 Jorge Gonzalez <jorgegonz@artica.es>
* pandoradb_data.sql: Added Hebrew and Slovak translations to the
          database.

        * include/languages/index.pot: Updated po template.

        * include/languages/Makefile: added sk and he to translation.

        * include/languages/sk.po, include/languages/sk.mo,
          include/languages/he.po, include/languages/he.mo,
          include/languages/sl.mo, include/languages/pt.mo,
          include/languages/hi.po, include/languages/te.po,
          include/languages/hi.mo, include/languages/te.mo,
          include/languages/sl.po, include/languages/pt.po: Updated
          portuguese, slovenian, hindi, and telugu translations, added
          slovak and hebrew translations.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1251 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-20 18:30:37 +00:00
guruevi b184efd4d5 2008-11-20 Evi Vanoost <vanooste@rcbi.rochester.edu>
* reporting/fgraph.php: Updated for some faster processing
	and new functions.

	* operation/events/events.php,
	operation/agentes/estado_alertas,
	include/functions_reporting.php, 
	godmode/reporting/reporting_bulder.php, 
	godmode/reporting/map_builder.php, godmode/db/db_info.php: 
	Function name updates
	
	* include/functions_html.php: Small style update
	
	* include/functions_db.php: get_agents_in_group is now
	get_group_agents. Accepts array and specified case. 
	get_modules_in_agent is now get_agentmodules and accepts arrays
	of agents as well as which details to select. Deprecated 
	dame_nombre_agente in favor of get_agent_name which accepts case.
	Fixed get_agent_addresses for use in select boxes. Added filter
	to get_agentmodule_count
	
	* godmode/db/db_purge.php: Fixed queries and style updates
	
	* godmode/agentes/configurar_agente.php: Fixed IP select box
	
	* godmode/agentes/agent_manager.php: Style update and fixed a bug

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1250 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-20 14:09:26 +00:00
jorgonzalez 4ea1e37444 2008-11-19 Jorge Gonzalez <jorgegonz@svn.gnome.org>
* pandoradb_data.sql: Added Arab and Turkish translations to the
          database. 

        * include/languages/index.pot: Updated po template.

        * include/languages/Makefile: added ar and tr to translation.

        * include/languages/cs.po, include/languages/cs.mo,
          include/languages/ar.po, include/languages/da.po,
          include/languages/tr.po, include/languages/ja.po,
          include/languages/fi.po, include/languages/ar.mo,
          include/languages/eu.po, include/languages/da.mo,
          include/languages/tr.mo, include/languages/ru.po,
          include/languages/ja.mo, include/languages/fi.mo,
          include/languages/eu.mo, include/languages/ru.mo: Updated/added
          translations.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1249 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-19 16:42:45 +00:00
guruevi e352a0d0b9 2008-11-17 Evi Vanoost <vanooste@rcbi.rochester.edu>
* operations/snmpconsole/snmp_view.php: Removed 
	lang_string references in favor of __ ()
	
	* index.php: Style updates and function name update
	
	* include/functions_db.php: Removed lang_string function
	
	* include/functions.php: parameter_extra_clean is now 
	safe_url_extraclean. Also updated it slightly
	
	* godmode/admin_access_logs: Updated for style and speed

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1248 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-17 15:49:29 +00:00
jorgonzalez b6ddade056 2008-11-17 Jorge Gonzalez <jorgegonz@svn.gnome.org>
* pandoradb_data.sql: Added Danish to available languages.

        * include/languages/da.po, include/languages/cs.po,
          include/languages/pt_BR.po, include/languages/es.po,
          include/languages/pl.mo, include/languages/it.mo,
          include/languages/sl.mo, include/languages/uk.po,
          include/languages/pt.mo, include/languages/ro.po,
          include/languages/ast.mo, include/languages/cs.mo,
          include/languages/pt_BR.mo, include/languages/fr.mo,
          include/languages/uk.mo, include/languages/ro.mo,
          include/languages/ca.po, include/languages/sv.po,
          include/languages/de.po, include/languages/zh_TW.po,
          include/languages/fi.po, include/languages/hi.po,
          include/languages/zh_CN.po, include/languages/fr.mo,
          include/languages/te.po, include/languages/eu.po,
          include/languages/hu.po, include/languages/ca.mo,
          include/languages/de.mo, include/languages/sv.mo,
          include/languages/ru.po, include/languages/zh_TW.mo,
          include/languages/fi.mo, include/languages/hi.mo,
          include/languages/zh_CN.mo, include/languages/gl.po,
          include/languages/te.mo, include/languages/eu.mo,
          include/languages/hu.mo, include/languages/pl.po,
          include/languages/it.po, include/languages/sl.po,
          include/languages/pt.po, include/languages/ru.mo,
          include/languages/ast.po, include/languages/gl.mo: Updated
          languages and added Danish.

        * include/languages/index.pot: Updated po template.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1246 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-17 09:42:28 +00:00
guruevi cce12d3752 2008-11-14 Evi Vanoost <vanooste@rcbi.rochester.edu>
* operation/reporting/reporting_xml.php: Fixed bug #2268220

        * operation/events/events.php: Centered some columns

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1245 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-14 16:15:58 +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
Esteban Sanchez 0873a78a4f 2008-11-14 Esteban Sanchez <estebans@artica.es>
* include/functions_reporting.php: Fixed an error when calculating
        working data modules that affects to strings modules. Thanks to Glen
        Eustace for the report and fix.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1243 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-14 09:11:55 +00:00