From d5953df87bfefd73cd244b802cf7b252e44b3786 Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Wed, 27 Apr 2011 13:43:31 +0000 Subject: [PATCH] 2011-04-27 Juan Manuel Ramon * include/functions_graph.php include/functions_users.php include/functions_events.php include/functions_html.php include/functions_menu.php include/styles/pandora.css include/graphs/functions_pchart.php include/functions_messages.php include/functions_exportserver.php include/functions_modules.php include/functions_reporting.php include/functions_filemanager.php include/functions_groups.php include/functions_gis.php include/functions_networkmap.php include/functions_servers.php include/functions_network_components.php include/functions_visual_map.php include/ajax/skins.ajax.php include/ajax/visual_console_builder.ajax.php include/help/en/help_gis_map_builder.php include/help/en/help_agent_status.php include/help/en/help_eventview.php include/help/en/help_configure_gis_map.php include/help/en/help_cascade_protection.php include/help/en/help_setup_gis_index.php include/help/es/help_gis_map_builder.php include/help/es/help_agent_status.php include/help/es/help_eventview.php include/help/es/help_configure_gis_map.php include/help/es/help_cascade_protection.php include/help/ja/help_gis_map_builder.php include/help/ja/help_agent_status.php include/help/ja/help_eventview.php include/help/ja/help_configure_gis_map.php include/help/ja/help_cascade_protection.php include/help/ja/help_setup_gis_index.php include/functions_ui.php include/functions_incidents.php include/functions.php include/functions_agents.php include/functions_db.php include/functions_fsgraph.php include/functions_extensions.php include/functions_ui_renders.php extensions/insert_data.php extensions/system_info.php extensions/extension_uploader.php extensions/agents_modules.php extensions/dbmanager.php extensions/resource_registration.php extensions/resource_exportation.php extensions/users_connected.php extensions/module_groups.php extensions/update_manager/settings.php extensions/update_manager/main.php operation/incidents/incident.incident.php operation/incidents/incident.php operation/incidents/incident.files.php operation/incidents/incident.tracking.php operation/incidents/incident_detail.php operation/incidents/incident.workunits.php operation/incidents/incident.list.php operation/search_modules.php operation/extensions.php operation/visual_console/render_view.php operation/visual_console/index.php operation/agentes/status_monitor.php operation/agentes/estado_ultimopaquete.php operation/agentes/datos_agente.php operation/agentes/alerts_status.php operation/agentes/estado_generalagente.php operation/agentes/custom_fields.php operation/agentes/estado_agente.php operation/agentes/networkmap.topology.php operation/agentes/alerts_status.functions.php operation/agentes/networkmap.groups.php operation/agentes/sla_view.php operation/agentes/exportdata.php operation/agentes/gis_view.php operation/agentes/estado_monitores.php operation/agentes/ver_agente.php operation/agentes/graphs.php operation/agentes/tactical.php operation/agentes/group_view.php operation/agentes/networkmap.php operation/agentes/stat_win.php operation/servers/view_server.php operation/servers/view_server_detail.php operation/search_agents.php operation/search_graphs.php operation/snmpconsole/snmp_view.php operation/users/user_edit.php operation/integria_incidents/incident.incident.php operation/integria_incidents/incident.php operation/integria_incidents/incident.files.php operation/integria_incidents/incident.tracking.php operation/integria_incidents/incident_detail.php operation/integria_incidents/incident.workunits.php operation/integria_incidents/incident.list.php operation/gis_maps/render_view.php operation/gis_maps/ajax.php operation/gis_maps/index.php operation/events/export_csv.php operation/events/sound_events.php operation/events/events_validate.php operation/events/events_list.php operation/events/events.php operation/search_alerts.php operation/messages/message.php operation/reporting/reporting_xml.php operation/reporting/reporting_viewer.php operation/reporting/graph_viewer.php operation/reporting/custom_reporting.php operation/search_reports.php operation/search_maps.php operation/search_results.php operation/search_users.php mobile/operation/agents/monitor_status.php mobile/operation/agents/view_agents.php mobile/operation/agents/tactical.php mobile/operation/agents/view_alerts.php mobile/operation/agents/group_view.php mobile/operation/events/events.php mobile/operation/servers/view_servers.php mobile/include/user.class.php general/pandora_help.php general/noaccess.php general/login_page.php general/logon_ok.php general/logoff.php general/ui/agents_list.php general/header.php godmode/groups/modu_group_list.php godmode/groups/configure_group.php godmode/groups/configure_modu_group.php godmode/groups/group_list.php godmode/admin_access_logs.php godmode/extensions.php godmode/db/db_sanity.php godmode/db/db_refine.php godmode/db/db_info.php godmode/db/db_event.php godmode/db/db_purge.php godmode/agentes/agent_template.php godmode/agentes/module_manager_editor_common.php godmode/agentes/module_manager_editor_network.php godmode/agentes/fields_manager.php godmode/agentes/module_manager_editor_wmi.php godmode/agentes/module_manager_editor_plugin.php godmode/agentes/agent_conf_gis.php godmode/agentes/module_manager_editor_prediction.php godmode/agentes/module_manager.php godmode/agentes/modificar_agente.php godmode/agentes/configurar_agente.php godmode/agentes/configure_field.php godmode/agentes/module_manager_editor.php godmode/agentes/planned_downtime.php godmode/agentes/manage_config_remote.php godmode/agentes/agent_manager.php godmode/servers/recon_script.php godmode/servers/plugin.php godmode/servers/manage_recontask.php godmode/servers/modificar_server.php godmode/servers/manage_recontask_form.php godmode/alerts/alert_list.list.php godmode/alerts/configure_alert_compound.php godmode/alerts/alert_compounds.php godmode/alerts/alert_list.php godmode/alerts/configure_alert_template.php godmode/alerts/alert_templates.php godmode/alerts/configure_alert_action.php godmode/alerts/configure_alert_command.php godmode/alerts/alert_actions.php godmode/alerts/alert_list.builder.php godmode/alerts/alert_commands.php godmode/snmpconsole/snmp_alert.php godmode/snmpconsole/snmp_filters.php godmode/setup/file_manager.php godmode/setup/os.list.php godmode/setup/news.php godmode/setup/gis_step_2.php godmode/setup/links.php godmode/setup/setup.php godmode/setup/os.php godmode/setup/performance.php godmode/setup/setup_auth.php godmode/setup/gis.php godmode/setup/os.builder.php godmode/setup/setup_visuals.php godmode/users/user_list.php godmode/users/configure_user.php godmode/users/configure_profile.php godmode/gis_maps/configure_gis_map.php godmode/gis_maps/index.php godmode/massive/massive_add_alerts.php godmode/massive/massive_copy_modules.php godmode/massive/massive_delete_agents.php godmode/massive/massive_enable_disable_alerts.php godmode/massive/massive_operations.php godmode/massive/massive_delete_profiles.php godmode/massive/massive_edit_agents.php godmode/massive/massive_delete_action_alerts.php godmode/massive/massive_delete_modules.php godmode/massive/massive_add_profiles.php godmode/massive/massive_delete_alerts.php godmode/massive/massive_edit_modules.php godmode/massive/massive_standby_alerts.php godmode/massive/massive_add_action_alerts.php godmode/modules/manage_network_components_form.php godmode/modules/manage_nc_groups_form.php godmode/modules/manage_network_templates.php godmode/modules/module_list.php godmode/modules/manage_network_components_form_common.php godmode/modules/manage_network_components_form_network.php godmode/modules/manage_network_templates_form.php godmode/modules/manage_network_components_form_wmi.php godmode/modules/manage_network_components.php godmode/modules/manage_nc_groups.php godmode/modules/manage_network_components_form_plugin.php godmode/reporting/reporting_builder.list_items.php godmode/reporting/graph_builder.main.php godmode/reporting/visual_console_builder.wizard.php godmode/reporting/visual_console_builder.php godmode/reporting/reporting_builder.preview.php godmode/reporting/reporting_builder.main.php godmode/reporting/visual_console_builder.data.php godmode/reporting/visual_console_builder.elements.php godmode/reporting/graph_builder.php godmode/reporting/graph_builder.graph_editor.php godmode/reporting/reporting_builder.php godmode/reporting/visual_console_builder.editor.php godmode/reporting/reporting_builder.item_editor.php godmode/reporting/map_builder.php godmode/reporting/graphs.php godmode/reporting/graph_builder.preview.php: Now functions on functions_html.php, functions_gis.php, functions_filemanager.php, functions_exportserver.php have "html_", "gis_", "filemanager_" and "exportserver_" prefix respectively. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4281 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 242 ++++++++++++++++++ pandora_console/extensions/agents_modules.php | 20 +- pandora_console/extensions/dbmanager.php | 6 +- .../extensions/extension_uploader.php | 8 +- pandora_console/extensions/insert_data.php | 18 +- pandora_console/extensions/module_groups.php | 4 +- .../extensions/resource_exportation.php | 10 +- .../extensions/resource_registration.php | 2 +- pandora_console/extensions/system_info.php | 16 +- .../extensions/update_manager/main.php | 12 +- .../extensions/update_manager/settings.php | 26 +- .../extensions/users_connected.php | 2 +- pandora_console/general/header.php | 28 +- pandora_console/general/login_page.php | 10 +- pandora_console/general/logoff.php | 2 +- pandora_console/general/logon_ok.php | 4 +- pandora_console/general/noaccess.php | 2 +- pandora_console/general/pandora_help.php | 4 +- pandora_console/general/ui/agents_list.php | 14 +- pandora_console/godmode/admin_access_logs.php | 16 +- .../godmode/agentes/agent_conf_gis.php | 20 +- .../godmode/agentes/agent_manager.php | 76 +++--- .../godmode/agentes/agent_template.php | 12 +- .../godmode/agentes/configurar_agente.php | 16 +- .../godmode/agentes/configure_field.php | 16 +- .../godmode/agentes/fields_manager.php | 12 +- .../godmode/agentes/manage_config_remote.php | 2 +- .../godmode/agentes/modificar_agente.php | 26 +- .../godmode/agentes/module_manager.php | 38 +-- .../godmode/agentes/module_manager_editor.php | 20 +- .../agentes/module_manager_editor_common.php | 44 ++-- .../agentes/module_manager_editor_network.php | 40 +-- .../agentes/module_manager_editor_plugin.php | 12 +- .../module_manager_editor_prediction.php | 10 +- .../agentes/module_manager_editor_wmi.php | 14 +- .../godmode/agentes/planned_downtime.php | 54 ++-- .../godmode/alerts/alert_actions.php | 12 +- .../godmode/alerts/alert_commands.php | 8 +- .../godmode/alerts/alert_compounds.php | 32 +-- .../godmode/alerts/alert_list.builder.php | 30 +-- .../godmode/alerts/alert_list.list.php | 96 +++---- pandora_console/godmode/alerts/alert_list.php | 4 +- .../godmode/alerts/alert_templates.php | 28 +- .../godmode/alerts/configure_alert_action.php | 30 +-- .../alerts/configure_alert_command.php | 18 +- .../alerts/configure_alert_compound.php | 94 +++---- .../alerts/configure_alert_template.php | 78 +++--- pandora_console/godmode/db/db_event.php | 6 +- pandora_console/godmode/db/db_info.php | 4 +- pandora_console/godmode/db/db_purge.php | 12 +- pandora_console/godmode/db/db_refine.php | 12 +- pandora_console/godmode/db/db_sanity.php | 4 +- pandora_console/godmode/extensions.php | 18 +- .../godmode/gis_maps/configure_gis_map.php | 100 ++++---- pandora_console/godmode/gis_maps/index.php | 14 +- .../godmode/groups/configure_group.php | 30 +-- .../godmode/groups/configure_modu_group.php | 14 +- pandora_console/godmode/groups/group_list.php | 10 +- .../godmode/groups/modu_group_list.php | 6 +- .../massive/massive_add_action_alerts.php | 26 +- .../godmode/massive/massive_add_alerts.php | 16 +- .../godmode/massive/massive_add_profiles.php | 16 +- .../godmode/massive/massive_copy_modules.php | 38 +-- .../massive/massive_delete_action_alerts.php | 22 +- .../godmode/massive/massive_delete_agents.php | 12 +- .../godmode/massive/massive_delete_alerts.php | 16 +- .../massive/massive_delete_modules.php | 14 +- .../massive/massive_delete_profiles.php | 16 +- .../godmode/massive/massive_edit_agents.php | 70 ++--- .../godmode/massive/massive_edit_modules.php | 66 ++--- .../massive/massive_enable_disable_alerts.php | 28 +- .../godmode/massive/massive_operations.php | 10 +- .../massive/massive_standby_alerts.php | 28 +- .../godmode/modules/manage_nc_groups.php | 12 +- .../godmode/modules/manage_nc_groups_form.php | 16 +- .../modules/manage_network_components.php | 20 +- .../manage_network_components_form.php | 18 +- .../manage_network_components_form_common.php | 26 +- ...manage_network_components_form_network.php | 26 +- .../manage_network_components_form_plugin.php | 12 +- .../manage_network_components_form_wmi.php | 28 +- .../modules/manage_network_templates.php | 12 +- .../modules/manage_network_templates_form.php | 26 +- .../godmode/modules/module_list.php | 2 +- .../reporting/graph_builder.graph_editor.php | 14 +- .../godmode/reporting/graph_builder.main.php | 10 +- .../godmode/reporting/graph_builder.php | 6 +- .../reporting/graph_builder.preview.php | 10 +- pandora_console/godmode/reporting/graphs.php | 8 +- .../godmode/reporting/map_builder.php | 10 +- .../reporting_builder.item_editor.php | 106 ++++---- .../reporting_builder.list_items.php | 36 +-- .../reporting/reporting_builder.main.php | 16 +- .../godmode/reporting/reporting_builder.php | 18 +- .../reporting/reporting_builder.preview.php | 22 +- .../reporting/visual_console_builder.data.php | 16 +- .../visual_console_builder.editor.php | 60 ++--- .../visual_console_builder.elements.php | 54 ++-- .../reporting/visual_console_builder.php | 10 +- .../visual_console_builder.wizard.php | 20 +- .../godmode/servers/manage_recontask.php | 14 +- .../godmode/servers/manage_recontask_form.php | 40 +-- .../godmode/servers/modificar_server.php | 12 +- pandora_console/godmode/servers/plugin.php | 4 +- .../godmode/servers/recon_script.php | 2 +- .../godmode/setup/file_manager.php | 4 +- pandora_console/godmode/setup/gis.php | 10 +- pandora_console/godmode/setup/gis_step_2.php | 64 ++--- pandora_console/godmode/setup/links.php | 2 +- pandora_console/godmode/setup/news.php | 2 +- pandora_console/godmode/setup/os.builder.php | 14 +- pandora_console/godmode/setup/os.list.php | 4 +- pandora_console/godmode/setup/os.php | 4 +- pandora_console/godmode/setup/performance.php | 40 +-- pandora_console/godmode/setup/setup.php | 60 ++--- pandora_console/godmode/setup/setup_auth.php | 32 +-- .../godmode/setup/setup_visuals.php | 32 +-- .../godmode/snmpconsole/snmp_alert.php | 38 +-- .../godmode/snmpconsole/snmp_filters.php | 20 +- .../godmode/users/configure_profile.php | 34 +-- .../godmode/users/configure_user.php | 56 ++-- pandora_console/godmode/users/user_list.php | 36 +-- pandora_console/include/ajax/skins.ajax.php | 2 +- .../ajax/visual_console_builder.ajax.php | 10 +- pandora_console/include/functions.php | 12 +- pandora_console/include/functions_agents.php | 2 +- pandora_console/include/functions_db.php | 4 +- pandora_console/include/functions_events.php | 30 +-- .../include/functions_exportserver.php | 10 +- .../include/functions_extensions.php | 72 +++--- .../include/functions_filemanager.php | 186 +++++++------- pandora_console/include/functions_fsgraph.php | 2 +- pandora_console/include/functions_gis.php | 92 +++---- pandora_console/include/functions_graph.php | 2 +- pandora_console/include/functions_groups.php | 38 +-- pandora_console/include/functions_html.php | 82 +++--- .../include/functions_incidents.php | 22 +- pandora_console/include/functions_menu.php | 2 +- .../include/functions_messages.php | 2 +- pandora_console/include/functions_modules.php | 6 +- .../include/functions_network_components.php | 4 +- .../include/functions_networkmap.php | 20 +- .../include/functions_reporting.php | 54 ++-- pandora_console/include/functions_servers.php | 32 +-- pandora_console/include/functions_ui.php | 44 ++-- .../include/functions_ui_renders.php | 6 +- pandora_console/include/functions_users.php | 4 +- .../include/functions_visual_map.php | 16 +- .../include/graphs/functions_pchart.php | 12 +- .../include/help/en/help_agent_status.php | 16 +- .../help/en/help_cascade_protection.php | 2 +- .../help/en/help_configure_gis_map.php | 4 +- .../include/help/en/help_eventview.php | 20 +- .../include/help/en/help_gis_map_builder.php | 4 +- .../include/help/en/help_setup_gis_index.php | 2 +- .../include/help/es/help_agent_status.php | 16 +- .../help/es/help_cascade_protection.php | 2 +- .../help/es/help_configure_gis_map.php | 2 +- .../include/help/es/help_eventview.php | 20 +- .../include/help/es/help_gis_map_builder.php | 4 +- .../include/help/ja/help_agent_status.php | 16 +- .../help/ja/help_cascade_protection.php | 2 +- .../help/ja/help_configure_gis_map.php | 4 +- .../include/help/ja/help_eventview.php | 20 +- .../include/help/ja/help_gis_map_builder.php | 4 +- .../include/help/ja/help_setup_gis_index.php | 2 +- pandora_console/include/styles/pandora.css | 2 +- pandora_console/mobile/include/user.class.php | 16 +- .../mobile/operation/agents/group_view.php | 4 +- .../operation/agents/monitor_status.php | 12 +- .../mobile/operation/agents/tactical.php | 6 +- .../mobile/operation/agents/view_agents.php | 18 +- .../mobile/operation/agents/view_alerts.php | 2 +- .../mobile/operation/events/events.php | 12 +- .../mobile/operation/servers/view_servers.php | 2 +- .../agentes/alerts_status.functions.php | 12 +- .../operation/agentes/alerts_status.php | 46 ++-- .../operation/agentes/custom_fields.php | 6 +- .../operation/agentes/datos_agente.php | 4 +- .../operation/agentes/estado_agente.php | 34 +-- .../agentes/estado_generalagente.php | 10 +- .../operation/agentes/estado_monitores.php | 36 +-- .../agentes/estado_ultimopaquete.php | 42 +-- .../operation/agentes/exportdata.php | 26 +- .../operation/agentes/gis_view.php | 16 +- pandora_console/operation/agentes/graphs.php | 20 +- .../operation/agentes/group_view.php | 2 +- .../operation/agentes/networkmap.groups.php | 2 +- .../operation/agentes/networkmap.php | 54 ++-- .../operation/agentes/networkmap.topology.php | 2 +- .../operation/agentes/sla_view.php | 12 +- .../operation/agentes/stat_win.php | 30 +-- .../operation/agentes/status_monitor.php | 22 +- .../operation/agentes/tactical.php | 4 +- .../operation/agentes/ver_agente.php | 36 +-- pandora_console/operation/events/events.php | 12 +- .../operation/events/events_list.php | 66 ++--- .../operation/events/events_validate.php | 16 +- .../operation/events/export_csv.php | 2 +- .../operation/events/sound_events.php | 16 +- pandora_console/operation/extensions.php | 2 +- pandora_console/operation/gis_maps/ajax.php | 6 +- pandora_console/operation/gis_maps/index.php | 4 +- .../operation/gis_maps/render_view.php | 42 +-- .../operation/incidents/incident.files.php | 18 +- .../operation/incidents/incident.incident.php | 36 +-- .../operation/incidents/incident.list.php | 12 +- .../operation/incidents/incident.php | 14 +- .../operation/incidents/incident.tracking.php | 2 +- .../incidents/incident.workunits.php | 22 +- .../operation/incidents/incident_detail.php | 50 ++-- .../integria_incidents/incident.files.php | 18 +- .../integria_incidents/incident.incident.php | 36 +-- .../integria_incidents/incident.list.php | 12 +- .../operation/integria_incidents/incident.php | 14 +- .../integria_incidents/incident.tracking.php | 2 +- .../integria_incidents/incident.workunits.php | 22 +- .../integria_incidents/incident_detail.php | 50 ++-- .../operation/messages/message.php | 34 +-- .../operation/reporting/custom_reporting.php | 6 +- .../operation/reporting/graph_viewer.php | 16 +- .../operation/reporting/reporting_viewer.php | 22 +- .../operation/reporting/reporting_xml.php | 4 +- pandora_console/operation/search_agents.php | 24 +- pandora_console/operation/search_alerts.php | 22 +- pandora_console/operation/search_graphs.php | 2 +- pandora_console/operation/search_maps.php | 2 +- pandora_console/operation/search_modules.php | 14 +- pandora_console/operation/search_reports.php | 6 +- pandora_console/operation/search_results.php | 14 +- pandora_console/operation/search_users.php | 28 +- .../operation/servers/view_server.php | 2 +- .../operation/servers/view_server_detail.php | 12 +- .../operation/snmpconsole/snmp_view.php | 58 ++--- pandora_console/operation/users/user_edit.php | 32 +-- .../operation/visual_console/index.php | 4 +- .../operation/visual_console/render_view.php | 16 +- 237 files changed, 2736 insertions(+), 2488 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 98ec716012..298d1aa587 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,245 @@ +2011-04-27 Juan Manuel Ramon + + * include/functions_graph.php + include/functions_users.php + include/functions_events.php + include/functions_html.php + include/functions_menu.php + include/styles/pandora.css + include/graphs/functions_pchart.php + include/functions_messages.php + include/functions_exportserver.php + include/functions_modules.php + include/functions_reporting.php + include/functions_filemanager.php + include/functions_groups.php + include/functions_gis.php + include/functions_networkmap.php + include/functions_servers.php + include/functions_network_components.php + include/functions_visual_map.php + include/ajax/skins.ajax.php + include/ajax/visual_console_builder.ajax.php + include/help/en/help_gis_map_builder.php + include/help/en/help_agent_status.php + include/help/en/help_eventview.php + include/help/en/help_configure_gis_map.php + include/help/en/help_cascade_protection.php + include/help/en/help_setup_gis_index.php + include/help/es/help_gis_map_builder.php + include/help/es/help_agent_status.php + include/help/es/help_eventview.php + include/help/es/help_configure_gis_map.php + include/help/es/help_cascade_protection.php + include/help/ja/help_gis_map_builder.php + include/help/ja/help_agent_status.php + include/help/ja/help_eventview.php + include/help/ja/help_configure_gis_map.php + include/help/ja/help_cascade_protection.php + include/help/ja/help_setup_gis_index.php + include/functions_ui.php + include/functions_incidents.php + include/functions.php + include/functions_agents.php + include/functions_db.php + include/functions_fsgraph.php + include/functions_extensions.php + include/functions_ui_renders.php + extensions/insert_data.php + extensions/system_info.php + extensions/extension_uploader.php + extensions/agents_modules.php + extensions/dbmanager.php + extensions/resource_registration.php + extensions/resource_exportation.php + extensions/users_connected.php + extensions/module_groups.php + extensions/update_manager/settings.php + extensions/update_manager/main.php + operation/incidents/incident.incident.php + operation/incidents/incident.php + operation/incidents/incident.files.php + operation/incidents/incident.tracking.php + operation/incidents/incident_detail.php + operation/incidents/incident.workunits.php + operation/incidents/incident.list.php + operation/search_modules.php + operation/extensions.php + operation/visual_console/render_view.php + operation/visual_console/index.php + operation/agentes/status_monitor.php + operation/agentes/estado_ultimopaquete.php + operation/agentes/datos_agente.php + operation/agentes/alerts_status.php + operation/agentes/estado_generalagente.php + operation/agentes/custom_fields.php + operation/agentes/estado_agente.php + operation/agentes/networkmap.topology.php + operation/agentes/alerts_status.functions.php + operation/agentes/networkmap.groups.php + operation/agentes/sla_view.php + operation/agentes/exportdata.php + operation/agentes/gis_view.php + operation/agentes/estado_monitores.php + operation/agentes/ver_agente.php + operation/agentes/graphs.php + operation/agentes/tactical.php + operation/agentes/group_view.php + operation/agentes/networkmap.php + operation/agentes/stat_win.php + operation/servers/view_server.php + operation/servers/view_server_detail.php + operation/search_agents.php + operation/search_graphs.php + operation/snmpconsole/snmp_view.php + operation/users/user_edit.php + operation/integria_incidents/incident.incident.php + operation/integria_incidents/incident.php + operation/integria_incidents/incident.files.php + operation/integria_incidents/incident.tracking.php + operation/integria_incidents/incident_detail.php + operation/integria_incidents/incident.workunits.php + operation/integria_incidents/incident.list.php + operation/gis_maps/render_view.php + operation/gis_maps/ajax.php + operation/gis_maps/index.php + operation/events/export_csv.php + operation/events/sound_events.php + operation/events/events_validate.php + operation/events/events_list.php + operation/events/events.php + operation/search_alerts.php + operation/messages/message.php + operation/reporting/reporting_xml.php + operation/reporting/reporting_viewer.php + operation/reporting/graph_viewer.php + operation/reporting/custom_reporting.php + operation/search_reports.php + operation/search_maps.php + operation/search_results.php + operation/search_users.php + mobile/operation/agents/monitor_status.php + mobile/operation/agents/view_agents.php + mobile/operation/agents/tactical.php + mobile/operation/agents/view_alerts.php + mobile/operation/agents/group_view.php + mobile/operation/events/events.php + mobile/operation/servers/view_servers.php + mobile/include/user.class.php + general/pandora_help.php + general/noaccess.php + general/login_page.php + general/logon_ok.php + general/logoff.php + general/ui/agents_list.php + general/header.php + godmode/groups/modu_group_list.php + godmode/groups/configure_group.php + godmode/groups/configure_modu_group.php + godmode/groups/group_list.php + godmode/admin_access_logs.php + godmode/extensions.php + godmode/db/db_sanity.php + godmode/db/db_refine.php + godmode/db/db_info.php + godmode/db/db_event.php + godmode/db/db_purge.php + godmode/agentes/agent_template.php + godmode/agentes/module_manager_editor_common.php + godmode/agentes/module_manager_editor_network.php + godmode/agentes/fields_manager.php + godmode/agentes/module_manager_editor_wmi.php + godmode/agentes/module_manager_editor_plugin.php + godmode/agentes/agent_conf_gis.php + godmode/agentes/module_manager_editor_prediction.php + godmode/agentes/module_manager.php + godmode/agentes/modificar_agente.php + godmode/agentes/configurar_agente.php + godmode/agentes/configure_field.php + godmode/agentes/module_manager_editor.php + godmode/agentes/planned_downtime.php + godmode/agentes/manage_config_remote.php + godmode/agentes/agent_manager.php + godmode/servers/recon_script.php + godmode/servers/plugin.php + godmode/servers/manage_recontask.php + godmode/servers/modificar_server.php + godmode/servers/manage_recontask_form.php + godmode/alerts/alert_list.list.php + godmode/alerts/configure_alert_compound.php + godmode/alerts/alert_compounds.php + godmode/alerts/alert_list.php + godmode/alerts/configure_alert_template.php + godmode/alerts/alert_templates.php + godmode/alerts/configure_alert_action.php + godmode/alerts/configure_alert_command.php + godmode/alerts/alert_actions.php + godmode/alerts/alert_list.builder.php + godmode/alerts/alert_commands.php + godmode/snmpconsole/snmp_alert.php + godmode/snmpconsole/snmp_filters.php + godmode/setup/file_manager.php + godmode/setup/os.list.php + godmode/setup/news.php + godmode/setup/gis_step_2.php + godmode/setup/links.php + godmode/setup/setup.php + godmode/setup/os.php + godmode/setup/performance.php + godmode/setup/setup_auth.php + godmode/setup/gis.php + godmode/setup/os.builder.php + godmode/setup/setup_visuals.php + godmode/users/user_list.php + godmode/users/configure_user.php + godmode/users/configure_profile.php + godmode/gis_maps/configure_gis_map.php + godmode/gis_maps/index.php + godmode/massive/massive_add_alerts.php + godmode/massive/massive_copy_modules.php + godmode/massive/massive_delete_agents.php + godmode/massive/massive_enable_disable_alerts.php + godmode/massive/massive_operations.php + godmode/massive/massive_delete_profiles.php + godmode/massive/massive_edit_agents.php + godmode/massive/massive_delete_action_alerts.php + godmode/massive/massive_delete_modules.php + godmode/massive/massive_add_profiles.php + godmode/massive/massive_delete_alerts.php + godmode/massive/massive_edit_modules.php + godmode/massive/massive_standby_alerts.php + godmode/massive/massive_add_action_alerts.php + godmode/modules/manage_network_components_form.php + godmode/modules/manage_nc_groups_form.php + godmode/modules/manage_network_templates.php + godmode/modules/module_list.php + godmode/modules/manage_network_components_form_common.php + godmode/modules/manage_network_components_form_network.php + godmode/modules/manage_network_templates_form.php + godmode/modules/manage_network_components_form_wmi.php + godmode/modules/manage_network_components.php + godmode/modules/manage_nc_groups.php + godmode/modules/manage_network_components_form_plugin.php + godmode/reporting/reporting_builder.list_items.php + godmode/reporting/graph_builder.main.php + godmode/reporting/visual_console_builder.wizard.php + godmode/reporting/visual_console_builder.php + godmode/reporting/reporting_builder.preview.php + godmode/reporting/reporting_builder.main.php + godmode/reporting/visual_console_builder.data.php + godmode/reporting/visual_console_builder.elements.php + godmode/reporting/graph_builder.php + godmode/reporting/graph_builder.graph_editor.php + godmode/reporting/reporting_builder.php + godmode/reporting/visual_console_builder.editor.php + godmode/reporting/reporting_builder.item_editor.php + godmode/reporting/map_builder.php + godmode/reporting/graphs.php + godmode/reporting/graph_builder.preview.php: Now functions on + functions_html.php, functions_gis.php, functions_filemanager.php, + functions_exportserver.php have "html_", "gis_", "filemanager_" and + "exportserver_" prefix respectively. + 2011-04-26 Sergio Martin * include/graphs/functions_pchart.php diff --git a/pandora_console/extensions/agents_modules.php b/pandora_console/extensions/agents_modules.php index 3874aeb19f..97e8aa07e4 100644 --- a/pandora_console/extensions/agents_modules.php +++ b/pandora_console/extensions/agents_modules.php @@ -59,7 +59,7 @@ function mainAgentsModules() { $updated_info = __("Updated at realtime"); } - $updated_time = print_image ("images/information.png", true, array ("title" => __('Last update'), "style" => 'margin: 5px 3px 0px 10px')).$updated_info; + $updated_time = html_print_image ("images/information.png", true, array ("title" => __('Last update'), "style" => 'margin: 5px 3px 0px 10px')).$updated_info; $modulegroup = get_parameter('modulegroup', 0); $refr = get_parameter('refr', 30); // By default 30 seconds @@ -73,28 +73,28 @@ function mainAgentsModules() { $filter_module_groups = '
'; $filter_module_groups .= ''.__('Module group').''; - $filter_module_groups .= print_select_from_sql ("SELECT * FROM tmodule_group ORDER BY name", + $filter_module_groups .= html_print_select_from_sql ("SELECT * FROM tmodule_group ORDER BY name", 'modulegroup', $modulegroup, 'this.form.submit()',__('All'), 0, true, false, true, false, 'width: 100px; margin-right: 10px; margin-top: 5px;'); $filter_module_groups .= '
'; $filter_groups = '
'; $filter_groups .= ''.__('Group').''; - $filter_groups .= print_select_groups(false, "AR", true, 'group_id', $group_id, 'this.form.submit()', '', '', true, false, true, '', false , 'width: 100px; margin-right: 10px;; margin-top: 5px;'); + $filter_groups .= html_print_select_groups(false, "AR", true, 'group_id', $group_id, 'this.form.submit()', '', '', true, false, true, '', false , 'width: 100px; margin-right: 10px;; margin-top: 5px;'); $filter_groups .= '
'; $comborefr = '
'; $comborefr .= ''.__('Refresh').''; - $comborefr .= print_select (array('30' => '30 '.__('seconds'), '60' => '1 '.__('minute'), '120' => '2 '.__('minutes'), '300' => '5 '.__('minutes'), '600' => '10 '.__('minutes')) , 'refr', $config['refr'], $script = 'this.form.submit()', '', 0, true, false, false, '', false, 'width: 100px; margin-right: 10px; margin-top: 5px;'); + $comborefr .= html_print_select (array('30' => '30 '.__('seconds'), '60' => '1 '.__('minute'), '120' => '2 '.__('minutes'), '300' => '5 '.__('minutes'), '600' => '10 '.__('minutes')) , 'refr', $config['refr'], $script = 'this.form.submit()', '', 0, true, false, false, '', false, 'width: 100px; margin-right: 10px; margin-top: 5px;'); $comborefr .= "
"; if ($config["pure"] == 0) { $fullscreen = '' - . print_image ("images/fullscreen.png", true, array ("title" => __('Full screen mode'))) + . html_print_image ("images/fullscreen.png", true, array ("title" => __('Full screen mode'))) . ""; } else { $fullscreen = '' - . print_image ("images/normalscreen.png", true, array ("title" => __('Back to normal mode'))) + . html_print_image ("images/normalscreen.png", true, array ("title" => __('Back to normal mode'))) . ""; $config['refr'] = $refr; } @@ -168,7 +168,7 @@ function mainAgentsModules() { if($hor_offset > 0) { $new_hor_offset = $hor_offset-$block; - echo "".print_image("images/darrowleft.png",true, array('title' => __('Previous modules')))." "; + echo "".html_print_image("images/darrowleft.png",true, array('title' => __('Previous modules')))." "; } $nmodules = 0; foreach($modules_by_name as $module) { @@ -179,12 +179,12 @@ function mainAgentsModules() { } $file_name = string2image(ui_print_truncate_text($module['name'],15, false, true, false, '...'), 115, 13, 3, 270, '#9EAC8B', 'FFF', 4, 0); - echo ''.print_image($file_name, true, array('title' => $module['name'])).""; + echo ''.html_print_image($file_name, true, array('title' => $module['name'])).""; } if(($hor_offset + $block) < $nmodules) { $new_hor_offset = $hor_offset+$block; - echo "".print_image("images/darrowright.png",true, array('title' => __('More modules')))." "; + echo "".html_print_image("images/darrowright.png",true, array('title' => __('More modules')))." "; } $filter_agents = false; @@ -227,7 +227,7 @@ function mainAgentsModules() { echo ""; $file_name = string2image(ui_print_truncate_text($agent['nombre'],19, false, true, false, '...'), 140, 15, 3, 0, $rowcolor, $textcolor, 4, 0); - echo "".print_image($file_name, true, array('title' => $agent['nombre'])).""; + echo "".html_print_image($file_name, true, array('title' => $agent['nombre'])).""; $agent_modules = get_agent_modules($agent['id_agente']); $nmodules = 0; diff --git a/pandora_console/extensions/dbmanager.php b/pandora_console/extensions/dbmanager.php index cd4fc34a56..49b2d8e842 100644 --- a/pandora_console/extensions/dbmanager.php +++ b/pandora_console/extensions/dbmanager.php @@ -102,10 +102,10 @@ function dbmgr_extension_main () { echo "

