Commit Graph

3572 Commits

Author SHA1 Message Date
ramonn 1c46cab424 2011-02-17 Ramon Novoa <rnovoa@artica.es>
* include/help/en/help_agent_status.php,
	  include/help/es/help_agent_status.php,
	  include/help/ja/help_agent_status.php: The 'no monitors' status does
	  not make sense now that all modules have a status.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3902 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-17 16:31:39 +00:00
mdtrooper 61fa69348b 2011-02-17 Miguel de Dios <miguel.dedios@artica.es>
* operation/agentes/estado_agente.php: fixed the re-apply the safe_input in
	the search.
	
	Fixes: #3184647
	
	* include/functions_db.php: cleaned source code style.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3899 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-17 15:47:51 +00:00
ramonn 6af205b483 2011-02-17 Ramon Novoa <rnovoa@artica.es>
* include/functions.php: Hide custom SQL reports from non PM users
	  when creating reports.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3898 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-17 15:46:22 +00:00
mdtrooper 4876abd8b4 2011-02-17 Miguel de Dios <miguel.dedios@artica.es>
* images/os_icons/android_small.png,
	images/os_icons/embedded_small.png: added lost image files.
	
	Fixes: #3183495



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3896 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-17 15:03:24 +00:00
juanmanuelr ad0fb9afc6 2011-02-17 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* godmode/alerts/configure_alert_template.php
	  godmode/alerts/alert_templates.php
	  godmode/alerts/configure_alert_action.php
	  godmode/alerts/alert_actions.php
          godmode/alerts/alert_list.builder.php: If user is not admin then can't
	edit/delete/copy alerts/templates of other groups.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3895 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-17 15:00:19 +00:00
mdtrooper fc6d71ecb6 2011-02-17 Miguel de Dios <miguel.dedios@artica.es>
* godmode/reporting/visual_console_builder.editor.js: fixed the type of icon
	when create and after edit.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3893 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-17 11:02:28 +00:00
juanmanuelr 1bdfb83156 2011-02-17 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* operation/visual_console/index.php: Correction for my last commit. Now in this 
	view users can see maps of group "All".



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3892 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-17 10:51:32 +00:00
mdtrooper bb4ecdc15b 2011-02-17 Miguel de Dios <miguel.dedios@artica.es>
* godmode/reporting/visual_console_builder.editor.js: cleaned the forgotten
	calls to generate traces for firebug.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3890 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-17 10:44:14 +00:00
mdtrooper 9093ed51d6 2011-02-17 Miguel de Dios <miguel.dedios@artica.es>
* godmode/reporting/visual_console_builder.editor.js,
	godmode/reporting/visual_console_builder.editor.php: fixed the panel
	propierties for icon in the edition and creation, now it haven't label color
	and have preview icon and map link.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3889 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-17 10:34:29 +00:00
juanmanuelr a3c8eac3a2 2011-02-16 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_alerts.php: New function get_alert_actions_filter.
	* operation/agentes/estado_agente.php: If user is not admin or doesn't have
	'PM' privileges then don't display alerts of others groups.
	* godmode/alerts/configure_alert_template.php: If user is not admin or doesn't have
	'PM' privileges then don't display templates of others groups.
	* godmode/alerts/configure_alert_action.php: Don't show "create command" option
	in this view if current user is not administrator or or doesn't have
	'PM' privileges.
	* godmode/alerts/alert_list.builder.php: If user is not admin or doesn't have
	'PM' privileges then don't display alerts of others groups.

	Fixes: #3182557, 3182566 	

	* include/functions_visual_map.php: Added a parameter in function get_user_layouts for 
	return All group or not.
	* godmode/reporting/visual_console_builder.data.php: In map creation only display "All"
	group if user has 'PM' privileges or is administrator.
	* godmode/reporting/map_builder.php: If user is not admin or doesn't have
	'PM' privileges then don't display maps of others groups.
	* operation/visual_console/index.php: If user is not admin or doesn't have
	'PM' privileges then don't display maps of others groups.

	Fixes: #3175721, 3175730	

      	* godmode/users/configure_user.php: Only are shown "pandora management" and 
	"database management" profiles if current user is not administrator or or doesn't have
	'PM' privileges.	
	* godmode/alerts/alert_list.list.php: Fixed query for alert search.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3887 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-16 18:39:28 +00:00