"; echo "
"; - print_textarea ('sql', 5, 40, html_entity_decode($sql, ENT_QUOTES)); + html_print_textarea ('sql', 5, 40, html_entity_decode($sql, ENT_QUOTES)); echo '
'; echo '
'; - print_submit_button (__('Execute SQL'), '', false, 'class="sub next"'); + html_print_submit_button (__('Execute SQL'), '', false, 'class="sub next"'); echo '
'; echo "
"; @@ -143,7 +143,7 @@ function dbmgr_extension_main () { $table->data = $result; - print_table ($table); + html_print_table ($table); } /* This adds a option in the operation menu */ diff --git a/pandora_console/extensions/extension_uploader.php b/pandora_console/extensions/extension_uploader.php index c4228dd0ba..da88f5a4ba 100644 --- a/pandora_console/extensions/extension_uploader.php +++ b/pandora_console/extensions/extension_uploader.php @@ -55,14 +55,14 @@ function extension_uploader_extensions() { $table->width = '50%'; $table->data = array(); $table->data[0][0] = __('Upload extension'); - $table->data[0][1] = print_input_file('extension', true) . + $table->data[0][1] = html_print_input_file('extension', true) . ui_print_help_tip (__("Upload the extension as a zip file."), true); echo "
"; - print_table($table); + html_print_table($table); echo "
"; - print_input_hidden('upload', 1); - print_submit_button(__('Upload'), 'submit', false, 'class="sub add"'); + html_print_input_hidden('upload', 1); + html_print_submit_button(__('Upload'), 'submit', false, 'class="sub add"'); echo "
"; echo "
"; } diff --git a/pandora_console/extensions/insert_data.php b/pandora_console/extensions/insert_data.php index 259c1d9097..a143d4a6f1 100644 --- a/pandora_console/extensions/insert_data.php +++ b/pandora_console/extensions/insert_data.php @@ -116,30 +116,30 @@ function mainInsertData() { $table->data = array(); $table->data[0][0] = __('Agent'); - $table->data[0][1] = print_input_text_extended ('id_agent', $id_agent, 'text_id_agent', '', 30, 100, false, '', + $table->data[0][1] = html_print_input_text_extended ('id_agent', $id_agent, 'text_id_agent', '', 30, 100, false, '', array('style' => 'background: url(images/lightning.png) no-repeat right;'), true) . ' ' . __("Type at least two characters to search") . ''; $table->data[1][0] = __('Module'); $modules = array (); if ($id_agent) $modules = get_agent_modules ($id_agent, false, array("delete_pending" => 0)); - $table->data[1][1] = print_select ($modules, 'id_agent_module', $id_agent_module, true, + $table->data[1][1] = html_print_select ($modules, 'id_agent_module', $id_agent_module, true, __('Select'), 0, true, false, true, '', ($id_agent === '')); $table->data[2][0] = __('Data'); - $table->data[2][1] = print_input_text('data', $data, __('Data'), 40, 60, true); + $table->data[2][1] = html_print_input_text('data', $data, __('Data'), 40, 60, true); $table->data[3][0] = __('Date'); - $table->data[3][1] = print_input_text ('date', $date, '', 11, 11, true).' '; - $table->data[3][1] .= print_input_text ('time', $time, '', 7, 7, true); + $table->data[3][1] = html_print_input_text ('date', $date, '', 11, 11, true).' '; + $table->data[3][1] .= html_print_input_text ('time', $time, '', 7, 7, true); $table->data[4][0] = __('CSV'); - $table->data[4][1] = print_input_file('csv', true); + $table->data[4][1] = html_print_input_file('csv', true); echo "
"; - print_table($table); + html_print_table($table); echo "
"; - print_input_hidden('save', 1); - print_submit_button(__('Save'), 'submit', ($id_agent === ''), 'class="sub next"'); + html_print_input_hidden('save', 1); + html_print_submit_button(__('Save'), 'submit', ($id_agent === ''), 'class="sub next"'); echo "
"; echo "
"; diff --git a/pandora_console/extensions/module_groups.php b/pandora_console/extensions/module_groups.php index 5b8f4adc58..c0cd065e5f 100644 --- a/pandora_console/extensions/module_groups.php +++ b/pandora_console/extensions/module_groups.php @@ -134,7 +134,7 @@ function mainModuleGroups() { $head = $modelGroups; array_unshift($head, ' '); - //Metaobject use in print_table + //Metaobject use in html_print_table $table = null; $table->align[0] = 'right'; //Align to right the first column. $table->style[0] = 'color: #ffffff; background-color: #778866; font-weight: bolder;'; @@ -231,7 +231,7 @@ function mainModuleGroups() { } $table->data = $tableData; echo "
"; - print_table($table); + html_print_table($table); echo "
"; echo "

" . __("The colours meaning:") . diff --git a/pandora_console/extensions/resource_exportation.php b/pandora_console/extensions/resource_exportation.php index c4c6a1ef34..ad43460e9f 100644 --- a/pandora_console/extensions/resource_exportation.php +++ b/pandora_console/extensions/resource_exportation.php @@ -352,16 +352,16 @@ function resource_exportation_extension_main() { $table->style[1] = 'width: 10%;'; $table->class = "databox_color"; $table->data[0][0] = __('Report'); - $table->data[0][1] = print_select_from_sql('SELECT id_report, name FROM treport', 'report', '', '', '', 0, true); - $table->data[0][2] = print_button(__('Export'), '', false, 'export_to_ptr(\'report\');', 'class="sub"', true); + $table->data[0][1] = html_print_select_from_sql('SELECT id_report, name FROM treport', 'report', '', '', '', 0, true); + $table->data[0][2] = html_print_button(__('Export'), '', false, 'export_to_ptr(\'report\');', 'class="sub"', true); $table->data[1][0] = __('Visual console'); - $table->data[1][1] = print_select_from_sql('SELECT id, name FROM tlayout', 'visual_console', '', '', '', 0, true); - $table->data[1][2] = print_button(__('Export'), '', false, 'export_to_ptr(\'visual_console\');', 'class="sub"', true); + $table->data[1][1] = html_print_select_from_sql('SELECT id, name FROM tlayout', 'visual_console', '', '', '', 0, true); + $table->data[1][2] = html_print_button(__('Export'), '', false, 'export_to_ptr(\'visual_console\');', 'class="sub"', true); if ($hook_enterprise === true) add_rows_for_enterprise($table->data); - print_table($table); + html_print_table($table); ?> '; echo '

'; -print_submit_button (__('Create group'), 'crt', false, 'class="sub next"'); +html_print_submit_button (__('Create group'), 'crt', false, 'class="sub next"'); echo '
'; echo ''; diff --git a/pandora_console/godmode/groups/modu_group_list.php b/pandora_console/godmode/groups/modu_group_list.php index 7c70206bf5..aa3c10f2a0 100644 --- a/pandora_console/godmode/groups/modu_group_list.php +++ b/pandora_console/godmode/groups/modu_group_list.php @@ -122,16 +122,16 @@ foreach ($groups as $id_group ) { $data = array (); $data[0] = '' . ui_print_truncate_text($id_group["name"], 50).''; - $data[1] = '' . print_image("images/cross.png", true, array("border" => '0')) . ''; + $data[1] = '' . html_print_image("images/cross.png", true, array("border" => '0')) . ''; array_push ($table->data, $data); } -print_table ($table); +html_print_table ($table); echo '
'; echo '
'; -print_submit_button (__('Create module group'), 'crt', false, 'class="sub next"'); +html_print_submit_button (__('Create module group'), 'crt', false, 'class="sub next"'); echo '
'; echo '
'; diff --git a/pandora_console/godmode/massive/massive_add_action_alerts.php b/pandora_console/godmode/massive/massive_add_action_alerts.php index 8cf8ee0c80..eef14bde47 100644 --- a/pandora_console/godmode/massive/massive_add_action_alerts.php +++ b/pandora_console/godmode/massive/massive_add_action_alerts.php @@ -145,14 +145,14 @@ $table->size[1] = '85%'; $table->data = array (); $table->data[0][0] = __('Group'); -$table->data[0][1] = print_select_groups(false, "AR", true, 'id_group', $id_group, +$table->data[0][1] = html_print_select_groups(false, "AR", true, 'id_group', $id_group, false, '', '', true); $table->data[1][0] = __('Agents'); $table->data[1][0] .= ''; -$table->data[1][1] = print_select (get_group_agents ($id_group, false, "none"), +$table->data[1][1] = html_print_select (get_group_agents ($id_group, false, "none"), 'id_agents[]', 0, false, '', '', true, true); if (empty($id_agents)) { @@ -163,9 +163,9 @@ else { } $table->data[2][0] = __('Alert templates'); $table->data[2][0] .= ''; -$table->data[2][1] = print_select (index_array ($alert_templates, 'id_alert_template', 'template_name'), 'id_alert_templates[]', '', '', '', '', true, true, true, '', $alert_templates == 0); +$table->data[2][1] = html_print_select (index_array ($alert_templates, 'id_alert_template', 'template_name'), 'id_alert_templates[]', '', '', '', '', true, true, true, '', $alert_templates == 0); if (empty($id_agents)) { $alert_compounds = ''; @@ -182,28 +182,28 @@ else { } $table->data[3][0] = __('Alert compounds'); $table->data[3][0] .= ''; -$table->data[3][1] = print_select (index_array ($alert_compounds, 'id', 'name'), 'id_alert_compounds[]', '', false, '', '', true, true, true, '', $alert_compounds == 0); +$table->data[3][1] = html_print_select (index_array ($alert_compounds, 'id', 'name'), 'id_alert_compounds[]', '', false, '', '', true, true, true, '', $alert_compounds == 0); $actions = alerts_get_alert_actions (); $table->data[4][0] = __('Action'); -$table->data[4][1] = print_select ($actions, 'action', '', '', __('None'), 0, true); +$table->data[4][1] = html_print_select ($actions, 'action', '', '', __('None'), 0, true); $table->data[4][1] .= ''.__('Advanced options').' » '; $table->data[4][1] .= ''; echo '
'; -print_table ($table); +html_print_table ($table); echo '
'; -print_input_hidden ('add', 1); -print_submit_button (__('Add'), 'go', false, 'class="sub add"'); +html_print_input_hidden ('add', 1); +html_print_submit_button (__('Add'), 'go', false, 'class="sub add"'); echo '
'; echo '
'; diff --git a/pandora_console/godmode/massive/massive_add_alerts.php b/pandora_console/godmode/massive/massive_add_alerts.php index cbec7e2f5d..ca1ab3af1d 100644 --- a/pandora_console/godmode/massive/massive_add_alerts.php +++ b/pandora_console/godmode/massive/massive_add_alerts.php @@ -117,36 +117,36 @@ $table->size[3] = '40%'; $table->data = array (); $table->data[0][0] = __('Group'); -$table->data[0][1] = print_select_groups(false, "AR", true, 'id_group', 0, +$table->data[0][1] = html_print_select_groups(false, "AR", true, 'id_group', 0, '', 'Select', -1, true, false, true, '', false); $table->data[0][2] = ''; $table->data[0][3] = ''; $table->data[1][0] = __('Agents'); $table->data[1][0] .= ''; $agents_alerts = alerts_get_agents_with_alert_template ($id_alert_template, $id_group, false, array ('tagente.nombre', 'tagente.id_agente')); $agents = agents_get_agents(); -$table->data[1][1] = print_select (index_array ($agents, 'id_agente', 'nombre'), +$table->data[1][1] = html_print_select (index_array ($agents, 'id_agente', 'nombre'), 'id_agents[]', '', '', '', '', true, true, true, '', false); $table->data[1][2] = __('Modules'); -$table->data[1][3] = print_select (array(), 'module[]', '', false, '', '', true, true, false); +$table->data[1][3] = html_print_select (array(), 'module[]', '', false, '', '', true, true, false); $templates = alerts_get_alert_templates (false, array ('id', 'name')); $table->data[2][0] = __('Alert template'); -$table->data[2][1] = print_select (index_array ($templates, 'id', 'name'), +$table->data[2][1] = html_print_select (index_array ($templates, 'id', 'name'), 'id_alert_template', $id_alert_template, false, __('Select'), 0, true); $table->data[2][2] = ''; $table->data[2][3] = ''; echo '
'; -print_table ($table); +html_print_table ($table); echo '
'; -print_input_hidden ('add', 1); -print_submit_button (__('Add'), 'go', false, 'class="sub add"'); +html_print_input_hidden ('add', 1); +html_print_submit_button (__('Add'), 'go', false, 'class="sub add"'); echo '
'; echo '
'; diff --git a/pandora_console/godmode/massive/massive_add_profiles.php b/pandora_console/godmode/massive/massive_add_profiles.php index fdc1761e46..f13abaf800 100644 --- a/pandora_console/godmode/massive/massive_add_profiles.php +++ b/pandora_console/godmode/massive/massive_add_profiles.php @@ -73,7 +73,7 @@ if ($create_profiles) { __('Profiles cannot be added')); } -print_table ($table); +html_print_table ($table); unset($table); @@ -94,26 +94,26 @@ $table->size[2] = '33%'; $data = array (); $data[0] = '
'; -$data[0] .= print_select (get_profiles (), 'profiles_id[]', '', '', '', +$data[0] .= html_print_select (get_profiles (), 'profiles_id[]', '', '', '', '', true, true, false, '', false, 'width: 100%'); -$data[1] = print_select_groups($config['id_user'], "UM", true, +$data[1] = html_print_select_groups($config['id_user'], "UM", true, 'groups_id[]', '', '', '', '', true, true, false, '', false, 'width: 100%'); $data[2] = ''; $users_profiles = ""; -$data[2] .= print_select (get_users_info(), 'users_id[]', '', '', '', +$data[2] .= html_print_select (get_users_info(), 'users_id[]', '', '', '', '', true, true, true, '', false, 'width: 100%'); array_push ($table->data, $data); -print_table ($table); +html_print_table ($table); echo '
'; -print_input_hidden ('create_profiles', 1); -print_submit_button (__('Create'), 'go', false, 'class="sub add"'); +html_print_input_hidden ('create_profiles', 1); +html_print_submit_button (__('Create'), 'go', false, 'class="sub add"'); echo '
'; echo '
'; diff --git a/pandora_console/godmode/massive/massive_copy_modules.php b/pandora_console/godmode/massive/massive_copy_modules.php index 5af0e83a45..39917899f7 100644 --- a/pandora_console/godmode/massive/massive_copy_modules.php +++ b/pandora_console/godmode/massive/massive_copy_modules.php @@ -66,16 +66,16 @@ $table->size[3] = '35%'; /* Source selection */ $table->id = 'source_table'; $table->data[0][0] = __('Group'); -$table->data[0][1] = print_select_groups(false, "AR", true, 'source_id_group', $source_id_group, +$table->data[0][1] = html_print_select_groups(false, "AR", true, 'source_id_group', $source_id_group, false, '', '', true); $table->data[0][2] = __('Agent'); $table->data[0][2] .= ' '; -$table->data[0][3] = print_select (get_group_agents ($source_id_group, false, "none"), +$table->data[0][3] = html_print_select (get_group_agents ($source_id_group, false, "none"), 'source_id_agent', $source_id_agent, false, __('Select'), 0, true); -//$table->data[0][3] = print_input_text_extended ('id_agent', __('Select'), 'text-id_agent', '', 25, 100, false, '', +//$table->data[0][3] = html_print_input_text_extended ('id_agent', __('Select'), 'text-id_agent', '', 25, 100, false, '', // array('style' => 'background: url(images/lightning.png) no-repeat right;'), true) // . ' ' . __("Type two chars at least for search") . ''; @@ -85,7 +85,7 @@ echo '
'; echo ''.__('Source'); ui_print_help_icon ('manageconfig'); echo ''; -print_table ($table); +html_print_table ($table); echo '
'; /* Target selection */ @@ -98,18 +98,18 @@ if ($source_id_agent) $table->data['operations'][0] = __('Operations'); $table->data['operations'][1] = ''; -$table->data['operations'][1] .= print_checkbox ('copy_modules', 1, true, true); -$table->data['operations'][1] .= print_label (__('Copy modules'), 'checkbox-copy_modules', true); +$table->data['operations'][1] .= html_print_checkbox ('copy_modules', 1, true, true); +$table->data['operations'][1] .= html_print_label (__('Copy modules'), 'checkbox-copy_modules', true); $table->data['operations'][1] .= '
'; $table->data['operations'][1] .= ''; -$table->data['operations'][1] .= print_checkbox ('copy_alerts', 1, true, true); -$table->data['operations'][1] .= print_label (__('Copy alerts'), 'checkbox-copy_alerts', true); +$table->data['operations'][1] .= html_print_checkbox ('copy_alerts', 1, true, true); +$table->data['operations'][1] .= html_print_label (__('Copy alerts'), 'checkbox-copy_alerts', true); $table->data['operations'][1] .= ''; $table->data[1][0] = __('Modules'); $table->data[1][1] = ''; -$table->data[1][1] .= print_select ($modules, +$table->data[1][1] .= html_print_select ($modules, 'target_modules[]', 0, false, '', '', true, true); $table->data[1][1] .= ''; $table->data[1][1] .= ''; @@ -128,7 +128,7 @@ foreach ($agent_alerts as $alert) { $alerts[$alert['id']] = $name; } $table->data[2][1] = ''; -$table->data[2][1] .= print_select ($alerts, +$table->data[2][1] .= html_print_select ($alerts, 'target_alerts[]', 0, false, '', '', true, true); $table->data[2][1] .= ''; $table->data[2][1] .= ''; @@ -136,37 +136,37 @@ $table->data[2][1] .= ''.__('No alerts for this agent').''; $table->data[2][1] .= ''; echo ''; echo ''; /* Destiny selection */ $table->id = 'destiny_table'; $table->data = array (); $table->data[0][0] = __('Group'); -$table->data[0][1] = print_select ($groups, 'destiny_id_group', $destiny_id_group, +$table->data[0][1] = html_print_select ($groups, 'destiny_id_group', $destiny_id_group, false, '', '', true); $table->data[1][0] = __('Agent'); $table->data[1][0] .= ''; -$table->data[1][1] = print_select (get_group_agents ($destiny_id_group, false, "none"), +$table->data[1][1] = html_print_select (get_group_agents ($destiny_id_group, false, "none"), 'destiny_id_agent[]', 0, false, '', '', true, true); echo ''; echo '
'; -print_input_hidden ('do_operation', 1); -print_submit_button (__('Copy'), 'go', false, 'class="sub wand"'); +html_print_input_hidden ('do_operation', 1); +html_print_submit_button (__('Copy'), 'go', false, 'class="sub wand"'); echo '
'; echo ''; diff --git a/pandora_console/godmode/massive/massive_delete_action_alerts.php b/pandora_console/godmode/massive/massive_delete_action_alerts.php index b6be8b5bfc..4f578c19fc 100644 --- a/pandora_console/godmode/massive/massive_delete_action_alerts.php +++ b/pandora_console/godmode/massive/massive_delete_action_alerts.php @@ -154,14 +154,14 @@ $table->size[1] = '85%'; $table->data = array (); $table->data[0][0] = __('Group'); -$table->data[0][1] = print_select_groups(false, "AR", true, 'id_group', $id_group, +$table->data[0][1] = html_print_select_groups(false, "AR", true, 'id_group', $id_group, false, '', '', true); $table->data[1][0] = __('Agents'); $table->data[1][0] .= ''; -$table->data[1][1] = print_select (get_group_agents ($id_group, false, "none"), +$table->data[1][1] = html_print_select (get_group_agents ($id_group, false, "none"), 'id_agents[]', 0, false, '', '', true, true); if (empty($id_agents)) { @@ -171,9 +171,9 @@ if (empty($id_agents)) { } $table->data[2][0] = __('Alert templates'); $table->data[2][0] .= ''; -$table->data[2][1] = print_select (index_array ($alert_templates, 'id_alert_template', 'template_name'), 'id_alert_templates[]', '', '', '', '', true, true, true, '', $alert_templates == 0); +$table->data[2][1] = html_print_select (index_array ($alert_templates, 'id_alert_template', 'template_name'), 'id_alert_templates[]', '', '', '', '', true, true, true, '', $alert_templates == 0); if (empty($id_agents)) { $alert_compounds = ''; @@ -189,20 +189,20 @@ if (empty($id_agents)) { } $table->data[3][0] = __('Alert compounds'); $table->data[3][0] .= ''; -$table->data[3][1] = print_select (index_array ($alert_compounds, 'id', 'name'), 'id_alert_compounds[]', '', false, '', '', true, true, true, '', $alert_compounds == 0); +$table->data[3][1] = html_print_select (index_array ($alert_compounds, 'id', 'name'), 'id_alert_compounds[]', '', false, '', '', true, true, true, '', $alert_compounds == 0); $actions = alerts_get_alert_actions (); $table->data[4][0] = __('Action'); -$table->data[4][1] = print_select ($actions, 'action', '', '', __('None'), 0, true); +$table->data[4][1] = html_print_select ($actions, 'action', '', '', __('None'), 0, true); echo '
'; -print_table ($table); +html_print_table ($table); echo '
'; -print_input_hidden ('delete', 1); -print_submit_button (__('Delete'), 'go', false, 'class="sub delete"'); +html_print_input_hidden ('delete', 1); +html_print_submit_button (__('Delete'), 'go', false, 'class="sub delete"'); echo '
'; echo '
'; diff --git a/pandora_console/godmode/massive/massive_delete_agents.php b/pandora_console/godmode/massive/massive_delete_agents.php index 6c309c3f24..22df66ab5b 100644 --- a/pandora_console/godmode/massive/massive_delete_agents.php +++ b/pandora_console/godmode/massive/massive_delete_agents.php @@ -95,22 +95,22 @@ $table->size[1] = '85%'; $table->data = array (); $table->data[0][0] = __('Group'); -$table->data[0][1] = print_select_groups(false, "AR", true, 'id_group', $id_group, +$table->data[0][1] = html_print_select_groups(false, "AR", true, 'id_group', $id_group, false, '', '', true); $table->data[1][0] = __('Agents'); $table->data[1][0] .= ''; -$table->data[1][1] = print_select (get_group_agents ($id_group, false, "none"), +$table->data[1][1] = html_print_select (get_group_agents ($id_group, false, "none"), 'id_agents[]', 0, false, '', '', true, true); echo '
'; -print_table ($table); +html_print_table ($table); echo '
'; -print_input_hidden ('delete', 1); -print_submit_button (__('Delete'), 'go', false, 'class="sub delete"'); +html_print_input_hidden ('delete', 1); +html_print_submit_button (__('Delete'), 'go', false, 'class="sub delete"'); echo '
'; echo '
'; diff --git a/pandora_console/godmode/massive/massive_delete_alerts.php b/pandora_console/godmode/massive/massive_delete_alerts.php index 0aa9f523c0..8f44f6b92f 100644 --- a/pandora_console/godmode/massive/massive_delete_alerts.php +++ b/pandora_console/godmode/massive/massive_delete_alerts.php @@ -125,34 +125,34 @@ $table->data = array (); $templates = alerts_get_alert_templates (false, array ('id', 'name')); $table->data[0][0] = __('Alert template'); -$table->data[0][1] = print_select (index_array ($templates, 'id', 'name'), +$table->data[0][1] = html_print_select (index_array ($templates, 'id', 'name'), 'id_alert_template', $id_alert_template, false, __('Select'), 0, true); $table->data[0][2] = ''; $table->data[0][3] = ''; $table->data[1][0] = __('Group'); -$table->data[1][1] = print_select_groups(false, "AR", true, 'id_group', $id_group, +$table->data[1][1] = html_print_select_groups(false, "AR", true, 'id_group', $id_group, '', '', '', true, false, true, '', $id_alert_template == 0); $table->data[1][2] = ''; $table->data[1][3] = ''; $table->data[2][0] = __('Agents'); $table->data[2][0] .= ''; $agents_alerts = alerts_get_agents_with_alert_template ($id_alert_template, $id_group, false, array ('tagente.nombre', 'tagente.id_agente')); -$table->data[2][1] = print_select (index_array ($agents_alerts, 'id_agente', 'nombre'), +$table->data[2][1] = html_print_select (index_array ($agents_alerts, 'id_agente', 'nombre'), 'id_agents[]', '', '', '', '', true, true, true, '', $id_alert_template == 0); $table->data[2][2] = __('Modules'); -$table->data[2][3] = print_select (array(), 'module[]', '', false, '', '', true, true, false); +$table->data[2][3] = html_print_select (array(), 'module[]', '', false, '', '', true, true, false); echo '
'; -print_table ($table); +html_print_table ($table); echo '
'; -print_input_hidden ('delete', 1); -print_submit_button (__('Delete'), 'go', false, 'class="sub delete"'); +html_print_input_hidden ('delete', 1); +html_print_submit_button (__('Delete'), 'go', false, 'class="sub delete"'); echo '
'; echo '
'; diff --git a/pandora_console/godmode/massive/massive_delete_modules.php b/pandora_console/godmode/massive/massive_delete_modules.php index 45bf79e828..dfd46f3f3e 100644 --- a/pandora_console/godmode/massive/massive_delete_modules.php +++ b/pandora_console/godmode/massive/massive_delete_modules.php @@ -115,30 +115,30 @@ $modulesSelect = array(); foreach ($modules as $module) { $modulesSelect[$module] = $module; } -$table->data[0][1] = print_select($modulesSelect, +$table->data[0][1] = html_print_select($modulesSelect, 'module_name', $module_name, false, __('Select'), '', true); $table->data[1][0] = __('Group'); -$table->data[1][1] = print_select_groups(false, "AR", true, 'id_group', $id_group, +$table->data[1][1] = html_print_select_groups(false, "AR", true, 'id_group', $id_group, false, '', '', true, false, true, '', empty ($module_name)); $table->data[2][0] = __('Agent'); $table->data[2][0] .= ''; $agents = get_agents_with_module_name ($module_name, $id_group, array ('delete_pending' => 0, 'tagente_modulo.disabled' => 0), array ('tagente.id_agente', 'tagente.nombre')); -$table->data[2][1] = print_select (index_array ($agents, 'id_agente', 'nombre'), +$table->data[2][1] = html_print_select (index_array ($agents, 'id_agente', 'nombre'), 'id_agents[]', 0, false, __('None'), 0, true, true, true, '', empty ($module_name)); echo '
'; -print_table ($table); +html_print_table ($table); echo '
'; -print_input_hidden ('delete', 1); -print_submit_button (__('Delete'), 'go', false, 'class="sub delete"'); +html_print_input_hidden ('delete', 1); +html_print_submit_button (__('Delete'), 'go', false, 'class="sub delete"'); echo '
'; echo '
'; diff --git a/pandora_console/godmode/massive/massive_delete_profiles.php b/pandora_console/godmode/massive/massive_delete_profiles.php index f94d9da1ea..21182e90b9 100644 --- a/pandora_console/godmode/massive/massive_delete_profiles.php +++ b/pandora_console/godmode/massive/massive_delete_profiles.php @@ -82,7 +82,7 @@ if ($delete_profiles) { __('Profiles cannot be deleted')); } -print_table ($table); +html_print_table ($table); unset($table); @@ -103,26 +103,26 @@ $table->size[2] = '33%'; $data = array (); $data[0] = '
'; -$data[0] .= print_select (get_profiles (), 'profiles_id[]', '', '', '', +$data[0] .= html_print_select (get_profiles (), 'profiles_id[]', '', '', '', '', true, false, false, '', false, 'width: 100%'); -$data[1] = print_select_groups($config['id_user'], "UM", true, +$data[1] = html_print_select_groups($config['id_user'], "UM", true, 'groups_id[]', '', '', '', '', true, false, false, '', false, 'width: 100%'); $data[2] = ''; $users_profiles = ""; -$data[2] .= print_select (array(), 'users_id[]', '', '', '', +$data[2] .= html_print_select (array(), 'users_id[]', '', '', '', '', true, true, true, '', false, 'width: 100%'); array_push ($table->data, $data); -print_table ($table); +html_print_table ($table); echo '
'; -print_input_hidden ('delete_profiles', 1); -print_submit_button (__('Delete'), 'del', false, 'class="sub delete"'); +html_print_input_hidden ('delete_profiles', 1); +html_print_submit_button (__('Delete'), 'del', false, 'class="sub delete"'); echo '
'; echo '
'; diff --git a/pandora_console/godmode/massive/massive_edit_agents.php b/pandora_console/godmode/massive/massive_edit_agents.php index ee44ca57e8..f983f3f233 100644 --- a/pandora_console/godmode/massive/massive_edit_agents.php +++ b/pandora_console/godmode/massive/massive_edit_agents.php @@ -188,21 +188,21 @@ $table->size[1] = '85%'; $table->data = array (); $table->data[0][0] = __('Group'); -$table->data[0][1] = print_select_groups(false, "AR", true, 'id_group', $id_group, +$table->data[0][1] = html_print_select_groups(false, "AR", true, 'id_group', $id_group, false, '', '', true); $table->data[1][0] = __('Agents'); $table->data[1][0] .= ''; $enabled_agents = get_group_agents ($id_group, array('disabled' => 0), "none"); $all_agents = get_group_agents ($id_group, array('disabled' => 1), "none") + $enabled_agents; -$table->data[1][1] = print_select ($all_agents, +$table->data[1][1] = html_print_select ($all_agents, 'id_agents[]', 0, false, '', '', true, true); echo '
'; -print_table ($table); +html_print_table ($table); $nombre_agente = ""; $direccion_agente = ""; @@ -229,14 +229,14 @@ $groups = get_user_groups ($config["id_user"], "AR",false); $agents = get_group_agents (array_keys ($groups)); $table->data[0][0] = __('Parent'); -$table->data[0][1] = print_input_text_extended ('id_parent', get_agent_name ($id_parent), 'text-id_parent', '', 30, 100, false, '', +$table->data[0][1] = html_print_input_text_extended ('id_parent', get_agent_name ($id_parent), 'text-id_parent', '', 30, 100, false, '', array('style' => 'background: url(images/lightning.png) no-repeat right;'), true) . ' ' . __("Type at least two characters to search") . ''; -$table->data[0][1] .= print_checkbox ("cascade_protection", 1, $cascade_protection, true).__('Cascade protection'). " " . ui_print_help_icon("cascade_protection", true); +$table->data[0][1] .= html_print_checkbox ("cascade_protection", 1, $cascade_protection, true).__('Cascade protection'). " " . ui_print_help_icon("cascade_protection", true); $table->data[1][0] = __('Group'); -$table->data[1][1] = print_select_groups(false, "AR", false, 'group', $group, '', __('No change'), -1, true, false, true, '', false, 'width: 150px;'); +$table->data[1][1] = html_print_select_groups(false, "AR", false, 'group', $group, '', __('No change'), -1, true, false, true, '', false, 'width: 150px;'); $table->data[2][0] = __('Interval'); @@ -249,10 +249,10 @@ $intervals[1200] = human_time_description_raw (1200); $intervals[1800] = human_time_description_raw (1800); $intervals[3600] = human_time_description_raw (3600); $intervals[7200] = human_time_description_raw (7200); -$table->data[2][1] = print_extended_select_for_time ($intervals, 'interval', $interval, '', '', '0', 10, true, 'width: 150px') . __(" seconds."); +$table->data[2][1] = html_print_extended_select_for_time ($intervals, 'interval', $interval, '', '', '0', 10, true, 'width: 150px') . __(" seconds."); $table->data[3][0] = __('OS'); -$table->data[3][1] = print_select_from_sql ('SELECT id_os, name FROM tconfig_os', +$table->data[3][1] = html_print_select_from_sql ('SELECT id_os, name FROM tconfig_os', 'id_os', $id_os, '', __('No change'), -1, true, false, true, false, 'width: 105px;'); $table->data[3][1] .= ' '; $table->data[3][1] .= ui_print_os_icon ($id_os, false, true); @@ -263,14 +263,14 @@ $none = ''; if ($server_name == '' && $id_agente) $none = __('None'); $table->data[4][0] = __('Server'); -$table->data[4][1] = print_select (get_server_names (), +$table->data[4][1] = html_print_select (get_server_names (), 'server_name', $server_name, '', __('No change'), -1, true, false, true, '', false, 'width: 150px;'); // Description $table->data[5][0] = __('Description'); -$table->data[5][1] = print_input_text ('description', $description, '', 45, 255, true); +$table->data[5][1] = html_print_input_text ('description', $description, '', 45, 255, true); -print_table ($table); +html_print_table ($table); unset($table); $custom_id = ''; @@ -291,19 +291,19 @@ $table->data = array (); // Custom ID $table->data[0][0] = __('Custom ID'); -$table->data[0][1] = print_input_text ('custom_id', $custom_id, '', 16, 255, true); +$table->data[0][1] = html_print_input_text ('custom_id', $custom_id, '', 16, 255, true); // Learn mode / Normal mode $table->data[1][0] = __('Module definition') . ui_print_help_icon("module_definition", true); -$table->data[1][1] = __('No change').' '.print_radio_button_extended ("mode", -1, '', $mode, false, '', 'style="margin-right: 40px;"', true); -$table->data[1][1] .= __('Learning mode').' '.print_radio_button_extended ("mode", 1, '', $mode, false, '', 'style="margin-right: 40px;"', true); -$table->data[1][1] .= __('Normal mode').' '.print_radio_button_extended ("mode", 0, '', $mode, false, '', 'style="margin-right: 40px;"', true); +$table->data[1][1] = __('No change').' '.html_print_radio_button_extended ("mode", -1, '', $mode, false, '', 'style="margin-right: 40px;"', true); +$table->data[1][1] .= __('Learning mode').' '.html_print_radio_button_extended ("mode", 1, '', $mode, false, '', 'style="margin-right: 40px;"', true); +$table->data[1][1] .= __('Normal mode').' '.html_print_radio_button_extended ("mode", 0, '', $mode, false, '', 'style="margin-right: 40px;"', true); // Status (Disabled / Enabled) $table->data[2][0] = __('Status'); -$table->data[2][1] = __('No change').' '.print_radio_button_extended ("disabled", -1, '', $disabled, false, '', 'style="margin-right: 40px;"', true); -$table->data[2][1] .= __('Disabled').' '.print_radio_button_extended ("disabled", 1, '', $disabled, false, '', 'style="margin-right: 40px;"', true); -$table->data[2][1] .= __('Active').' '.print_radio_button_extended ("disabled", 0, '', $disabled, false, '', 'style="margin-right: 40px;"', true); +$table->data[2][1] = __('No change').' '.html_print_radio_button_extended ("disabled", -1, '', $disabled, false, '', 'style="margin-right: 40px;"', true); +$table->data[2][1] .= __('Disabled').' '.html_print_radio_button_extended ("disabled", 1, '', $disabled, false, '', 'style="margin-right: 40px;"', true); +$table->data[2][1] .= __('Active').' '.html_print_radio_button_extended ("disabled", 0, '', $disabled, false, '', 'style="margin-right: 40px;"', true); // Remote configuration $table->data[3][0] = __('Remote configuration'); @@ -311,11 +311,11 @@ $table->data[3][0] = __('Remote configuration'); // Delete remote configuration $table->data[3][1] = ''; +$table->data[3][1] .= ') '.html_print_radio_button_extended ("delete_conf", 1, '', $disabled, false, '', 'style="margin-right: 40px;"', true).''; $table->data[3][1] .= ''; -$listIcons = getArrayListIcons(); +$listIcons = gis_get_array_list_icons(); $arraySelectIcon = array(); foreach ($listIcons as $index => $value) $arraySelectIcon[$index] = $index; @@ -323,20 +323,20 @@ foreach ($listIcons as $index => $value) $arraySelectIcon[$index] = $index; $path = 'images/gis_map/icons/'; //TODO set better method the path $table->data[4][0] = __('Agent icon'); -$table->data[4][1] = print_select($arraySelectIcon, "icon_path", $icon_path, "changeIcons();", __('None'), '', true) . - ' ' . __('Without status') . ': ' . print_image($path . $icon_path . 'default.png', true, array("id" => 'icon_without_status',"style" => 'display:none;')) . - ' ' . __('Default') . ': ' . print_image($path . $icon_path . 'default.png', true, array("id" => 'icon_default',"style" => 'display:none;')) . - ' ' . __('Ok') . ': ' . print_image($path . $icon_path . 'ok.png', true, array("id" => 'icon_ok',"style" => 'display:none;')) . - ' ' . __('Bad') . ': ' . print_image($path . $icon_path . 'bad.png', true, array("id" => 'icon_bad',"style" => 'display:none;')) . ' ' . __('Warning') . ': ' . print_image($path . $icon_path . 'warning.png', true, array("id" => 'icon_warning',"style" => 'display:none;')); +$table->data[4][1] = html_print_select($arraySelectIcon, "icon_path", $icon_path, "changeIcons();", __('None'), '', true) . + ' ' . __('Without status') . ': ' . html_print_image($path . $icon_path . 'default.png', true, array("id" => 'icon_without_status',"style" => 'display:none;')) . + ' ' . __('Default') . ': ' . html_print_image($path . $icon_path . 'default.png', true, array("id" => 'icon_default',"style" => 'display:none;')) . + ' ' . __('Ok') . ': ' . html_print_image($path . $icon_path . 'ok.png', true, array("id" => 'icon_ok',"style" => 'display:none;')) . + ' ' . __('Bad') . ': ' . html_print_image($path . $icon_path . 'bad.png', true, array("id" => 'icon_bad',"style" => 'display:none;')) . ' ' . __('Warning') . ': ' . html_print_image($path . $icon_path . 'warning.png', true, array("id" => 'icon_warning',"style" => 'display:none;')); if ($config['activate_gis']) { $table->data[5][0] = __('Ignore new GIS data:'); - $table->data[5][1] = __('No change').' '.print_radio_button_extended ("update_gis_data", -1, '', $update_gis_data, false, '', 'style="margin-right: 40px;"', true); - $table->data[5][1] .= __('Disabled').' '.print_radio_button_extended ("update_gis_data", 0, '', $update_gis_data, false, '', 'style="margin-right: 40px;"', true); - $table->data[5][1] .= __('Active').' '.print_radio_button_extended ("update_gis_data", 1, '', $update_gis_data, false, '', 'style="margin-right: 40px;"', true); + $table->data[5][1] = __('No change').' '.html_print_radio_button_extended ("update_gis_data", -1, '', $update_gis_data, false, '', 'style="margin-right: 40px;"', true); + $table->data[5][1] .= __('Disabled').' '.html_print_radio_button_extended ("update_gis_data", 0, '', $update_gis_data, false, '', 'style="margin-right: 40px;"', true); + $table->data[5][1] .= __('Active').' '.html_print_radio_button_extended ("update_gis_data", 1, '', $update_gis_data, false, '', 'style="margin-right: 40px;"', true); } -ui_toggle(print_table ($table, true), __('Advanced options')); +ui_toggle(html_print_table ($table, true), __('Advanced options')); unset($table); $table->width = '95%'; @@ -361,13 +361,13 @@ foreach ($fields as $field) { $custom_value = ''; } - $data[1] = print_textarea ('customvalue_'.$field['id_field'], 2, 65, $custom_value, 'style="min-height: 30px;"', true); + $data[1] = html_print_textarea ('customvalue_'.$field['id_field'], 2, 65, $custom_value, 'style="min-height: 30px;"', true); array_push ($table->data, $data); } if (!empty($fields)) { - ui_toggle(print_table ($table, true), __('Custom fields')); + ui_toggle(html_print_table ($table, true), __('Custom fields')); } @@ -375,9 +375,9 @@ echo ''; echo '
'; -print_submit_button (__('Update'), 'updbutton', false, 'class="sub upd"'); -print_input_hidden ('update_agents', 1); -print_input_hidden ('id_agente', $id_agente); +html_print_submit_button (__('Update'), 'updbutton', false, 'class="sub upd"'); +html_print_input_hidden ('update_agents', 1); +html_print_input_hidden ('id_agente', $id_agente); echo "
"; // Shown and hide div diff --git a/pandora_console/godmode/massive/massive_edit_modules.php b/pandora_console/godmode/massive/massive_edit_modules.php index b37134201c..fabfaf2cf7 100644 --- a/pandora_console/godmode/massive/massive_edit_modules.php +++ b/pandora_console/godmode/massive/massive_edit_modules.php @@ -230,21 +230,21 @@ $snmp_versions['3'] = 'v. 3'; $table->data = array (); $table->data[0][0] = __('Selection mode'); -$table->data[0][1] = __('Select modules first').' '.print_radio_button_extended ("selection_mode", 'modules', '', $selection_mode, false, '', 'style="margin-right: 40px;"', true); +$table->data[0][1] = __('Select modules first').' '.html_print_radio_button_extended ("selection_mode", 'modules', '', $selection_mode, false, '', 'style="margin-right: 40px;"', true); $table->data[0][2] = ''; -$table->data[0][3] = __('Select agents first').' '.print_radio_button_extended ("selection_mode", 'agents', '', $selection_mode, false, '', 'style="margin-right: 40px;"', true); +$table->data[0][3] = __('Select agents first').' '.html_print_radio_button_extended ("selection_mode", 'agents', '', $selection_mode, false, '', 'style="margin-right: 40px;"', true); $table->rowclass[1] = 'select_modules_row'; $table->data[1][0] = __('Module type'); $table->data[1][0] .= ''; $types[0] = __('All'); $table->colspan[1][1] = 2; -$table->data[1][1] = print_select ($types, +$table->data[1][1] = html_print_select ($types, 'module_type', '', false, __('Select'), -1, true, false, true); -$table->data[1][3] = __('Select all modules of this type').' '.print_checkbox_extended ("force_type", 'type', '', '', false, '', 'style="margin-right: 40px;"', true); +$table->data[1][3] = __('Select all modules of this type').' '.html_print_checkbox_extended ("force_type", 'type', '', '', false, '', 'style="margin-right: 40px;"', true); $modules = array (); if ($module_type != '') { @@ -262,91 +262,91 @@ foreach ($names as $name) { $table->rowclass[2] = 'select_agents_row'; $table->data[2][0] = __('Agent group'); -$groups = get_all_groups(true); +$groups = groups_get_all(true); $groups[0] = __('All'); $table->colspan[2][1] = 2; -$table->data[2][1] = print_select ($groups, 'groups_select', +$table->data[2][1] = html_print_select ($groups, 'groups_select', '', true, __('Select'), -1, true, false, true); -$table->data[2][3] = __('Select all modules of this group').' '.print_checkbox_extended ("force_group", 'group', '', '', false, '', 'style="margin-right: 40px;"', true); +$table->data[2][3] = __('Select all modules of this group').' '.html_print_checkbox_extended ("force_group", 'group', '', '', false, '', 'style="margin-right: 40px;"', true); $table->rowstyle[3] = 'vertical-align: top;'; $table->rowclass[3] = 'select_modules_row select_modules_row_2'; $table->data[3][0] = __('Modules'); -$table->data[3][1] = print_select ($modules, 'module_name[]', +$table->data[3][1] = html_print_select ($modules, 'module_name[]', $module_name, false, __('Select'), -1, true, true, true); $table->data[3][2] = __('Agents'); -$table->data[3][3] = print_select (array(), 'agents[]', +$table->data[3][3] = html_print_select (array(), 'agents[]', $agents_select, false, __('None'), 0, true, true, false); $table->rowstyle[4] = 'vertical-align: top;'; $table->rowclass[4] = 'select_agents_row select_agents_row_2'; $table->data[4][0] = __('Agents'); -$table->data[4][1] = print_select ($agents, 'id_agents[]', +$table->data[4][1] = html_print_select ($agents, 'id_agents[]', $agents_id, false, '', '', true, true, false); $table->data[4][2] = __('Modules'); -$table->data[4][3] = print_select (array(), 'module[]', +$table->data[4][3] = html_print_select (array(), 'module[]', $modules_select, false, '', '', true, true, false); $table->data['edit1'][0] = __('Warning status'); $table->data['edit1'][1] = ''.__('Min.').''; -$table->data['edit1'][1] .= print_input_text ('min_warning', '', '', 5, 15, true); +$table->data['edit1'][1] .= html_print_input_text ('min_warning', '', '', 5, 15, true); $table->data['edit1'][1] .= '
'.__('Max.').''; -$table->data['edit1'][1] .= print_input_text ('max_warning', '', '', 5, 15, true); +$table->data['edit1'][1] .= html_print_input_text ('max_warning', '', '', 5, 15, true); $table->data['edit1'][2] = __('Critical status'); $table->data['edit1'][3] = ''.__('Min.').''; -$table->data['edit1'][3] .= print_input_text ('min_critical', '', '', 5, 15, true); +$table->data['edit1'][3] .= html_print_input_text ('min_critical', '', '', 5, 15, true); $table->data['edit1'][3] .= '
'.__('Max.').''; -$table->data['edit1'][3] .= print_input_text ('max_critical', '', '', 5, 15, true); +$table->data['edit1'][3] .= html_print_input_text ('max_critical', '', '', 5, 15, true); $table->data['edit2'][0] = __('Interval'); -$table->data['edit2'][1] = print_input_text ('module_interval', '', '', 5, 15, true); +$table->data['edit2'][1] = html_print_input_text ('module_interval', '', '', 5, 15, true); $table->data['edit2'][2] = __('Disabled'); -//$table->data['edit2'][3] = print_checkbox ("disabled", 1, '', true); -$table->data['edit2'][3] = print_select(array('' => '', '1' => __('Yes'), '0' => __('No')),'disabled','','','', '', true); +//$table->data['edit2'][3] = html_print_checkbox ("disabled", 1, '', true); +$table->data['edit2'][3] = html_print_select(array('' => '', '1' => __('Yes'), '0' => __('No')),'disabled','','','', '', true); $table->data['edit3'][0] = __('Post process'); -$table->data['edit3'][1] = print_input_text ('post_process', '', '', 10, 15, true); +$table->data['edit3'][1] = html_print_input_text ('post_process', '', '', 10, 15, true); $table->data['edit3'][2] = __('SMNP community'); -$table->data['edit3'][3] = print_input_text ('snmp_community', '', '', 10, 15, true); +$table->data['edit3'][3] = html_print_input_text ('snmp_community', '', '', 10, 15, true); $table->data['edit35'][0] = ''; $table->data['edit35'][1] = ''; $table->data['edit35'][2] = __('SNMP version'); -$table->data['edit35'][3] = print_select ($snmp_versions, 'tcp_send', '', '', __('Select'), '', true, false, false, ''); +$table->data['edit35'][3] = html_print_select ($snmp_versions, 'tcp_send', '', '', __('Select'), '', true, false, false, ''); $table->data['edit4'][0] = __('Value'); $table->data['edit4'][1] = ''.__('Min.').''; -$table->data['edit4'][1] .= print_input_text ('min', '', '', 5, 15, true); +$table->data['edit4'][1] .= html_print_input_text ('min', '', '', 5, 15, true); $table->data['edit4'][1] .= '
'.__('Max.').''; -$table->data['edit4'][1] .= print_input_text ('max', '', '', 5, 15, true); +$table->data['edit4'][1] .= html_print_input_text ('max', '', '', 5, 15, true); $table->data['edit4'][2] = __('Module group'); -$table->data['edit4'][3] = print_select (get_modulegroups(), +$table->data['edit4'][3] = html_print_select (get_modulegroups(), 'id_module_group', '', '', __('Select'), 0, true, false, false); $table->data['edit5'][0] = __('Username'); -$table->data['edit5'][1] = print_input_text ('plugin_user', '', '', 15, 60, true); +$table->data['edit5'][1] = html_print_input_text ('plugin_user', '', '', 15, 60, true); $table->data['edit5'][2] = __('Password'); -$table->data['edit5'][3] = print_input_password ('plugin_pass', '', '', 15, 60, true); +$table->data['edit5'][3] = html_print_input_password ('plugin_pass', '', '', 15, 60, true); $table->data['edit6'][0] = __('Export target'); -$table->data['edit6'][1] = print_select_from_sql ('SELECT id, name +$table->data['edit6'][1] = html_print_select_from_sql ('SELECT id, name FROM tserver_export ORDER BY name', 'id_export', '', '',__('None'),'0', true, false, false); /* FF stands for Flip-flop */ $table->data['edit7'][0] = __('FF threshold') . ' ' . ui_print_help_icon ('ff_threshold', true); -$table->data['edit7'][1] = print_input_text ('min_ff_event', '', '', 5, 15, true); +$table->data['edit7'][1] = html_print_input_text ('min_ff_event', '', '', 5, 15, true); $table->data['edit7'][2] = __('Historical data'); -$table->data['edit7'][3] = print_select(array('' => '', '1' => __('Yes'), '0' => __('No')),'history_data','','','', '', true); +$table->data['edit7'][3] = html_print_select(array('' => '', '1' => __('Yes'), '0' => __('No')),'history_data','','','', '', true); echo ''; -print_table ($table); +html_print_table ($table); echo '
'; -print_input_hidden ('update', 1); -print_submit_button (__('Update'), 'go', false, 'class="sub upd"'); +html_print_input_hidden ('update', 1); +html_print_submit_button (__('Update'), 'go', false, 'class="sub upd"'); echo '
'; echo ''; diff --git a/pandora_console/godmode/massive/massive_enable_disable_alerts.php b/pandora_console/godmode/massive/massive_enable_disable_alerts.php index 26aa701fc0..a7a22a578f 100644 --- a/pandora_console/godmode/massive/massive_enable_disable_alerts.php +++ b/pandora_console/godmode/massive/massive_enable_disable_alerts.php @@ -121,50 +121,50 @@ $table->size[1] = '85%'; $table->data = array (); $table->data[0][0] = '
'; -$table->data[0][0] .= print_input_hidden('id_alert_template_enabled', $id_alert_templates, true); +$table->data[0][0] .= html_print_input_hidden('id_alert_template_enabled', $id_alert_templates, true); $table->data[0][0] .= __('Group'); -$table->data[0][1] = print_select_groups(false, "AR", true, 'id_group', $id_group, '', '', '', true); +$table->data[0][1] = html_print_select_groups(false, "AR", true, 'id_group', $id_group, '', '', '', true); $table->data[1][0] = __('Agents'); $table->data[1][0] .= ''; -$table->data[1][1] = print_select (get_group_agents ($id_group, false, "none"), +$table->data[1][1] = html_print_select (get_group_agents ($id_group, false, "none"), 'id_agents[]', 0, false, '', '', true, true); $table->data[2][0] = __('Alert template'); $table->data[2][0] .= ''; -$table->data[2][1] = print_select ('', 'id_alert_templates[]', '', '', '', '', true, true, true, '', true); +$table->data[2][1] = html_print_select ('', 'id_alert_templates[]', '', '', '', '', true, true, true, '', true); $table->data[3][0] = __('Enabled alerts').ui_print_help_tip(__('Format').":
".__('Agent')." - ".__('Module'), true); $table->data[3][0] .= ''; $agents_alerts = alerts_get_agents_with_alert_template ($id_alert_templates, $id_group, false, array ('tagente.nombre', 'tagente.id_agente')); -$table->data[3][1] = print_select (index_array ($agents_alerts, 'id_agente', 'nombre'), +$table->data[3][1] = html_print_select (index_array ($agents_alerts, 'id_agente', 'nombre'), 'id_enabled_alerts[]', '', '', '', '', true, true, true, '', $id_alert_templates == 0); $table->data[4][0] = __('Action'); -$table->data[4][1] = "
".print_input_image ('disable_alerts', 'images/darrowdown.png', 1, 'margin-left: 150px;', true, array ('title' => __('Disable selected alerts'))).""; +$table->data[4][1] = "
".html_print_input_image ('disable_alerts', 'images/darrowdown.png', 1, 'margin-left: 150px;', true, array ('title' => __('Disable selected alerts'))).""; $table->data[4][1] .= ''; $table->data[4][1] .= '
'; -$table->data[4][1] .= print_input_hidden('id_alert_template_disabled', $id_alert_templates, true); -$table->data[4][1] .= print_input_image ('enable_alerts', 'images/darrowup.png', 1, 'margin-left: 200px;', true, array ('title' => __('Enable selected alerts')))."
"; +$table->data[4][1] .= html_print_input_hidden('id_alert_template_disabled', $id_alert_templates, true); +$table->data[4][1] .= html_print_input_image ('enable_alerts', 'images/darrowup.png', 1, 'margin-left: 200px;', true, array ('title' => __('Enable selected alerts')))."
"; $table->data[5][0] = __('Disabled alerts').ui_print_help_tip(__('Format').":
".__('Agent')." - ".__('Module'), true); $table->data[5][0] .= ''; -$table->data[5][1] = print_select (index_array ($agents_alerts, 'id_agente2', 'nombre'), +$table->data[5][1] = html_print_select (index_array ($agents_alerts, 'id_agente2', 'nombre'), 'id_disabled_alerts[]', '', '', '', '', true, true, true, '', $id_alert_templates == 0); $table->data[5][1] .= ''; -print_table ($table); +html_print_table ($table); echo ''; diff --git a/pandora_console/godmode/massive/massive_operations.php b/pandora_console/godmode/massive/massive_operations.php index 5aea8fbaaf..9f69793d81 100644 --- a/pandora_console/godmode/massive/massive_operations.php +++ b/pandora_console/godmode/massive/massive_operations.php @@ -101,20 +101,20 @@ if ($option == '') { } $alertstab = array('text' => '' - . print_image ('images/bell.png', true, array ('title' => __('Alerts operations'))) + . html_print_image ('images/bell.png', true, array ('title' => __('Alerts operations'))) . '', 'active' => $tab == 'massive_alerts'); $userstab = array('text' => '' - . print_image ('images/group.png', true, array ('title' => __('Users operations'))) + . html_print_image ('images/group.png', true, array ('title' => __('Users operations'))) . '', 'active' => $tab == 'massive_users'); $agentstab = array('text' => '' - . print_image ('images/bricks.png', true, array ('title' => __('Agents operations'))) + . html_print_image ('images/bricks.png', true, array ('title' => __('Agents operations'))) . '', 'active' => $tab == 'massive_agents'); $modulestab = array('text' => '' - . print_image ('images/brick.png', true, array ('title' => __('Modules operations'))) + . html_print_image ('images/brick.png', true, array ('title' => __('Modules operations'))) . '', 'active' => $tab == 'massive_modules'); /* Collection */ @@ -134,7 +134,7 @@ echo '
'; echo '