ramonn c00e83b030 2011-02-16 Ramon Novoa <rnovoa@artica.es>
* include/functions_menu.php: Fixed a typo.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3886 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-16 17:47:18 +00:00
ramonn 5a4e187dd6 2011-02-16 Ramon Novoa <rnovoa@artica.es>
* include/functions_menu.php, operation/menu.php: Added a title to GIS
	  maps and Visual console maps in the menu. Fixes bug #3182148.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3884 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-16 17:41:52 +00:00
mdtrooper 8800623550 2011-02-16 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_visual_map.php: added links to services in the items in
	the view of visualmap.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3882 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-16 17:33:37 +00:00
ramonn b9204d30ac 2011-02-16 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DataServer.pm: Do not update the module description
	  if it's empty. Fixes bug #3162637.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3880 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-16 16:50:19 +00:00
mdtrooper 53f656df84 2011-02-16 Miguel de Dios <miguel.dedios@artica.es>
* include/ajax/visual_console_builder.ajax.php: fixed other safe_ouput in
	the editor.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3879 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-16 16:17:45 +00:00
mdtrooper 7031e87f54 2011-02-16 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_visual_map.php: added lost safe_ouput in the extract
	DB fields.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3877 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-16 16:06:42 +00:00
mdtrooper 94b97d1688 2011-02-16 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_visual_map.php: added function "createInternalNameItem"
	and "get_items_parents".
	
	*include/ajax/visual_console_builder.ajax.php, 
	godmode/reporting/visual_console_builder.editor.php: changed the method to
	show items without name in visualmap as parents in the selectbox.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3875 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-16 15:37:55 +00:00
mdtrooper 94211191ea 2011-02-16 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_visual_map.php: fixed the edit to set items with empty
	names.
	
	* include/ajax/visual_console_builder.ajax.php: fixed the position of
	items "icons".



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3873 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-16 13:26:28 +00:00
mdtrooper 5d8e10d087 2011-02-16 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: fixed check "<>" in other case as the ajax
	calls in the visual map.
	
	* godmode/reporting/visual_console_builder.editor.js: cleaned source code
	and added some comments.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3871 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-16 12:43:24 +00:00
juanmanuelr 95ee0cc115 2011-02-16 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* godmode/users/user_list.php: If user is not admin then don't 
	display users of others groups.

	Fixes: #3175670	



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3869 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-16 11:11:05 +00:00
mdtrooper 77695b1cb3 2011-02-16 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_visual_map.php: fixed the position of items in visual
	map when print by PHP.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3868 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-16 09:22:13 +00:00
jsatoh 46e5822ef7 2011-02-16 Junichi Satoh <junichi@rworks.jp>
* FreeBSD/tentacle_server: Added a filter option.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3867 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-16 04:22:45 +00:00
mdtrooper 9c3cdfa3aa 2011-02-15 Miguel de Dios <miguel.dedios@artica.es>
* include/javascript/pandora.js, operation/agentes/ver_agente.php,
	godmode/reporting/visual_console_builder.wizard.php,
	godmode/reporting/visual_console_builder.php: fixed when the agent haven't
	any module and fixed when to try to create items without modules selected.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3865 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-15 19:07:23 +00:00
mdtrooper 29ad21a436 2011-02-15 Miguel de Dios <miguel.dedios@artica.es>
* operation/visual_console/render_view.php: fixed the link to edit
	visual console.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3863 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-15 18:01:48 +00:00