'.__('Massive options').':

'; echo ''; -print_select($options, 'option', $option, 'this.form.submit()', '', 0, false, false, false); +html_print_select($options, 'option', $option, 'this.form.submit()', '', 0, false, false, false); if($option == 'edit_agents' || $option == 'edit_modules') echo ' ' . __("The blank fields will not be updated") . ''; echo ''; diff --git a/pandora_console/godmode/massive/massive_standby_alerts.php b/pandora_console/godmode/massive/massive_standby_alerts.php index 1f4285182f..4153b39c92 100644 --- a/pandora_console/godmode/massive/massive_standby_alerts.php +++ b/pandora_console/godmode/massive/massive_standby_alerts.php @@ -123,50 +123,50 @@ $table->data = array (); $templates = alerts_get_alert_templates (false, array ('id', 'name')); $table->data[0][0] = ''; -$table->data[0][0] .= print_input_hidden('id_alert_template_not_standby', $id_alert_templates, true); +$table->data[0][0] .= html_print_input_hidden('id_alert_template_not_standby', $id_alert_templates, true); $table->data[0][0] .= __('Group'); -$table->data[0][1] = print_select_groups(false, "AR", true, 'id_group', $id_group, +$table->data[0][1] = html_print_select_groups(false, "AR", true, 'id_group', $id_group, '', '', '', true, false, true, ''); $table->data[1][0] = __('Agents'); $table->data[1][0] .= ''; -$table->data[1][1] = print_select (get_group_agents ($id_group, false, "none"), +$table->data[1][1] = html_print_select (get_group_agents ($id_group, false, "none"), 'id_agents[]', 0, false, '', '', true, true); $table->data[2][0] = __('Alert template'); $table->data[2][0] .= ''; -$table->data[2][1] = print_select ('', 'id_alert_templates[]', '', '', '', '', true, true, true, '', true); +$table->data[2][1] = html_print_select ('', 'id_alert_templates[]', '', '', '', '', true, true, true, '', true); $table->data[3][0] = __('Not standby alerts').ui_print_help_tip(__('Format').":
".__('Agent')." - ".__('Module'), true); $table->data[3][0] .= ''; $agents_alerts = alerts_get_agents_with_alert_template ($id_alert_templates, $id_group, false, array ('tagente.nombre', 'tagente.id_agente')); -$table->data[3][1] = print_select (index_array ($agents_alerts, 'id_agente', 'nombre'), +$table->data[3][1] = html_print_select (index_array ($agents_alerts, 'id_agente', 'nombre'), 'id_not_standby_alerts[]', '', '', '', '', true, true, true, '', $id_alert_templates == 0); $table->data[4][0] = __('Action'); -$table->data[4][1] = "
".print_input_image ('standby_alerts', 'images/darrowdown.png', 1, 'margin-left: 150px;', true, array ('title' => __('Set standby selected alerts'))).""; +$table->data[4][1] = "
".html_print_input_image ('standby_alerts', 'images/darrowdown.png', 1, 'margin-left: 150px;', true, array ('title' => __('Set standby selected alerts'))).""; $table->data[4][1] .= ''; $table->data[4][1] .= '
'; -$table->data[4][1] .= print_input_hidden('id_alert_template_standby', $id_alert_templates, true); -$table->data[4][1] .= print_input_image ('set_off_standby_alerts', 'images/darrowup.png', 1, 'margin-left: 200px;', true, array ('title' => __('Set standby selected alerts')))."
"; +$table->data[4][1] .= html_print_input_hidden('id_alert_template_standby', $id_alert_templates, true); +$table->data[4][1] .= html_print_input_image ('set_off_standby_alerts', 'images/darrowup.png', 1, 'margin-left: 200px;', true, array ('title' => __('Set standby selected alerts')))."
"; $table->data[5][0] = __('Standby alerts').ui_print_help_tip(__('Format').":
".__('Agent')." - ".__('Module'), true); $table->data[5][0] .= ''; -$table->data[5][1] = print_select (index_array ($agents_alerts, 'id_agente2', 'nombre'), +$table->data[5][1] = html_print_select (index_array ($agents_alerts, 'id_agente2', 'nombre'), 'id_standby_alerts[]', '', '', '', '', true, true, true, '', $id_alert_templates == 0); $table->data[5][1] .= ''; -print_table ($table); +html_print_table ($table); echo ''; diff --git a/pandora_console/godmode/modules/manage_nc_groups.php b/pandora_console/godmode/modules/manage_nc_groups.php index e921e13ecd..2357625bc1 100644 --- a/pandora_console/godmode/modules/manage_nc_groups.php +++ b/pandora_console/godmode/modules/manage_nc_groups.php @@ -121,21 +121,21 @@ foreach ($groups as $group) { $data[1] = get_network_component_group_name ($group['parent']); $data[2] = '
'; - $data[2] .= print_input_hidden ('delete', 1, true); - $data[2] .= print_input_hidden ('id', $group['id_sg'], true); - $data[2] .= print_input_image ('del', 'images/cross.png', 1, '', true, + $data[2] .= html_print_input_hidden ('delete', 1, true); + $data[2] .= html_print_input_hidden ('id', $group['id_sg'], true); + $data[2] .= html_print_input_image ('del', 'images/cross.png', 1, '', true, array ('title' => __('Delete'))); $data[2] .= '
'; array_push ($table->data, $data); } -print_table ($table); +html_print_table ($table); echo '
'; echo '
'; -print_input_hidden ('new', 1); -print_submit_button (__('Create'), 'crt', false, 'class="sub next"'); +html_print_input_hidden ('new', 1); +html_print_submit_button (__('Create'), 'crt', false, 'class="sub next"'); echo '
'; echo '
'; ?> diff --git a/pandora_console/godmode/modules/manage_nc_groups_form.php b/pandora_console/godmode/modules/manage_nc_groups_form.php index 9f1c9ef39f..6af095ef92 100644 --- a/pandora_console/godmode/modules/manage_nc_groups_form.php +++ b/pandora_console/godmode/modules/manage_nc_groups_form.php @@ -44,22 +44,22 @@ $table->style[0] = 'font-weight: bold'; $table->data = array (); $table->data[0][0] = __('Name'); -$table->data[0][1] = print_input_text ('name', $name, '', 15, 255, true); +$table->data[0][1] = html_print_input_text ('name', $name, '', 15, 255, true); $table->data[1][0] = __('Parent'); -$table->data[1][1] = print_select (get_network_component_groups (), +$table->data[1][1] = html_print_select (get_network_component_groups (), 'parent', $parent, false, __('None'), 0, true, false, false); echo '
'; -print_table ($table); +html_print_table ($table); echo '
'; if ($id) { - print_input_hidden ('update', 1); - print_input_hidden ('id', $id); - print_submit_button (__('Update'), 'crt', false, 'class="sub upd"'); + html_print_input_hidden ('update', 1); + html_print_input_hidden ('id', $id); + html_print_submit_button (__('Update'), 'crt', false, 'class="sub upd"'); } else { - print_input_hidden ('create', 1); - print_submit_button (__('Create'), 'crt', false, 'class="sub wand"'); + html_print_input_hidden ('create', 1); + html_print_submit_button (__('Create'), 'crt', false, 'class="sub wand"'); } echo '
'; echo '
'; diff --git a/pandora_console/godmode/modules/manage_network_components.php b/pandora_console/godmode/modules/manage_network_components.php index b1da410e6a..e09f371810 100644 --- a/pandora_console/godmode/modules/manage_network_components.php +++ b/pandora_console/godmode/modules/manage_network_components.php @@ -259,18 +259,18 @@ $table->style[2] = 'font-weight: bold'; $table->data = array (); $table->data[0][0] = __('Group'); -$table->data[0][1] = print_select (get_network_component_groups (), +$table->data[0][1] = html_print_select (get_network_component_groups (), 'search_id_group', $search_id_group, '', __('All'), 0, true, false, false); $table->data[0][2] = __('Search'); -$table->data[0][3] = print_input_text ('search_string', $search_string, '', 25, +$table->data[0][3] = html_print_input_text ('search_string', $search_string, '', 25, 255, true); $table->data[0][4] = '
'; -$table->data[0][4] .= print_submit_button (__('Search'), 'search', false, +$table->data[0][4] .= html_print_submit_button (__('Search'), 'search', false, 'class="sub search"', true); $table->data[0][4] .= '
'; echo '
'; -print_table ($table); +html_print_table ($table); echo '
'; $filter = array (); @@ -323,25 +323,25 @@ foreach ($components as $component) { $data[6] = '' . - print_image('images/copy.png', true, array('alt' => __('Duplicate'), 'title' => __('Duplicate'))) . ''; + html_print_image('images/copy.png', true, array('alt' => __('Duplicate'), 'title' => __('Duplicate'))) . ''; $data[6] .= '' . - print_image('images/cross.png', true, array('alt' => __('Delete'), 'title' => __('Delete'))) . ''; + html_print_image('images/cross.png', true, array('alt' => __('Delete'), 'title' => __('Delete'))) . ''; array_push ($table->data, $data); } -print_table ($table); +html_print_table ($table); echo '
'; echo '
'; -print_input_hidden ('new_component', 1); -print_select (array (2 => __('Create a new network component'), +html_print_input_hidden ('new_component', 1); +html_print_select (array (2 => __('Create a new network component'), 4 => __('Create a new plugin component'), 6 => __('Create a new WMI component')), 'id_component_type', '', '', '', '', ''); -print_submit_button (__('Create'), 'crt', false, 'class="sub next"'); +html_print_submit_button (__('Create'), 'crt', false, 'class="sub next"'); echo '
'; echo '
' ?> diff --git a/pandora_console/godmode/modules/manage_network_components_form.php b/pandora_console/godmode/modules/manage_network_components_form.php index c37275c2ca..6dbc91129e 100644 --- a/pandora_console/godmode/modules/manage_network_components_form.php +++ b/pandora_console/godmode/modules/manage_network_components_form.php @@ -111,7 +111,7 @@ if (isset ($id)) { * 2 - network component * * You can see this values in file godmode/modules/manage_network_components.php - * in the last lines (in the call function "print_select"). + * in the last lines (in the call function "html_print_select"). */ if ($id_component_type == 6) { @@ -139,20 +139,20 @@ echo '
'; $table->colspan['description'][1] = 3; $data = array (); $data[0] = __('Description'); -$data[1] = print_textarea ('description', 2, 65, $description, '', true); +$data[1] = html_print_textarea ('description', 2, 65, $description, '', true); push_table_row ($data, 'description'); -print_table ($table); +html_print_table ($table); echo '
'; -print_input_hidden ('id_component_type', $id_component_type); +html_print_input_hidden ('id_component_type', $id_component_type); if ($id) { - print_input_hidden ('update_component', 1); - print_input_hidden ('id', $id); - print_submit_button (__('Update'), 'upd', false, 'class="sub upd"'); + html_print_input_hidden ('update_component', 1); + html_print_input_hidden ('id', $id); + html_print_submit_button (__('Update'), 'upd', false, 'class="sub upd"'); } else { - print_input_hidden ('create_component', 1); - print_submit_button (__('Create'), 'crt', false, 'class="sub wand"'); + html_print_input_hidden ('create_component', 1); + html_print_submit_button (__('Create'), 'crt', false, 'class="sub wand"'); } echo '
'; echo '
'; diff --git a/pandora_console/godmode/modules/manage_network_components_form_common.php b/pandora_console/godmode/modules/manage_network_components_form_common.php index 4912eb044d..ad88df151f 100644 --- a/pandora_console/godmode/modules/manage_network_components_form_common.php +++ b/pandora_console/godmode/modules/manage_network_components_form_common.php @@ -45,7 +45,7 @@ $table->colspan[0][1] = 3; $table->data = array (); $table->data[0][0] = __('Name'); -$table->data[0][1] = print_input_text ('name', $name, '', 55, 255, true); +$table->data[0][1] = html_print_input_text ('name', $name, '', 55, 255, true); $table->data[1][0] = __('Type') . ' ' . ui_print_help_icon ('module_type', true); $sql = sprintf ('SELECT id_tipo, descripcion @@ -53,44 +53,44 @@ $sql = sprintf ('SELECT id_tipo, descripcion WHERE categoria IN (%s) ORDER BY descripcion', implode (',', $categories)); -$table->data[1][1] = print_select_from_sql ($sql, 'type', +$table->data[1][1] = html_print_select_from_sql ($sql, 'type', $type, ($id_component_type == 2 ? 'type_change()' : ''), '', '', true, false, false); $table->data[1][2] = __('Module group'); -$table->data[1][3] = print_select_from_sql ('SELECT id_mg, name FROM tmodule_group ORDER BY name', +$table->data[1][3] = html_print_select_from_sql ('SELECT id_mg, name FROM tmodule_group ORDER BY name', 'id_module_group', $id_module_group, '', '', '', true, false, false); $table->data[2][0] = __('Group'); -$table->data[2][1] = print_select (get_network_component_groups (), +$table->data[2][1] = html_print_select (get_network_component_groups (), 'id_group', $id_group, '', '', '', true, false, false); $table->data[2][2] = __('Interval'); -$table->data[2][3] = print_input_text ('module_interval', $module_interval, '', +$table->data[2][3] = html_print_input_text ('module_interval', $module_interval, '', 5, 15, true); $table->data[3][0] = __('Warning status'); $table->data[3][1] = ''.__('Min.').''; -$table->data[3][1] .= print_input_text ('min_warning', $min_warning, +$table->data[3][1] .= html_print_input_text ('min_warning', $min_warning, '', 5, 15, true); $table->data[3][1] .= '
'.__('Max.').''; -$table->data[3][1] .= print_input_text ('max_warning', $max_warning, +$table->data[3][1] .= html_print_input_text ('max_warning', $max_warning, '', 5, 15, true); $table->data[3][2] = __('Critical status'); $table->data[3][3] = ''.__('Min.').''; -$table->data[3][3] .= print_input_text ('min_critical', $min_critical, +$table->data[3][3] .= html_print_input_text ('min_critical', $min_critical, '', 5, 15, true); $table->data[3][3] .= '
'.__('Max.').''; -$table->data[3][3] .= print_input_text ('max_critical', $max_critical, +$table->data[3][3] .= html_print_input_text ('max_critical', $max_critical, '', 5, 15, true); $table->data[4][0] = __('FF threshold') . ' ' . ui_print_help_icon ('ff_threshold', true); -$table->data[4][1] = print_input_text ('ff_event', $ff_event, +$table->data[4][1] = html_print_input_text ('ff_event', $ff_event, '', 5, 15, true); $table->data[4][2] = __('Historical data'); -$table->data[4][3] = print_checkbox ("history_data", 1, $history_data, true); +$table->data[4][3] = html_print_checkbox ("history_data", 1, $history_data, true); $table->data[5][0] = __('Min. Value'); -$table->data[5][1] = print_input_text ('min', $min, '', 5, 15, true); +$table->data[5][1] = html_print_input_text ('min', $min, '', 5, 15, true); $table->data[5][2] = __('Max. Value'); -$table->data[5][3] = print_input_text ('max', $max, '', 5, 15, true); +$table->data[5][3] = html_print_input_text ('max', $max, '', 5, 15, true); ?> diff --git a/pandora_console/godmode/modules/manage_network_components_form_network.php b/pandora_console/godmode/modules/manage_network_components_form_network.php index 38f5ed0110..7a8e6a899f 100644 --- a/pandora_console/godmode/modules/manage_network_components_form_network.php +++ b/pandora_console/godmode/modules/manage_network_components_form_network.php @@ -38,49 +38,49 @@ $snmp_versions['3'] = 'v. 3'; $data = array (); $data[0] = __('Port'); -$data[1] = print_input_text ('tcp_port', $tcp_port, '', 5, 20, true); +$data[1] = html_print_input_text ('tcp_port', $tcp_port, '', 5, 20, true); $data[2] = __('SNMP version'); -$data[3] = print_select ($snmp_versions, 'snmp_version', $snmp_version, +$data[3] = html_print_select ($snmp_versions, 'snmp_version', $snmp_version, '', '', '', true, false, false, ''); push_table_row ($data, 'snmp_port'); $data = array (); $data[0] = __('SNMP OID'); -$data[1] = print_input_text ('snmp_oid', $snmp_oid, '', 30, 400, true); +$data[1] = html_print_input_text ('snmp_oid', $snmp_oid, '', 30, 400, true); //$table->colspan['snmp_2'][1] = 3; $data[2] = __('SNMP community'); -$data[3] = print_input_text ('snmp_community', $snmp_community, '', 15, 60, true); +$data[3] = html_print_input_text ('snmp_community', $snmp_community, '', 15, 60, true); push_table_row ($data, 'snmp_2'); $data = array(); $data[0] = __('Auth user'); -$data[1] = print_input_text ('snmp3_auth_user', $snmp3_auth_user, '', 15, 60, true); +$data[1] = html_print_input_text ('snmp3_auth_user', $snmp3_auth_user, '', 15, 60, true); $data[2] = __('Auth password'); $data[3] = print_input_text ('snmp3_auth_pass', $snmp3_auth_pass, '', 15, 60, true); -$data[3] .= print_input_hidden('active_snmp_v3', 0, true); +$data[3] .= html_print_input_hidden('active_snmp_v3', 0, true); push_table_row($data, 'field_snmpv3_row1'); $data = array(); $data[0] = __('Privacy method'); -$data[1] = print_select(array('DES' => __('DES'), 'AES' => __('AES')), 'snmp3_privacy_method', $snmp3_privacy_method, '', '', '', true); +$data[1] = html_print_select(array('DES' => __('DES'), 'AES' => __('AES')), 'snmp3_privacy_method', $snmp3_privacy_method, '', '', '', true); $data[2] = __('privacy pass'); -$data[3] = print_input_text ('snmp3_privacy_pass', $snmp3_privacy_pass, '', 15, 60, true); +$data[3] = html_print_input_text ('snmp3_privacy_pass', $snmp3_privacy_pass, '', 15, 60, true); push_table_row($data, 'field_snmpv3_row2'); $data = array(); $data[0] = __('Auth method'); -$data[1] = print_select(array('MD5' => __('MD5'), 'SHA' => __('SHA')), 'snmp3_auth_method', $snmp3_auth_method, '', '', '', true); +$data[1] = html_print_select(array('MD5' => __('MD5'), 'SHA' => __('SHA')), 'snmp3_auth_method', $snmp3_auth_method, '', '', '', true); $data[2] = __('Security level'); -$data[3] = print_select(array('noAuthNoPriv' => __('Not auth and not privacy method'), +$data[3] = html_print_select(array('noAuthNoPriv' => __('Not auth and not privacy method'), 'authNoPriv' => __('Auth and not privacy method'), 'authPriv' => __('Auth and privacy method')), 'snmp3_security_level', $snmp3_security_level, '', '', '', true); push_table_row($data, 'field_snmpv3_row3'); $data = array(); $data[0] = __('Post process') . ' ' . ui_print_help_icon ('postprocess', true); -$data[1] = print_input_text ('post_process', $post_process, '', 12, 25, true); +$data[1] = html_print_input_text ('post_process', $post_process, '', 12, 25, true); $data[2] = $data[3] = ''; push_table_row($data, 'field_process'); @@ -89,14 +89,14 @@ push_table_row($data, 'field_process'); /* Advanced stuff */ $data = array (); $data[0] = __('TCP send') . ' ' . ui_print_help_icon ("tcp_send", true); -$data[1] = print_textarea ('tcp_send', 2, 65, $tcp_send, '', true); +$data[1] = html_print_textarea ('tcp_send', 2, 65, $tcp_send, '', true); $table->colspan['tcp_send'][1] = 3; push_table_row ($data, 'tcp_send'); $data = array(); $data[0] = __('TCP receive'); -$data[1] = print_textarea ('tcp_rcv', 2, 65, $tcp_rcv, '', true); +$data[1] = html_print_textarea ('tcp_rcv', 2, 65, $tcp_rcv, '', true); $table->colspan['tcp_receive'][1] = 3; push_table_row ($data, 'tcp_receive'); diff --git a/pandora_console/godmode/modules/manage_network_components_form_plugin.php b/pandora_console/godmode/modules/manage_network_components_form_plugin.php index 71812de187..a8cba43847 100644 --- a/pandora_console/godmode/modules/manage_network_components_form_plugin.php +++ b/pandora_console/godmode/modules/manage_network_components_form_plugin.php @@ -22,14 +22,14 @@ echo "

".__('Plugin component').'

'; $data = array (); $data[0] = __('Port'); -$data[1] = print_input_text ('tcp_port', $tcp_port, '', 5, 20, true); +$data[1] = html_print_input_text ('tcp_port', $tcp_port, '', 5, 20, true); $table->colspan['plugin_0'][1] = 3; push_table_row ($data, 'plugin_0'); $data = array (); $data[0] = __('Plugin'); -$data[1] = print_select_from_sql ('SELECT id, name FROM tplugin ORDER BY name', +$data[1] = html_print_select_from_sql ('SELECT id, name FROM tplugin ORDER BY name', 'id_plugin', $id_plugin, '', __('None'), 0, true, false, false); $table->colspan['plugin_1'][1] = 3; @@ -37,18 +37,18 @@ push_table_row ($data, 'plugin_1'); $data = array (); $data[0] = __('Username'); -$data[1] = print_input_text ('plugin_user', $plugin_user, '', 15, 60, true); +$data[1] = html_print_input_text ('plugin_user', $plugin_user, '', 15, 60, true); $data[2] = _('Password'); -$data[3] = print_input_password ('plugin_pass', $plugin_pass, '', 15, 60, true); +$data[3] = html_print_input_password ('plugin_pass', $plugin_pass, '', 15, 60, true); push_table_row ($data, 'plugin_2'); $data = array (); $data[0] = __('Plugin parameters'); $data[0] .= ui_print_help_icon ('plugin_parameters', true); -$data[1] = print_input_text ('plugin_parameter', $plugin_parameter, '', 30, 255, true); +$data[1] = html_print_input_text ('plugin_parameter', $plugin_parameter, '', 30, 255, true); $data[2] = __('Post process') . ' ' . ui_print_help_icon ('postprocess', true); -$data[3] = print_input_text ('post_process', $post_process, '', 12, 25, true); +$data[3] = html_print_input_text ('post_process', $post_process, '', 12, 25, true); push_table_row ($data, 'plugin_3'); diff --git a/pandora_console/godmode/modules/manage_network_components_form_wmi.php b/pandora_console/godmode/modules/manage_network_components_form_wmi.php index 675742e58d..6b719e4b32 100644 --- a/pandora_console/godmode/modules/manage_network_components_form_wmi.php +++ b/pandora_console/godmode/modules/manage_network_components_form_wmi.php @@ -32,31 +32,31 @@ echo "

".__('WMI component management').'

'; $data = array (); $data[0] = __('WMI query'); -$data[1] = print_input_text ('snmp_oid', $snmp_oid, '', 25, 255, true); +$data[1] = html_print_input_text ('snmp_oid', $snmp_oid, '', 25, 255, true); $data[2] = __('Key string') . ' ' . ui_print_help_icon ('wmikey', true); -$data[3] = print_input_text ('snmp_community', $snmp_community, '', 25, 255, true); +$data[3] = html_print_input_text ('snmp_community', $snmp_community, '', 25, 255, true); push_table_row ($data, 'wmi_1'); $data = array (); $data[0] = __('Field number') . ' ' . ui_print_help_icon ('wmifield', true); -$data[1] = print_input_text ('tcp_port', $tcp_port, '', 5, 25, true); +$data[1] = html_print_input_text ('tcp_port', $tcp_port, '', 5, 25, true); $data[2] = __('Namespace') . ' ' . ui_print_help_icon ('wminamespace', true); -$data[3] = print_input_text ('tcp_send', $tcp_send, '', 25, 255, true); +$data[3] = html_print_input_text ('tcp_send', $tcp_send, '', 25, 255, true); push_table_row ($data, 'wmi_2'); $data = array (); $data[0] = __('Username'); -$data[1] = print_input_text ('plugin_user', $plugin_user, '', 15, 255, true); +$data[1] = html_print_input_text ('plugin_user', $plugin_user, '', 15, 255, true); $data[2] = __('Password'); -$data[3] = print_input_password ('plugin_pass', $plugin_pass, '', 25, 255, true); +$data[3] = html_print_input_password ('plugin_pass', $plugin_pass, '', 25, 255, true); push_table_row ($data, 'wmi_3'); $data = array(); $data[0] = __('Post process') . ' ' . ui_print_help_icon ('postprocess', true); -$data[1] = print_input_text ('post_process', $post_process, '', 12, 25, true); +$data[1] = html_print_input_text ('post_process', $post_process, '', 12, 25, true); $data[2] = $data[3] = ''; push_table_row($data, 'field_process'); @@ -108,7 +108,7 @@ echo ''; // Component group echo '' . __('Group') . ''; echo ''; -print_select (get_network_component_groups (), +html_print_select (get_network_component_groups (), 'id_group', $id_group, '', '', '', false, false, false); // Module group @@ -206,18 +206,18 @@ echo ''; echo ''; echo ''; -print_input_hidden ('id_modulo', $id_component_type); +html_print_input_hidden ('id_modulo', $id_component_type); // Update/Add buttons echo '
'; if ($id) { - print_input_hidden ('update_component', 1); - print_input_hidden ('id', $id); - print_submit_button (__('Update'), 'crt', false, 'class="sub upd"'); + html_print_input_hidden ('update_component', 1); + html_print_input_hidden ('id', $id); + html_print_submit_button (__('Update'), 'crt', false, 'class="sub upd"'); } else { - print_input_hidden ('create_component', 1); - print_submit_button (__('Create'), 'crt', false, 'class="sub next"'); + html_print_input_hidden ('create_component', 1); + html_print_submit_button (__('Create'), 'crt', false, 'class="sub next"'); } echo '
'; echo ''; diff --git a/pandora_console/godmode/modules/manage_network_templates.php b/pandora_console/godmode/modules/manage_network_templates.php index 9b281ad473..08551275e4 100644 --- a/pandora_console/godmode/modules/manage_network_templates.php +++ b/pandora_console/godmode/modules/manage_network_templates.php @@ -154,23 +154,23 @@ foreach ($result as $row) { $data = array (); $data[0] = ''. safe_output($row["name"]).''; $data[1] = ui_print_truncate_text(safe_output($row["description"]), 70, true, true, true, true); - $data[2] = print_input_image ("delete_profile", "images/cross.png", + $data[2] = html_print_input_image ("delete_profile", "images/cross.png", $row["id_np"],'', true, array ('onclick' => 'if (!confirm(\''.__('Are you sure?').'\')) return false;')); - $data[2] .= print_input_image ("export_profile", "images/lightning_go.png", + $data[2] .= html_print_input_image ("export_profile", "images/lightning_go.png", $row["id_np"], '', true); $data[2] = '' . print_image("images/cross.png", true) . ''; + 'onclick="if (!confirm(\''.__('Are you sure?').'\')) return false;">' . html_print_image("images/cross.png", true) . ''; $data[2] .= '' . print_image("images/lightning_go.png", true) . ''; + '&export_profile=' . $row['id_np'] . '">' . html_print_image("images/lightning_go.png", true) . ''; array_push ($table->data, $data); } if (!empty ($table->data)) { echo '
'; - print_table ($table); + html_print_table ($table); echo '
'; } else { echo '
'.__('There are no defined network profiles').'
'; @@ -178,7 +178,7 @@ if (!empty ($table->data)) { echo '
'; echo '
'; -print_submit_button (__('Create'), "crt", '', 'class="sub next"'); +html_print_submit_button (__('Create'), "crt", '', 'class="sub next"'); echo '
'; ?> diff --git a/pandora_console/godmode/modules/manage_network_templates_form.php b/pandora_console/godmode/modules/manage_network_templates_form.php index 552171e5c1..22baa332b2 100644 --- a/pandora_console/godmode/modules/manage_network_templates_form.php +++ b/pandora_console/godmode/modules/manage_network_templates_form.php @@ -123,19 +123,19 @@ else { echo ''; echo ''; echo ''; echo '"; echo '
'.__('Name').''; -print_input_text ("name", $name, '', 63); +html_print_input_text ("name", $name, '', 63); echo '
'.__('Description').''; -print_textarea ("description", 2, 60, $description); +html_print_textarea ("description", 2, 60, $description); echo "
'; if ($id_np > 0) { - print_submit_button (__("Update"), "updbutton", false, 'class="sub upd"'); + html_print_submit_button (__("Update"), "updbutton", false, 'class="sub upd"'); } else { - print_submit_button (__("Create"), "crtbutton", false, 'class="sub wand"'); + html_print_submit_button (__("Create"), "crtbutton", false, 'class="sub wand"'); } echo "
"; @@ -180,24 +180,24 @@ if ($id_np > 0) { $table->head[2] = __('Description'); $table->head[3] = __('Group'); $table->align[3] = "center"; - $table->head[4] = print_checkbox_extended ('allbox', '', false, false, 'CheckAll();', '', true); + $table->head[4] = html_print_checkbox_extended ('allbox', '', false, false, 'CheckAll();', '', true); $table->align[4] = "center"; foreach ($result as $row) { $data = array (); $data[0] = $row["name"]; - $data[1] = print_image("images/".show_icon_type($row["type"]), true, array("border" => '0')); + $data[1] = html_print_image("images/".show_icon_type($row["type"]), true, array("border" => '0')); $data[2] = mb_strimwidth($row["description"],0,30,"..."); $data[3] = get_network_component_group_name ($row["group"]); - $data[4] = print_checkbox ("components[]", $row["component_id"], false, true); + $data[4] = html_print_checkbox ("components[]", $row["component_id"], false, true); array_push ($table->data, $data); } if (!empty ($table->data)) { echo '
'; - print_table ($table); + html_print_table ($table); echo '
'; - print_submit_button (__('Delete'), "delbutton", false, 'class="sub delete" onClick="if (!confirm(\'Are you sure?\')) return false;"'); + html_print_submit_button (__('Delete'), "delbutton", false, 'class="sub delete" onClick="if (!confirm(\'Are you sure?\')) return false;"'); echo '
'; } unset ($table); @@ -226,9 +226,9 @@ if ($id_np > 0) { $groups_compound[$row["id_sg"]] .= $row["name"]; } - print_select ($groups_compound, "ncgroup", $ncgroup, 'javascript:this.form.submit();', __('Group')." - ".__('All'), -1, false, false, true, '" style="width:350px'); + html_print_select ($groups_compound, "ncgroup", $ncgroup, 'javascript:this.form.submit();', __('Group')." - ".__('All'), -1, false, false, true, '" style="width:350px'); echo ''; echo '
'; @@ -249,9 +249,9 @@ if ($id_np > 0) { $components[$row["id_nc"]] = $row["name"]; } - print_select ($components, "components[]", $id_nc, '', '', -1, false, true, false, '" style="width:350px'); + html_print_select ($components, "components[]", $id_nc, '', '', -1, false, true, false, '" style="width:350px'); echo "  "; - print_submit_button (__('Add'), 'crtbutton', false, 'class="sub wand"'); + html_print_submit_button (__('Add'), 'crtbutton', false, 'class="sub wand"'); echo "
"; } diff --git a/pandora_console/godmode/modules/module_list.php b/pandora_console/godmode/modules/module_list.php index b059393e1c..fccaf0358c 100644 --- a/pandora_console/godmode/modules/module_list.php +++ b/pandora_console/godmode/modules/module_list.php @@ -77,7 +77,7 @@ foreach ($rows as $row) { echo " " . - print_image("images/".$row["icon"], true, array("border" => '0')) . + html_print_image("images/".$row["icon"], true, array("border" => '0')) . " ".$row["id_tipo"]." diff --git a/pandora_console/godmode/reporting/graph_builder.graph_editor.php b/pandora_console/godmode/reporting/graph_builder.graph_editor.php index 1c33c6bed8..02fb8d9f53 100644 --- a/pandora_console/godmode/reporting/graph_builder.graph_editor.php +++ b/pandora_console/godmode/reporting/graph_builder.graph_editor.php @@ -99,14 +99,14 @@ if(count($module_array) > 0){ echo ""; echo ""; $new_weight = $weight_array[$a]-0.125; - echo ""; + echo ""; echo ""; $new_weight = $weight_array[$a]+0.125; - echo ""; + echo ""; echo "
".print_image('images/down.png', true, array ('title' => __('Decrease Weight')))."".html_print_image('images/down.png', true, array ('title' => __('Decrease Weight')))."$weight_array[$a]".print_image('images/up.png', true, array ('title' => __('Increase Weight')))."".html_print_image('images/up.png', true, array ('title' => __('Increase Weight')))."
"; echo ""; echo ""; - echo "".print_image('images/cross.png', true, array ('title' => __('Delete'))).""; + echo "".html_print_image('images/cross.png', true, array ('title' => __('Delete'))).""; echo ""; } @@ -122,15 +122,15 @@ echo "" echo ""; echo ""; echo ""; -echo ""; +echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; -echo ""; -echo ""; -echo ""; +echo ""; +echo ""; +echo ""; echo ""; echo ""; + $table_data .= '"; } if ($block < $nmodules) { @@ -3487,7 +3487,7 @@ function render_report_html_item ($content, $table, $report, $mini = false) { $table_data .= ""; $file_name = string2image(ui_print_truncate_text($agent['nombre'],19, false, true, false, '...'), 140, 15, 3, 0, $rowcolor, $textcolor, 4, 0); - $table_data .= ""; + $table_data .= ""; $agent_modules = get_agent_modules($agent['id_agente']); $nmodules = 0; diff --git a/pandora_console/include/functions_servers.php b/pandora_console/include/functions_servers.php index d9b18bd246..050463ed38 100644 --- a/pandora_console/include/functions_servers.php +++ b/pandora_console/include/functions_servers.php @@ -148,52 +148,52 @@ function get_server_info ($id_server = -1) { foreach ($result as $server) { switch ($server['server_type']) { case 0: - $server["img"] = print_image ("images/data.png", true, array ("title" => __('Data server'))); + $server["img"] = html_print_image ("images/data.png", true, array ("title" => __('Data server'))); $server["type"] = "data"; $id_modulo = 1; break; case 1: - $server["img"] = print_image ("images/network.png", true, array ("title" => __('Network server'))); + $server["img"] = html_print_image ("images/network.png", true, array ("title" => __('Network server'))); $server["type"] = "network"; $id_modulo = 2; break; case 2: - $server["img"] = print_image ("images/snmp.png", true, array ("title" => __('SNMP server'))); + $server["img"] = html_print_image ("images/snmp.png", true, array ("title" => __('SNMP server'))); $server["type"] = "snmp"; $id_modulo = 0; break; case 3: - $server["img"] = print_image ("images/recon.png", true, array ("title" => __('Recon server'))); + $server["img"] = html_print_image ("images/recon.png", true, array ("title" => __('Recon server'))); $server["type"] = "recon"; $id_modulo = 0; break; case 4: - $server["img"] = print_image ("images/plugin.png", true, array ("title" => __('Plugin server'))); + $server["img"] = html_print_image ("images/plugin.png", true, array ("title" => __('Plugin server'))); $server["type"] = "plugin"; $id_modulo = 4; break; case 5: - $server["img"] = print_image ("images/chart_bar.png", true, array ("title" => __('Prediction server'))); + $server["img"] = html_print_image ("images/chart_bar.png", true, array ("title" => __('Prediction server'))); $server["type"] = "prediction"; $id_modulo = 5; break; case 6: - $server["img"] = print_image ("images/wmi.png", true, array ("title" => __('WMI server'))); + $server["img"] = html_print_image ("images/wmi.png", true, array ("title" => __('WMI server'))); $server["type"] = "wmi"; $id_modulo = 6; break; case 7: - $server["img"] = print_image ("images/server_export.png", true, array ("title" => __('Export server'))); + $server["img"] = html_print_image ("images/server_export.png", true, array ("title" => __('Export server'))); $server["type"] = "export"; $id_modulo = 0; break; case 8: - $server["img"] = print_image ("images/page_white_text.png", true, array ("title" => __('Inventory server'))); + $server["img"] = html_print_image ("images/page_white_text.png", true, array ("title" => __('Inventory server'))); $server["type"] = "inventory"; $id_modulo = 0; break; case 9: - $server["img"] = print_image ("images/world.png", true, array ("title" => __('Web server'))); + $server["img"] = html_print_image ("images/world.png", true, array ("title" => __('Web server'))); $server["type"] = "web"; $id_modulo = 0; break; @@ -402,22 +402,22 @@ function show_server_type ($id) { switch ($id) { case 1: - return print_image("images/database.png", true, array("title" => "Pandora FMS Data server")); + return html_print_image("images/database.png", true, array("title" => "Pandora FMS Data server")); break; case 2: - return print_image("images/network.png", true, array("title" => "Pandora FMS Network server")); + return html_print_image("images/network.png", true, array("title" => "Pandora FMS Network server")); break; case 4: - return print_image("images/plugin.png", true, array("title" => "Pandora FMS Plugin server")); + return html_print_image("images/plugin.png", true, array("title" => "Pandora FMS Plugin server")); break; case 5: - return print_image("images/chart_bar.png", true, array("title" => "Pandora FMS Prediction server")); + return html_print_image("images/chart_bar.png", true, array("title" => "Pandora FMS Prediction server")); break; case 6: - return print_image("images/wmi.png", true, array("title" => "Pandora FMS WMI server")); + return html_print_image("images/wmi.png", true, array("title" => "Pandora FMS WMI server")); break; case 7: - return print_image("images/server_web.png", true, array("title" => "Pandora FMS WEB server")); + return html_print_image("images/server_web.png", true, array("title" => "Pandora FMS WEB server")); break; default: return "--"; diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 5251a2077d..8fa4a6a33d 100644 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -305,9 +305,9 @@ function ui_print_group_icon ($id_group, $return = false, $path = "groups_small" $output = ''; if (empty ($icon)) - $output .= ' - '; + $output .= ' - '; else - $output .= print_image("images/" . $path . "/" . $icon . ".png", true, array("style" => $style, "class" => "bot", "alt" => get_group_name($id_group, true), "title" => get_group_name ($id_group, true))); + $output .= html_print_image("images/" . $path . "/" . $icon . ".png", true, array("style" => $style, "class" => "bot", "alt" => groups_get_name($id_group, true), "title" => groups_get_name ($id_group, true))); if ($link) $output .= ''; @@ -341,9 +341,9 @@ function ui_print_group_icon_path ($id_group, $return = false, $path = "images/g $output = ''; if (empty ($icon)) - $output .= ' - '; + $output .= ' - '; else - $output .= ''.get_group_name ($id_group, true).''; + $output .= ''.groups_get_name ($id_group, true).''; if ($link) $output .= ''; @@ -370,7 +370,7 @@ function ui_print_os_icon ($id_os, $name = true, $return = false) { return "-"; } - $output = print_image("images/os_icons/".$icon, true, array("alt" => $os_name, "title" => $os_name)); + $output = html_print_image("images/os_icons/".$icon, true, array("alt" => $os_name, "title" => $os_name)); if ($name === true) { $output .= ' - '.$os_name; @@ -488,7 +488,7 @@ function ui_format_alert_row ($alert, $compound = false, $agent = true, $url = ' $img = 'images/policies.png'; $data[$index['policy']] = '' . - print_image($img,true, array('title' => $policyInfo['name'])) . + html_print_image($img,true, array('title' => $policyInfo['name'])) . ''; } } @@ -498,7 +498,7 @@ function ui_format_alert_row ($alert, $compound = false, $agent = true, $url = ' // Standby $data[$index['standby']] = ''; if (isset ($alert["standby"]) && $alert["standby"] == 1) { - $data[$index['standby']] = print_image ('images/bell_pause.png', true, array('title' => __('Standby on'))); + $data[$index['standby']] = html_print_image ('images/bell_pause.png', true, array('title' => __('Standby on'))); } // Force alert execution @@ -506,11 +506,11 @@ function ui_format_alert_row ($alert, $compound = false, $agent = true, $url = ' if (! $compound) { if ($alert["force_execution"] == 0) { $data[$index['force_execution']] = - '' . print_image("images/target.png", true) . ''; + '' . html_print_image("images/target.png", true) . ''; } else { $data[$index['force_execution']] = - '' . print_image("images/refresh.png", true) . ''; + '' . html_print_image("images/refresh.png", true) . ''; } } @@ -530,7 +530,7 @@ function ui_format_alert_row ($alert, $compound = false, $agent = true, $url = ' $data[$index['description']] = ''; if (! $compound) { $data[$index['template']] .= ''; - $data[$index['template']] .= print_image ('images/zoom.png', true); + $data[$index['template']] .= html_print_image ('images/zoom.png', true); $data[$index['template']] .= ' '; $actionDefault = db_get_value_sql("SELECT id_alert_action FROM talert_templates WHERE id = " . $alert['id_alert_template']); @@ -580,10 +580,10 @@ function ui_format_alert_row ($alert, $compound = false, $agent = true, $url = ' $data[$index['status']] = ui_print_status_image($status, $title, true); if ($compound) { - $data[$index['validate']] = print_checkbox ("validate_compound[]", $alert["id"], false, true); + $data[$index['validate']] = html_print_checkbox ("validate_compound[]", $alert["id"], false, true); } else { - $data[$index['validate']] = print_checkbox ("validate[]", $alert["id"], false, true); + $data[$index['validate']] = html_print_checkbox ("validate[]", $alert["id"], false, true); } return $data; @@ -632,7 +632,7 @@ function ui_print_string_substr ($string, $cutoff = 16, $return = false) { function ui_print_alert_template_example ($id_alert_template, $return = false, $print_values = true) { $output = ''; - $output .= print_image("images/information.png", true); + $output .= html_print_image("images/information.png", true); $output .= ''; $template = alerts_get_alert_template ($id_alert_template); @@ -705,7 +705,7 @@ function ui_print_alert_template_example ($id_alert_template, $return = false, $ * @return string The help tip */ function ui_print_help_icon ($help_id, $return = false) { - $output = ' '.print_image ("images/help.png", true, + $output = ' '.html_print_image ("images/help.png", true, array ("class" => "img_help", "title" => __('Help'), "onclick" => "open_help ('".$help_id."')")); @@ -1090,13 +1090,13 @@ function ui_pagination ($count, $url = false, $offset = 0, $pagination = 0, $ret $output = '"; @@ -1255,7 +1255,7 @@ function ui_print_moduletype_icon ($id_moduletype, $return = false) { if (! file_exists ($config['homedir'].'/'.$imagepath)) $imagepath = ENTERPRISE_DIR.'/'.$imagepath; - return print_image ($imagepath, $return, + return html_print_image ($imagepath, $return, array ("border" => 0, "title" => $type["descripcion"])); } @@ -1341,7 +1341,7 @@ function ui_print_status_image ($type, $title = "", $return = false, $options = $options['title'] = $title; - return print_image ($imagepath, $return, $options); + return html_print_image ($imagepath, $return, $options); } /** @@ -1462,7 +1462,7 @@ if($hidde_default) { $image_b = "images/go.png"; } // Link to toggle -echo ''.$name.' '.print_image ($image_b, true, array ("title" => $title, "id" => "image_".$uniqid)).'

'; +echo ''.$name.' '.html_print_image ($image_b, true, array ("title" => $title, "id" => "image_".$uniqid)).'

'; // Code into a div echo "
\n"; @@ -1644,7 +1644,7 @@ function ui_print_page_header ($title, $icon = "", $return = false, $help = "", $buffer = '
".__('Filter group')."
".print_select(get_all_groups(), 'group', '', "filterByGroup($('#group').val());", __('All'), '0', true)."".html_print_select(groups_get_all(), 'group', '', "filterByGroup($('#group').val());", __('All'), '0', true)."
".__('Agents')."".__('Modules')."
".print_select (get_group_agents(), 'id_agents[]', 0, false, '', '', true, true, true, '', false, 'width:200px;')."" . print_image("images/darrowright.png", true) . "".print_select (array (), 'module[]', 0, false, '', 0, true, true, true, '', false, 'width:200px;')."".html_print_select (get_group_agents(), 'id_agents[]', 0, false, '', '', true, true, true, '', false, 'width:200px;')."" . html_print_image("images/darrowright.png", true) . "".html_print_select (array (), 'module[]', 0, false, '', 0, true, true, true, '', false, 'width:200px;')."
"; echo ""; diff --git a/pandora_console/godmode/reporting/graph_builder.main.php b/pandora_console/godmode/reporting/graph_builder.main.php index d748444973..21eaab45b1 100644 --- a/pandora_console/godmode/reporting/graph_builder.main.php +++ b/pandora_console/godmode/reporting/graph_builder.main.php @@ -105,7 +105,7 @@ else $return_all_groups = false; echo ""; echo ""; echo ""; @@ -137,7 +137,7 @@ echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; /*echo ""; echo "";*/ echo ""; diff --git a/pandora_console/godmode/reporting/graph_builder.php b/pandora_console/godmode/reporting/graph_builder.php index 5284ca400c..be32641653 100644 --- a/pandora_console/godmode/reporting/graph_builder.php +++ b/pandora_console/godmode/reporting/graph_builder.php @@ -152,13 +152,13 @@ if($edit_graph) { $buttons = array( 'main' => array('active' => false, 'text' => '' . - print_image("images/setup.png", true, array ("title" => __('Setup'))) .''), + html_print_image("images/setup.png", true, array ("title" => __('Setup'))) .''), 'graph_editor' => array('active' => false, 'text' => '' . - print_image("images/config.png", true, array ("title" => __('Graph editor'))) .''), + html_print_image("images/config.png", true, array ("title" => __('Graph editor'))) .''), 'preview' => array('active' => false, 'text' => '' . - print_image("images/chart_curve.png", true, array ("title" => __('Preview'))) .'') + html_print_image("images/chart_curve.png", true, array ("title" => __('Preview'))) .'') ); $buttons[$active_tab]['active'] = true; diff --git a/pandora_console/godmode/reporting/graph_builder.preview.php b/pandora_console/godmode/reporting/graph_builder.preview.php index 606c20821a..a7713e90a8 100644 --- a/pandora_console/godmode/reporting/graph_builder.preview.php +++ b/pandora_console/godmode/reporting/graph_builder.preview.php @@ -155,17 +155,17 @@ echo ""; echo ""; echo ""; echo ""; echo ""; @@ -176,7 +176,7 @@ $stackeds[0] = __('Area'); $stackeds[1] = __('Stacked area'); $stackeds[2] = __('Line'); $stackeds[3] = __('Stacked line'); -print_select ($stackeds, 'stacked', $stacked , '', '', -1, false, false); +html_print_select ($stackeds, 'stacked', $stacked , '', '', -1, false, false); echo ""; echo ""; echo "'; + $img = ''; $name = ''; $label = '
".__('Group')."" . - print_select_groups($config['id_user'], "AR", $return_all_groups, 'graph_id_group', $id_group, '', '', '', true) . + html_print_select_groups($config['id_user'], "AR", $return_all_groups, 'graph_id_group', $id_group, '', '', '', true) . "
".__('Description')."
"; echo "".__('Period').""; -print_select ($periods, 'period', $period); +html_print_select ($periods, 'period', $period); echo ""; echo "".__('Stacked').""; @@ -149,21 +149,21 @@ $stackeds = array( GRAPH_STACKED_AREA => __('Stacked area'), GRAPH_LINE => __('Line'), GRAPH_STACKED_LINE => __('Stacked line')); -print_select ($stackeds, 'stacked', $stacked); +html_print_select ($stackeds, 'stacked', $stacked); echo "
"; echo "".__('View events').""; -print_checkbox('events', 1, $events); +html_print_checkbox('events', 1, $events); echo ""; echo "".__('View alerts').""; -print_checkbox('alerts', 1, $alerts); +html_print_checkbox('alerts', 1, $alerts); echo "
"; echo "".__('Date').""." "; echo ""; -echo print_input_text ('date', $date, '', 12, 10, true). ' '; +echo html_print_input_text ('date', $date, '', 12, 10, true). ' '; echo ""; -echo print_input_text ('time', $time, '', 7, 7, true). ' '; +echo html_print_input_text ('time', $time, '', 7, 7, true). ' '; echo ""; echo "".__('Period').""; echo ""; -print_select (custom_graphs_get_periods (), 'period', intval ($period / 3600), +html_print_select (custom_graphs_get_periods (), 'period', intval ($period / 3600), '', '', 0, false, false, false); echo ""; @@ -185,7 +185,7 @@ $zooms[0] = __('Graph defined'); $zooms[1] = __('Zoom x1'); $zooms[2] = __('Zoom x2'); $zooms[3] = __('Zoom x3'); -print_select ($zooms, 'zoom', $zoom , '', '', 0); +html_print_select ($zooms, 'zoom', $zoom , '', '', 0); echo ""; diff --git a/pandora_console/godmode/reporting/graphs.php b/pandora_console/godmode/reporting/graphs.php index 1cdc49fb96..762cdf2c9d 100644 --- a/pandora_console/godmode/reporting/graphs.php +++ b/pandora_console/godmode/reporting/graphs.php @@ -95,7 +95,7 @@ if (! empty ($graphs)) { $data = array (); $data[0] = '' . print_image('images/eye.png', true) . "" . ''; + $graph['id_graph'].'">' . html_print_image('images/eye.png', true) . "" . ''; $data[1] = ''.$graph['name'].''; $data[2] = $graph["description"]; @@ -106,12 +106,12 @@ if (! empty ($graphs)) { if (check_acl ($config['id_user'], 0, "AW")) { $data[5] = '' . print_image("images/cross.png", true) . ''; + return false;">' . html_print_image("images/cross.png", true) . ''; } array_push ($table->data, $data); } - print_table ($table); + html_print_table ($table); } else { echo "
".__('There are no defined reportings')."
"; @@ -119,7 +119,7 @@ else { echo '
'; echo '
'; -print_submit_button (__('Create graph'), 'create', false, 'class="sub next"'); +html_print_submit_button (__('Create graph'), 'create', false, 'class="sub next"'); echo "
"; echo "
"; ?> diff --git a/pandora_console/godmode/reporting/map_builder.php b/pandora_console/godmode/reporting/map_builder.php index eeb16b1d78..e1145361d4 100644 --- a/pandora_console/godmode/reporting/map_builder.php +++ b/pandora_console/godmode/reporting/map_builder.php @@ -133,12 +133,12 @@ if (!$maps) { $data[1] = ui_print_group_icon ($map['id_group'], true); $data[2] = db_get_sql ("SELECT COUNT(*) FROM tlayout_data WHERE id_layout = ".$map['id']); - $data[3] = ''.print_image ("images/copy.png", true).''; - $data[4] = ''.print_image ("images/cross.png", true).''; + $data[3] = ''.html_print_image ("images/copy.png", true).''; + $data[4] = ''.html_print_image ("images/cross.png", true).''; array_push ($table->data, $data); } } - print_table ($table); + html_print_table ($table); } if (!$maps) { echo '
'; @@ -147,8 +147,8 @@ else { echo '
'; } echo '
'; -print_input_hidden ('edit_layout', 1); -print_submit_button (__('Create'), '', false, 'class="sub next"'); +html_print_input_hidden ('edit_layout', 1); +html_print_submit_button (__('Create'), '', false, 'class="sub next"'); echo '
'; echo '
'; ?> diff --git a/pandora_console/godmode/reporting/reporting_builder.item_editor.php b/pandora_console/godmode/reporting/reporting_builder.item_editor.php index 11f13b7cc8..6ea56f8e15 100644 --- a/pandora_console/godmode/reporting/reporting_builder.item_editor.php +++ b/pandora_console/godmode/reporting/reporting_builder.item_editor.php @@ -282,7 +282,7 @@ $intervals[2592000] = human_time_description_raw (2592000); $urlForm = 'index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=item_editor&action=' . $actionParameter . '&id_report=' . $idReport; echo '
'; -print_input_hidden('id_item', $idItem); +html_print_input_hidden('id_item', $idItem); ?> @@ -291,7 +291,7 @@ print_input_hidden('id_item', $idItem); - + - + - + @@ -339,13 +339,13 @@ print_input_hidden('id_item', $idItem); @@ -353,8 +353,8 @@ print_input_hidden('id_item', $idItem); - + - + - + - + @@ -417,82 +417,82 @@ print_input_hidden('id_item', $idItem); - + - + - + - + - + - + - + - + - - @@ -502,10 +502,10 @@ print_SLA_list('95%', $action, $idItem); print_General_list('95%', $action, $idItem); echo '
'; if ($action == 'new') { - print_submit_button(__('Create item'), 'create_item', false, 'class="sub wand"'); + html_print_submit_button(__('Create item'), 'create_item', false, 'class="sub wand"'); } else { - print_submit_button(__('Edit item'), 'edit_item', false, 'class="sub upd"'); + html_print_submit_button(__('Edit item'), 'edit_item', false, 'class="sub upd"'); } echo '
'; echo ''; @@ -559,7 +559,7 @@ function print_SLA_list($width, $action, $idItem = null) { '; } @@ -572,7 +572,7 @@ function print_SLA_list($width, $action, $idItem = null) { - + @@ -584,7 +584,7 @@ function print_SLA_list($width, $action, $idItem = null) { - + ' . printSmallFont($nameAgent) . ''; } @@ -644,7 +644,7 @@ function print_General_list($width, $action, $idItem = null) { - + @@ -653,7 +653,7 @@ function print_General_list($width, $action, $idItem = null) {  Type at least two characters to search - + '.__('Items filter').' ' . print_image("images/down.png", true, array("title" => __('Toggle filter(s)'), "id" => 'image_form_filter')) . ''; +echo ''.__('Items filter').' ' . html_print_image("images/down.png", true, array("title" => __('Toggle filter(s)'), "id" => 'image_form_filter')) . ''; $table = null; $table->width = '80%'; $table->data[0][0] = __('Agents'); -$table->data[0][1] = print_select($agents, 'agent_filter', $agentFilter, '', __('All'), 0, true); +$table->data[0][1] = html_print_select($agents, 'agent_filter', $agentFilter, '', __('All'), 0, true); $table->data[0][2] = __('Modules'); -$table->data[0][3] = print_select($modules, 'module_filter', $moduleFilter, '', __('All'), 0, true); +$table->data[0][3] = html_print_select($modules, 'module_filter', $moduleFilter, '', __('All'), 0, true); $table->data[1][0] = __('Type'); -$table->data[1][1] = print_select($types, 'type_filter', $typeFilter, '', __('All'), 0, true); +$table->data[1][1] = html_print_select($types, 'type_filter', $typeFilter, '', __('All'), 0, true); echo ''; @@ -156,18 +156,18 @@ if ($items){ $table->head[0] = '' . __('S.') . ''; $table->head[1] = __('Type'); if (!$filterEnable) { - $table->head[1] .= ' ' . print_image("images/sort_up.png", true, array("title" => __('Ascendent'))) . '' . - '' . print_image("images/sort_down.png", true, array("title" => __('Descent'))) . ''; + $table->head[1] .= ' ' . html_print_image("images/sort_up.png", true, array("title" => __('Ascendent'))) . '' . + '' . html_print_image("images/sort_down.png", true, array("title" => __('Descent'))) . ''; } $table->head[2] = __('Agent'); if (!$filterEnable) { - $table->head[2] .= ' ' . print_image("images/sort_up.png", true, array("title" => __('Ascendent'))) . '' . - '' . print_image("images/sort_down.png", true, array("title" => __('Descent'))) . ''; + $table->head[2] .= ' ' . html_print_image("images/sort_up.png", true, array("title" => __('Ascendent'))) . '' . + '' . html_print_image("images/sort_down.png", true, array("title" => __('Descent'))) . ''; } $table->head[3] = __('Module'); if (!$filterEnable) { - $table->head[3] .= ' ' . print_image("images/sort_up.png", true, array("title" => __('Ascendent'))) . '' . - '' . print_image("images/sort_down.png", true, array("title" => __('Descent'))) . ''; + $table->head[3] .= ' ' . html_print_image("images/sort_up.png", true, array("title" => __('Ascendent'))) . '' . + '' . html_print_image("images/sort_down.png", true, array("title" => __('Descent'))) . ''; } $table->head[4] = __('Period'); $table->head[5] = __('Description'); @@ -204,14 +204,14 @@ foreach ($items as $item) { $row[0] = ' '; } else { - $row[0] = '' . print_image("images/up.png", true, array("title" => __('Move to up'))) . ''; + $row[0] = '' . html_print_image("images/up.png", true, array("title" => __('Move to up'))) . ''; } if ((end($items) == $item) && $lastPage) { $row[0] .= ' '; } else { - $row[0] .= '' . print_image("images/down.png", true, array("title" => __('Move to down'))) . ''; + $row[0] .= '' . html_print_image("images/down.png", true, array("title" => __('Move to down'))) . ''; } if ($filterEnable) { @@ -250,15 +250,15 @@ foreach ($items as $item) { $row[5] = ui_print_truncate_text($item['description'], 25, true, true); } - $row[6] = '' . print_image("images/wrench_orange.png", true, array("title" => __('Edit'))) . ''; + $row[6] = '' . html_print_image("images/wrench_orange.png", true, array("title" => __('Edit'))) . ''; $row[6] .= ' '; - $row[6] .= '' . print_image("images/cross.png", true, array("title" => __('Delete'))) .''; + $row[6] .= '' . html_print_image("images/cross.png", true, array("title" => __('Delete'))) .''; $table->data[] = $row; $count++; } ui_pagination ($countItems, 'index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter); -print_table($table); +html_print_table($table); ui_pagination ($countItems, 'index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter); ?> "; } -function makeLayer($name, $visible = true, $dot = null, $idLayer = null) { +function gis_make_layer($name, $visible = true, $dot = null, $idLayer = null) { if ($dot == null) { $dot['url'] = 'images/dot_green.png'; $dot['width'] = 20; //11; @@ -219,7 +219,7 @@ function makeLayer($name, $visible = true, $dot = null, $idLayer = null) { 'background: url(images/lightning_blue.png) no-repeat right;')); echo ' ' . __("Type at least two characters to search the module.") . ''; diff --git a/pandora_console/include/functions_incidents.php b/pandora_console/include/functions_incidents.php index fd05219341..cfca3fb470 100644 --- a/pandora_console/include/functions_incidents.php +++ b/pandora_console/include/functions_incidents.php @@ -46,22 +46,22 @@ function get_incidents_priorities () { function print_incidents_priority_img ($id_priority, $return = false) { switch ($id_priority) { case 0: - $img = print_image ("images/dot_green.png", true, array('title' => __('Informative'))).print_image ("images/dot_green.png", true, array('title' => __('Informative'))).print_image ("images/dot_yellow.png", true, array('title' => __('Informative'))); + $img = html_print_image ("images/dot_green.png", true, array('title' => __('Informative'))).html_print_image ("images/dot_green.png", true, array('title' => __('Informative'))).html_print_image ("images/dot_yellow.png", true, array('title' => __('Informative'))); break; case 1: - $img = print_image ("images/dot_green.png", true, array('title' => __('Low'))).print_image ("images/dot_yellow.png", true, array('title' => __('Low'))).print_image ("images/dot_yellow.png", true, array('title' => __('Low'))); + $img = html_print_image ("images/dot_green.png", true, array('title' => __('Low'))).html_print_image ("images/dot_yellow.png", true, array('title' => __('Low'))).html_print_image ("images/dot_yellow.png", true, array('title' => __('Low'))); break; case 2: - $img = print_image ("images/dot_yellow.png", true, array('title' => __('Medium'))).print_image ("images/dot_yellow.png", true, array('title' => __('Medium'))).print_image ("images/dot_red.png", true, array('title' => __('Medium'))); + $img = html_print_image ("images/dot_yellow.png", true, array('title' => __('Medium'))).html_print_image ("images/dot_yellow.png", true, array('title' => __('Medium'))).html_print_image ("images/dot_red.png", true, array('title' => __('Medium'))); break; case 3: - $img = print_image ("images/dot_yellow.png", true, array('title' => __('Serious'))).print_image ("images/dot_red.png", true, array('title' => __('Serious'))).print_image ("images/dot_red.png", true, array('title' => __('Serious'))); + $img = html_print_image ("images/dot_yellow.png", true, array('title' => __('Serious'))).html_print_image ("images/dot_red.png", true, array('title' => __('Serious'))).html_print_image ("images/dot_red.png", true, array('title' => __('Serious'))); break; case 4: - $img = print_image ("images/dot_red.png", true, array('title' => __('Very serious'))).print_image ("images/dot_red.png", true, array('title' => __('Very serious'))).print_image ("images/dot_red.png", true, array('title' => __('Very serious'))); + $img = html_print_image ("images/dot_red.png", true, array('title' => __('Very serious'))).html_print_image ("images/dot_red.png", true, array('title' => __('Very serious'))).html_print_image ("images/dot_red.png", true, array('title' => __('Very serious'))); break; case 10: - $img = print_image ("images/dot_green.png", true, array('title' => __('Maintenance'))).print_image ("images/dot_green.png", true, array('title' => __('Maintenance'))).print_image ("images/dot_green.png", true, array('title' => __('Maintenance'))); + $img = html_print_image ("images/dot_green.png", true, array('title' => __('Maintenance'))).html_print_image ("images/dot_green.png", true, array('title' => __('Maintenance'))).html_print_image ("images/dot_green.png", true, array('title' => __('Maintenance'))); break; } @@ -98,19 +98,19 @@ function get_incidents_status () { function print_incidents_status_img ($id_status, $return = false) { switch ($id_status) { case 0: - $img = print_image ("images/dot_red.png", true, array('title' => __('Active incidents'))); + $img = html_print_image ("images/dot_red.png", true, array('title' => __('Active incidents'))); break; case 1: - $img = print_image ("images/dot_yellow.png", true, array('title' => __('Active incidents, with comments'))); + $img = html_print_image ("images/dot_yellow.png", true, array('title' => __('Active incidents, with comments'))); break; case 2: - $img = print_image ("images/dot_blue.png", true, array('title' => __('Rejected incidents'))); + $img = html_print_image ("images/dot_blue.png", true, array('title' => __('Rejected incidents'))); break; case 3: - $img = print_image ("images/dot_green.png", true, array('title' => __('Expired incidents'))); + $img = html_print_image ("images/dot_green.png", true, array('title' => __('Expired incidents'))); break; case 13: - $img = print_image ("images/dot_white.png", true, array('title' => __('Closed incidents'))); + $img = html_print_image ("images/dot_white.png", true, array('title' => __('Closed incidents'))); break; } diff --git a/pandora_console/include/functions_menu.php b/pandora_console/include/functions_menu.php index 6d71f8926c..6007ae0020 100644 --- a/pandora_console/include/functions_menu.php +++ b/pandora_console/include/functions_menu.php @@ -175,7 +175,7 @@ function print_menu (&$menu) { //Print out the first level $output .= '
  • '; - $output .= ''.$main["text"].'' . print_image("include/styles/images/toggle.png", true, array("class" => "toggle", "alt" => "toogle")); + $output .= ''.$main["text"].'' . html_print_image("include/styles/images/toggle.png", true, array("class" => "toggle", "alt" => "toogle")); if ($submenu_output != '') { //WARNING: IN ORDER TO MODIFY THE VISIBILITY OF MENU'S AND SUBMENU'S (eg. with cookies) YOU HAVE TO ADD TO THIS ELSEIF. DON'T MODIFY THE CSS if ($visible || in_array ("selected", $classes)) { diff --git a/pandora_console/include/functions_messages.php b/pandora_console/include/functions_messages.php index 5441bf9b15..3435b22ac4 100644 --- a/pandora_console/include/functions_messages.php +++ b/pandora_console/include/functions_messages.php @@ -69,7 +69,7 @@ function create_message ($usuario_origen, $usuario_destino, $subject, $mensaje) */ function create_message_group ($usuario_origen, $dest_group, $subject, $mensaje) { $users = get_users_info (); - $group_users = get_group_users ($dest_group); + $group_users = groups_get_users ($dest_group); if (! array_key_exists ($usuario_origen, $users)) { //Users don't exist in the system diff --git a/pandora_console/include/functions_modules.php b/pandora_console/include/functions_modules.php index 3ae6939511..48a73b7bf8 100644 --- a/pandora_console/include/functions_modules.php +++ b/pandora_console/include/functions_modules.php @@ -328,7 +328,7 @@ function format_delete($id) $txt = ""; if (check_acl ($config['id_user'], $group, "AW") ==1) { - $txt = '' . print_image("images/cross.png", true, array("border" => '0')) . ''; + $txt = '' . html_print_image("images/cross.png", true, array("border" => '0')) . ''; } return $txt; } @@ -340,7 +340,7 @@ function format_delete_string($id) $txt = ""; if (check_acl ($config['id_user'], $group, "AW") ==1) { - $txt = '' . print_image("images/cross.png", true, array("border" => '0')) . ''; + $txt = '' . html_print_image("images/cross.png", true, array("border" => '0')) . ''; } return $txt; } @@ -352,7 +352,7 @@ function format_delete_log4x($id) $txt = ""; if (check_acl ($config['id_user'], $group, "AW") ==1) { - $txt = '' . print_image("images/cross.png", true, array("border" => '0')) . ''; + $txt = '' . html_print_image("images/cross.png", true, array("border" => '0')) . ''; } return $txt; } diff --git a/pandora_console/include/functions_network_components.php b/pandora_console/include/functions_network_components.php index 00e3fe29c5..1d4811557d 100644 --- a/pandora_console/include/functions_network_components.php +++ b/pandora_console/include/functions_network_components.php @@ -116,8 +116,8 @@ function get_network_component_group ($id_network_component_group, $filter = fal /** * Get a list of network component groups. * - * The values returned can be passed directly to print_select(). Child groups - * are indented, so ordering on print_select() is NOT recommendable. + * The values returned can be passed directly to html_print_select(). Child groups + * are indented, so ordering on html_print_select() is NOT recommendable. * * @param int id_module_components If provided, groups must have at least one component * of the module provided. Parents will be included in that case even if they don't have diff --git a/pandora_console/include/functions_networkmap.php b/pandora_console/include/functions_networkmap.php index 04804b05e9..70bdeeb838 100644 --- a/pandora_console/include/functions_networkmap.php +++ b/pandora_console/include/functions_networkmap.php @@ -130,7 +130,7 @@ function generate_dot_groups ($pandora_name, $group = 0, $simple = 0, $font_size // Get groups data if ($group > 0) { $groups = array(); - $id_groups = get_id_groups_recursive($group, true); + $id_groups = groups_get_id_recursive($group, true); foreach($id_groups as $id_group) { if(check_acl($config["id_user"], $id_group, 'AR')) { @@ -303,7 +303,7 @@ function create_edge ($head, $tail, $layout, $nooverlap, $pure, $zoom, $ranksep, // Returns a group node definition function create_group_node ($group, $simple = 0, $font_size = 10) { - $status = get_group_status ($group['id_grupo']); + $status = groups_get_status ($group['id_grupo']); // Set node status switch($status) { @@ -324,17 +324,17 @@ function create_group_node ($group, $simple = 0, $font_size = 10) { break; } - $icon = get_group_icon($group['id_grupo']); + $icon = groups_get_icon($group['id_grupo']); if ($simple == 0){ // Set node icon if (file_exists ('images/groups_small/'.$icon.'.png')) { - $img_node = print_image("images/groups_small/" . $icon . ".png", true); + $img_node = html_print_image("images/groups_small/" . $icon . ".png", true); } else { $img_node = '-'; } - $name = get_group_name($group['id_grupo']); + $name = groups_get_name($group['id_grupo']); $node = $group['id_node'].' [ color="'.$status_color.'", fontsize='.$font_size.', style="filled", fixedsize=true, width=0.30, height=0.30, label=<
  • - - - - - - - + + + + + + + - + - +
    - +
    -
    'background: url(images/lightning.png) no-repeat right;')) . ' ' . __("Type at least two characters to search") . ''; ?> @@ -366,7 +366,7 @@ print_input_hidden('id_item', $idItem); @@ -391,25 +391,25 @@ print_input_hidden('id_item', $idItem); $query_sql = 'SELECT id_graph, name FROM tgraph WHERE private = 0 OR (private = 1 AND id_user = \''.$config["id_user"].'\')'; break; } - print_select_from_sql($query_sql, 'id_custom_graph', $idCustomGraph, '', '--', 0); + html_print_select_from_sql($query_sql, 'id_custom_graph', $idCustomGraph, '', '--', 0); ?>
     ' . __("The separator character is | .") . '';?>
    ='); - print_radio_button ('radiobutton_exception_condition', 1, '', $exception_condition); + html_print_radio_button ('radiobutton_exception_condition', 1, '', $exception_condition); echo __('<'); - print_radio_button ('radiobutton_exception_condition', 2, '', $exception_condition); + html_print_radio_button ('radiobutton_exception_condition', 2, '', $exception_condition); echo __('OK'); - print_radio_button ('radiobutton_exception_condition', 3, '', $exception_condition); + html_print_radio_button ('radiobutton_exception_condition', 3, '', $exception_condition); echo __('Not OK'); - print_radio_button ('radiobutton_exception_condition', 4, '', $exception_condition); + html_print_radio_button ('radiobutton_exception_condition', 4, '', $exception_condition); ?>
    ' . $item['sla_max'] . ' ' . $item['sla_limit'] . ' - ' . print_image("images/cross.png", true) . ' + ' . html_print_image("images/cross.png", true) . '
    ' . printSmallFont($nameModule) . ' - ' . print_image("images/cross.png", true) . ' + ' . html_print_image("images/cross.png", true) . '
    '.$img_node.'
    '.$name.'
    >, @@ -382,7 +382,7 @@ function create_agent_node ($agent, $simple = 0, $font_size = 10) { $img_node = 'images/networkmap/0.png'; } - $node = $agent['id_node'].' [ color="'.$status_color.'", fontsize='.$font_size.', style="filled", fixedsize=true, width=0.40, height=0.40, label=< + $node = $agent['id_node'].' [ color="'.$status_color.'", fontsize='.$font_size.', style="filled", fixedsize=true, width=0.40, height=0.40, label=<
    ' . print_image($img_node, true) . '
    ' . html_print_image($img_node, true) . '
    '.$name.'
    >, shape="doublecircle", URL="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$agent['id_agente'].'", tooltip="ajax.php?page=operation/agentes/ver_agente&get_agent_status_tooltip=1&id_agent='.$agent['id_agente'].'"];'; @@ -429,7 +429,7 @@ function create_module_node ($module, $simple = 0, $font_size = 10) { // Returns the definition of the central module function create_pandora_node ($name, $font_size = 10, $simple = 0) { - $img = '
    ' . print_image("images/networkmap/pandora_node.png", true) . '
    ' . html_print_image("images/networkmap/pandora_node.png", true) . '
    '.$name.'
    '.$img.$name.'
    '; if ($simple == 1){ @@ -444,12 +444,12 @@ function create_pandora_node ($name, $font_size = 10, $simple = 0) { // Opens a group definition function open_group ($id) { - $img = 'images/'.get_group_icon ($id).'.png'; - $name = get_group_name ($id); + $img = 'images/'.groups_get_icon ($id).'.png'; + $name = groups_get_name ($id); $group = 'subgraph cluster_' . $id . ' { style=filled; color=darkolivegreen3; label=< - +
    ' . print_image($img, true) . ''.$name.'
    ' . html_print_image($img, true) . ''.$name.'
    >; tooltip="'.$name.'"; URL="index.php?sec=estado&sec2=operation/agentes/estado_agente&group_id=' . $id . '";'; diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 014bbe22c2..342e408750 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -928,9 +928,9 @@ function event_reporting ($id_group, $period, $date = 0, $return = false) { foreach ($events as $event) { $data = array (); if ($event["estado"] == 0) - $data[0] = print_image("images/dot_red.png", true); + $data[0] = html_print_image("images/dot_red.png", true); else - $data[0] = print_image("images/dot_green.png", true); + $data[0] = html_print_image("images/dot_green.png", true); $data[1] = $event['evento']; $data[2] = $event['id_usuario'] != '0' ? $event['id_usuario'] : ''; $data[3] = $event["timestamp"]; @@ -938,7 +938,7 @@ function event_reporting ($id_group, $period, $date = 0, $return = false) { } if (empty ($return)) - print_table ($table); + html_print_table ($table); return $table; } @@ -1081,7 +1081,7 @@ function alert_reporting_agent ($id_agent, $period = 0, $date = 0, $return = tru } if ($html) { - return print_table ($table, $return); + return html_print_table ($table, $return); } else { return $table; @@ -1167,7 +1167,7 @@ function alert_reporting_module ($id_agent_module, $period = 0, $date = 0, $retu } if ($html) { - return print_table ($table, $return); + return html_print_table ($table, $return); } else { return $table; @@ -1223,7 +1223,7 @@ function alert_reporting ($id_group, $period = 0, $date = 0, $return = false) { $table->style = array (); $table->style[0] = 'font-weight: bold'; - $output .= print_table ($table, true); + $output .= html_print_table ($table, true); if (!$return) echo $output; @@ -1271,7 +1271,7 @@ function monitor_health_reporting ($id_group, $period = 0, $date = 0, $return = $table->size = array (); $table->size[0] = '100px'; - $output .= print_table ($table, true); + $output .= html_print_table ($table, true); $data = array(); $data[__('Monitors OK')] = $down_percentage; @@ -1507,14 +1507,14 @@ function get_agent_detailed_reporting ($id_agent, $period = 0, $date = 0, $retur $output .= '

    '.__('Modules').'

    '; $table_modules = get_agent_modules_reporting_table ($id_agent, $period, $date); $table_modules->width = '99%'; - $output .= print_table ($table_modules, true); + $output .= html_print_table ($table_modules, true); /* Show alerts in agent */ $table_alerts = get_agent_alerts_reporting_table ($id_agent, $period, $date); $table_alerts->width = '99%'; if (sizeof ($table_alerts->data)) { $output .= '

    '.__('Alerts').'

    '; - $output .= print_table ($table_alerts, true); + $output .= html_print_table ($table_alerts, true); } /* Show monitor status in agent (if any) */ @@ -1531,7 +1531,7 @@ function get_agent_detailed_reporting ($id_agent, $period = 0, $date = 0, $retur $table_monitors->size = array (); $table_monitors->align[1] = '10%'; $output .= '

    '.__('Monitors').'

    '; - $output .= print_table ($table_monitors, true); + $output .= html_print_table ($table_monitors, true); $output .= ''; @@ -1624,7 +1624,7 @@ function get_agents_detailed_event_reporting ($id_agents, $period = 0, $date = 0 } if ($events) - return print_table ($table, $return); + return html_print_table ($table, $return); } /** @@ -1668,7 +1668,7 @@ function get_group_detailed_event_reporting ($id_group, $period = 0, $date = 0, } if ($html) { - return print_table ($table, $return); + return html_print_table ($table, $return); } else { return $table; @@ -1739,7 +1739,7 @@ function get_module_detailed_event_reporting ($id_modules, $period = 0, $date = } if ($html) { - return print_table ($table, $return); + return html_print_table ($table, $return); } else { return $table; @@ -1847,7 +1847,7 @@ function get_agent_module_info ($id_agent, $filter = false) { $return["alert_img"] = ui_print_status_image (STATUS_ALERT_FIRED, __('Alert fired'), true); $return["alert_value"] = STATUS_ALERT_FIRED; } - elseif (give_disabled_group ($return["agent_group"])) { + elseif (groups_give_disabled_group ($return["agent_group"])) { $return["alert_status"] = "disabled"; $return["alert_value"] = STATUS_ALERT_DISABLED; $return["alert_img"] = ui_print_status_image (STATUS_ALERT_DISABLED, __('Alert disabled'), true); @@ -2120,7 +2120,7 @@ function render_report_html_item ($content, $table, $report, $mini = false) { $table->colspan[2][0] = 3; if ($show_graph == 0 || $show_graph == 1) { $data = array(); - $data[0] = print_table($table1, true); + $data[0] = html_print_table($table1, true); array_push ($table->data, $data); } @@ -2156,7 +2156,7 @@ function render_report_html_item ($content, $table, $report, $mini = false) { } $table->colspan[4][0] = 3; $data = array(); - $data[0] = print_table($table2, true); + $data[0] = html_print_table($table2, true); array_push ($table->data, $data); } break; @@ -2185,12 +2185,12 @@ function render_report_html_item ($content, $table, $report, $mini = false) { $monitor_value = format_numeric ($monitor_value); } $data[0] = '

    '; - $data[0] .= $monitor_value.' % ' . print_image("images/b_green.png", true, array("height" => "32", "width" => "32")) . '

    '; + $data[0] .= $monitor_value.' % ' . html_print_image("images/b_green.png", true, array("height" => "32", "width" => "32")) . '

    '; if ($monitor_value !== __('Unknown')) { $monitor_value = format_numeric (100 - $monitor_value, 2) ; } $data[1] = '

    '; - $data[1] .= $monitor_value.' % ' . print_image("images/b_red.png", true, array("height" => "32", "width" => "32")) . '

    '; + $data[1] .= $monitor_value.' % ' . html_print_image("images/b_red.png", true, array("height" => "32", "width" => "32")) . '

    '; array_push ($table->data, $data); break; @@ -2411,7 +2411,7 @@ function render_report_html_item ($content, $table, $report, $mini = false) { ': *, delete, drop, alter, modify, union, password, pass, insert '.__('or')." update.")); } - $cellContent = print_table($table2, true); + $cellContent = html_print_table($table2, true); array_push($table->data, array($cellContent)); break; @@ -2450,7 +2450,7 @@ function render_report_html_item ($content, $table, $report, $mini = false) { case 'event_report_group': $data = array (); $data[0] = $sizh . __('Group detailed event') . $sizhfin; - $data[1] = $sizh . ui_print_truncate_text(get_group_name($content['id_group']), 60, false) . $sizhfin; + $data[1] = $sizh . ui_print_truncate_text(groups_get_name($content['id_group']), 60, false) . $sizhfin; array_push ($table->data, $data); // Put description at the end of the module (if exists) @@ -2595,7 +2595,7 @@ function render_report_html_item ($content, $table, $report, $mini = false) { } } - $cellContent = print_table($table2, true); + $cellContent = html_print_table($table2, true); array_push($table->data, array($cellContent)); $table->colspan[1][0] = 2; break; @@ -2800,7 +2800,7 @@ function render_report_html_item ($content, $table, $report, $mini = false) { $table->colspan[2][0] = 3; $data = array(); - $data[0] = print_table($table1, true); + $data[0] = html_print_table($table1, true); array_push ($table->data, $data); break; //1 means group by agent @@ -2875,7 +2875,7 @@ function render_report_html_item ($content, $table, $report, $mini = false) { $table->colspan[2][0] = 3; $data = array(); - $data[0] = print_table($table2, true); + $data[0] = html_print_table($table2, true); array_push ($table->data, $data); break; } @@ -3077,7 +3077,7 @@ function render_report_html_item ($content, $table, $report, $mini = false) { $table->colspan[2][0] = 3; if ($show_graph == 0 || $show_graph == 1) { $data = array(); - $data[0] = print_table($table1, true); + $data[0] = html_print_table($table1, true); array_push ($table->data, $data); } @@ -3326,7 +3326,7 @@ function render_report_html_item ($content, $table, $report, $mini = false) { $table->colspan[2][0] = 3; if ($show_graph == 0 || $show_graph == 1) { $data = array(); - $data[0] = print_table($table1, true); + $data[0] = html_print_table($table1, true); array_push ($table->data, $data); } @@ -3440,7 +3440,7 @@ function render_report_html_item ($content, $table, $report, $mini = false) { } $file_name = string2image(ui_print_truncate_text($module['name'],15, false, true, false, '...'), 115, 13, 3, 270, '#9EAC8B', 'FFF', 4, 0); - $table_data .= '
    '.print_image($file_name, true, array('title' => $module['name']))."'.html_print_image($file_name, true, array('title' => $module['name']))."
    ".print_image($file_name, true, array('title' => $agent['nombre']))."".html_print_image($file_name, true, array('title' => $agent['nombre']))."
    - - - + + + - - + +
    "At least one monitor fails", "alt" => "At least one monitor fails")); ?> "At least one monitor fails", "alt" => "At least one monitor fails")); ?>At least one monitor fails "Change between Green/Red state", "alt" => "Change between Green/Red state")); ?> "Change between Green/Red state", "alt" => "Change between Green/Red state")); ?>Change between Green/Red state "All Monitors OK", "alt" => "All Monitors OK")); ?> "All Monitors OK", "alt" => "All Monitors OK")); ?>All Monitors OK "At least one monitor fails", "alt" => "At least one monitor fails")); ?> "At least one monitor fails", "alt" => "At least one monitor fails")); ?>At least one monitor fails "Change between Green/Red state", "alt" => "Change between Green/Red state")); ?> "Change between Green/Red state", "alt" => "Change between Green/Red state")); ?>Change between Green/Red state "All Monitors OK", "alt" => "All Monitors OK")); ?> "All Monitors OK", "alt" => "All Monitors OK")); ?>All Monitors OK
    "Agent without data", "alt" => "Agent without data")); ?> "Agent without data", "alt" => "Agent without data")); ?>Agent without data "Agent down", "alt" => "Agent down")); ?> "Agent down", "alt" => "Agent down")); ?>Agent down "Agent without data", "alt" => "Agent without data")); ?> "Agent without data", "alt" => "Agent without data")); ?>Agent without data "Agent down", "alt" => "Agent down")); ?> "Agent down", "alt" => "Agent down")); ?>Agent down
    @@ -37,9 +37,9 @@ Possible values of alert status are:

    - - - + + +
    "Alert fired", "alt" => "Alert fired")); ?> "Alert fired", "alt" => "Alert fired")); ?>Alert fired "Alert disabled", "alt" => "Alert disabled")); ?> "Alert disabled", "alt" => "Alert disabled")); ?>Alerts disabled "Alert not fired", "alt" => "Alert not fired")); ?> "Alert not fired", "alt" => "Alert not fired")); ?>Alert not fired "Alert fired", "alt" => "Alert fired")); ?> "Alert fired", "alt" => "Alert fired")); ?>Alert fired "Alert disabled", "alt" => "Alert disabled")); ?> "Alert disabled", "alt" => "Alert disabled")); ?>Alerts disabled "Alert not fired", "alt" => "Alert not fired")); ?> "Alert not fired", "alt" => "Alert not fired")); ?>Alert not fired
    diff --git a/pandora_console/include/help/en/help_cascade_protection.php b/pandora_console/include/help/en/help_cascade_protection.php index e38ecc7a8d..3ff48b9c98 100644 --- a/pandora_console/include/help/en/help_cascade_protection.php +++ b/pandora_console/include/help/en/help_cascade_protection.php @@ -1,7 +1,7 @@

    Cascade protection

    - +

    This option is designed to avoid a "storm" of alerts coming because a group of agents are unreachable. This kind of behaviour happen when an intermediate device, as for example a router, is down, and all devices behind it are just not reachable, probably that devices are not down and even that devices are working behind another router, in HA mode, but if you don't do nothing probably Pandora FMS thinks they are down because cannot remotely test it with a Remote ICMP Proc test (a ping). diff --git a/pandora_console/include/help/en/help_configure_gis_map.php b/pandora_console/include/help/en/help_configure_gis_map.php index b8824d4dc5..3aeefe5e1d 100644 --- a/pandora_console/include/help/en/help_configure_gis_map.php +++ b/pandora_console/include/help/en/help_configure_gis_map.php @@ -14,7 +14,7 @@ Each map has a desciptive name used to recognice the map within Pandora FMS.

    Select Connections

    -The first step is to select the main connection used in this GIS Map. At least one connection must be selected to configure the GIS Map, but it's possible to add more by pressing the "Add")); ?> (Add) icon. +The first step is to select the main connection used in this GIS Map. At least one connection must be selected to configure the GIS Map, but it's possible to add more by pressing the "Add")); ?> (Add) icon.

    When the firs connection is set, Pandora FMS asks if you want to use the default values of the connection for the map, to avoid to write again all the information. Also if the default connection for the map is changed (using the radio button), Pandora FMS will ask again if you want to use the values of the new default connection. @@ -49,7 +49,7 @@ Once the selection of the connection (or connections) is done, there is a posibi Each map has one or more layers1 to show the agents. Each layer can have show the agents of a group and/or a list of agents. This way it's easy to set up the agents that will be shown on each Layer.

    -The layers can be set as visible or hidden, and select the group with the selector or add agents with the box. Once the layer is defined (it will not be completely saved until the whole map is saved) it will be moved to the left column of defined layers, where it is possible to order ( "move up icon")); ?> and "move down icon")); ?>) them, delete ( "delete icon")); ?>), or edited ( "edit icon")); ?>) again. +The layers can be set as visible or hidden, and select the group with the selector or add agents with the box. Once the layer is defined (it will not be completely saved until the whole map is saved) it will be moved to the left column of defined layers, where it is possible to order ( "move up icon")); ?> and "move down icon")); ?>) them, delete ( "delete icon")); ?>), or edited ( "edit icon")); ?>) again.


    1 The default map can have 0 layers as is the one used in the agent GIS view and only uses one layer with the agent name. diff --git a/pandora_console/include/help/en/help_eventview.php b/pandora_console/include/help/en/help_eventview.php index b60f1ab909..58bcc49d5a 100644 --- a/pandora_console/include/help/en/help_eventview.php +++ b/pandora_console/include/help/en/help_eventview.php @@ -10,24 +10,24 @@

    Validate

    - "Validated event", "alt" => "Validated event", "width" => '10', "height" => '10')); ?> - Validated event
    - "Event not validated", "alt" => "Event not validated", "width" => '10', "height" => '10')); ?> - Event not validated + "Validated event", "alt" => "Validated event", "width" => '10', "height" => '10')); ?> - Validated event
    + "Event not validated", "alt" => "Event not validated", "width" => '10', "height" => '10')); ?> - Event not validated

    Severity

    - "Maintenance event", "alt" => "Maintenance event")); ?> - Maintenance event
    - "Informational event", "alt" => "Informational event")); ?> - Informational event
    - "Normal event", "alt" => "Normal event")); ?> - Normal event
    - "Warning event", "alt" => "Warning event")); ?> - Warning event
    - "Critical event", "alt" => "Critical event")); ?> - Critical event
    + "Maintenance event", "alt" => "Maintenance event")); ?> - Maintenance event
    + "Informational event", "alt" => "Informational event")); ?> - Informational event
    + "Normal event", "alt" => "Normal event")); ?> - Normal event
    + "Warning event", "alt" => "Warning event")); ?> - Warning event
    + "Critical event", "alt" => "Critical event")); ?> - Critical event

    Actions

    - "Validate event", "alt" => "Validate event")); ?> - Validate event
    - "Delete event", "alt" => "Delete event")); ?> - Delete event
    - "Create incident from event", "alt" => "Create incident from event")); ?> - Create incident from event + "Validate event", "alt" => "Validate event")); ?> - Validate event
    + "Delete event", "alt" => "Delete event")); ?> - Delete event
    + "Create incident from event", "alt" => "Create incident from event")); ?> - Create incident from event
     
    diff --git a/pandora_console/include/help/en/help_gis_map_builder.php b/pandora_console/include/help/en/help_gis_map_builder.php index de39280598..a24d349775 100644 --- a/pandora_console/include/help/en/help_gis_map_builder.php +++ b/pandora_console/include/help/en/help_gis_map_builder.php @@ -18,11 +18,11 @@ Options:
    Map name
    Click on the Map Name corresponding to the map you want edit the map
    -
    "View")); ?> View
    +
    "View")); ?> View
    Click on the view icon to view the map.
    Default radio button
    Click on the radio button corresponding to the map you want to make the default to set the default map
    -
    "Delete")); ?> Delete
    +
    "Delete")); ?> Delete
    Click on the delete icon to delete the map.
    Create Button
    Click on Create button to create a new map.
    diff --git a/pandora_console/include/help/en/help_setup_gis_index.php b/pandora_console/include/help/en/help_setup_gis_index.php index 2c7d1b78f6..7f1b1cfd71 100644 --- a/pandora_console/include/help/en/help_setup_gis_index.php +++ b/pandora_console/include/help/en/help_setup_gis_index.php @@ -9,5 +9,5 @@ This page is the place where the admin can configure connections to GIS Map Servers.

    -Here it is possible to see the list of defined connections, edit any one of them by clicking on their name, delete any connection by clicking on the delete icon ( "delete icon")); ?>) or create new connections using the create button. +Here it is possible to see the list of defined connections, edit any one of them by clicking on their name, delete any connection by clicking on the delete icon ( "delete icon")); ?>) or create new connections using the create button.

    diff --git a/pandora_console/include/help/es/help_agent_status.php b/pandora_console/include/help/es/help_agent_status.php index b4dd7bcd8a..029f19602a 100644 --- a/pandora_console/include/help/es/help_agent_status.php +++ b/pandora_console/include/help/es/help_agent_status.php @@ -23,13 +23,13 @@ Los valores posibles del estado de un agente son: - - - + + + - - + +
    "At least one monitor fails", "alt" => "At least one monitor fails")); ?> "At least one monitor fails", "alt" => "At least one monitor fails")); ?>Al menos un monitor falla "Change between Green/Red state", "alt" => "Change between Green/Red state")); ?> "Change between Green/Red state", "alt" => "Change between Green/Red state")); ?>Cambia entre el estado Verde/Rojo "All Monitors OK", "alt" => "All Monitors OK")); ?> "All Monitors OK", "alt" => "All Monitors OK")); ?>Todos los monitores están OK "At least one monitor fails", "alt" => "At least one monitor fails")); ?> "At least one monitor fails", "alt" => "At least one monitor fails")); ?>Al menos un monitor falla "Change between Green/Red state", "alt" => "Change between Green/Red state")); ?> "Change between Green/Red state", "alt" => "Change between Green/Red state")); ?>Cambia entre el estado Verde/Rojo "All Monitors OK", "alt" => "All Monitors OK")); ?> "All Monitors OK", "alt" => "All Monitors OK")); ?>Todos los monitores están OK
    "Agent without data", "alt" => "Agent without data")); ?> "Agent without data", "alt" => "Agent without data")); ?>Agente sin datos "Agent down", "alt" => "Agent down")); ?> "Agent down", "alt" => "Agent down")); ?>Agente caído "Agent without data", "alt" => "Agent without data")); ?> "Agent without data", "alt" => "Agent without data")); ?>Agente sin datos "Agent down", "alt" => "Agent down")); ?> "Agent down", "alt" => "Agent down")); ?>Agente caído
    @@ -39,9 +39,9 @@ Los valores posibles del estado de alerta son:

    - - - + + +
    "Alert fired", "alt" => "Alert fired")); ?> "Alert fired", "alt" => "Alert fired")); ?>Alerta disparada "Alert disabled", "alt" => "Alert disabled")); ?> "Alert disabled", "alt" => "Alert disabled")); ?>Alerta desactivada "Alert not fired", "alt" => "Alert not fired")); ?> "Alert not fired", "alt" => "Alert not fired")); ?>Alerta no disparada "Alert fired", "alt" => "Alert fired")); ?> "Alert fired", "alt" => "Alert fired")); ?>Alerta disparada "Alert disabled", "alt" => "Alert disabled")); ?> "Alert disabled", "alt" => "Alert disabled")); ?>Alerta desactivada "Alert not fired", "alt" => "Alert not fired")); ?> "Alert not fired", "alt" => "Alert not fired")); ?>Alerta no disparada
    diff --git a/pandora_console/include/help/es/help_cascade_protection.php b/pandora_console/include/help/es/help_cascade_protection.php index ec2aa76d32..c88e406cc9 100644 --- a/pandora_console/include/help/es/help_cascade_protection.php +++ b/pandora_console/include/help/es/help_cascade_protection.php @@ -1,7 +1,7 @@

    Protección en Cascada

    - +

    Esta opción se designa para evitar una "tormenta" de alertas que entren porque un grupo de agentes son inalcanzables. Este tipo de comportamiento ocurre cuando un dispositivo intermedio, como por ejemplo un router, está caido, y todos los dispositivos que están tras él no se pueden alcanzar. Probablemente estos dispositivos no estén caídos e incluso estos dispositivos estén trabajando junto con otro router, en modo HA. Pero si no hace nada, probablemente Pandora FMS piense que estén caídos porque no los pueden testar con un Remote ICMP Proc Test (un ping). diff --git a/pandora_console/include/help/es/help_configure_gis_map.php b/pandora_console/include/help/es/help_configure_gis_map.php index 29e42ce9d3..0cb1e2558a 100644 --- a/pandora_console/include/help/es/help_configure_gis_map.php +++ b/pandora_console/include/help/es/help_configure_gis_map.php @@ -15,7 +15,7 @@ Cada mapa tiene un nombre descriptivo que se utiliza para reconocer el mapa dent

    Seleccionar Conexiones

    -El primer paso es seleccionar la principal conexión empleada en este Mapa GIS. Al menos una conexión debe ser seleccionada para configurar el MAPA GIS, pero es posible añadir más presionando el icono(Add) "Add")); ?> +El primer paso es seleccionar la principal conexión empleada en este Mapa GIS. Al menos una conexión debe ser seleccionada para configurar el MAPA GIS, pero es posible añadir más presionando el icono(Add) "Add")); ?>

    diff --git a/pandora_console/include/help/es/help_eventview.php b/pandora_console/include/help/es/help_eventview.php index 7eca851fc7..a01bf52eae 100644 --- a/pandora_console/include/help/es/help_eventview.php +++ b/pandora_console/include/help/es/help_eventview.php @@ -10,24 +10,24 @@

    Validar

    - "Validated event", "alt" => "Validated event", "width" => '10', "height" => '10')); ?> - Validar evento
    - "Event not validated", "alt" => "Event not validated", "width" => '10', "height" => '10')); ?> - Evento no validado + "Validated event", "alt" => "Validated event", "width" => '10', "height" => '10')); ?> - Validar evento
    + "Event not validated", "alt" => "Event not validated", "width" => '10', "height" => '10')); ?> - Evento no validado

    Severidad

    - "Maintenance event", "alt" => "Maintenance event")); ?> - Evento de mantenimiento
    - "Informational event", "alt" => "Informational event")); ?> - Evento informativo
    - "Normal event", "alt" => "Normal event")); ?> - Evento normal
    - "Warning event", "alt" => "Warning event")); ?> - Evento de alerta
    - "Critical event", "alt" => "Critical event")); ?> - Evento crítico
    + "Maintenance event", "alt" => "Maintenance event")); ?> - Evento de mantenimiento
    + "Informational event", "alt" => "Informational event")); ?> - Evento informativo
    + "Normal event", "alt" => "Normal event")); ?> - Evento normal
    + "Warning event", "alt" => "Warning event")); ?> - Evento de alerta
    + "Critical event", "alt" => "Critical event")); ?> - Evento crítico

    Acciones

    - "Validate event", "alt" => "Validate event")); ?> - Validar evento
    - "Delete event", "alt" => "Delete event")); ?> - Borrar evento
    - "Create incident from event", "alt" => "Create incident from event")); ?> - Crear incidente del evento + "Validate event", "alt" => "Validate event")); ?> - Validar evento
    + "Delete event", "alt" => "Delete event")); ?> - Borrar evento
    + "Create incident from event", "alt" => "Create incident from event")); ?> - Crear incidente del evento
     
    diff --git a/pandora_console/include/help/es/help_gis_map_builder.php b/pandora_console/include/help/es/help_gis_map_builder.php index 953c6826f9..7b9156109c 100644 --- a/pandora_console/include/help/es/help_gis_map_builder.php +++ b/pandora_console/include/help/es/help_gis_map_builder.php @@ -22,11 +22,11 @@ Opciones:
    Nombre del Mapa
    Haga click en elNombre del Mapa que se corresponda con el mapa que quiere editar
    -
    "View")); ?>Vista
    +
    "View")); ?>Vista
    Haga click en icono de visualizar para visualizar el mapa.
    Botón radio por defecto
    Haga click en el botón radio que se corresponda con el mapa que quiere por defecto para instalar mapa por defecto
    -
    "Delete")); ?> Eliminar
    +
    "Delete")); ?> Eliminar
    Haga click en el botón de eliminar para eliminar el mapa
    Crear botón
    Haga click en el Botón de Crear para crear un mapa nuevo
    diff --git a/pandora_console/include/help/ja/help_agent_status.php b/pandora_console/include/help/ja/help_agent_status.php index ffc29b3656..b43844164f 100644 --- a/pandora_console/include/help/ja/help_agent_status.php +++ b/pandora_console/include/help/ja/help_agent_status.php @@ -10,19 +10,19 @@

    - - - + + + - - + + - - + + - +
    "すべての監視項目が正常", "alt" => "すべての監視項目が正常")); ?>すべての監視項目が正常 "1つ以上の監視項目で障害", "alt" => "1つ以上の監視項目で障害")); ?>1つ以上の監視項目で障害 "緑/赤 の状態変化発生", "alt" => "緑/赤 の状態変化発生")); ?>緑/赤 の状態変化発生 "すべての監視項目が正常", "alt" => "すべての監視項目が正常")); ?>すべての監視項目が正常 "1つ以上の監視項目で障害", "alt" => "1つ以上の監視項目で障害")); ?>1つ以上の監視項目で障害 "緑/赤 の状態変化発生", "alt" => "緑/赤 の状態変化発生")); ?>緑/赤 の状態変化発生 "アラート発生中", "alt" => "アラート発生中")); ?>アラート発生中 "アラートが無効", "alt" => "アラートが無効")); ?>アラートが無効 "アラート発生中", "alt" => "アラート発生中")); ?>アラート発生中 "アラートが無効", "alt" => "アラートが無効")); ?>アラートが無効
    "データ収集対象外エージェント", "alt" => "データ収集対象外エージェント")); ?>データ収集対象外エージェント "エージェント停止中", "alt" => "エージェント停止中")); ?>エージェント停止中 "データ収集対象外エージェント", "alt" => "データ収集対象外エージェント")); ?>データ収集対象外エージェント "エージェント停止中", "alt" => "エージェント停止中")); ?>エージェント停止中 "アラート未発生", "alt" => "アラート未発生")); ?>アラート未発生 "アラート未発生", "alt" => "アラート未発生")); ?>アラート未発生
    diff --git a/pandora_console/include/help/ja/help_cascade_protection.php b/pandora_console/include/help/ja/help_cascade_protection.php index b840370afb..20f08bee8c 100644 --- a/pandora_console/include/help/ja/help_cascade_protection.php +++ b/pandora_console/include/help/ja/help_cascade_protection.php @@ -1,7 +1,7 @@

    関連障害検知抑制

    - +

    このオプションは、あるエージェントの障害により他のエージェントの状態が確認できなくなった時に、大量のアラートが上がるのを避けるために利用します。 diff --git a/pandora_console/include/help/ja/help_configure_gis_map.php b/pandora_console/include/help/ja/help_configure_gis_map.php index 70b495fe7c..9f132e4e3a 100644 --- a/pandora_console/include/help/ja/help_configure_gis_map.php +++ b/pandora_console/include/help/ja/help_configure_gis_map.php @@ -16,7 +16,7 @@

    最初のステップは、GIS マップで利用するメインのマップを定義することです。 GIS マップを設定するためには、少なくとも一つ選択されている必要があります。 - "Add")); ?>(追加)アイコンをクリックして、追加することも可能です。 + "Add")); ?>(追加)アイコンをクリックして、追加することも可能です。

    意図しない設定情報の再入力を防ぐために、利用マップが設定されると、それを Pandora FMS はデフォルトのマップとして利用するかどうか尋ねます。 @@ -57,7 +57,7 @@ GIS マップを設定するためには、少なくとも一つ選択されて

    レイヤは、表示非表示の設定ができ、グループを選択やエージェントの追加ができます。 一度レイヤが定義されると、左側の定義済レイヤに移ります。(定義は、マップ全体が保存されるまでは保存されません。) -ここでは、再度、順番の変更 ( "move up icon")); ?>、 "move down icon")); ?>)、削除 ( "delete icon")); ?>)、編集 ( "edit icon")); ?>) ができます。 +ここでは、再度、順番の変更 ( "move up icon")); ?>、 "move down icon")); ?>)、削除 ( "delete icon")); ?>)、編集 ( "edit icon")); ?>) ができます。


    1 デフォルトマップでは、エージェント名で一つのレイヤしか表示しない場合は、レイヤを持たない設定も可能です。 diff --git a/pandora_console/include/help/ja/help_eventview.php b/pandora_console/include/help/ja/help_eventview.php index 077e9691d7..1a8284e271 100644 --- a/pandora_console/include/help/ja/help_eventview.php +++ b/pandora_console/include/help/ja/help_eventview.php @@ -10,24 +10,24 @@

    承諾

    - "承諾済", "alt" => "承諾済", "width" => '10', "height" => '10')); ?> - 承諾済
    - "未承諾", "alt" => "未承諾", "width" => '10', "height" => '10')); ?> - 未承諾 + "承諾済", "alt" => "承諾済", "width" => '10', "height" => '10')); ?> - 承諾済
    + "未承諾", "alt" => "未承諾", "width" => '10', "height" => '10')); ?> - 未承諾

    重要度

    - "メンテナンス", "alt" => "メンテナンス")); ?> - メンテナンス
    - "情報", "alt" => "情報")); ?> - 情報
    - "正常", "alt" => "正常")); ?> - 正常
    - "警告", "alt" => "警告")); ?> - 警告
    - "障害", "alt" => "障害")); ?> - 障害
    + "メンテナンス", "alt" => "メンテナンス")); ?> - メンテナンス
    + "情報", "alt" => "情報")); ?> - 情報
    + "正常", "alt" => "正常")); ?> - 正常
    + "警告", "alt" => "警告")); ?> - 警告
    + "障害", "alt" => "障害")); ?> - 障害

    アクション

    - "承諾する", "alt" => "承諾する")); ?> - 承諾する
    - "削除する", "alt" => "削除する")); ?> - 削除する
    - "インシデントを作成する", "alt" => "インシデントを作成する")); ?> - インシデントを作成する + "承諾する", "alt" => "承諾する")); ?> - 承諾する
    + "削除する", "alt" => "削除する")); ?> - 削除する
    + "インシデントを作成する", "alt" => "インシデントを作成する")); ?> - インシデントを作成する
     
    diff --git a/pandora_console/include/help/ja/help_gis_map_builder.php b/pandora_console/include/help/ja/help_gis_map_builder.php index 1e64fa8c71..b96bf062f8 100644 --- a/pandora_console/include/help/ja/help_gis_map_builder.php +++ b/pandora_console/include/help/ja/help_gis_map_builder.php @@ -21,11 +21,11 @@
    マップ名
    マップ名をクリックすると、そのマップを編集できます。
    -
    "View")); ?> View
    +
    "View")); ?> View
    表示アイコンをクリックすると、マップを参照できます。
    デフォルトラジオボタン
    ラジオボタンをクリックすると、そのマップがデフォルトマップに設定されます。
    -
    "Delete")); ?> 削除
    +
    "Delete")); ?> 削除
    削除アイコンをクリックすると、そのマップを削除します。
    作成ボタン
    作成ボタンをクリックすると、新しいマップを作成できます。
    diff --git a/pandora_console/include/help/ja/help_setup_gis_index.php b/pandora_console/include/help/ja/help_setup_gis_index.php index eb8fbb00ba..9e6872f02c 100644 --- a/pandora_console/include/help/ja/help_setup_gis_index.php +++ b/pandora_console/include/help/ja/help_setup_gis_index.php @@ -11,6 +11,6 @@

    設定済の利用マップ定義一覧の参照できます。 編集するにはマップ名をクリックします。 -削除するには削除アイコン( "delete icon")) ?> )をクリックします。 +削除するには削除アイコン( "delete icon")) ?> )をクリックします。 また、新たな設定を作成するには、「作成」ボタンをクリックします。

    diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index e9bdd3924f..1e83a68247 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -400,7 +400,7 @@ td.datos3 { background-color: #d4ddc6; } td.datos4 { - /*Add !important because in php the function print_table write style in cell and this is style head.*/ + /*Add !important because in php the function html_print_table write style in cell and this is style head.*/ text-align: center !important; background-color: #d4ddc6; } diff --git a/pandora_console/mobile/include/user.class.php b/pandora_console/mobile/include/user.class.php index 7530fc2bad..a77efab037 100644 --- a/pandora_console/mobile/include/user.class.php +++ b/pandora_console/mobile/include/user.class.php @@ -74,7 +74,7 @@ class User { global $pandora_version; echo "
    "; - print_input_hidden('action', 'login'); + html_print_input_hidden('action', 'login'); ?>
    @@ -86,17 +86,17 @@ class User {   - user, __('User'), 10, 20);?> + user, __('User'), 10, 20);?>   - +   @@ -146,10 +146,10 @@ class User { "; echo "
    " . $pandora_version . "
    "; - print_input_hidden('action', 'login'); - print_input_text('user', $this->user, __('User'), 10, 20); - print_input_password('password', '', __('Password'), 10, 20); - print_submit_button(__(''), 'login', false, 'onclick="javascript: click();" class="login_button" alt="' . __('Login') . '" title="' . __('Login') . '"'); + html_print_input_hidden('action', 'login'); + html_print_input_text('user', $this->user, __('User'), 10, 20); + html_print_input_password('password', '', __('Password'), 10, 20); + html_print_submit_button(__(''), 'login', false, 'onclick="javascript: click();" class="login_button" alt="' . __('Login') . '" title="' . __('Login') . '"'); echo ""; ?>
    diff --git a/pandora_console/mobile/operation/agents/group_view.php b/pandora_console/mobile/operation/agents/group_view.php index 6ffc904e55..4937787328 100644 --- a/pandora_console/mobile/operation/agents/group_view.php +++ b/pandora_console/mobile/operation/agents/group_view.php @@ -65,7 +65,7 @@ class GroupView { $data = array(); - $groupName = get_group_name($idGroup); + $groupName = groups_get_name($idGroup); $data[] = '' . $groupName . ''; // $data[] = $groupData['total_agents']; @@ -80,7 +80,7 @@ class GroupView { $table->data[] = $data; } - print_table($table); + html_print_table($table); } } ?> \ No newline at end of file diff --git a/pandora_console/mobile/operation/agents/monitor_status.php b/pandora_console/mobile/operation/agents/monitor_status.php index a2b2e18918..9c339d061c 100644 --- a/pandora_console/mobile/operation/agents/monitor_status.php +++ b/pandora_console/mobile/operation/agents/monitor_status.php @@ -44,7 +44,7 @@ class MonitorStatus { $table->colspan[1][2] = 2; $table->data[0][0] = '' . __('G') . ''; - $table->data[0][1] = print_select_groups($this->system->getConfig("id_user"), "IR", true, 'group', $group, '', '', 0, true, false, false, 'w130'); + $table->data[0][1] = html_print_select_groups($this->system->getConfig("id_user"), "IR", true, 'group', $group, '', '', 0, true, false, false, 'w130'); $table->data[0][2] = '' . __('M') . ''; $fields = array (); $fields[-1] = __('All'); @@ -57,15 +57,15 @@ class MonitorStatus { foreach ($fields as $key => $field) { $fields[$key] = ui_print_truncate_text($field, $config['text_char_long'], false, true, false); } - $table->data[0][3] = print_select ($fields, "status", $status, '', '', -1, true); + $table->data[0][3] = html_print_select ($fields, "status", $status, '', '', -1, true); $table->data[1][0] = '' . __('M') . ''; - $table->data[1][1] = print_select_from_sql ("SELECT * FROM tmodule_group ORDER BY name", + $table->data[1][1] = html_print_select_from_sql ("SELECT * FROM tmodule_group ORDER BY name", 'module_group', $modulegroup, '',__('All'), 0, true); - $table->data[1][2] = print_input_text('search', $search, '', 5, 20, true); + $table->data[1][2] = html_print_input_text('search', $search, '', 5, 20, true); $table->data[1][2] .= ""; echo "
    "; - print_table($table); + html_print_table($table); echo "
    "; @@ -229,7 +229,7 @@ class MonitorStatus { $table->data[] = $data; } - print_table($table); + html_print_table($table); $pagination = pagination ($total, ui_get_url_refresh (array ()), diff --git a/pandora_console/mobile/operation/agents/tactical.php b/pandora_console/mobile/operation/agents/tactical.php index 7c0cdc84be..7ec8ee93ab 100644 --- a/pandora_console/mobile/operation/agents/tactical.php +++ b/pandora_console/mobile/operation/agents/tactical.php @@ -76,7 +76,7 @@ class Tactical { $table->data[8][2] = '' . __('Alerts fired') . ''; $table->data[8][3] = '' . $data["monitor_alerts_fired"] . ''; - print_table($table); + html_print_table($table); echo "

    " . __('Server performance') . "

    "; @@ -99,7 +99,7 @@ class Tactical { $table->data[4][0] = '' . __('Total running modules') . ''; $table->data[4][1] = '' . format_numeric($server_performance ["total_modules"]) . ''; - print_table($table); + html_print_table($table); echo "

    " . __('Summary') . "

    "; @@ -113,7 +113,7 @@ class Tactical { $table->data[2][0] = '' . __('Agents unknown') . ''; $table->data[2][1] = '' . $data["agents_unknown"] . ''; - print_table($table); + html_print_table($table); } } ?> \ No newline at end of file diff --git a/pandora_console/mobile/operation/agents/view_agents.php b/pandora_console/mobile/operation/agents/view_agents.php index 081eeb467a..bb89f0188b 100644 --- a/pandora_console/mobile/operation/agents/view_agents.php +++ b/pandora_console/mobile/operation/agents/view_agents.php @@ -36,11 +36,11 @@ class ViewAgents { private function showForm() { echo "
    "; - print_input_hidden('page', 'agents'); + html_print_input_hidden('page', 'agents'); global $config; $config['text_char_long'] = 12; - print_select_groups($this->user->getIdUser(), "AR", true, 'filter_group', $this->filterGroup); - print_input_text('filter_text', $this->filterText, __('Free text search'), 5, 20); + html_print_select_groups($this->user->getIdUser(), "AR", true, 'filter_group', $this->filterGroup); + html_print_input_text('filter_text', $this->filterText, __('Free text search'), 5, 20); echo ""; echo ""; } @@ -135,7 +135,7 @@ class ViewAgents { $table->data[] = $data; } - print_table($table); + html_print_table($table); $pagination = pagination ($total_agents, ui_get_url_refresh (array ('filter_group' => $this->filterGroup, 'filter_group' => $this->filterGroup)), @@ -195,7 +195,7 @@ class ViewAgent { $table->data[3][0] = __('Last contact'); $table->data[3][1] = $this->agent['ultimo_contacto']; - print_table($table); + html_print_table($table); $sql = sprintf (" SELECT * @@ -318,7 +318,7 @@ class ViewAgent { $table->data[] = $data; } - print_table($table); + html_print_table($table); $table->head = array(); $table->head[0] = __('Module'); @@ -375,7 +375,7 @@ class ViewAgent { $table->data[] = $data; } - print_table($table); + html_print_table($table); } } @@ -422,7 +422,7 @@ class viewGraph { $intervals[86400] = human_time_description_raw (86400); // 1 day $intervals[604800] = human_time_description_raw (604800); // 1 week $intervals[2592000] = human_time_description_raw (2592000); // 1 month - echo print_extended_select_for_time ($intervals, 'period', $this->period, 'this.form.submit();', '', '0', 5) . __(" secs"); + echo html_print_extended_select_for_time ($intervals, 'period', $this->period, 'this.form.submit();', '', '0', 5) . __(" secs"); echo "

    "; $moduletype_name = get_moduletype_name (get_agentmodule_type ($this->idAgentModule)); @@ -524,7 +524,7 @@ class viewGraph { array_push ($table->data, $data); } - print_table($table); + html_print_table($table); $pagination = ui_pagination ($count, ui_get_url_refresh (array ('period' => $this->period)), diff --git a/pandora_console/mobile/operation/agents/view_alerts.php b/pandora_console/mobile/operation/agents/view_alerts.php index 4b1c64e2c5..bd3f5dd927 100644 --- a/pandora_console/mobile/operation/agents/view_alerts.php +++ b/pandora_console/mobile/operation/agents/view_alerts.php @@ -91,7 +91,7 @@ class ViewAlerts { $table->data[] = $data; } - print_table($table); + html_print_table($table); } } ?> \ No newline at end of file diff --git a/pandora_console/mobile/operation/events/events.php b/pandora_console/mobile/operation/events/events.php index 5ef5dc5858..c685ae12b4 100644 --- a/pandora_console/mobile/operation/events/events.php +++ b/pandora_console/mobile/operation/events/events.php @@ -50,16 +50,16 @@ class EventsView { $table->colspan[1][2] = 2; $table->data[0][0] = '' . __('G') . ''; - $table->data[0][1] = print_select_groups($this->system->getConfig("id_user"), "IR", true, 'ev_group', $ev_group, '', '', 0, true, false, false, 'w130'); + $table->data[0][1] = html_print_select_groups($this->system->getConfig("id_user"), "IR", true, 'ev_group', $ev_group, '', '', 0, true, false, false, 'w130'); $table->data[0][2] = '' . __('E') . ''; - $table->data[0][3] = print_select ($types, 'event_type', $event_type, '', __('All'), '', true); + $table->data[0][3] = html_print_select ($types, 'event_type', $event_type, '', __('All'), '', true); $table->data[1][0] = '' . __('S') . ''; - $table->data[1][1] = print_select (get_priorities (), "severity", $severity, '', __('All'), '-1', true); - $table->data[1][2] = print_input_text('search', $search, '', 5, 20, true); + $table->data[1][1] = html_print_select (get_priorities (), "severity", $severity, '', __('All'), '-1', true); + $table->data[1][2] = html_print_input_text('search', $search, '', 5, 20, true); $table->data[1][2] .= ""; echo "
    "; - print_table($table); + html_print_table($table); echo "
    "; @@ -197,7 +197,7 @@ class EventsView { $table->data[] = $data; } - print_table($table); + html_print_table($table); $pagination = ui_pagination ($count, ui_get_url_refresh(array("offset" => $offset, "ev_group" => $ev_group, diff --git a/pandora_console/mobile/operation/servers/view_servers.php b/pandora_console/mobile/operation/servers/view_servers.php index 460a4cc1f5..9c651a0b96 100644 --- a/pandora_console/mobile/operation/servers/view_servers.php +++ b/pandora_console/mobile/operation/servers/view_servers.php @@ -63,7 +63,7 @@ class ViewServers { $table->data[] = $data; } - print_table($table); + html_print_table($table); } } diff --git a/pandora_console/operation/agentes/alerts_status.functions.php b/pandora_console/operation/agentes/alerts_status.functions.php index 3d8d234259..c23b1af3af 100755 --- a/pandora_console/operation/agentes/alerts_status.functions.php +++ b/pandora_console/operation/agentes/alerts_status.functions.php @@ -43,7 +43,7 @@ function printFormFilterAlert($id_group, $filter, $free_search, $url, $filter_st $table->style = array (); $table->data[0][0] = __('Group'); - $table->data[0][1] = print_select_groups(false, "AR", true, "ag_group", $id_group, + $table->data[0][1] = html_print_select_groups(false, "AR", true, "ag_group", $id_group, 'javascript:this.form.submit();', '', '', true); $alert_status_filter = array(); @@ -59,17 +59,17 @@ function printFormFilterAlert($id_group, $filter, $free_search, $url, $filter_st $alert_standby['standby_off'] = __('Standby off'); $table->data[0][2] = __('Status'); - $table->data[0][3] = print_select ($alert_status_filter, "filter", $filter, 'javascript:this.form.submit();', '', '', true); + $table->data[0][3] = html_print_select ($alert_status_filter, "filter", $filter, 'javascript:this.form.submit();', '', '', true); $table->data[0][4] = ''; $table->data[1][0] = __('Free text for search') . ' ' . __("Filter by agent name, module name, template name or action name") . ''; - $table->data[1][1] = print_input_text('free_search', $free_search, '', 20, 40, true); + $table->data[1][1] = html_print_input_text('free_search', $free_search, '', 20, 40, true); $table->data[1][2] = __('Standby'); - $table->data[1][3] = print_select ($alert_standby, "filter_standby", $filter_standby, 'javascript:this.form.submit();', '', '', true); - $table->data[1][4] = print_submit_button(__('Filter'), 'filter_button', false, 'class="sub search"', true); + $table->data[1][3] = html_print_select ($alert_standby, "filter_standby", $filter_standby, 'javascript:this.form.submit();', '', '', true); + $table->data[1][4] = html_print_submit_button(__('Filter'), 'filter_button', false, 'class="sub search"', true); $data = '
    '; - $data .= print_table ($table, true); + $data .= html_print_table ($table, true); $data .= '
    '; if($return) { diff --git a/pandora_console/operation/agentes/alerts_status.php b/pandora_console/operation/agentes/alerts_status.php index 36874bb995..fd9c571e7b 100644 --- a/pandora_console/operation/agentes/alerts_status.php +++ b/pandora_console/operation/agentes/alerts_status.php @@ -249,14 +249,14 @@ if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) { $table->head[1] = "" . __('S.') . ""; $table->head[2] = "" . __('F.') . ""; $table->head[3] = __('Agent') . ' ' . - '' . print_image("images/sort_up.png", true, array("style" => $selectAgentUp)) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectAgentDown)) . ''; + '' . html_print_image("images/sort_up.png", true, array("style" => $selectAgentUp)) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectAgentDown)) . ''; $table->head[4] = __('Module') . ' ' . - '' . print_image("images/sort_up.png", true, array("style" =>$selectModuleUp)) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectModuleDown)) . ''; + '' . html_print_image("images/sort_up.png", true, array("style" =>$selectModuleUp)) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectModuleDown)) . ''; $table->head[5] = __('Template') . ' ' . - '' . print_image("images/sort_up.png", true, array("style" =>$selectTemplateUp)) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectTemplateDown)) . ''; + '' . html_print_image("images/sort_up.png", true, array("style" =>$selectTemplateUp)) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectTemplateDown)) . ''; $table->head[6] = __('Action'); $table->head[7] = __('Last fired'); $table->head[8] = __('Status'); @@ -279,11 +279,11 @@ if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) { $table->head[1] = "" . __('S.') . ""; $table->head[2] = "" . __('F.') . ""; $table->head[3] = __('Module') . ' ' . - '' . print_image("images/sort_up.png", true, array("style" => $selectModuleUp)) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectModuleDown)) . ''; + '' . html_print_image("images/sort_up.png", true, array("style" => $selectModuleUp)) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectModuleDown)) . ''; $table->head[4] = __('Template') . ' ' . - '' . print_image("images/sort_up.png", true, array("style" => $selectTemplateUp)) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectTemplateDown)) . ''; + '' . html_print_image("images/sort_up.png", true, array("style" => $selectTemplateUp)) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectTemplateDown)) . ''; $table->head[5] = __('Action'); $table->head[6] = __('Last fired'); $table->head[7] = __('Status'); @@ -308,14 +308,14 @@ else $table->head[0] = "" . __('S.') . ""; $table->head[1] = "" . __('F.') . ""; $table->head[2] = __('Agent') . ' ' . - ''. print_image("images/sort_up.png", true, array("style" => $selectAgentUp)) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectAgentDown)) . ''; + ''. html_print_image("images/sort_up.png", true, array("style" => $selectAgentUp)) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectAgentDown)) . ''; $table->head[3] = __('Module') . ' ' . - '' . print_image("images/sort_up.png", true, array("style" => $selectModuleUp)) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectModuleDown)) . ''; + '' . html_print_image("images/sort_up.png", true, array("style" => $selectModuleUp)) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectModuleDown)) . ''; $table->head[4] = __('Template') . ' ' . - '' . print_image("images/sort_up.png", true, array("style" => $selectTemplateUp)) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectTemplateDown)) . ''; + '' . html_print_image("images/sort_up.png", true, array("style" => $selectTemplateUp)) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectTemplateDown)) . ''; $table->head[5] = __('Action'); $table->head[6] = __('Last fired'); $table->head[7] = __('Status'); @@ -336,11 +336,11 @@ else $table->head[0] = "" . __('S.') . ""; $table->head[1] = "" . __('F.') . ""; $table->head[2] = __('Module') . ' ' . - '' . print_image("images/sort_up.png", true, array("style" => $selectModuleUp)) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectModuleDown)) . ''; + '' . html_print_image("images/sort_up.png", true, array("style" => $selectModuleUp)) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectModuleDown)) . ''; $table->head[3] = __('Template') . ' ' . - '' . print_image("images/sort_up.png", true, array("style" => $selectTemplateUp)) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectTemplateDown)) . ''; + '' . html_print_image("images/sort_up.png", true, array("style" => $selectTemplateUp)) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectTemplateDown)) . ''; $table->head[4] = __('Action'); $table->head[5] = __('Last fired'); $table->head[6] = __('Status'); @@ -372,7 +372,7 @@ echo '
    '; if (!empty ($table->data)) { ui_pagination ($countAlertsSimple, $url, $offset_simple, 0, false, 'offset_simple'); - print_table ($table); + html_print_table ($table); } else { echo '
    '.__('No simple alerts found').'
    '; } @@ -402,12 +402,12 @@ foreach ($alerts['alerts_combined'] as $alert) { if (!empty ($table->data)) { ui_pagination ($countAlertsCombined, $url, $offset_combined, 0, false, 'offset_combined'); - print_table ($table); + html_print_table ($table); } if (count($alerts['alerts_simple']) > 0 || count($alerts['alerts_combined']) > 0) { echo '
    '; - print_submit_button (__('Validate'), 'alert_validate', false, 'class="sub upd"', false); + html_print_submit_button (__('Validate'), 'alert_validate', false, 'class="sub upd"', false); echo '
    '; } diff --git a/pandora_console/operation/agentes/custom_fields.php b/pandora_console/operation/agentes/custom_fields.php index d85f467403..c4fd43eb38 100644 --- a/pandora_console/operation/agentes/custom_fields.php +++ b/pandora_console/operation/agentes/custom_fields.php @@ -58,9 +58,9 @@ if($fields === false) { $data[0] = ''.$field['name'].''; if($field['display_on_front']) { - $data[1] = print_image('images/tick.png', true); + $data[1] = html_print_image('images/tick.png', true); }else { - $data[1] = print_image('images/delete.png', true); + $data[1] = html_print_image('images/delete.png', true); } $custom_value = db_get_value_filter('description', 'tagent_custom_data', array('id_field' => $field['id_field'], 'id_agent' => $id_agente)); @@ -74,6 +74,6 @@ if($fields === false) { array_push ($table->data, $data); } - print_table ($table); + html_print_table ($table); } ?> diff --git a/pandora_console/operation/agentes/datos_agente.php b/pandora_console/operation/agentes/datos_agente.php index 17d309a0c7..f067da15e1 100644 --- a/pandora_console/operation/agentes/datos_agente.php +++ b/pandora_console/operation/agentes/datos_agente.php @@ -136,7 +136,7 @@ $intervals[3600] = human_time_description_raw (3600); // 1 hour $intervals[86400] = human_time_description_raw (86400); // 1 day $intervals[604800] = human_time_description_raw (604800); // 1 week $intervals[2592000] = human_time_description_raw (2592000); // 1 month -echo print_extended_select_for_time ($intervals, 'period', $period, 'this.form.submit();', '', '0', 10) . __(" seconds."); +echo html_print_extended_select_for_time ($intervals, 'period', $period, 'this.form.submit();', '', '0', 10) . __(" seconds."); echo "

    "; // @@ -169,7 +169,7 @@ if (empty ($table->data)) { } else { ui_pagination($count); - print_table ($table); + html_print_table ($table); unset ($table); } diff --git a/pandora_console/operation/agentes/estado_agente.php b/pandora_console/operation/agentes/estado_agente.php index e0ea2c4e0f..e78326af49 100644 --- a/pandora_console/operation/agentes/estado_agente.php +++ b/pandora_console/operation/agentes/estado_agente.php @@ -109,17 +109,17 @@ echo ''; echo '
    '.__('Group').': '; $groups = get_user_groups (); -print_select_groups(false, "AR", true, 'group_id', $group_id, 'this.form.submit()', '', ''); +html_print_select_groups(false, "AR", true, 'group_id', $group_id, 'this.form.submit()', '', ''); echo ''; echo __('Free text for search').' (*): '; -print_input_text ("search", $search, '', 15); +html_print_input_text ("search", $search, '', 15); echo ''; -print_submit_button (__('Search'), "srcbutton", '', array ("class" => "sub search")); +html_print_submit_button (__('Search'), "srcbutton", '', array ("class" => "sub search")); echo ' 
    '; @@ -273,23 +273,23 @@ $table->class = "databox"; $table->head = array (); $table->head[0] = __('Agent'). ' ' . - '' . print_image("images/sort_up.png", true, array("style" => $selectNameUp, "alt" => "up")) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectNameDown, "alt" => "down")) . ''; + '' . html_print_image("images/sort_up.png", true, array("style" => $selectNameUp, "alt" => "up")) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectNameDown, "alt" => "down")) . ''; $table->head[1] = __('OS'). ' ' . - '' . print_image("images/sort_up.png", true, array("style" => $selectOsUp, "alt" => "up")) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectOsDown, "alt" => "down")) . ''; + '' . html_print_image("images/sort_up.png", true, array("style" => $selectOsUp, "alt" => "up")) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectOsDown, "alt" => "down")) . ''; $table->head[2] = __('Interval'). ' ' . - '' . print_image("images/sort_up.png", true, array("style" => $selectIntervalUp, "alt" => "up")) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectIntervalDown, "alt" => "down")) . ''; + '' . html_print_image("images/sort_up.png", true, array("style" => $selectIntervalUp, "alt" => "up")) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectIntervalDown, "alt" => "down")) . ''; $table->head[3] = __('Group'). ' ' . - '' . print_image("images/sort_up.png", true, array("style" => $selectGroupUp, "alt" => "up")) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectGroupDown, "alt" => "down")) . ''; + '' . html_print_image("images/sort_up.png", true, array("style" => $selectGroupUp, "alt" => "up")) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectGroupDown, "alt" => "down")) . ''; $table->head[4] = __('Modules'); $table->head[5] = __('Status'); $table->head[6] = __('Alerts'); $table->head[7] = __('Last contact'). ' ' . - '' . print_image("images/sort_up.png", true, array("style" => $selectLastContactUp, "alt" => "up")) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectLastContactDown, "alt" => "down")) . ''; + '' . html_print_image("images/sort_up.png", true, array("style" => $selectLastContactUp, "alt" => "up")) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectLastContactDown, "alt" => "down")) . ''; $table->align = array (); $table->align[1] = "center"; @@ -319,7 +319,7 @@ foreach ($agents as $agent) { $data[0] = ''; if (check_acl ($config['id_user'], $agent["id_grupo"], "AW")) { $data[0] .= ''; - $data[0] .= print_image ("images/setup.png", true, array ("border" => 0, "width" => 16)); + $data[0] .= html_print_image ("images/setup.png", true, array ("border" => 0, "width" => 16)); $data[0] .= ' '; } @@ -376,7 +376,7 @@ foreach ($agents as $agent) { } if (!empty ($table->data)) { - print_table ($table); + html_print_table ($table); ui_pagination ($total_agents, ui_get_url_refresh (array ('group_id' => $group_id, 'search' => $search, 'sort_field' => $sortField, 'sort' => $sort))); unset ($table); } else { @@ -390,8 +390,8 @@ if (check_acl ($config['id_user'], 0, "LM") || check_acl ($config['id_user'], 0, || check_acl ($config['id_user'], 0, "UM")) { echo '
    '; - print_input_hidden ('new_agent', 1); - print_submit_button (__('Create agent'), 'crt', false, 'class="sub next"'); + html_print_input_hidden ('new_agent', 1); + html_print_submit_button (__('Create agent'), 'crt', false, 'class="sub next"'); echo '
    '; } */ diff --git a/pandora_console/operation/agentes/estado_generalagente.php b/pandora_console/operation/agentes/estado_generalagente.php index 56b032e5b5..a3e5eef771 100644 --- a/pandora_console/operation/agentes/estado_generalagente.php +++ b/pandora_console/operation/agentes/estado_generalagente.php @@ -70,8 +70,8 @@ else { $cellName = ui_print_agent_name ($agent["id_agente"], true, 35, "upper", true); } echo ''.$cellName.''; -echo '' . print_image("images/refresh.png", true, array("border" => '0', "title" => __('Refresh data'), "alt" => "")) . ' '; -echo '' . print_image("images/target.png", true, array("border" => '0', "title" => __('Flag'), "alt" => "")) . ''; +echo '' . html_print_image("images/refresh.png", true, array("border" => '0', "title" => __('Refresh data'), "alt" => "")) . ' '; +echo '' . html_print_image("images/target.png", true, array("border" => '0', "title" => __('Flag'), "alt" => "")) . ''; //Addresses echo ''.__('IP Address').''; @@ -90,7 +90,7 @@ if (!empty($address)) { $ips = array_unique($ips); -print_select($ips, "not_used", get_agent_address ($id_agente)); +html_print_select($ips, "not_used", get_agent_address ($id_agente)); echo ''; //OS @@ -124,7 +124,7 @@ echo ''.__('Group').''; echo ''; echo ui_print_group_icon ($agent["id_grupo"], true); echo ' ('; -echo ui_print_truncate_text(get_group_name ($agent["id_grupo"])); +echo ui_print_truncate_text(groups_get_name ($agent["id_grupo"])); echo ')'; // Agent version @@ -133,7 +133,7 @@ echo ''.$agent["agent_version"].''; // Position Information if ($config['activate_gis']) { - $dataPositionAgent = getDataLastPositionAgent($agent['id_agente']); + $dataPositionAgent = gis_get_data_last_position_agent($agent['id_agente']); echo ''.__('Position (Long, Lat)'). ''; echo ''; diff --git a/pandora_console/operation/agentes/estado_monitores.php b/pandora_console/operation/agentes/estado_monitores.php index 36d77d19c9..8e5c1cba65 100644 --- a/pandora_console/operation/agentes/estado_monitores.php +++ b/pandora_console/operation/agentes/estado_monitores.php @@ -163,22 +163,22 @@ if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) { } $table->head[2] = __('Type') . ' ' . - '' . print_image("images/sort_up.png", true, array("style" => $selectTypeUp, "alt" => "up")) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectTypeDown, "alt" => "down")) . ''; + '' . html_print_image("images/sort_up.png", true, array("style" => $selectTypeUp, "alt" => "up")) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectTypeDown, "alt" => "down")) . ''; $table->head[3] = __('Module name') . ' ' . - '' . print_image("images/sort_up.png", true, array("style" => $selectNameUp, "alt" => "up")) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectNameDown, "alt" => "down")) . ''; + '' . html_print_image("images/sort_up.png", true, array("style" => $selectNameUp, "alt" => "up")) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectNameDown, "alt" => "down")) . ''; $table->head[4] = __('Description'); $table->head[5] = __('Status') . ' ' . - '' . print_image("images/sort_up.png", true, array("style" => $selectStatusUp, "alt" => "up")) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectStatusDown, "alt" => "down")) . ''; + '' . html_print_image("images/sort_up.png", true, array("style" => $selectStatusUp, "alt" => "up")) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectStatusDown, "alt" => "down")) . ''; $table->head[6] = __('Data') . ' ' . - '' . print_image("images/sort_up.png", true, array("style" => $selectDataUp, "alt" => "up")) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectDataDown, "alt" => "down")) . ''; + '' . html_print_image("images/sort_up.png", true, array("style" => $selectDataUp, "alt" => "up")) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectDataDown, "alt" => "down")) . ''; $table->head[7] = __('Graph'); $table->head[8] = __('Last contact') . ' ' . - '' . print_image("images/sort_up.png", true, array("style" => $selectLastContactUp, "alt" => "up")) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectLastContactDown, "alt" => "down")) . ''; + '' . html_print_image("images/sort_up.png", true, array("style" => $selectLastContactUp, "alt" => "up")) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectLastContactDown, "alt" => "down")) . ''; $table->align = array("left","left","left","left","left","center"); @@ -203,10 +203,10 @@ foreach ($modules as $module) { $data = array (); if (($module["id_modulo"] != 1) && ($module["id_tipo_modulo"] != 100)) { if ($module["flag"] == 0) { - $data[0] = '' . print_image("images/target.png", true, array("border" => '0', "alt" => "target")) . ''; + $data[0] = '' . html_print_image("images/target.png", true, array("border" => '0', "alt" => "target")) . ''; } else { - $data[0] = '' . print_image("images/refresh.png", true, array("border" => "0", "alt" => "refresh")) . ''; + $data[0] = '' . html_print_image("images/refresh.png", true, array("border" => "0", "alt" => "refresh")) . ''; } } else { @@ -252,7 +252,7 @@ foreach ($modules as $module) { } $data[1] = '' . - print_image($img,true, array('title' => $title)) . + html_print_image($img,true, array('title' => $title)) . ''; } else { @@ -263,7 +263,7 @@ foreach ($modules as $module) { $data[2] = show_server_type ($module['id_modulo']); if (check_acl ($config['id_user'], $id_grupo, "AW")) - $data[2] .= '' . print_image("images/config.png", true, array("alt" => '0', "border" => "")) . ''; + $data[2] .= '' . html_print_image("images/config.png", true, array("alt" => '0', "border" => "")) . ''; $data[3] = ui_print_string_substr ($module["nombre"], 25, true); $data[4] = ui_print_string_substr ($module["descripcion"], 30, true); @@ -336,7 +336,7 @@ foreach ($modules as $module) { $salida = "" . '' . $sub_string . ' ' . - "" . print_image("images/rosette.png", true) . "" . ""; + "" . html_print_image("images/rosette.png", true) . "" . ""; } } } @@ -354,8 +354,8 @@ foreach ($modules as $module) { $link ="winopeng('operation/agentes/stat_win.php?type=$graph_type&period=86400&id=".$module["id_agente_modulo"]."&label=".base64_encode($module["nombre"])."&refresh=600','day_".$win_handle."')"; // if ($nombre_tipo_modulo != "log4x") - $data[7] .= '' . print_image("images/chart_curve.png", true, array("border" => '0', "alt" => "")) . ''; - $data[7] .= " " . print_image('images/binary.png', true, array("border" => '0', "alt" => "")) . ""; + $data[7] .= '' . html_print_image("images/chart_curve.png", true, array("border" => '0', "alt" => "")) . ''; + $data[7] .= " " . html_print_image('images/binary.png', true, array("border" => '0', "alt" => "")) . ""; } if ($module['estado'] == 3) { @@ -388,7 +388,7 @@ if (empty ($table->data)) { } else { echo "

    ".__('Full list of monitors')."

    "; - print_table ($table); + html_print_table ($table); } unset ($table); diff --git a/pandora_console/operation/agentes/estado_ultimopaquete.php b/pandora_console/operation/agentes/estado_ultimopaquete.php index 5e9fec6bf3..7e84b366dd 100644 --- a/pandora_console/operation/agentes/estado_ultimopaquete.php +++ b/pandora_console/operation/agentes/estado_ultimopaquete.php @@ -59,7 +59,7 @@ $last_label = ""; // Title echo "

    ".__('Display of last data modules received by agent'); -echo " " . print_image('images/refresh.png', true, array("alt" => '')) . ""; +echo " " . html_print_image('images/refresh.png', true, array("alt" => '')) . ""; echo "

    "; $sortField = get_parameter('sort_field'); @@ -198,27 +198,27 @@ if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) { echo "".__('P.').""; } echo "".__('Module name') . ' ' . - '' . print_image("images/sort_up.png", true, array("style" => $selectNameUp, "alt" => "up")) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectNameDown, "alt" => "down")) . ''; + '' . html_print_image("images/sort_up.png", true, array("style" => $selectNameUp, "alt" => "up")) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectNameDown, "alt" => "down")) . ''; echo ""; echo "".__('Type') . ' ' . - '' . print_image("images/sort_up.png", true, array("style" => $selectTypeUp, "alt" => "up")) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectTypeDown, "alt" => "down")) . ''; + '' . html_print_image("images/sort_up.png", true, array("style" => $selectTypeUp, "alt" => "up")) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectTypeDown, "alt" => "down")) . ''; echo ""; echo "".__('int') . ' ' . - '' . print_image("images/sort_up.png", true, array("style" => $selectIntervalUp, "alt" => "up")) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectIntervalDown, "alt" => "down")) . ''; + '' . html_print_image("images/sort_up.png", true, array("style" => $selectIntervalUp, "alt" => "up")) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectIntervalDown, "alt" => "down")) . ''; echo ""; echo "".__('Description') . ""; echo "".__('Data') . ' ' . - '' . print_image("images/sort_up.png", true, array("style" => $selectDataUp, "alt" => "up")) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectDataDown, "alt" => "down")) . ''; + '' . html_print_image("images/sort_up.png", true, array("style" => $selectDataUp, "alt" => "up")) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectDataDown, "alt" => "down")) . ''; echo ""; echo "".__('Graph').""; echo "".__('Raw Data').""; echo "".__('Timestamp') . ' ' . - '' . print_image("images/sort_up.png", true, array("style" => $selectTimestampUp, "alt" => "up")) . '' . - '' . print_image("images/sort_down.png", true, array("style" => $selectTimestampDown, "alt" => "down")) . ''; + '' . html_print_image("images/sort_up.png", true, array("style" => $selectTimestampUp, "alt" => "up")) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectTimestampDown, "alt" => "down")) . ''; echo ""; $texto=''; $last_modulegroup = 0; $color = 1; @@ -251,10 +251,10 @@ foreach ($modules as $module) { // Has flag = 0 if ($write && $module["id_modulo"] > 1 && $module["id_tipo_modulo"] < 100) { if ($module["flag"] == 0) { - echo "" . print_image('images/target.png', true, array("border" => '0', "alt" => "")) . ""; + echo "" . html_print_image('images/target.png', true, array("border" => '0', "alt" => "")) . ""; } else { - echo "" . print_image('images/refresh.png', true, array("border" => '0', "alt" => '')) . ""; + echo "" . html_print_image('images/refresh.png', true, array("border" => '0', "alt" => '')) . ""; } } echo ""; @@ -295,7 +295,7 @@ foreach ($modules as $module) { echo ""; echo'' . - print_image($img,true, array('title' => $title)) . + html_print_image($img,true, array('title' => $title)) . ''; echo ""; } @@ -383,16 +383,16 @@ foreach ($modules as $module) { echo ""; $graph_label = safe_output($module["nombre"]); - echo "" . print_image('images/grafica_m.png' , true, array("border" => '0', "alt" => '')) . " "; + echo "" . html_print_image('images/grafica_m.png' , true, array("border" => '0', "alt" => '')) . " "; $link ="winopeng('operation/agentes/stat_win.php?type=$graph_type&period=604800&id=".$module["id_agente_modulo"]."&label=".base64_encode($graph_label)."&refresh=6000','week_".$win_handle."')"; - echo '' . print_image("images/grafica_w.png", true, array("border" => '0', "alt" => '')) . ' '; + echo '' . html_print_image("images/grafica_w.png", true, array("border" => '0', "alt" => '')) . ' '; $link ="winopeng('operation/agentes/stat_win.php?type=$graph_type&period=86400&id=".$module["id_agente_modulo"]."&label=".base64_encode($graph_label)."&refresh=600','day_".$win_handle."')"; - echo '' . print_image("images/grafica_d.png", true, array("border" => '0', "alt" => '')) . ' '; + echo '' . html_print_image("images/grafica_d.png", true, array("border" => '0', "alt" => '')) . ' '; $link ="winopeng('operation/agentes/stat_win.php?type=$graph_type&period=3600&id=".$module["id_agente_modulo"]."&label=".base64_encode($graph_label)."&refresh=60','hour_".$win_handle."')"; - echo '' . print_image("images/grafica_h.png", true, array("border" => '0', "alt" => "")) . ''; + echo '' . html_print_image("images/grafica_h.png", true, array("border" => '0', "alt" => "")) . ''; } @@ -400,9 +400,9 @@ foreach ($modules as $module) { if ($module['history_data'] == 1) { // RAW Table data echo ""; - echo "" . print_image('images/data_m.png', true, array("border" => '0', "alt" => '')) . "  "; - echo "" . print_image('images/data_w.png', true, array("border" => '0', "alt" => '')) . "  "; - echo "" . print_image('images/data_d.png', true, array("border" => '0', "alt" => '')) . ""; + echo "" . html_print_image('images/data_m.png', true, array("border" => '0', "alt" => '')) . "  "; + echo "" . html_print_image('images/data_w.png', true, array("border" => '0', "alt" => '')) . "  "; + echo "" . html_print_image('images/data_d.png', true, array("border" => '0', "alt" => '')) . ""; } else { echo ""; diff --git a/pandora_console/operation/agentes/exportdata.php b/pandora_console/operation/agentes/exportdata.php index b22a852aa5..f79366156e 100644 --- a/pandora_console/operation/agentes/exportdata.php +++ b/pandora_console/operation/agentes/exportdata.php @@ -304,7 +304,7 @@ $table->data[0][0] = ''.__('Group').''; $groups = get_user_groups ($config['id_user'], "AR"); -$table->data[0][1] = print_select_groups($config['id_user'], "AR", true, "group", $group, 'this.form.submit();', '', 0, true, false, true, 'w130', false); +$table->data[0][1] = html_print_select_groups($config['id_user'], "AR", true, "group", $group, 'this.form.submit();', '', 0, true, false, true, 'w130', false); //Agent selector $table->data[1][0] = ''.__('Source agent').''; @@ -326,8 +326,8 @@ if (!in_array ($agent, array_keys ($agents))) { $agent = current (array_keys ($agents)); } -//$table->data[1][1] = print_select ($agents, "agent", $agent, 'this.form.submit();', '', 0, true, false, true, 'w130', false); -$table->data[1][1] = print_input_text_extended ('agent', get_agent_name ($agent), 'text-agent', '', 30, 100, false, '', +//$table->data[1][1] = html_print_select ($agents, "agent", $agent, 'this.form.submit();', '', 0, true, false, true, 'w130', false); +$table->data[1][1] = html_print_input_text_extended ('agent', get_agent_name ($agent), 'text-agent', '', 30, 100, false, '', array('style' => 'background: url(images/lightning.png) no-repeat right;'), true) . ' ' . __("Type at least two characters to search") . ''; @@ -340,20 +340,20 @@ if ($agent > 0) { $modules = array (); } -$table->data[2][1] = print_select ($modules, "module_arr[]", array_keys ($modules), '', '', 0, true, true, true, 'w130', false); +$table->data[2][1] = html_print_select ($modules, "module_arr[]", array_keys ($modules), '', '', 0, true, true, true, 'w130', false); //Start date selector $table->data[3][0] = ''.__('Begin date').''; -$table->data[3][1] = print_input_text ('start_date', date ("Y-m-d", get_system_time () - 86400), false, 10, 10, true); -$table->data[3][1] .= print_image ("images/calendar_view_day.png", true, array ("alt" => "calendar", "onclick" => "scwShow(scwID('text-start_date'),this);")); -$table->data[3][1] .= print_input_text ('start_time', date ("H:m", get_system_time () - 86400), false, 10, 5, true); +$table->data[3][1] = html_print_input_text ('start_date', date ("Y-m-d", get_system_time () - 86400), false, 10, 10, true); +$table->data[3][1] .= html_print_image ("images/calendar_view_day.png", true, array ("alt" => "calendar", "onclick" => "scwShow(scwID('text-start_date'),this);")); +$table->data[3][1] .= html_print_input_text ('start_time', date ("H:m", get_system_time () - 86400), false, 10, 5, true); //End date selector $table->data[4][0] = ''.__('End date').''; -$table->data[4][1] = print_input_text ('end_date', date ("Y-m-d", get_system_time ()), false, 10, 10, true); -$table->data[4][1] .= print_image ("images/calendar_view_day.png", true, array ("alt" => "calendar", "onclick" => "scwShow(scwID('text-end_date'),this);")); -$table->data[4][1] .= print_input_text ('end_time', date ("H:m", get_system_time ()), false, 10, 5, true); +$table->data[4][1] = html_print_input_text ('end_date', date ("Y-m-d", get_system_time ()), false, 10, 10, true); +$table->data[4][1] .= html_print_image ("images/calendar_view_day.png", true, array ("alt" => "calendar", "onclick" => "scwShow(scwID('text-end_date'),this);")); +$table->data[4][1] .= html_print_input_text ('end_time', date ("H:m", get_system_time ()), false, 10, 5, true); //Export type $table->data[5][0] = ''.__('Export type').''; @@ -364,13 +364,13 @@ $export_types["csv"] = __('CSV'); $export_types["excel"] = __('MS Excel'); $export_types["avg"] = __('Average per hour/day'); -$table->data[5][1] = print_select ($export_types, "export_type", $export_type, '', '', 0, true, false, true, 'w130', false); +$table->data[5][1] = html_print_select ($export_types, "export_type", $export_type, '', '', 0, true, false, true, 'w130', false); -print_table ($table); +html_print_table ($table); // Submit button echo '
    '; - print_submit_button (__('Export'), 'export_btn', false, 'class="sub wand"'); + html_print_submit_button (__('Export'), 'export_btn', false, 'class="sub wand"'); echo '
    '; ui_require_jquery_file ('pandora.controls'); diff --git a/pandora_console/operation/agentes/gis_view.php b/pandora_console/operation/agentes/gis_view.php index 40d9863d2e..89d0566d57 100644 --- a/pandora_console/operation/agentes/gis_view.php +++ b/pandora_console/operation/agentes/gis_view.php @@ -34,7 +34,7 @@ ui_require_javascript_file('openlayers.pandora'); $period = get_parameter ("period", 86400); $agentId = get_parameter('id_agente'); $agent_name = get_agent_name($agentId); -$agentData = getDataLastPositionAgent($id_agente); +$agentData = gis_get_data_last_position_agent($id_agente); $url = ''; //These variables come from index.php @@ -46,7 +46,7 @@ echo "
    "; /* Map with the current position */ echo "
    "; -if (!getAgentMap($agentId, "500px", "98%", true, true, $period)) { +if (!gis_get_agent_map($agentId, "500px", "98%", true, true, $period)) { echo "
    " . __("There is no default map.") . "
    "; } @@ -62,8 +62,8 @@ switch ($config["dbtype"]) { break; } -activateAjaxRefresh(null, $timestampLastOperation); -activateSelectControl(); +gis_activate_ajax_refresh(null, $timestampLastOperation); +gis_activate_select_control(); if ($agentData === false) { echo "

    " . __("There is no GIS data for this agent, so it's positioned in default position of map.") . "

    "; @@ -83,7 +83,7 @@ $intervals[172800] = human_time_description_raw (172800); $intervals[604800] = human_time_description_raw (604800); echo "
    "; -$dataLastPosition = getDataLastPositionAgent($agentId); +$dataLastPosition = gis_get_data_last_position_agent($agentId); if ($dataLastPosition !== false) { echo "" . __("Last position in ") . $dataLastPosition['start_timestamp'] . ": " . $dataLastPosition['stored_longitude'] . ", " . $dataLastPosition['stored_latitude'] . ", " . $dataLastPosition['stored_altitude']; @@ -91,9 +91,9 @@ if ($dataLastPosition !== false) { echo "
    "; echo "
    "; echo __("Period to show data as path") . ": "; -print_extended_select_for_time ($intervals, 'period', $period, '', '', '0', 10); +html_print_extended_select_for_time ($intervals, 'period', $period, '', '', '0', 10); echo __(" seconds.") . " "; -print_submit_button(__('Refresh path'), 'refresh', false, 'class = "sub upd"'); +html_print_submit_button(__('Refresh path'), 'refresh', false, 'class = "sub upd"'); echo "
    "; echo "

    " . __("Positional data from the last") . " " . human_time_description_raw ($period) ."

    "; @@ -124,7 +124,7 @@ else { $table->id = $agent_name.'_position_data_table'; $table->title = $agent_name." ". __("positional data"); $table->titlestyle = "background-color:#799E48;"; - print_table($table); unset($table); + html_print_table($table); unset($table); ui_pagination ($countData, false) ; echo "

    " . __('Total') . ' ' . $countData . ' ' . __('Data') . "

    "; diff --git a/pandora_console/operation/agentes/graphs.php b/pandora_console/operation/agentes/graphs.php index 8f2ebdc2d1..32e9afb69b 100644 --- a/pandora_console/operation/agentes/graphs.php +++ b/pandora_console/operation/agentes/graphs.php @@ -65,13 +65,13 @@ foreach ($modules as $id => $module) { $checked = false; if (isset($modulesChecked[$id])) $checked = (bool) $modulesChecked[$id]; - $listModules[] = '' . print_checkbox('modules[' . $id . ']', 1, $checked, true) . ' ' . $module . ''; + $listModules[] = '' . html_print_checkbox('modules[' . $id . ']', 1, $checked, true) . ' ' . $module . ''; } $table->data[0][1] = implode(' ', $listModules); $table->data[1][0] = __('Begin date'); -$table->data[1][1] = print_input_text ("start_date", substr ($start_date, 0, 10),'', 10, 40, true); -$table->data[1][1] .= print_image ("images/calendar_view_day.png", true, array ("onclick" => "scwShow(scwID('text-start_date'),this);")); +$table->data[1][1] = html_print_input_text ("start_date", substr ($start_date, 0, 10),'', 10, 40, true); +$table->data[1][1] .= html_print_image ("images/calendar_view_day.png", true, array ("onclick" => "scwShow(scwID('text-start_date'),this);")); $table->data[2][0] = __('Zoom factor'); $options = array (); @@ -80,7 +80,7 @@ $options[1] = 'x1'; $options[2] = 'x2'; $options[3] = 'x3'; $options[4] = 'x4'; -$table->data[2][1] = print_select ($options, "zoom", $zoom, '', '', 0, true); +$table->data[2][1] = html_print_select ($options, "zoom", $zoom, '', '', 0, true); $table->data[3][0] = __('Time range'); $options = array (); @@ -96,18 +96,18 @@ $options[1296000] = human_time_description_raw (1296000); $options[2592000] = human_time_description_raw (2592000); $options[5184000] = human_time_description_raw (5184000); $options[15552000] = human_time_description_raw (15552000); -$table->data[3][1] = print_extended_select_for_time($options, 'period', $period, '', '', 0, 7, true) . ' ' . __('secs'); +$table->data[3][1] = html_print_extended_select_for_time($options, 'period', $period, '', '', 0, 7, true) . ' ' . __('secs'); $table->data[4][0] = __('Show events'); -$table->data[4][1] = print_checkbox ("draw_events", 1, (bool) $draw_events, true); +$table->data[4][1] = html_print_checkbox ("draw_events", 1, (bool) $draw_events, true); $table->data[5][0] = __('Show alerts'); -$table->data[5][1] = print_checkbox ("draw_alerts", 1, (bool) $draw_alerts, true); +$table->data[5][1] = html_print_checkbox ("draw_alerts", 1, (bool) $draw_alerts, true); $htmlForm = '
    '; -$htmlForm .= print_table($table, true); -$htmlForm .= print_input_hidden('filter', 1, true); +$htmlForm .= html_print_table($table, true); +$htmlForm .= html_print_input_hidden('filter', 1, true); $htmlForm .= '
    '; -$htmlForm .= print_submit_button (__('Filter'), 'filter_button', false, 'class="sub upd"', true); +$htmlForm .= html_print_submit_button (__('Filter'), 'filter_button', false, 'class="sub upd"', true); $htmlForm .= '
    '; $htmlForm .= '
    '; diff --git a/pandora_console/operation/agentes/group_view.php b/pandora_console/operation/agentes/group_view.php index 37aa62ccf3..7f469926b4 100644 --- a/pandora_console/operation/agentes/group_view.php +++ b/pandora_console/operation/agentes/group_view.php @@ -123,7 +123,7 @@ foreach ($groups as $id_group => $group_name) { echo ""; echo ""; if (check_acl ($config['id_user'], $id_group, "AW")) { - echo '' . print_image("images/target.png", true, array("border" => '0')) . ''; + echo '' . html_print_image("images/target.png", true, array("border" => '0')) . ''; } echo ""; diff --git a/pandora_console/operation/agentes/networkmap.groups.php b/pandora_console/operation/agentes/networkmap.groups.php index 18e7da2a2d..819fab9a73 100644 --- a/pandora_console/operation/agentes/networkmap.groups.php +++ b/pandora_console/operation/agentes/networkmap.groups.php @@ -83,7 +83,7 @@ if ($result !== false) { echo "

    Is ".$filter." (usually part of GraphViz) and echo installed and able to be executed by the webserver process?"; return; } - print_image ($filename_img, false, array ("alt" => __('Network map'), "usemap" => "#networkmap")); + html_print_image ($filename_img, false, array ("alt" => __('Network map'), "usemap" => "#networkmap")); require ($filename_map); } else { ui_print_error_message (__('Map could not be generated')); diff --git a/pandora_console/operation/agentes/networkmap.php b/pandora_console/operation/agentes/networkmap.php index 2794f4ba29..4869fcde1b 100644 --- a/pandora_console/operation/agentes/networkmap.php +++ b/pandora_console/operation/agentes/networkmap.php @@ -145,34 +145,34 @@ if($recenter_networkmap) { if ($pure == 1) { $buttons['screen'] = array('active' => false, 'text' => '' . - print_image("images/normalscreen.png", true, array ('title' => __('Normal screen'))) .''); + html_print_image("images/normalscreen.png", true, array ('title' => __('Normal screen'))) .''); } else { $buttons['screen'] = array('active' => false, 'text' => '' . - print_image("images/fullscreen.png", true, array ('title' => __('Full screen'))) .''); + html_print_image("images/fullscreen.png", true, array ('title' => __('Full screen'))) .''); } if($config['enterprise_installed']) { $buttons['policies'] = array('active' => $activeTab == 'policies', 'text' => '' . - print_image("images/policies.png", true, array ("title" => __('Policies view'))) .''); + html_print_image("images/policies.png", true, array ("title" => __('Policies view'))) .''); } $buttons['groups'] = array('active' => $activeTab == 'groups', 'text' => '' . - print_image("images/group.png", true, array ("title" => __('Groups view'))) .''); + html_print_image("images/group.png", true, array ("title" => __('Groups view'))) .''); $buttons['topology'] = array('active' => $activeTab == 'topology', 'text' => '' . - print_image("images/recon.png", true, array ("title" => __('Topology view'))) .''); + html_print_image("images/recon.png", true, array ("title" => __('Topology view'))) .''); $buttons['separator'] = array('separator' => ''); $combolist = '
    '; -$combolist .= print_select($networkmaps, 'id_networkmap', $id_networkmap, 'onchange:this.form.submit()', __('No selected'), 0, true, false, false, '', false, 'margin-top:4px; margin-left:3px; width:150px;'); +$combolist .= html_print_select($networkmaps, 'id_networkmap', $id_networkmap, 'onchange:this.form.submit()', __('No selected'), 0, true, false, false, '', false, 'margin-top:4px; margin-left:3px; width:150px;'); -$combolist .= print_input_hidden('hidden_options',$hidden_options, true); +$combolist .= html_print_input_hidden('hidden_options',$hidden_options, true); $combolist .= '
    '; @@ -180,12 +180,12 @@ $buttons['combolist'] = $combolist; $buttons['addmap'] = array('active' => $activeTab == false, 'text' => '' . - print_image("images/add.png", true, array ("title" => __('Add map'))) .''); + html_print_image("images/add.png", true, array ("title" => __('Add map'))) .''); if(!$nomaps && $id_networkmap != 0) { $buttons['deletemap'] = array('active' => $activeTab == false, 'text' => '' . - print_image("images/cross.png", true, array ("title" => __('Delete map'))) .''); + html_print_image("images/cross.png", true, array ("title" => __('Delete map'))) .''); $buttons['savemap'] = array('active' => $activeTab == false, 'text' => '' . - print_image("images/file.png", true, array ("title" => __('Save map'))) .''); + html_print_image("images/file.png", true, array ("title" => __('Save map'))) .''); } switch($activeTab){ @@ -241,31 +241,31 @@ $options_form .= ''; -$options_form .= print_input_text ('name', $name, '', 10, 25, true); +$options_form .= html_print_input_text ('name', $name, '', 10, 25, true); $options_form .= ''; $options_form .= ''; if($activeTab == 'groups' || $activeTab == 'policies'){ $options_form .= ''; } $options_form .= ''; if($activeTab == 'groups'){ $options_form .= ''; } if($activeTab == 'policies'){ $options_form .= ''; } @@ -273,29 +273,29 @@ $options_form .= '
    ' . __('Group') . '
    '; -$options_form .= print_select_groups(false, 'AR', false, 'group', $group, '', 'All', 0, true); +$options_form .= html_print_select_groups(false, 'AR', false, 'group', $group, '', 'All', 0, true); $options_form .= '
    ' . __('Module group') . '
    '; - $options_form .= print_select_from_sql ('SELECT id_mg, name FROM tmodule_group', 'module_group', $module_group, '', 'All', 0, true); + $options_form .= html_print_select_from_sql ('SELECT id_mg, name FROM tmodule_group', 'module_group', $module_group, '', 'All', 0, true); $options_form .= '
    ' . __('Layout') . '
    '; -$options_form .= print_select ($layout_array, 'layout', $layout, '', '', '', true); +$options_form .= html_print_select ($layout_array, 'layout', $layout, '', '', '', true); $options_form .= '
    ' . __('Depth') . '
    '; $depth_levels = array('all' => __('All'), 'agent' => __('Agents'), 'group' => __('Groups')); - $options_form .= print_select ($depth_levels, 'depth', $depth, '', '', '', true, false, false); + $options_form .= html_print_select ($depth_levels, 'depth', $depth, '', '', '', true, false, false); $options_form .= '
    ' . __('Depth') . '
    '; $depth_levels = array('all' => __('All'), 'agent' => __('Agents'), 'policy' => __('Policies')); - $options_form .= print_select ($depth_levels, 'depth', $depth, '', '', '', true, false, false); + $options_form .= html_print_select ($depth_levels, 'depth', $depth, '', '', '', true, false, false); $options_form .= '
    '; $options_form .= ''; $options_form .= ''; $options_form .= ''; if(($activeTab == 'groups' || $activeTab == 'policies') && $depth == 'all') { $options_form .= ''; if($activeTab == 'groups') { if($config['enterprise_installed']) { $options_form .= ''; } } } $options_form .= ''; $options_form .= ''; if ($pure == "1") { @@ -310,7 +310,7 @@ if ($pure == "1") { ); $options_form .= ''; } @@ -318,19 +318,19 @@ if ($pure == "1") { if ($nooverlap == 1){ $options_form .= ""; } $options_form .= ""; $options_form .= ''; $options_form .= '
    ' . __('No Overlap') . '
    '; -$options_form .= print_checkbox ('nooverlap', '1', $nooverlap, true); +$options_form .= html_print_checkbox ('nooverlap', '1', $nooverlap, true); $options_form .= '
    ' . __('Only modules with alerts') . '
    '; - $options_form .= print_checkbox ('modwithalerts', '1', $modwithalerts, true); + $options_form .= html_print_checkbox ('modwithalerts', '1', $modwithalerts, true); $options_form .= '
    ' . __('Hide policy modules') . '
    '; - $options_form .= print_checkbox ('hidepolicymodules', '1', $hidepolicymodules, true); + $options_form .= html_print_checkbox ('hidepolicymodules', '1', $hidepolicymodules, true); $options_form .= '
    ' . __('Simple') . '
    '; -$options_form .= print_checkbox ('simple', '1', $simple, true); +$options_form .= html_print_checkbox ('simple', '1', $simple, true); $options_form .= '
    ' . __('Regenerate') . '
    '; -$options_form .= print_checkbox ('regen', '1', $regen, true); +$options_form .= html_print_checkbox ('regen', '1', $regen, true); $options_form .= '
    ' . __('Zoom') . '
    '; - $options_form .= print_select ($zoom_array, 'zoom', $zoom, '', '', '', true, false, false, false); + $options_form .= html_print_select ($zoom_array, 'zoom', $zoom, '', '', '', true, false, false, false); $options_form .= '
    "; $options_form .= __('Distance between nodes') . '
    '; - $options_form .= print_input_text ('ranksep', $ranksep, __('Separation between elements in the map (in Non-overlap mode)'), 3, 4, true); + $options_form .= html_print_input_text ('ranksep', $ranksep, __('Separation between elements in the map (in Non-overlap mode)'), 3, 4, true); $options_form .= "
    "; $options_form .= __('Font') . '
    '; -$options_form .= print_input_text ('font_size', $font_size, $alt = 'Font size (in pt)', 2, 4, true); +$options_form .= html_print_input_text ('font_size', $font_size, $alt = 'Font size (in pt)', 2, 4, true); $options_form .= "
    '; -$options_form .= print_input_hidden('update_networkmap',1, true); -$options_form .= print_input_hidden('hidden_options',0, true); -$options_form .= print_submit_button (__('Update'), "updbutton", false, 'class="sub upd"', true); +$options_form .= html_print_input_hidden('update_networkmap',1, true); +$options_form .= html_print_input_hidden('hidden_options',0, true); +$options_form .= html_print_submit_button (__('Update'), "updbutton", false, 'class="sub upd"', true); $options_form .= '
    '; diff --git a/pandora_console/operation/agentes/networkmap.topology.php b/pandora_console/operation/agentes/networkmap.topology.php index 0f85816b9e..fb62724ba5 100644 --- a/pandora_console/operation/agentes/networkmap.topology.php +++ b/pandora_console/operation/agentes/networkmap.topology.php @@ -83,7 +83,7 @@ if ($result !== false) { echo "

    Is ".$filter." (usually part of GraphViz) and echo installed and able to be executed by the webserver process?"; return; } - print_image ($filename_img, false, array ("alt" => __('Network map'), "usemap" => "#networkmap")); + html_print_image ($filename_img, false, array ("alt" => __('Network map'), "usemap" => "#networkmap")); require ($filename_map); } else { ui_print_error_message (__('Map could not be generated')); diff --git a/pandora_console/operation/agentes/sla_view.php b/pandora_console/operation/agentes/sla_view.php index d222d50bc9..5be08c7bba 100644 --- a/pandora_console/operation/agentes/sla_view.php +++ b/pandora_console/operation/agentes/sla_view.php @@ -88,9 +88,9 @@ foreach ($modules as $module_id => $module) { //TODO: Make this work for all new status $status = get_agentmodule_status ($module_id); if ($status == 1){ - $data[3] = print_image ("images/pixel_red.png", true, array ("width" => 40, "height" => 18, "title" => __('Module Down'))); + $data[3] = html_print_image ("images/pixel_red.png", true, array ("width" => 40, "height" => 18, "title" => __('Module Down'))); } else { - $data[3] = print_image ("images/pixel_green.png", true, array ("width" => 40, "height" => 18, "title" => __('Module Up'))); + $data[3] = html_print_image ("images/pixel_green.png", true, array ("width" => 40, "height" => 18, "title" => __('Module Up'))); } if ($module["module_interval"] > 0) { @@ -102,7 +102,7 @@ foreach ($modules as $module_id => $module) { $loc++; } -print_table ($table); +html_print_table ($table); unset ($table); // Get all SLA report components @@ -131,13 +131,13 @@ if ($result !== false) { $data[2] = format_numeric (get_agentmodule_sla ($sla_data["id_agent_module"], $config["sla_period"], 1)).'%'; $status = get_agentmodule_status ($sla_data["id_agent_module"]); if ($status == 1){ - $data[3] = print_image ("images/pixel_red.png", true, array ("width" => 40, "height" => 18, "title" => __('Module Down'))); + $data[3] = html_print_image ("images/pixel_red.png", true, array ("width" => 40, "height" => 18, "title" => __('Module Down'))); } else { - $data[3] = print_image ("images/pixel_green.png", true, array ("width" => 40, "height" => 18, "title" => __('Module Up'))); + $data[3] = html_print_image ("images/pixel_green.png", true, array ("width" => 40, "height" => 18, "title" => __('Module Up'))); } array_push ($table->data, $data); } - print_table ($table); + html_print_table ($table); unset ($table); } ?> diff --git a/pandora_console/operation/agentes/stat_win.php b/pandora_console/operation/agentes/stat_win.php index 1939d8be96..17ac1a014c 100644 --- a/pandora_console/operation/agentes/stat_win.php +++ b/pandora_console/operation/agentes/stat_win.php @@ -172,26 +172,26 @@ switch ($graph_type) { //z-index is 1 because 2 made the calendar show under the divmenu. echo ''; ?> diff --git a/pandora_console/operation/agentes/status_monitor.php b/pandora_console/operation/agentes/status_monitor.php index 2300ef5dcd..5de33793c4 100644 --- a/pandora_console/operation/agentes/status_monitor.php +++ b/pandora_console/operation/agentes/status_monitor.php @@ -50,7 +50,7 @@ echo ''; echo ''; echo '"; @@ -64,12 +64,12 @@ $fields[3] = __('Unknown'); $fields[4] = __('Not normal'); //default $fields[5] = __('Not init'); -print_select ($fields, "status", $status, 'this.form.submit();', __('All'), -1, false, false, true, '', false, 'width: 125px;'); +html_print_select ($fields, "status", $status, 'this.form.submit();', __('All'), -1, false, false, true, '', false, 'width: 125px;'); echo ''; echo ''; echo ''; @@ -188,16 +188,16 @@ switch ($config["dbtype"]) { $modules = db_get_all_rows_sql($sql); -print_select (index_array ($modules, 'nombre', 'nombre'), "ag_modulename", +html_print_select (index_array ($modules, 'nombre', 'nombre'), "ag_modulename", $ag_modulename, 'this.form.submit();', __('All'), '', false, false, true, '', false, 'width: 150px;'); echo ''; echo '"; echo "
    '.__('Group').''; -print_select_groups(false, "AR", true, "ag_group", $ag_group, 'this.form.submit();', +html_print_select_groups(false, "AR", true, "ag_group", $ag_group, 'this.form.submit();', '', '0', false, false, false, 'w130', false, 'width:150px;'); echo "'.__('Module group').''; -print_select_from_sql ("SELECT * FROM tmodule_group ORDER BY name", +html_print_select_from_sql ("SELECT * FROM tmodule_group ORDER BY name", 'modulegroup', $modulegroup, 'this.form.submit();',__('All'), 0, false, false, true, false, 'width: 100px;'); echo '
    '.__('Module name').''.__('Search').''; -print_input_text ("ag_freestring", $ag_freestring, '', 20,30, false); +html_print_input_text ("ag_freestring", $ag_freestring, '', 20,30, false); echo ''; -print_submit_button (__('Show'), "uptbutton", false, 'class="sub search"'); +html_print_submit_button (__('Show'), "uptbutton", false, 'class="sub search"'); echo "
    "; @@ -409,7 +409,7 @@ foreach ($result as $row) { } $data[0] = '' . - print_image($img,true, array('title' => $title)) . + html_print_image($img,true, array('title' => $title)) . ''; } } @@ -418,7 +418,7 @@ foreach ($result as $row) { $data[1] .= substr ($row["agent_name"], 0, 25); $data[1] .= ''; - $data[2] = print_image("images/" . show_icon_type ($row["module_type"]), true); + $data[2] = html_print_image("images/" . show_icon_type ($row["module_type"]), true); $data[3] = mb_strimwidth (safe_output($row["module_name"]), 0, 30); @@ -464,8 +464,8 @@ foreach ($result as $row) { $link ="winopeng('operation/agentes/stat_win.php?type=$graph_type&period=86400&id=".$row["id_agente_modulo"]."&label=".base64_encode($row["module_name"])."&refresh=600','day_".$win_handle."')"; - $data[6] = '' . print_image("images/chart_curve.png", true, array("border" => '0', "alt" => "")) . ''; - $data[6] .= " " . print_image('images/binary.png', true, array("style" => '0', "alt" => '')) . ""; + $data[6] = '' . html_print_image("images/chart_curve.png", true, array("border" => '0', "alt" => "")) . ''; + $data[6] .= " " . html_print_image('images/binary.png', true, array("style" => '0', "alt" => '')) . ""; } if (is_numeric($row["datos"])) @@ -488,7 +488,7 @@ foreach ($result as $row) { array_push ($table->data, $data); } if (!empty ($table->data)) { - print_table ($table); + html_print_table ($table); } else { echo '
    '.__('This group doesn\'t have any monitor').'
    '; } diff --git a/pandora_console/operation/agentes/tactical.php b/pandora_console/operation/agentes/tactical.php index 1a98d485d0..e737291fbb 100644 --- a/pandora_console/operation/agentes/tactical.php +++ b/pandora_console/operation/agentes/tactical.php @@ -109,7 +109,7 @@ $table->style[7] = "padding-top:4px; padding-bottom:4px;"; $table->data[7][0] = progress_bar2($data["alert_level"], 140, 20, $data["alert_level"].'% '.__('of defined alerts not fired'), 0); -print_table ($table); +html_print_table ($table); unset ($table); echo ''; @@ -291,7 +291,7 @@ if($is_admin) { } if (!empty ($table->data)) { - print_table ($table); + html_print_table ($table); } else { echo '
    '.__('There are no servers configured in the database').'
    '; } diff --git a/pandora_console/operation/agentes/ver_agente.php b/pandora_console/operation/agentes/ver_agente.php index ed6225102b..24ba962bbe 100644 --- a/pandora_console/operation/agentes/ver_agente.php +++ b/pandora_console/operation/agentes/ver_agente.php @@ -205,8 +205,8 @@ if (is_ajax ()) { echo '

    '.$agent['nombre'].'

    '; echo ''.__('Main IP').': '.$agent['direccion'].'
    '; echo ''.__('Group').': '; - echo print_image('images/groups_small/'.get_group_icon ($agent['id_grupo']).'.png', true); - echo get_group_name ($agent['id_grupo']).'
    '; + echo html_print_image('images/groups_small/'.groups_get_icon ($agent['id_grupo']).'.png', true); + echo groups_get_name ($agent['id_grupo']).'
    '; echo ''.__('Last contact').': '.human_time_comparation($agent['ultimo_contacto']).'
    '; echo ''.__('Last remote contact').': '.human_time_comparation($agent['ultimo_contacto_remoto']).'
    '; @@ -281,12 +281,12 @@ if (is_ajax ()) { $id_module = (int) get_parameter ('id_module'); $module = db_get_row ('tagente_modulo', 'id_agente_modulo', $id_module); echo '

    '; - echo print_image("images/brick.png", true) . ' '; + echo html_print_image("images/brick.png", true) . ' '; echo ui_print_truncate_text($module['nombre'],25,false,true,false).'

    '; echo ''.__('Type').': '; $agentmoduletype = get_agentmodule_type ($module['id_agente_modulo']); echo get_moduletype_name ($agentmoduletype).' '; - echo print_image("images/" . get_module_type_icon ($agentmoduletype), true) . '
    '; + echo html_print_image("images/" . get_module_type_icon ($agentmoduletype), true) . '
    '; echo ''.__('Module group').': '; $modulegroup = get_modulegroup_name (get_agentmodule_modulegroup ($module['id_agente_modulo'])); if($modulegroup === false){ @@ -304,7 +304,7 @@ if (is_ajax ()) { if ($get_group_status_tooltip) { $id_group = (int) get_parameter ('id_group'); $group = db_get_row ('tgrupo', 'id_grupo', $id_group); - echo '

    ' . print_image("images/groups_small/" . get_group_icon ($group['id_grupo']) . ".png", true); + echo '

    ' . html_print_image("images/groups_small/" . groups_get_icon ($group['id_grupo']) . ".png", true); echo ui_print_truncate_text($group['nombre'],25,false,true,false).'

    '; echo ''.__('Parent').': '; if($group['parent'] == 0) { @@ -312,7 +312,7 @@ if (is_ajax ()) { } else { $group_parent = db_get_row ('tgrupo', 'id_grupo', $group['parent']); - echo print_image("images/groups_small/" . get_group_icon ($group['parent']) . ".png", true); + echo html_print_image("images/groups_small/" . groups_get_icon ($group['parent']) . ".png", true); echo $group_parent['nombre'].'
    '; } echo ''.__('Sons').': '; @@ -323,7 +323,7 @@ if (is_ajax ()) { else{ echo '

    '; foreach($groups_sons as $group_son) { - echo print_image("images/groups_small/" . get_group_icon ($group_son['id_grupo']) . ".png", true); + echo html_print_image("images/groups_small/" . groups_get_icon ($group_son['id_grupo']) . ".png", true); echo $group_son['nombre'].'
    '; } } @@ -367,7 +367,7 @@ if ($flag_agent !== ''){ } if ($agent["icon_path"]) { - $icon = get_agent_icon_map($agent["id_agente"], true); + $icon = gis_get_agent_icon_map($agent["id_agente"], true); } else { $icon = 'images/bricks.png'; @@ -382,7 +382,7 @@ $managetab = ""; if (check_acl ($config['id_user'],$id_grupo, "AW")) { $managetab['text'] ='' - . print_image("images/setup.png", true, array ("title" => __('Manage'))) + . html_print_image("images/setup.png", true, array ("title" => __('Manage'))) . ''; if ($tab == 'manage') @@ -393,7 +393,7 @@ if (check_acl ($config['id_user'],$id_grupo, "AW")) { /* Main tab */ $maintab['text'] = '' - . print_image("images/monitor.png", true, array("title" => __('Main'))) + . html_print_image("images/monitor.png", true, array("title" => __('Main'))) . ''; if ($tab == 'main') @@ -403,7 +403,7 @@ else /* Data */ $datatab['text']= '' - . print_image("images/lightbulb.png", true, array("title" => __('Data'))) + . html_print_image("images/lightbulb.png", true, array("title" => __('Data'))) . ''; if (($tab == 'data') OR ($tab == 'data_view')) @@ -413,7 +413,7 @@ else /* Alert tab */ $alerttab['text'] = '' - . print_image("images/bell.png", true, array("title" => __('Alerts'))) + . html_print_image("images/bell.png", true, array("title" => __('Alerts'))) . ''; if ($tab == 'alert') @@ -423,7 +423,7 @@ else /* SLA view */ $slatab['text']= '' - . print_image("images/images.png", true, array("title" => __('S.L.A.'))) + . html_print_image("images/images.png", true, array("title" => __('S.L.A.'))) . ''; if ($tab == 'sla') { @@ -453,7 +453,7 @@ if ($policyTab == -1) /* Group tab */ $grouptab['text']= '' - . print_image("images/agents_group.png", true, array( "title" => __('Group'))) + . html_print_image("images/agents_group.png", true, array( "title" => __('Group'))) . ''; $grouptab['active']=false; @@ -463,7 +463,7 @@ $gistab=""; if ($config['activate_gis']) { $gistab['text'] = '' - .print_image("images/world.png", true, array( "title" => __('GIS data'))) + .html_print_image("images/world.png", true, array( "title" => __('GIS data'))) .''; if ($tab == 'gis') @@ -473,7 +473,7 @@ if ($config['activate_gis']) { } $custom_fields['text']= '' - . print_image("images/note.png", true, array("title" => __('Custom fields'))) + . html_print_image("images/note.png", true, array("title" => __('Custom fields'))) . ''; if ($tab == 'custom_fields') { @@ -484,7 +484,7 @@ else { } $graphs['text'] = '' - . print_image("images/chart_curve.png", true, array("title" => __('Graphs'))) + . html_print_image("images/chart_curve.png", true, array("title" => __('Graphs'))) . ''; if ($tab == 'graphs') { $graphs['active'] = true; @@ -516,7 +516,7 @@ foreach($config['extensions'] as $extension) { $url = 'index.php?sec=estado&sec2=operation/agentes/ver_agente&tab=extension&id_agente='.$id_agente . '&id_extension=' . $id; - $extension_tab = array('text' => '' . print_image ($image, true, array ( "title" => $name)) . '', 'active' => $active); + $extension_tab = array('text' => '' . html_print_image ($image, true, array ( "title" => $name)) . '', 'active' => $active); $onheader = $onheader + array($id => $extension_tab); } diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index 6c81a88fde..3270e09648 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -188,20 +188,20 @@ if ($config["pure"] == 0) { $buttons = array( 'fullscreen' => array('active' => false, 'text' => '' . - print_image("images/fullscreen.png", true, array ("title" => __('Full screen'))) .''), + html_print_image("images/fullscreen.png", true, array ("title" => __('Full screen'))) .''), 'rss' => array('active' => false, 'text' => '' . - print_image("images/rss.png", true, array ("title" => __('RSS Events'))) .''), + html_print_image("images/rss.png", true, array ("title" => __('RSS Events'))) .''), 'marquee' => array('active' => false, 'text' => '' . - print_image("images/heart.png", true, array ("title" => __('Marquee display'))) .''), + html_print_image("images/heart.png", true, array ("title" => __('Marquee display'))) .''), 'csv' => array('active' => false, 'text' => '' . - print_image("images/disk.png", true, array ("title" => __('Export to CSV file'))) .''), + html_print_image("images/disk.png", true, array ("title" => __('Export to CSV file'))) .''), 'sound_event' => array('active' => false, - 'text' => '' . print_image('images/music_note.png', true, array('title' => __('Sound events'))) . '') + 'text' => '' . html_print_image('images/music_note.png', true, array('title' => __('Sound events'))) . '') ); ui_print_page_header (__("Events"), "images/lightning_go.png", false, "eventview", false, $buttons); @@ -223,7 +223,7 @@ else { echo " "; echo ''; - print_image ("images/normalscreen.png", false, array ("title" => __('Back to normal mode'))); + html_print_image ("images/normalscreen.png", false, array ("title" => __('Back to normal mode'))); echo ''; echo ""; } diff --git a/pandora_console/operation/events/events_list.php b/pandora_console/operation/events/events_list.php index 16457030c5..da08fda4bc 100644 --- a/pandora_console/operation/events/events_list.php +++ b/pandora_console/operation/events/events_list.php @@ -140,7 +140,7 @@ $url = "index.php?sec=eventos&sec2=operation/events/events&search=" . $event_view_hr . "&id_user_ack=" . $id_user_ack . "&offset=" . $offset; //Link to toggle filter -echo ''.__('Event control filter').' '.print_image ("images/down.png", true, array ("title" => __('Toggle filter(s)'))).'

    '; +echo ''.__('Event control filter').' '.html_print_image ("images/down.png", true, array ("title" => __('Toggle filter(s)'))).'

    '; //Start div echo '
    ".__('Group').""; // Event type @@ -159,14 +159,14 @@ echo ""; // Severity echo "'; // Status @@ -178,19 +178,19 @@ $fields[1] = __('Only validated'); $fields[2] = __('Only in process'); $fields[3] = __('Only not validated'); -print_select ($fields, 'status', $status, '', '', ''); +html_print_select ($fields, 'status', $status, '', '', ''); //NEW LINE echo ""; // Free search echo "'; //Agent search echo ""; echo ""; echo ""; @@ -221,7 +221,7 @@ echo ""; echo ""; echo ""; echo ""; echo '
    "; -print_select_groups($config["id_user"], "IR", true, 'ev_group', $ev_group, '', '', 0, false, false, false, 'w130'); +html_print_select_groups($config["id_user"], "IR", true, 'ev_group', $ev_group, '', '', 0, false, false, false, 'w130'); echo "".__('Event type').""; $types = get_event_types (); // Expand standard array to add not_normal (not exist in the array, used only for searches) $types["not_normal"] = __("Not normal"); -print_select ($types, 'event_type', $event_type, '', __('All'), ''); +html_print_select ($types, 'event_type', $event_type, '', __('All'), ''); echo "
    ".__('Severity').""; -print_select (get_priorities (), "severity", $severity, '', __('All'), '-1'); +html_print_select (get_priorities (), "severity", $severity, '', __('All'), '-1'); echo '
    ".__('Free search').""; -print_input_text ('search', $search, '', 15); +html_print_input_text ('search', $search, '', 15); echo '".__('Agent search').""; -print_input_text_extended ('text_agent', $text_agent, 'text_id_agent', '', 30, 100, false, '', +html_print_input_text_extended ('text_agent', $text_agent, 'text_id_agent', '', 30, 100, false, '', array('style' => 'background: url(images/lightning.png) no-repeat right;')) . ' ' . __("Type at least two characters to search") . ''; @@ -208,12 +208,12 @@ $lpagination[200] = 200; $lpagination[500] = 500; echo ""; -print_select ($lpagination, "pagination", $pagination, '', __('Default'), $config["block_size"]); +html_print_select ($lpagination, "pagination", $pagination, '', __('Default'), $config["block_size"]); echo "".__('Max. hours old').""; -print_input_text ('event_view_hr', $event_view_hr, '', 5); +html_print_input_text ('event_view_hr', $event_view_hr, '', 5); echo "
    ".__('User ack.').""; $users = get_users_info (); -print_select ($users, "id_user_ack", $id_user_ack, '', __('Any'), 0); +html_print_select ($users, "id_user_ack", $id_user_ack, '', __('Any'), 0); echo ""; @@ -230,12 +230,12 @@ echo ""; $repeated_sel[0] = __("All events"); $repeated_sel[1] = __("Group events"); -print_select ($repeated_sel, "group_rep", $group_rep, ''); +html_print_select ($repeated_sel, "group_rep", $group_rep, ''); echo "
    '; //The buttons -print_submit_button (__('Update'), '', false, 'class="sub upd"'); +html_print_submit_button (__('Update'), '', false, 'class="sub upd"'); echo "
    "; //This is the filter div echo '
    '; @@ -352,7 +352,7 @@ $table->head[4] = __('Action'); $table->align[4] = 'center'; $table->size[4] = '80px'; -$table->head[5] = print_checkbox ("allbox", "1", false, true); +$table->head[5] = html_print_checkbox ("allbox", "1", false, true); $table->align[5] = 'center'; $idx = 0; @@ -379,7 +379,7 @@ foreach ($result as $event) { break; } - $data[0] = print_image ($img_st, true, + $data[0] = html_print_image ($img_st, true, array ("class" => "image_status", "width" => 16, "height" => 16, @@ -440,44 +440,44 @@ foreach ($result as $event) { // Validate event if (($event["estado"] != 1) and (check_acl ($config["id_user"], $event["id_grupo"], "IW") == 1)) { $data[4] .= ''; - $data[4] .= print_image ("images/ok.png", true, + $data[4] .= html_print_image ("images/ok.png", true, array ("title" => __('Validate event'))); $data[4] .= ' '; } else { - $data[4] .= print_image ("images/tick.png", true, + $data[4] .= html_print_image ("images/tick.png", true, array ("title" => __('Event validated'))).' '; } // Delete event if (check_acl ($config["id_user"], $event["id_grupo"], "IM") == 1) { if($event['estado'] != 2) { $data[4] .= ''; - $data[4] .= print_image ("images/cross.png", true, + $data[4] .= html_print_image ("images/cross.png", true, array ("title" => __('Delete event'))); $data[4] .= ' '; } else { - $data[4] .= print_image ("images/cross.disabled.png", true, + $data[4] .= html_print_image ("images/cross.disabled.png", true, array ("title" => __('Is not allowed delete events in process'))).' '; } } $data[4] .= ''; - $data[4] .= print_image ("images/eye.png", true, + $data[4] .= html_print_image ("images/eye.png", true, array ("title" => __('Show more'))); $data[4] .= ' '; // Create incident from this event if (check_acl ($config["id_user"], $event["id_grupo"], "IW") == 1) { $data[4] .= ''; - $data[4] .= print_image ("images/page_lightning.png", true, + $data[4] .= html_print_image ("images/page_lightning.png", true, array ("title" => __('Create incident from event'))); $data[4] .= ''; } //Checkbox if($event["estado"] != 1) { - $data[5] = print_checkbox_extended ("eventid[]", $event["id_evento"], false, false, false, 'class="chk"', true); + $data[5] = html_print_checkbox_extended ("eventid[]", $event["id_evento"], false, false, false, 'class="chk"', true); } else { $data[5] = ''; @@ -488,22 +488,22 @@ foreach ($result as $event) { $string = '';//$string = '
    '; $string .= ''; - $string .= ''; + $string .= ''; $string .= '
    '; $string .= '' . __('Comment:') . '' . print_textarea("comment_".$event["id_evento"], 2, 10, '', 'style="min-height: 10px; width: 250px;"', true) . '' . html_print_textarea("comment_".$event["id_evento"], 2, 10, '', 'style="min-height: 10px; width: 250px;"', true) . ''; $string .= '
    '; if($event["estado"] == 0) { - $string .= print_select(array('1' => __('Validate'), '2' => __('Set in process')), 'select_validate_'.$event["id_evento"], '', '', '', 0, true, false, false, 'select_validate').'

    '; + $string .= html_print_select(array('1' => __('Validate'), '2' => __('Set in process')), 'select_validate_'.$event["id_evento"], '', '', '', 0, true, false, false, 'select_validate').'

    '; } $string .= ''; if($event["estado"] == 2) { - $string .= print_button (__('Validate'), 'validate', false, '', 'class="sub ok validate_event" id="validate-'.$event["id_evento"].'"', true).'
    '; + $string .= html_print_button (__('Validate'), 'validate', false, '', 'class="sub ok validate_event" id="validate-'.$event["id_evento"].'"', true).''; }else { - $string .= print_button (__('Change status'), 'validate', false, '', 'class="sub ok validate_event" id="validate-'.$event["id_evento"].'"', true).''; + $string .= html_print_button (__('Change status'), 'validate', false, '', 'class="sub ok validate_event" id="validate-'.$event["id_evento"].'"', true).''; } $string .= ''; $string .= '
    '; if($event["id_alert_am"] != 0) { - $string .= ''; + $string .= ''; } $string .= '
    '; //
    '; @@ -524,7 +524,7 @@ foreach ($result as $event) { $string .= ''; $string .= ''; $string .= '' . __('Severity') . ':'; - $string .= print_image ($img_sev, true, + $string .= html_print_image ($img_sev, true, array ("class" => "image_status", "width" => 12, "height" => 12, @@ -555,11 +555,11 @@ foreach ($result as $event) { $string .= ''; $standby = db_get_value('standby', 'talert_template_modules', 'id', $event["id_alert_am"]); if(!$standby) { - $string .= print_image ("images/bell.png", true, + $string .= html_print_image ("images/bell.png", true, array ("title" => __('Go to data overview'))); } else { - $string .= print_image ("images/bell_pause.png", true, + $string .= html_print_image ("images/bell_pause.png", true, array ("title" => __('Go to data overview'))); } @@ -579,7 +579,7 @@ foreach ($result as $event) { $string .= ''; $string .= '' . __('Group') . ':'; $string .= ui_print_group_icon ($event["id_grupo"], true); - $string .= ' '. get_group_name ($event["id_grupo"], true); + $string .= ' '. groups_get_name ($event["id_grupo"], true); $string .= ''; $string .= ''; if ($group_rep == 0) { @@ -634,15 +634,15 @@ if (!empty ($table->data)) { echo '
    '; echo ""; - print_table ($table); + html_print_table ($table); echo '
    '; if (check_acl ($config["id_user"], 0, "IW") == 1) { - print_submit_button (__('Change status'), 'validate_btn', false, 'class="sub ok"'); + html_print_submit_button (__('Change status'), 'validate_btn', false, 'class="sub ok"'); } if (check_acl ($config["id_user"], 0,"IM") == 1) { - print_button(__('Delete'), 'delete_button', false, 'submit_delete();', 'class="sub delete"'); + html_print_button(__('Delete'), 'delete_button', false, 'submit_delete();', 'class="sub delete"'); ?>