mdtrooper 2e61efd330 2011-02-15 Miguel de Dios <miguel.dedios@artica.es>
* operation/search_users.php: fixed unclose parentheses.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3861 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-15 17:53:38 +00:00
juanmanuelr 4928f5a6d8 2011-02-15 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* godmode/users/user_list.php: Only display administrator users if
	current user is administrator too. 
	* godmode/users/configure_user.php: Only administrator can create
	administrator users. Only administrator users can assign group "All" to
	a profile.  

	Fixes: #3180761



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3860 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-15 17:49:13 +00:00
mdtrooper ce794a151b 2011-02-15 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.postgreSQL.sql, pandoradb.data.postgreSQL.sql: added column
	threshold from changes in last Ramon commit in MySQL.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3859 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-15 17:39:26 +00:00
mdtrooper 3491d56a01 2011-02-15 Miguel de Dios <miguel.dedios@artica.es>
* godmode/alerts/alert_list.php: fixed the lost var in the audit.
	
	Fixes: #3182470



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3857 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-15 16:46:34 +00:00
ramonn 40552af8f5 2011-02-15 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Added support for action thresholds.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3856 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-15 16:42:37 +00:00
ramonn b0ca20fa89 2011-02-15 Ramon Novoa <rnovoa@artica.es>
* pandoradb_data.sql, include/functions_alerts.php,
	  pandoradb.sql, extras/pandoradb_migrate_v3.2_to_v4.0.sql,
	  godmode/alerts/alert_list.list.php, godmode/alerts/alert_list.php,
	  godmode/alerts/configure_alert_action.php, godmode/alerts/alert_actions.php,
	  godmode/alerts/alert_list.builder.php: Added support for action thresholds.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3855 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-15 16:40:23 +00:00
mdtrooper 98398faa0b 2011-02-15 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_alerts.php, operation/agentes/estado_agente.php: added
	check ACL in the show actions in the creation and edit of alerts.
	
	Fixes: #3166657



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3853 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-15 16:13:03 +00:00
javilanz ef8e0c78b5 2011-02-15 Javier Lanz <javier.lanz@argica.es>
* godmode/groups/group_list.php: Fixed ACL checkings

	Fix #3175824


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3851 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-15 15:18:23 +00:00
mdtrooper f224001e35 2011-02-15 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: added in function "get_agent_modules" the
	default value null for get modules of agents in user's group.
	
	* godmode/massive/massive_delete_modules.php: fixed the select of modules
	now get only the modules of agents in user's group and now you can delete
	and view correcly the modules with acent or other not ascii characters.

	Fixes: #3182143 and #3175722



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3849 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-15 14:20:45 +00:00
juanmanuelr 8344455eee 2011-02-15 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* operation/agentes/estado_monitores.php: Fixed a mistake replacing "<img" 
	tags for print_image function. 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3848 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-15 13:58:35 +00:00
mdtrooper 48e8eda4ae 2011-02-15 Miguel de Dios <miguel.dedios@artica.es>
* godmode/groups/group_list.php: refixed the position of check login for
	check in normal access and ajax access.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3846 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-15 13:47:39 +00:00
juanmanuelr e1e0b534e9 2011-02-15 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* godmode/menu.php: "godmode > manage alert > commands" tab only 
	displayed when user privileges are "PM".
	* pandoradb_data.sql 
	 pandoradb.data.postgreSQL.sql: Changed "Alert management" field to 1 in 
	"Chief Operator" row of tperfil table.
	* godmode/alerts/alert_templates.php: If user tries to delete a 
	template with group=ALL then must have "PM" access privileges.
	* godmode/alerts/configure_alert_template.php: If user tries to duplicate
	/edit a template with group=ALL then must have "PM" access privileges.
	* godmode/alerts/alert_actions.php: If user tries to duplicate/delete an 
	action with group=ALL then must have "PM" access privileges.
	* godmode/alerts/configure_alert_action.php: If user tries to edit an 
	action with group=ALL then must have "PM" access privileges.

	Fixes: #3180735	



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3845 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-15 13:17:26 +00:00
javilanz ea49e9e4e6 2011-02-15 Javier Lanz <javier.lanz@artica.es>
* godmode/users/configure_user.php: Truncated group name on user detail
	editor


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3843 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-15 13:06:08 +00:00
mdtrooper 20fb023df5 2011-02-15 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/module_manager.php: erased the "prediction module" for
	policy view.
	
	Fixes: #3175826



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3841 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-15 11:41:28 +00:00
mdtrooper e0e545010e 2011-02-15 Miguel de Dios <miguel.dedios@artica.es>
* godmode/groups/group_list.php: moved check ACL bottom the ajax call and
	added other check ACL in the ajax call.
	
	Fixes: #3180588



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3839 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-15 11:12:32 +00:00
juanmanuelr 5da4e23615 2011-02-15 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_html.php: print_input_image function now uses skins.
	* godmode/users/configure_profile.php: Added some variable initialization after
	selectinf a defined profile.

	Fixes: #3182041



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3837 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-15 11:07:25 +00:00
javilanz e89c3f9da2 2011-02-05 Javier Lanz <javier.lanz@artica.es>
* pandora_console/images/wand_sla.png: Added sla wizard tab icon


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3836 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-15 08:53:11 +00:00
mdtrooper 2fc07a85ed 2011-02-14 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: fixed the module search.
	
	Fixes: #3181086



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3834 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-14 17:57:51 +00:00
javilanz eeaaf8171a 2011-02-14 Javier Lanz <javier.lanz@artica.es>
* godmode/reporting/reporting_builder.main.php: Table size changed to 90%
	* godmode/reporting/reporting_builder.item_editor.php: Fixed a small
	problem with an old field


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3832 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-14 17:02:24 +00:00
mdtrooper 6dc40b09a5 2011-02-14 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_config.php, include/api.php, godmode/setup/setup.php:
	added the check by password the actions on API.
	
	Pending tasks: #3180793



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3831 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-14 16:56:17 +00:00
slerena 5ca2e7d0ae 2011-02-14 Sancho Lerena <slerena@artica.es>
* OpenWRT: Special files for OpenWRT/Perl version.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3830 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-14 16:45:14 +00:00
ramonn 8d5553e3d2 2011-02-14 Ramon Novoa <rnovoa@artica.es>
* embedded/INSTALL: Added instructions to cross-compile for
	  OpenWRT (x86).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3829 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-14 15:40:26 +00:00
mdtrooper 7e17326c5f 2011-02-14 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: fixed the include of extensions, mysql or
	postgresql for the api call or Pandora Mobile.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3828 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-14 15:25:06 +00:00
mdtrooper c4e2ec0d4a 2011-02-14 Miguel de Dios <miguel.dedios@artica.es>
* include/db/postgresql.php: fixed in function "postgresql_insert_id" the
	lost var. Erased traces in the function "postgresql_process_sql". Added
	function "postgresql_escape_string_sql".
	
	* include/db/mysql.php: fixed duplicated function "mysql_process_sql". And
	added function "mysql_escape_string_sql".
	
	* include/auth/mysql.php: added method to autenticate with postgreSQL.
	
	* include/functions_db.php: added functions "select_db_engine",
	"connect_db". And divided the function "escape_string_sql" into avaliable
	engines.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3827 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-14 14:58:59 +00:00
mdtrooper 322ccf6bc8 2011-02-14 Miguel de Dios <miguel.dedios@artica.es>
* include/db/postgresql.php, include/db/mysql.php,
	include/functions_db.php: initial division of the DB core in several
	engines, at the moment mysql and postgreSQL (not complete).
	
	* include/functions_config.php, include/config_process.php: change source
	code to use new functions.
	
	* install.php: mark the mysql engine (in future select).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3826 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-14 12:27:30 +00:00
mdtrooper d6af454fc9 2011-02-14 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.postgreSQL.sql: added "block_size" and "flash_chart" columns on
	tusuario table.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3825 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-14 12:17:29 +00:00