mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
2011-04-13 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_events.php include/functions_html.php include/functions_modules.php include/functions_reporting.php include/functions_filemanager.php include/functions_gis.php include/functions_networkmap.php include/functions_visual_map.php include/ajax/reporting.ajax.php include/help/en/help_timesource.php include/help/es/help_timesource.php include/help/ja/help_timesource.php include/functions_ui.php include/functions.php include/functions_db.php include/functions_ui_renders.php index.php extensions/insert_data.php extensions/system_info.php extensions/extension_uploader.php extensions/pandora_logs.php extensions/agents_modules.php extensions/dbmanager.php extensions/resource_registration.php extensions/resource_exportation.php extensions/users_connected.php extensions/module_groups.php extensions/update_manager/settings.php extensions/update_manager/main.php extensions/plugin_registration.php operation/incidents/incident.php operation/incidents/incident.files.php operation/incidents/incident_detail.php operation/incidents/incident.workunits.php operation/incidents/incident.list.php operation/incidents/incident_statistics.php operation/search_modules.php operation/visual_console/render_view.php operation/visual_console/index.php operation/extensions.php operation/agentes/status_monitor.php operation/agentes/alerts_status.php operation/agentes/datos_agente.php operation/agentes/estado_ultimopaquete.php operation/agentes/custom_fields.php operation/agentes/estado_generalagente.php operation/agentes/networkmap.topology.php operation/agentes/estado_agente.php operation/agentes/alerts_status.functions.php operation/agentes/networkmap.groups.php operation/agentes/bulbs.php operation/agentes/sla_view.php operation/agentes/exportdata.php operation/agentes/gis_view.php operation/agentes/estado_monitores.php operation/agentes/ver_agente.php operation/agentes/graphs.php operation/agentes/agent_fields.php operation/agentes/tactical.php operation/agentes/group_view.php operation/agentes/networkmap.php operation/agentes/stat_win.php operation/servers/view_server.php operation/servers/view_server_detail.php operation/search_agents.php operation/search_graphs.php operation/snmpconsole/snmp_view.php operation/users/user_edit.php operation/gis_maps/render_view.php operation/gis_maps/ajax.php operation/gis_maps/index.php operation/integria_incidents/incident.php operation/integria_incidents/incident.files.php operation/integria_incidents/incident_detail.php operation/integria_incidents/incident.workunits.php operation/integria_incidents/incident.list.php operation/integria_incidents/incident_statistics.php operation/events/event_statistics.php operation/events/events_list.php operation/events/events.php operation/search_alerts.php operation/messages/message.php operation/reporting/reporting_viewer.php operation/reporting/graph_viewer.php operation/reporting/custom_reporting.php operation/search_reports.php operation/search_maps.php operation/search_results.php operation/search_users.php extras/pandora_diag.php mobile/operation/agents/monitor_status.php mobile/operation/agents/view_agents.php mobile/operation/agents/view_alerts.php mobile/operation/events/events.php mobile/operation/servers/view_servers.php mobile/include/functions_web.php general/footer.php general/noaccess.php general/logon_ok.php general/main_menu.php general/ui/agents_list.php general/header.php godmode/groups/modu_group_list.php godmode/groups/configure_group.php godmode/groups/configure_modu_group.php godmode/groups/group_list.php godmode/admin_access_logs.php godmode/db/db_main.php godmode/db/db_audit.php godmode/db/db_sanity.php godmode/db/db_refine.php godmode/db/db_info.php godmode/db/db_event.php godmode/db/db_purge.php godmode/extensions.php godmode/agentes/module_manager_editor_common.php godmode/agentes/module_manager_editor_network.php godmode/agentes/fields_manager.php godmode/agentes/module_manager_editor_wmi.php godmode/agentes/module_manager_editor_plugin.php godmode/agentes/module_manager_editor_prediction.php godmode/agentes/agent_conf_gis.php godmode/agentes/module_manager.php godmode/agentes/modificar_agente.php godmode/agentes/configurar_agente.php godmode/agentes/configure_field.php godmode/agentes/module_manager_editor.php godmode/agentes/planned_downtime.php godmode/agentes/manage_config_remote.php godmode/agentes/agent_manager.php godmode/servers/recon_script.php godmode/servers/plugin.php godmode/servers/manage_recontask.php godmode/servers/modificar_server.php godmode/servers/manage_recontask_form.php godmode/alerts/alert_list.list.php godmode/alerts/configure_alert_compound.php godmode/alerts/alert_compounds.php godmode/alerts/alert_list.php godmode/alerts/configure_alert_template.php godmode/alerts/alert_templates.php godmode/alerts/configure_alert_action.php godmode/alerts/configure_alert_command.php godmode/alerts/alert_actions.php godmode/alerts/alert_list.builder.php godmode/alerts/alert_commands.php godmode/setup/file_manager.php godmode/setup/os.list.php godmode/setup/news.php godmode/setup/gis_step_2.php godmode/setup/links.php godmode/setup/setup.php godmode/setup/os.php godmode/setup/performance.php godmode/setup/setup_auth.php godmode/setup/gis.php godmode/setup/os.builder.php godmode/setup/setup_visuals.php godmode/snmpconsole/snmp_alert.php godmode/snmpconsole/snmp_filters.php godmode/users/user_list.php godmode/users/configure_user.php godmode/users/configure_profile.php godmode/gis_maps/configure_gis_map.php godmode/gis_maps/index.php godmode/massive/massive_add_alerts.php godmode/massive/massive_copy_modules.php godmode/massive/massive_delete_agents.php godmode/massive/massive_enable_disable_alerts.php godmode/massive/massive_operations.php godmode/massive/massive_delete_profiles.php godmode/massive/massive_edit_agents.php godmode/massive/massive_delete_action_alerts.php godmode/massive/massive_delete_modules.php godmode/massive/massive_add_profiles.php godmode/massive/massive_delete_alerts.php godmode/massive/massive_edit_modules.php godmode/massive/massive_standby_alerts.php godmode/massive/massive_add_action_alerts.php godmode/modules/manage_network_templates.php godmode/modules/module_list.php godmode/modules/manage_network_components_form_common.php godmode/modules/manage_network_components_form_network.php godmode/modules/manage_network_templates_form.php godmode/modules/manage_network_components_form_wmi.php godmode/modules/manage_network_components.php godmode/modules/manage_nc_groups.php godmode/modules/manage_network_components_form_plugin.php godmode/reporting/reporting_builder.list_items.php godmode/reporting/visual_console_builder.php godmode/reporting/reporting_builder.preview.php godmode/reporting/visual_console_builder.data.php godmode/reporting/visual_console_builder.elements.php godmode/reporting/graph_builder.php godmode/reporting/visual_console_builder.preview.php godmode/reporting/graph_builder.graph_editor.php godmode/reporting/reporting_builder.php godmode/reporting/visual_console_builder.editor.php godmode/reporting/reporting_builder.item_editor.php godmode/reporting/map_builder.php godmode/reporting/graphs.php godmode/reporting/graph_builder.preview.php: Now all functions of include/functions_ui have ui_ prefix. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4212 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
22c5906961
commit
eed3137fc1
@ -1,3 +1,209 @@
|
|||||||
|
2011-04-13 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||||
|
|
||||||
|
* include/functions_events.php
|
||||||
|
include/functions_html.php
|
||||||
|
include/functions_modules.php
|
||||||
|
include/functions_reporting.php
|
||||||
|
include/functions_filemanager.php
|
||||||
|
include/functions_gis.php
|
||||||
|
include/functions_networkmap.php
|
||||||
|
include/functions_visual_map.php
|
||||||
|
include/ajax/reporting.ajax.php
|
||||||
|
include/help/en/help_timesource.php
|
||||||
|
include/help/es/help_timesource.php
|
||||||
|
include/help/ja/help_timesource.php
|
||||||
|
include/functions_ui.php
|
||||||
|
include/functions.php
|
||||||
|
include/functions_db.php
|
||||||
|
include/functions_ui_renders.php
|
||||||
|
index.php
|
||||||
|
extensions/insert_data.php
|
||||||
|
extensions/system_info.php
|
||||||
|
extensions/extension_uploader.php
|
||||||
|
extensions/pandora_logs.php
|
||||||
|
extensions/agents_modules.php
|
||||||
|
extensions/dbmanager.php
|
||||||
|
extensions/resource_registration.php
|
||||||
|
extensions/resource_exportation.php
|
||||||
|
extensions/users_connected.php
|
||||||
|
extensions/module_groups.php
|
||||||
|
extensions/update_manager/settings.php
|
||||||
|
extensions/update_manager/main.php
|
||||||
|
extensions/plugin_registration.php
|
||||||
|
operation/incidents/incident.php
|
||||||
|
operation/incidents/incident.files.php
|
||||||
|
operation/incidents/incident_detail.php
|
||||||
|
operation/incidents/incident.workunits.php
|
||||||
|
operation/incidents/incident.list.php
|
||||||
|
operation/incidents/incident_statistics.php
|
||||||
|
operation/search_modules.php
|
||||||
|
operation/visual_console/render_view.php
|
||||||
|
operation/visual_console/index.php
|
||||||
|
operation/extensions.php
|
||||||
|
operation/agentes/status_monitor.php
|
||||||
|
operation/agentes/alerts_status.php
|
||||||
|
operation/agentes/datos_agente.php
|
||||||
|
operation/agentes/estado_ultimopaquete.php
|
||||||
|
operation/agentes/custom_fields.php
|
||||||
|
operation/agentes/estado_generalagente.php
|
||||||
|
operation/agentes/networkmap.topology.php
|
||||||
|
operation/agentes/estado_agente.php
|
||||||
|
operation/agentes/alerts_status.functions.php
|
||||||
|
operation/agentes/networkmap.groups.php
|
||||||
|
operation/agentes/bulbs.php
|
||||||
|
operation/agentes/sla_view.php
|
||||||
|
operation/agentes/exportdata.php
|
||||||
|
operation/agentes/gis_view.php
|
||||||
|
operation/agentes/estado_monitores.php
|
||||||
|
operation/agentes/ver_agente.php
|
||||||
|
operation/agentes/graphs.php
|
||||||
|
operation/agentes/agent_fields.php
|
||||||
|
operation/agentes/tactical.php
|
||||||
|
operation/agentes/group_view.php
|
||||||
|
operation/agentes/networkmap.php
|
||||||
|
operation/agentes/stat_win.php
|
||||||
|
operation/servers/view_server.php
|
||||||
|
operation/servers/view_server_detail.php
|
||||||
|
operation/search_agents.php
|
||||||
|
operation/search_graphs.php
|
||||||
|
operation/snmpconsole/snmp_view.php
|
||||||
|
operation/users/user_edit.php
|
||||||
|
operation/gis_maps/render_view.php
|
||||||
|
operation/gis_maps/ajax.php
|
||||||
|
operation/gis_maps/index.php
|
||||||
|
operation/integria_incidents/incident.php
|
||||||
|
operation/integria_incidents/incident.files.php
|
||||||
|
operation/integria_incidents/incident_detail.php
|
||||||
|
operation/integria_incidents/incident.workunits.php
|
||||||
|
operation/integria_incidents/incident.list.php
|
||||||
|
operation/integria_incidents/incident_statistics.php
|
||||||
|
operation/events/event_statistics.php
|
||||||
|
operation/events/events_list.php
|
||||||
|
operation/events/events.php
|
||||||
|
operation/search_alerts.php
|
||||||
|
operation/messages/message.php
|
||||||
|
operation/reporting/reporting_viewer.php
|
||||||
|
operation/reporting/graph_viewer.php
|
||||||
|
operation/reporting/custom_reporting.php
|
||||||
|
operation/search_reports.php
|
||||||
|
operation/search_maps.php
|
||||||
|
operation/search_results.php
|
||||||
|
operation/search_users.php
|
||||||
|
extras/pandora_diag.php
|
||||||
|
mobile/operation/agents/monitor_status.php
|
||||||
|
mobile/operation/agents/view_agents.php
|
||||||
|
mobile/operation/agents/view_alerts.php
|
||||||
|
mobile/operation/events/events.php
|
||||||
|
mobile/operation/servers/view_servers.php
|
||||||
|
mobile/include/functions_web.php
|
||||||
|
general/footer.php
|
||||||
|
general/noaccess.php
|
||||||
|
general/logon_ok.php
|
||||||
|
general/main_menu.php
|
||||||
|
general/ui/agents_list.php
|
||||||
|
general/header.php
|
||||||
|
godmode/groups/modu_group_list.php
|
||||||
|
godmode/groups/configure_group.php
|
||||||
|
godmode/groups/configure_modu_group.php
|
||||||
|
godmode/groups/group_list.php
|
||||||
|
godmode/admin_access_logs.php
|
||||||
|
godmode/db/db_main.php
|
||||||
|
godmode/db/db_audit.php
|
||||||
|
godmode/db/db_sanity.php
|
||||||
|
godmode/db/db_refine.php
|
||||||
|
godmode/db/db_info.php
|
||||||
|
godmode/db/db_event.php
|
||||||
|
godmode/db/db_purge.php
|
||||||
|
godmode/extensions.php
|
||||||
|
godmode/agentes/module_manager_editor_common.php
|
||||||
|
godmode/agentes/module_manager_editor_network.php
|
||||||
|
godmode/agentes/fields_manager.php
|
||||||
|
godmode/agentes/module_manager_editor_wmi.php
|
||||||
|
godmode/agentes/module_manager_editor_plugin.php
|
||||||
|
godmode/agentes/module_manager_editor_prediction.php
|
||||||
|
godmode/agentes/agent_conf_gis.php
|
||||||
|
godmode/agentes/module_manager.php
|
||||||
|
godmode/agentes/modificar_agente.php
|
||||||
|
godmode/agentes/configurar_agente.php
|
||||||
|
godmode/agentes/configure_field.php
|
||||||
|
godmode/agentes/module_manager_editor.php
|
||||||
|
godmode/agentes/planned_downtime.php
|
||||||
|
godmode/agentes/manage_config_remote.php
|
||||||
|
godmode/agentes/agent_manager.php
|
||||||
|
godmode/servers/recon_script.php
|
||||||
|
godmode/servers/plugin.php
|
||||||
|
godmode/servers/manage_recontask.php
|
||||||
|
godmode/servers/modificar_server.php
|
||||||
|
godmode/servers/manage_recontask_form.php
|
||||||
|
godmode/alerts/alert_list.list.php
|
||||||
|
godmode/alerts/configure_alert_compound.php
|
||||||
|
godmode/alerts/alert_compounds.php
|
||||||
|
godmode/alerts/alert_list.php
|
||||||
|
godmode/alerts/configure_alert_template.php
|
||||||
|
godmode/alerts/alert_templates.php
|
||||||
|
godmode/alerts/configure_alert_action.php
|
||||||
|
godmode/alerts/configure_alert_command.php
|
||||||
|
godmode/alerts/alert_actions.php
|
||||||
|
godmode/alerts/alert_list.builder.php
|
||||||
|
godmode/alerts/alert_commands.php
|
||||||
|
godmode/setup/file_manager.php
|
||||||
|
godmode/setup/os.list.php
|
||||||
|
godmode/setup/news.php
|
||||||
|
godmode/setup/gis_step_2.php
|
||||||
|
godmode/setup/links.php
|
||||||
|
godmode/setup/setup.php
|
||||||
|
godmode/setup/os.php
|
||||||
|
godmode/setup/performance.php
|
||||||
|
godmode/setup/setup_auth.php
|
||||||
|
godmode/setup/gis.php
|
||||||
|
godmode/setup/os.builder.php
|
||||||
|
godmode/setup/setup_visuals.php
|
||||||
|
godmode/snmpconsole/snmp_alert.php
|
||||||
|
godmode/snmpconsole/snmp_filters.php
|
||||||
|
godmode/users/user_list.php
|
||||||
|
godmode/users/configure_user.php
|
||||||
|
godmode/users/configure_profile.php
|
||||||
|
godmode/gis_maps/configure_gis_map.php
|
||||||
|
godmode/gis_maps/index.php
|
||||||
|
godmode/massive/massive_add_alerts.php
|
||||||
|
godmode/massive/massive_copy_modules.php
|
||||||
|
godmode/massive/massive_delete_agents.php
|
||||||
|
godmode/massive/massive_enable_disable_alerts.php
|
||||||
|
godmode/massive/massive_operations.php
|
||||||
|
godmode/massive/massive_delete_profiles.php
|
||||||
|
godmode/massive/massive_edit_agents.php
|
||||||
|
godmode/massive/massive_delete_action_alerts.php
|
||||||
|
godmode/massive/massive_delete_modules.php
|
||||||
|
godmode/massive/massive_add_profiles.php
|
||||||
|
godmode/massive/massive_delete_alerts.php
|
||||||
|
godmode/massive/massive_edit_modules.php
|
||||||
|
godmode/massive/massive_standby_alerts.php
|
||||||
|
godmode/massive/massive_add_action_alerts.php
|
||||||
|
godmode/modules/manage_network_templates.php
|
||||||
|
godmode/modules/module_list.php
|
||||||
|
godmode/modules/manage_network_components_form_common.php
|
||||||
|
godmode/modules/manage_network_components_form_network.php
|
||||||
|
godmode/modules/manage_network_templates_form.php
|
||||||
|
godmode/modules/manage_network_components_form_wmi.php
|
||||||
|
godmode/modules/manage_network_components.php
|
||||||
|
godmode/modules/manage_nc_groups.php
|
||||||
|
godmode/modules/manage_network_components_form_plugin.php
|
||||||
|
godmode/reporting/reporting_builder.list_items.php
|
||||||
|
godmode/reporting/visual_console_builder.php
|
||||||
|
godmode/reporting/reporting_builder.preview.php
|
||||||
|
godmode/reporting/visual_console_builder.data.php
|
||||||
|
godmode/reporting/visual_console_builder.elements.php
|
||||||
|
godmode/reporting/graph_builder.php
|
||||||
|
godmode/reporting/visual_console_builder.preview.php
|
||||||
|
godmode/reporting/graph_builder.graph_editor.php
|
||||||
|
godmode/reporting/reporting_builder.php
|
||||||
|
godmode/reporting/visual_console_builder.editor.php
|
||||||
|
godmode/reporting/reporting_builder.item_editor.php
|
||||||
|
godmode/reporting/map_builder.php
|
||||||
|
godmode/reporting/graphs.php
|
||||||
|
godmode/reporting/graph_builder.preview.php: Now all functions of
|
||||||
|
include/functions_ui have ui_ prefix.
|
||||||
|
|
||||||
2011-04-13 Miguel de Dios <miguel.dedios@artica.es>
|
2011-04-13 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* include/functions_graph.php, godmode/db/db_info.php,
|
* include/functions_graph.php, godmode/db/db_info.php,
|
||||||
|
@ -49,7 +49,7 @@ function mainAgentsModules() {
|
|||||||
|
|
||||||
|
|
||||||
if ($config["realtimestats"] == 0) {
|
if ($config["realtimestats"] == 0) {
|
||||||
$updated_info = __('Last update'). " : ". print_timestamp (get_db_sql ("SELECT min(utimestamp) FROM tgroup_stat"), true);
|
$updated_info = __('Last update'). " : ". ui_print_timestamp (get_db_sql ("SELECT min(utimestamp) FROM tgroup_stat"), true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$updated_info = __("Updated at realtime");
|
$updated_info = __("Updated at realtime");
|
||||||
@ -67,18 +67,18 @@ function mainAgentsModules() {
|
|||||||
|
|
||||||
$groups = get_user_groups ();
|
$groups = get_user_groups ();
|
||||||
|
|
||||||
$filter_module_groups = '<form method="post" action="'.get_url_refresh (array ('offset' => 0, 'hor_offset' => 0)).'">';
|
$filter_module_groups = '<form method="post" action="' . ui_get_url_refresh (array ('offset' => 0, 'hor_offset' => 0)).'">';
|
||||||
$filter_module_groups .= '<b>'.__('Module group').'</b>';
|
$filter_module_groups .= '<b>'.__('Module group').'</b>';
|
||||||
$filter_module_groups .= print_select_from_sql ("SELECT * FROM tmodule_group ORDER BY name",
|
$filter_module_groups .= 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;');
|
'modulegroup', $modulegroup, 'this.form.submit()',__('All'), 0, true, false, true, false, 'width: 100px; margin-right: 10px; margin-top: 5px;');
|
||||||
$filter_module_groups .= '</form>';
|
$filter_module_groups .= '</form>';
|
||||||
|
|
||||||
$filter_groups = '<form method="post" action="'.get_url_refresh (array ('offset' => 0, 'hor_offset' => 0)).'">';
|
$filter_groups = '<form method="post" action="' . ui_get_url_refresh (array ('offset' => 0, 'hor_offset' => 0)).'">';
|
||||||
$filter_groups .= '<b>'.__('Group').'</b>';
|
$filter_groups .= '<b>'.__('Group').'</b>';
|
||||||
$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 .= 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 .= '</form>';
|
$filter_groups .= '</form>';
|
||||||
|
|
||||||
$comborefr = '<form method="post" action="'.get_url_refresh (array ('offset' => 0, 'hor_offset' => 0)).'">';
|
$comborefr = '<form method="post" action="' . ui_get_url_refresh (array ('offset' => 0, 'hor_offset' => 0)).'">';
|
||||||
$comborefr .= '<b>'.__('Refresh').'</b>';
|
$comborefr .= '<b>'.__('Refresh').'</b>';
|
||||||
$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 .= 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 .= "</form>";
|
$comborefr .= "</form>";
|
||||||
@ -104,7 +104,7 @@ function mainAgentsModules() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__("Agents/Modules"), "images/bricks.png", false, "", false, $onheader);
|
ui_print_page_header (__("Agents/Modules"), "images/bricks.png", false, "", false, $onheader);
|
||||||
|
|
||||||
// Old style table, we need a lot of special formatting,don't use table function
|
// Old style table, we need a lot of special formatting,don't use table function
|
||||||
// Prepare old-style table
|
// Prepare old-style table
|
||||||
@ -174,7 +174,7 @@ function mainAgentsModules() {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$file_name = string2image(printTruncateText($module['name'],15, false, true, false, '...'), 115, 13, 3, 270, '#9EAC8B', 'FFF', 4, 0);
|
$file_name = string2image(ui_print_truncate_text($module['name'],15, false, true, false, '...'), 115, 13, 3, 270, '#9EAC8B', 'FFF', 4, 0);
|
||||||
echo '<th width="22px">'.print_image($file_name, true, array('title' => $module['name']))."</th>";
|
echo '<th width="22px">'.print_image($file_name, true, array('title' => $module['name']))."</th>";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -188,7 +188,7 @@ function mainAgentsModules() {
|
|||||||
$filter_agents = array('id_grupo' => $group_id);
|
$filter_agents = array('id_grupo' => $group_id);
|
||||||
}
|
}
|
||||||
// Prepare pagination
|
// Prepare pagination
|
||||||
pagination ((int)count(get_agents ($filter_agents)));
|
ui_pagination ((int)count(get_agents ($filter_agents)));
|
||||||
echo "<br>";
|
echo "<br>";
|
||||||
|
|
||||||
foreach ($agents as $agent) {
|
foreach ($agents as $agent) {
|
||||||
@ -222,7 +222,7 @@ function mainAgentsModules() {
|
|||||||
|
|
||||||
echo "<tr style='height: 35px;'>";
|
echo "<tr style='height: 35px;'>";
|
||||||
|
|
||||||
$file_name = string2image(printTruncateText($agent['nombre'],19, false, true, false, '...'), 140, 15, 3, 0, $rowcolor, $textcolor, 4, 0);
|
$file_name = string2image(ui_print_truncate_text($agent['nombre'],19, false, true, false, '...'), 140, 15, 3, 0, $rowcolor, $textcolor, 4, 0);
|
||||||
echo "<td style='background-color: ".$rowcolor.";'><a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$agent['id_agente']."'>".print_image($file_name, true, array('title' => $agent['nombre']))."</a></td>";
|
echo "<td style='background-color: ".$rowcolor.";'><a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$agent['id_agente']."'>".print_image($file_name, true, array('title' => $agent['nombre']))."</a></td>";
|
||||||
$agent_modules = get_agent_modules($agent['id_agente']);
|
$agent_modules = get_agent_modules($agent['id_agente']);
|
||||||
|
|
||||||
@ -247,19 +247,19 @@ function mainAgentsModules() {
|
|||||||
echo '<a href="javascript:'.$link.'">';
|
echo '<a href="javascript:'.$link.'">';
|
||||||
switch($status){
|
switch($status){
|
||||||
case 0:
|
case 0:
|
||||||
print_status_image ('module_ok.png', $module['name']." in ".$agent['nombre'].": ".__('NORMAL'), false, array('width' => '20px', 'height' => '20px'));
|
ui_print_status_image ('module_ok.png', $module['name']." in ".$agent['nombre'].": ".__('NORMAL'), false, array('width' => '20px', 'height' => '20px'));
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
print_status_image ('module_critical.png', $module['name']." in ".$agent['nombre'].": ".__('CRITICAL'), false, array('width' => '20px', 'height' => '20px'));
|
ui_print_status_image ('module_critical.png', $module['name']." in ".$agent['nombre'].": ".__('CRITICAL'), false, array('width' => '20px', 'height' => '20px'));
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
print_status_image ('module_warning.png', $module['name']." in ".$agent['nombre'].": ".__('WARNING'), false, array('width' => '20px', 'height' => '20px'));
|
ui_print_status_image ('module_warning.png', $module['name']." in ".$agent['nombre'].": ".__('WARNING'), false, array('width' => '20px', 'height' => '20px'));
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
print_status_image ('module_unknown.png', $module['name']." in ".$agent['nombre'].": ".__('UNKNOWN'), false, array('width' => '20px', 'height' => '20px'));
|
ui_print_status_image ('module_unknown.png', $module['name']." in ".$agent['nombre'].": ".__('UNKNOWN'), false, array('width' => '20px', 'height' => '20px'));
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
print_status_image ('module_alertsfired.png', $module['name']." in ".$agent['nombre'].": ".__('ALERTS FIRED'), false, array('width' => '20px', 'height' => '20px'));
|
ui_print_status_image ('module_alertsfired.png', $module['name']." in ".$agent['nombre'].": ".__('ALERTS FIRED'), false, array('width' => '20px', 'height' => '20px'));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
echo '</a>';
|
echo '</a>';
|
||||||
|
@ -79,7 +79,7 @@ function dbmanager_query ($sql, &$error) {
|
|||||||
|
|
||||||
|
|
||||||
function dbmgr_extension_main () {
|
function dbmgr_extension_main () {
|
||||||
require_css_file ('dbmanager', 'extensions/dbmanager/');
|
ui_require_css_file ('dbmanager', 'extensions/dbmanager/');
|
||||||
|
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
@ -91,7 +91,7 @@ function dbmgr_extension_main () {
|
|||||||
|
|
||||||
$sql = (string) get_parameter ('sql');
|
$sql = (string) get_parameter ('sql');
|
||||||
|
|
||||||
print_page_header (__('Database interface'), "", false, false, true);
|
ui_print_page_header (__('Database interface'), "", false, false, true);
|
||||||
|
|
||||||
echo '<div class="notify">';
|
echo '<div class="notify">';
|
||||||
echo "This is an advanced extension to interface with Pandora FMS database directly from WEB console using native SQL sentences. Please note that <b>you can damage</b> your Pandora FMS installation if you don't know </b>exactly</b> what are you are doing, this means that you can severily damage your setup using this extension. This extension is intended to be used <b>only by experienced users</b> with a depth knowledge of Pandora FMS internals.";
|
echo "This is an advanced extension to interface with Pandora FMS database directly from WEB console using native SQL sentences. Please note that <b>you can damage</b> your Pandora FMS installation if you don't know </b>exactly</b> what are you are doing, this means that you can severily damage your setup using this extension. This extension is intended to be used <b>only by experienced users</b> with a depth knowledge of Pandora FMS internals.";
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
function extension_uploader_extensions() {
|
function extension_uploader_extensions() {
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
print_page_header (__("Uploader extension"), "images/extensions.png", false, "", true, "");
|
ui_print_page_header (__("Uploader extension"), "images/extensions.png", false, "", true, "");
|
||||||
|
|
||||||
$upload = (bool)get_parameter('upload', 0);
|
$upload = (bool)get_parameter('upload', 0);
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ function extension_uploader_extensions() {
|
|||||||
pandora_audit ("Extension manager", "Upload extension " . $_FILES['extension']['name']);
|
pandora_audit ("Extension manager", "Upload extension " . $_FILES['extension']['name']);
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message ($result, __('Success to upload extension'),
|
ui_print_result_message ($result, __('Success to upload extension'),
|
||||||
__('Fail to upload extension'));
|
__('Fail to upload extension'));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ function extension_uploader_extensions() {
|
|||||||
$table->data = array();
|
$table->data = array();
|
||||||
$table->data[0][0] = __('Upload extension');
|
$table->data[0][0] = __('Upload extension');
|
||||||
$table->data[0][1] = print_input_file('extension', true) .
|
$table->data[0][1] = print_input_file('extension', true) .
|
||||||
print_help_tip (__("Upload the extension as a zip file."), true);
|
ui_print_help_tip (__("Upload the extension as a zip file."), true);
|
||||||
|
|
||||||
echo "<form method='post' enctype='multipart/form-data'>";
|
echo "<form method='post' enctype='multipart/form-data'>";
|
||||||
print_table($table);
|
print_table($table);
|
||||||
|
@ -35,17 +35,17 @@ function createXMLData($agent, $agentModule, $time, $data) {
|
|||||||
safe_output($agentModule['nombre']), safe_output($agentModule['descripcion']), get_module_type_name($agentModule['id_tipo_modulo']), $data);
|
safe_output($agentModule['nombre']), safe_output($agentModule['descripcion']), get_module_type_name($agentModule['id_tipo_modulo']), $data);
|
||||||
|
|
||||||
if (false === @file_put_contents($config['remote_config'] . '/' . safe_output($agent['nombre']) . '.' . strtotime($time) . '.data', $xml)) {
|
if (false === @file_put_contents($config['remote_config'] . '/' . safe_output($agent['nombre']) . '.' . strtotime($time) . '.data', $xml)) {
|
||||||
print_error_message(sprintf(__('Can\'t save agent (%s), module (%s) data xml.'), $agent['nombre'], $agentModule['nombre']));
|
ui_print_error_message(sprintf(__('Can\'t save agent (%s), module (%s) data xml.'), $agent['nombre'], $agentModule['nombre']));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
print_success_message(sprintf(__('Save agent (%s), module (%s) data xml.'), $agent['nombre'], $agentModule['nombre']));
|
ui_print_success_message(sprintf(__('Save agent (%s), module (%s) data xml.'), $agent['nombre'], $agentModule['nombre']));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function mainInsertData() {
|
function mainInsertData() {
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
print_page_header (__("Insert data"), "images/extensions.png", false, "", true, "");
|
ui_print_page_header (__("Insert data"), "images/extensions.png", false, "", true, "");
|
||||||
|
|
||||||
if (! check_acl ($config['id_user'], 0, "AW") && ! is_user_admin ($config['id_user'])) {
|
if (! check_acl ($config['id_user'], 0, "AW") && ! is_user_admin ($config['id_user'])) {
|
||||||
pandora_audit("ACL Violation", "Trying to access Setup Management");
|
pandora_audit("ACL Violation", "Trying to access Setup Management");
|
||||||
@ -74,7 +74,7 @@ function mainInsertData() {
|
|||||||
|
|
||||||
if ($save) {
|
if ($save) {
|
||||||
if (!check_acl($config['id_user'], get_agent_group(get_agent_id($id_agent)), "AW")) {
|
if (!check_acl($config['id_user'], get_agent_group(get_agent_id($id_agent)), "AW")) {
|
||||||
print_error_message(__('You haven\'t privileges for insert data in the agent.'));
|
ui_print_error_message(__('You haven\'t privileges for insert data in the agent.'));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$agent = get_db_row_filter('tagente', array('nombre' => $id_agent));
|
$agent = get_db_row_filter('tagente', array('nombre' => $id_agent));
|
||||||
@ -138,11 +138,11 @@ function mainInsertData() {
|
|||||||
|
|
||||||
echo "</form>";
|
echo "</form>";
|
||||||
|
|
||||||
require_css_file ('datepicker');
|
ui_require_css_file ('datepicker');
|
||||||
require_jquery_file ('ui.core');
|
ui_require_jquery_file ('ui.core');
|
||||||
require_jquery_file ('ui.datepicker');
|
ui_require_jquery_file ('ui.datepicker');
|
||||||
require_jquery_file ('timeentry');
|
ui_require_jquery_file ('timeentry');
|
||||||
require_jquery_file ('autocomplete');
|
ui_require_jquery_file ('autocomplete');
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
/* <![CDATA[ */
|
/* <![CDATA[ */
|
||||||
|
@ -116,7 +116,7 @@ function mainModuleGroups() {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
print_page_header (__("Combined table of agent group and module group"));
|
ui_print_page_header (__("Combined table of agent group and module group"));
|
||||||
|
|
||||||
echo "<p>" . __("This table shows in columns the modules group and in rows agents group. The cell shows all modules") . "</p>";
|
echo "<p>" . __("This table shows in columns the modules group and in rows agents group. The cell shows all modules") . "</p>";
|
||||||
|
|
||||||
@ -126,7 +126,7 @@ function mainModuleGroups() {
|
|||||||
array_walk($modelGroups, 'translate'); //Translate all head titles to language is set
|
array_walk($modelGroups, 'translate'); //Translate all head titles to language is set
|
||||||
|
|
||||||
foreach ($modelGroups as $i => $n) {
|
foreach ($modelGroups as $i => $n) {
|
||||||
$modelGroups[$i] = printTruncateText($n, 20);
|
$modelGroups[$i] = ui_print_truncate_text($n, 20);
|
||||||
}
|
}
|
||||||
|
|
||||||
$head = $modelGroups;
|
$head = $modelGroups;
|
||||||
@ -149,7 +149,7 @@ function mainModuleGroups() {
|
|||||||
|
|
||||||
$row = array();
|
$row = array();
|
||||||
|
|
||||||
array_push($row, printTruncateText($name, 20));
|
array_push($row, ui_print_truncate_text($name, 20));
|
||||||
|
|
||||||
foreach ($modelGroups as $idModelGroup => $modelGroup) {
|
foreach ($modelGroups as $idModelGroup => $modelGroup) {
|
||||||
$query = sprintf($sql,$idAgentGroup, $idModelGroup);
|
$query = sprintf($sql,$idAgentGroup, $idModelGroup);
|
||||||
@ -257,8 +257,8 @@ function mainModuleGroups() {
|
|||||||
"</ul>" .
|
"</ul>" .
|
||||||
"</p>";
|
"</p>";
|
||||||
|
|
||||||
require_css_file('cluetip');
|
ui_require_css_file('cluetip');
|
||||||
require_jquery_file('cluetip');
|
ui_require_jquery_file('cluetip');
|
||||||
?>
|
?>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready (function () {
|
$(document).ready (function () {
|
||||||
|
@ -47,7 +47,7 @@ function pandoralogs_extension_main () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
print_page_header (__("System logfile viewer"), "images/extensions.png", false, "", true, "" );
|
ui_print_page_header (__("System logfile viewer"), "images/extensions.png", false, "", true, "" );
|
||||||
|
|
||||||
echo "<p>" . __('This tool is used just to view your Pandora FMS system logfiles directly from console') . "</p>";
|
echo "<p>" . __('This tool is used just to view your Pandora FMS system logfiles directly from console') . "</p>";
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ function pluginreg_extension_main () {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
print_page_header (__('Plugin registration'), "images/extensions.png", false, "", true, "" );
|
ui_print_page_header (__('Plugin registration'), "images/extensions.png", false, "", true, "" );
|
||||||
|
|
||||||
echo "<div class=notify>";
|
echo "<div class=notify>";
|
||||||
printf(__("This extension makes registration of server plugins more easy. Here you can upload a server plugin in Pandora FMS 3.x zipped format (.pspz). Please refer to documentation on how to obtain and use Pandora FMS Server Plugins.<br><br>You can get more plugins in our <a href='%s'>Public Resource Library</a>") , "http://pandorafms.org/index.php?sec=community&sec2=repository&lng=en");
|
printf(__("This extension makes registration of server plugins more easy. Here you can upload a server plugin in Pandora FMS 3.x zipped format (.pspz). Please refer to documentation on how to obtain and use Pandora FMS Server Plugins.<br><br>You can get more plugins in our <a href='%s'>Public Resource Library</a>") , "http://pandorafms.org/index.php?sec=community&sec2=repository&lng=en");
|
||||||
|
@ -333,7 +333,7 @@ function resource_exportation_extension_main() {
|
|||||||
|
|
||||||
$hook_enterprise = enterprise_include ('extensions/resource_exportation/functions.php');
|
$hook_enterprise = enterprise_include ('extensions/resource_exportation/functions.php');
|
||||||
|
|
||||||
print_page_header (__('Resource exportation'), "images/extensions.png", false, "", true, "" );
|
ui_print_page_header (__('Resource exportation'), "images/extensions.png", false, "", true, "" );
|
||||||
|
|
||||||
echo "<div class=notify>";
|
echo "<div class=notify>";
|
||||||
echo __("This extension makes exportation of resource template more easy. " .
|
echo __("This extension makes exportation of resource template more easy. " .
|
||||||
|
@ -36,7 +36,7 @@ function insert_item_report($report_id, $values) {
|
|||||||
$values['id_report'] = $id;
|
$values['id_report'] = $id;
|
||||||
$result = (bool)process_sql_insert('treport_content', $values);
|
$result = (bool)process_sql_insert('treport_content', $values);
|
||||||
|
|
||||||
print_result_message($result,
|
ui_print_result_message($result,
|
||||||
sprintf(__("Success add '%s' item in report '%s'."), $values['type'], $name),
|
sprintf(__("Success add '%s' item in report '%s'."), $values['type'], $name),
|
||||||
sprintf(__("Error create '%s' item in report '%s'."), $values['type'], $name));
|
sprintf(__("Error create '%s' item in report '%s'."), $values['type'], $name));
|
||||||
}
|
}
|
||||||
@ -63,14 +63,14 @@ function process_upload_xml_report($xml, $group_filter = 0) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($exist) {
|
if ($exist) {
|
||||||
print_error_message(
|
ui_print_error_message(
|
||||||
sprintf(
|
sprintf(
|
||||||
__("Error create '%s' report, the name exist and there aren't free name."),
|
__("Error create '%s' report, the name exist and there aren't free name."),
|
||||||
$reportElement->name));
|
$reportElement->name));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if ($loops != 30) {
|
else if ($loops != 30) {
|
||||||
print_error_message(
|
ui_print_error_message(
|
||||||
sprintf(
|
sprintf(
|
||||||
__("Warning create '%s' report, the name exist, the report have a name %s."),
|
__("Warning create '%s' report, the name exist, the report have a name %s."),
|
||||||
$reportElement->name, $posible_name));
|
$reportElement->name, $posible_name));
|
||||||
@ -79,13 +79,13 @@ function process_upload_xml_report($xml, $group_filter = 0) {
|
|||||||
$values['name'] = safe_input($posible_name);
|
$values['name'] = safe_input($posible_name);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
print_error_message(__("Error the report haven't name."));
|
ui_print_error_message(__("Error the report haven't name."));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$id_group = get_db_value('id_grupo', 'tgrupo', 'nombre', $reportElement->group);
|
$id_group = get_db_value('id_grupo', 'tgrupo', 'nombre', $reportElement->group);
|
||||||
if ($id_group === false) {
|
if ($id_group === false) {
|
||||||
print_error_message(__("Error the report haven't group."));
|
ui_print_error_message(__("Error the report haven't group."));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -94,7 +94,7 @@ function process_upload_xml_report($xml, $group_filter = 0) {
|
|||||||
|
|
||||||
$id_report = process_sql_insert ('treport', $values);
|
$id_report = process_sql_insert ('treport', $values);
|
||||||
|
|
||||||
print_result_message($id_report,
|
ui_print_result_message($id_report,
|
||||||
sprintf(__("Success create '%s' report."), $posible_name),
|
sprintf(__("Success create '%s' report."), $posible_name),
|
||||||
sprintf(__("Error create '%s' report."), $posible_name));
|
sprintf(__("Error create '%s' report."), $posible_name));
|
||||||
|
|
||||||
@ -319,7 +319,7 @@ function process_upload_xml_report($xml, $group_filter = 0) {
|
|||||||
|
|
||||||
if (empty($agents_item)) {
|
if (empty($agents_item)) {
|
||||||
$id_content = process_sql_insert ('treport_content', $values);
|
$id_content = process_sql_insert ('treport_content', $values);
|
||||||
print_result_message($id_content,
|
ui_print_result_message($id_content,
|
||||||
sprintf(__("Success add '%s' content."), $values['type']),
|
sprintf(__("Success add '%s' content."), $values['type']),
|
||||||
sprintf(__("Error add '%s' action."), $values['type']));
|
sprintf(__("Error add '%s' action."), $values['type']));
|
||||||
|
|
||||||
@ -327,7 +327,7 @@ function process_upload_xml_report($xml, $group_filter = 0) {
|
|||||||
foreach ($slas as $sla) {
|
foreach ($slas as $sla) {
|
||||||
$sla['id_report_content'] = $id_content;
|
$sla['id_report_content'] = $id_content;
|
||||||
$result = process_sql_insert ('treport_content_sla_combined', $sla);
|
$result = process_sql_insert ('treport_content_sla_combined', $sla);
|
||||||
print_result_message($result,
|
ui_print_result_message($result,
|
||||||
sprintf(__("Success add '%s' SLA."), $sla['id_agent_module']),
|
sprintf(__("Success add '%s' SLA."), $sla['id_agent_module']),
|
||||||
sprintf(__("Error add '%s' SLA."), $sla['id_agent_module']));
|
sprintf(__("Error add '%s' SLA."), $sla['id_agent_module']));
|
||||||
|
|
||||||
@ -340,7 +340,7 @@ function process_upload_xml_report($xml, $group_filter = 0) {
|
|||||||
if (empty($agent['modules'])) {
|
if (empty($agent['modules'])) {
|
||||||
$values['id_agent'] = $id_agent;
|
$values['id_agent'] = $id_agent;
|
||||||
$id_content = process_sql_insert ('treport_content', $values);
|
$id_content = process_sql_insert ('treport_content', $values);
|
||||||
print_result_message($id_content,
|
ui_print_result_message($id_content,
|
||||||
sprintf(__("Success add '%s' content."), $values['type']),
|
sprintf(__("Success add '%s' content."), $values['type']),
|
||||||
sprintf(__("Error add '%s' action."), $values['type']));
|
sprintf(__("Error add '%s' action."), $values['type']));
|
||||||
}
|
}
|
||||||
@ -350,7 +350,7 @@ function process_upload_xml_report($xml, $group_filter = 0) {
|
|||||||
$values['id_agent'] = $id_agent;
|
$values['id_agent'] = $id_agent;
|
||||||
|
|
||||||
$id_content = process_sql_insert ('treport_content', $values);
|
$id_content = process_sql_insert ('treport_content', $values);
|
||||||
print_result_message($id_content,
|
ui_print_result_message($id_content,
|
||||||
sprintf(__("Success add '%s' content."), $values['type']),
|
sprintf(__("Success add '%s' content."), $values['type']),
|
||||||
sprintf(__("Error add '%s' action."), $values['type']));
|
sprintf(__("Error add '%s' action."), $values['type']));
|
||||||
}
|
}
|
||||||
@ -369,7 +369,7 @@ function process_upload_xml_visualmap($xml, $filter_group = 0) {
|
|||||||
$values['name'] = (string)$visual_map->name;
|
$values['name'] = (string)$visual_map->name;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
print_error_message(
|
ui_print_error_message(
|
||||||
__("Error create '%s' visual map, lost tag name."));
|
__("Error create '%s' visual map, lost tag name."));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -404,14 +404,14 @@ function process_upload_xml_visualmap($xml, $filter_group = 0) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($exist) {
|
if ($exist) {
|
||||||
print_error_message(
|
ui_print_error_message(
|
||||||
sprintf(
|
sprintf(
|
||||||
__("Error create '%s' visual map, the name exist and there aren't free name."),
|
__("Error create '%s' visual map, the name exist and there aren't free name."),
|
||||||
$values['name']));
|
$values['name']));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else if ($loops != 30) {
|
else if ($loops != 30) {
|
||||||
print_error_message(
|
ui_print_error_message(
|
||||||
sprintf(
|
sprintf(
|
||||||
__("Warning create '%s' visual map, the name exist, the report have a name %s."),
|
__("Warning create '%s' visual map, the name exist, the report have a name %s."),
|
||||||
$values['name'], $posible_name));
|
$values['name'], $posible_name));
|
||||||
@ -420,7 +420,7 @@ function process_upload_xml_visualmap($xml, $filter_group = 0) {
|
|||||||
$values['name'] = safe_input($posible_name);
|
$values['name'] = safe_input($posible_name);
|
||||||
$id_visual_map = process_sql_insert('tlayout', $values);
|
$id_visual_map = process_sql_insert('tlayout', $values);
|
||||||
|
|
||||||
print_result_message((bool)$id_visual_map,
|
ui_print_result_message((bool)$id_visual_map,
|
||||||
sprintf(__("Success create '%s' visual map."), $posible_name),
|
sprintf(__("Success create '%s' visual map."), $posible_name),
|
||||||
sprintf(__("Error create '%s' visual map."), $posible_name));
|
sprintf(__("Error create '%s' visual map."), $posible_name));
|
||||||
|
|
||||||
@ -529,7 +529,7 @@ function process_upload_xml_visualmap($xml, $filter_group = 0) {
|
|||||||
if ($no_agents) {
|
if ($no_agents) {
|
||||||
$id_item = process_sql_insert('tlayout_data', $values);
|
$id_item = process_sql_insert('tlayout_data', $values);
|
||||||
|
|
||||||
print_result_message((bool)$id_item,
|
ui_print_result_message((bool)$id_item,
|
||||||
sprintf(__("Success create item type '%d' visual map."), $values['type']),
|
sprintf(__("Success create item type '%d' visual map."), $values['type']),
|
||||||
sprintf(__("Error create item type '%d' visual map."), $values['type']));
|
sprintf(__("Error create item type '%d' visual map."), $values['type']));
|
||||||
|
|
||||||
@ -548,7 +548,7 @@ function process_upload_xml_visualmap($xml, $filter_group = 0) {
|
|||||||
$relation_other_ids[(string)$item->other_id] = $id_item;
|
$relation_other_ids[(string)$item->other_id] = $id_item;
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message((bool)$id_item,
|
ui_print_result_message((bool)$id_item,
|
||||||
sprintf(__("Success create item for agent '%s' visual map."), $agent['name']),
|
sprintf(__("Success create item for agent '%s' visual map."), $agent['name']),
|
||||||
sprintf(__("Error create item for agent '%s' visual map."), $agent['name']));
|
sprintf(__("Error create item for agent '%s' visual map."), $agent['name']));
|
||||||
|
|
||||||
@ -563,7 +563,7 @@ function process_upload_xml_visualmap($xml, $filter_group = 0) {
|
|||||||
|
|
||||||
process_sql_insert('tlayout_data', $values);
|
process_sql_insert('tlayout_data', $values);
|
||||||
|
|
||||||
print_result_message((bool)$id_item,
|
ui_print_result_message((bool)$id_item,
|
||||||
sprintf(__("Success create item for agent '%s' visual map."), $agent['name']),
|
sprintf(__("Success create item for agent '%s' visual map."), $agent['name']),
|
||||||
sprintf(__("Error create item for agent '%s' visual map."), $agent['name']));
|
sprintf(__("Error create item for agent '%s' visual map."), $agent['name']));
|
||||||
|
|
||||||
@ -759,7 +759,7 @@ function process_upload_xml_component($xml) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message((bool)$idComponent, sprintf(__("Success create '%s' component."), $name),
|
ui_print_result_message((bool)$idComponent, sprintf(__("Success create '%s' component."), $name),
|
||||||
sprintf(__("Error create '%s' component."), $name));
|
sprintf(__("Error create '%s' component."), $name));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -816,10 +816,10 @@ function resource_registration_extension_main() {
|
|||||||
require_once($config['homedir'] . '/include/functions_db.php');
|
require_once($config['homedir'] . '/include/functions_db.php');
|
||||||
enterprise_include_once('include/functions_local_components.php');
|
enterprise_include_once('include/functions_local_components.php');
|
||||||
|
|
||||||
print_page_header (__('Resource registration'), "images/extensions.png", false, "", true, "" );
|
ui_print_page_header (__('Resource registration'), "images/extensions.png", false, "", true, "" );
|
||||||
|
|
||||||
if (!extension_loaded("libxml")) {
|
if (!extension_loaded("libxml")) {
|
||||||
print_error_message(_("Error, please install the PHP libXML in the system."));
|
ui_print_error_message(_("Error, please install the PHP libXML in the system."));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -253,7 +253,7 @@ function mainSystemInfo() {
|
|||||||
$log_info = (bool) get_parameter('log_info', 0);
|
$log_info = (bool) get_parameter('log_info', 0);
|
||||||
$log_num_lines = (int) get_parameter('log_num_lines', 2000);
|
$log_num_lines = (int) get_parameter('log_num_lines', 2000);
|
||||||
|
|
||||||
print_page_header (__("System Info"), "images/extensions.png", false, "", true, "" );
|
ui_print_page_header (__("System Info"), "images/extensions.png", false, "", true, "" );
|
||||||
|
|
||||||
echo '<div class="notify">';
|
echo '<div class="notify">';
|
||||||
echo __("This extension can run as PHP script in a shell for extract more information, but it must be run as root or across sudo. For example: <i>sudo php /var/www/pandora_console/extensions/system_info.php -d -s -c</i>");
|
echo __("This extension can run as PHP script in a shell for extract more information, but it must be run as root or across sudo. For example: <i>sudo php /var/www/pandora_console/extensions/system_info.php -d -s -c</i>");
|
||||||
|
@ -23,7 +23,7 @@ um_db_connect ('mysql', $config['dbhost'], $config['dbuser'],
|
|||||||
$settings = um_db_load_settings ();
|
$settings = um_db_load_settings ();
|
||||||
$error = '';
|
$error = '';
|
||||||
|
|
||||||
print_page_header (__('Update manager'), "images/extensions.png", false, "", false, "" );
|
ui_print_page_header (__('Update manager'), "images/extensions.png", false, "", false, "" );
|
||||||
|
|
||||||
if ($settings->customer_key == FREE_USER) {
|
if ($settings->customer_key == FREE_USER) {
|
||||||
echo '<div class="notify" style="width: 80%; text-align:left;" >';
|
echo '<div class="notify" style="width: 80%; text-align:left;" >';
|
||||||
|
@ -27,7 +27,7 @@ um_db_connect ('mysql', $config['dbhost'], $config['dbuser'],
|
|||||||
|
|
||||||
$update_settings = (bool) get_parameter_post ('update_settings');
|
$update_settings = (bool) get_parameter_post ('update_settings');
|
||||||
|
|
||||||
print_page_header (__('Update manager').' - '. __('Settings'), "images/extensions.png", false, "", true, "" );
|
ui_print_page_header (__('Update manager').' - '. __('Settings'), "images/extensions.png", false, "", true, "" );
|
||||||
|
|
||||||
if ($update_settings) {
|
if ($update_settings) {
|
||||||
foreach ($_POST['keys'] as $key => $value) {
|
foreach ($_POST['keys'] as $key => $value) {
|
||||||
|
@ -28,7 +28,7 @@ function users_extension_main_god ($god = true) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__("Users connected"), "images/extensions.png", false, "", $god);
|
ui_print_page_header (__("Users connected"), "images/extensions.png", false, "", $god);
|
||||||
|
|
||||||
switch ($config["dbtype"]) {
|
switch ($config["dbtype"]) {
|
||||||
case "mysql":
|
case "mysql":
|
||||||
|
@ -87,7 +87,7 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Pandora FMS Diagnostic tool'), "", false, "", true);
|
ui_print_page_header (__('Pandora FMS Diagnostic tool'), "", false, "", true);
|
||||||
|
|
||||||
echo "<table with='600px' cellpadding='4' cellspacing='4'>";
|
echo "<table with='600px' cellpadding='4' cellspacing='4'>";
|
||||||
echo "<tr><th align=left>".__("Item")."</th>";
|
echo "<tr><th align=left>".__("Item")."</th>";
|
||||||
|
@ -28,7 +28,7 @@ if (! file_exists ($config["homedir"] . $license_file)) {
|
|||||||
echo '<a class="white_bold" target="_blank" href="' . $config["homeurl"] . $license_file. '">';
|
echo '<a class="white_bold" target="_blank" href="' . $config["homeurl"] . $license_file. '">';
|
||||||
echo sprintf(__('Pandora FMS %s - Build %s', $pandora_version, $build_version));
|
echo sprintf(__('Pandora FMS %s - Build %s', $pandora_version, $build_version));
|
||||||
echo '</a><br />';
|
echo '</a><br />';
|
||||||
echo '<a class="white">'. __('Page generated at') . ' '. print_timestamp ($time, true, array ("prominent" => "timestamp")); //Always use timestamp here
|
echo '<a class="white">'. __('Page generated at') . ' '. ui_print_timestamp ($time, true, array ("prominent" => "timestamp")); //Always use timestamp here
|
||||||
echo '</a>';
|
echo '</a>';
|
||||||
if (isset ($config['debug'])) {
|
if (isset ($config['debug'])) {
|
||||||
echo ' - Saved '.format_numeric ($sql_cache["saved"]).' Queries';
|
echo ' - Saved '.format_numeric ($sql_cache["saved"]).' Queries';
|
||||||
|
@ -48,9 +48,9 @@ $msg_cnt = 0;
|
|||||||
if ($msg_cnt > 0) {
|
if ($msg_cnt > 0) {
|
||||||
echo '<div id="dialog_messages" style="display: none"></div>';
|
echo '<div id="dialog_messages" style="display: none"></div>';
|
||||||
|
|
||||||
require_css_file ('dialog');
|
ui_require_css_file ('dialog');
|
||||||
require_jquery_file ('ui.core');
|
ui_require_jquery_file ('ui.core');
|
||||||
require_jquery_file ('ui.dialog');
|
ui_require_jquery_file ('ui.dialog');
|
||||||
echo '<a href="ajax.php?page=operation/messages/message" id="show_messages_dialog">';
|
echo '<a href="ajax.php?page=operation/messages/message" id="show_messages_dialog">';
|
||||||
print_image ("images/email.png", false,
|
print_image ("images/email.png", false,
|
||||||
array ("title" => __('You have %d unread message(s)', $msg_cnt), "id" => "yougotmail", "class" => "bot"));
|
array ("title" => __('You have %d unread message(s)', $msg_cnt), "id" => "yougotmail", "class" => "bot"));
|
||||||
@ -98,13 +98,13 @@ $msg_cnt = 0;
|
|||||||
$ignored_params = array ('agent_config' => false, 'code' => false);
|
$ignored_params = array ('agent_config' => false, 'code' => false);
|
||||||
if ($config["refr"]) {
|
if ($config["refr"]) {
|
||||||
$ignored_params['refr'] = 0;
|
$ignored_params['refr'] = 0;
|
||||||
echo '<a id="autorefresh" class="white_grey_bold" href="'.get_url_refresh ($ignored_params).'">' . print_image("images/page_refresh.png", true, array("class" => 'bot', "alt" => 'lightning')) . ' '. __('Autorefresh');
|
echo '<a id="autorefresh" class="white_grey_bold" href="' . ui_get_url_refresh ($ignored_params).'">' . print_image("images/page_refresh.png", true, array("class" => 'bot', "alt" => 'lightning')) . ' '. __('Autorefresh');
|
||||||
echo ' (<span id="refrcounter">'.date ("i:s", $config["refr"]).'</span>)';
|
echo ' (<span id="refrcounter">'.date ("i:s", $config["refr"]).'</span>)';
|
||||||
echo '</a>';
|
echo '</a>';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$ignored_params['refr'] = '';
|
$ignored_params['refr'] = '';
|
||||||
echo '<a id="autorefresh" class="white_bold" href="'.get_url_refresh ($ignored_params).'">' . print_image("images/page_refresh.png", true, array("class" => 'bot', "alt" => 'lightning')) . ' '. __('Autorefresh');
|
echo '<a id="autorefresh" class="white_bold" href="' . ui_get_url_refresh ($ignored_params).'">' . print_image("images/page_refresh.png", true, array("class" => 'bot', "alt" => 'lightning')) . ' '. __('Autorefresh');
|
||||||
$values = array (
|
$values = array (
|
||||||
'5' => '5 '.__('seconds'),
|
'5' => '5 '.__('seconds'),
|
||||||
'10' => '10 '.__('seconds'),
|
'10' => '10 '.__('seconds'),
|
||||||
@ -167,7 +167,7 @@ if ($config["metaconsole"] == 0){
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<?php
|
<?php
|
||||||
require_jquery_file ('countdown');
|
ui_require_jquery_file ('countdown');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script language="javascript" type="text/javascript">
|
<script language="javascript" type="text/javascript">
|
||||||
|
@ -28,7 +28,7 @@ extensions_call_login_function ();
|
|||||||
require_once ("include/functions_reporting.php");
|
require_once ("include/functions_reporting.php");
|
||||||
require_once ($config["homedir"] . '/include/functions_graph.php');
|
require_once ($config["homedir"] . '/include/functions_graph.php');
|
||||||
|
|
||||||
print_page_header (__('Welcome to Pandora FMS Web Console'));
|
ui_print_page_header (__('Welcome to Pandora FMS Web Console'));
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// Site news !
|
// Site news !
|
||||||
@ -51,7 +51,7 @@ if ($news !== false) {
|
|||||||
echo '<table cellpadding="4" cellspacing="4" class="databox">';
|
echo '<table cellpadding="4" cellspacing="4" class="databox">';
|
||||||
foreach ($news as $article) {
|
foreach ($news as $article) {
|
||||||
echo '<tr><th><b>'.$article["subject"].'</b></th></tr>';
|
echo '<tr><th><b>'.$article["subject"].'</b></th></tr>';
|
||||||
echo '<tr><td>'.__('by').' <b>'.$article["author"].'</b> '.__('at').' <i>'.print_timestamp ($article["timestamp"], true).'</i></td></tr>';
|
echo '<tr><td>'.__('by').' <b>'.$article["author"].'</b> '.__('at').' <i>' . ui_print_timestamp ($article["timestamp"], true).'</i></td></tr>';
|
||||||
echo '<tr><td class="datos">';
|
echo '<tr><td class="datos">';
|
||||||
echo nl2br ($article["text"]);
|
echo nl2br ($article["text"]);
|
||||||
echo '</td></tr>';
|
echo '</td></tr>';
|
||||||
|
@ -28,7 +28,7 @@ require ("godmode/menu.php");
|
|||||||
|
|
||||||
require ("links_menu.php");
|
require ("links_menu.php");
|
||||||
|
|
||||||
require_jquery_file ('cookie');
|
ui_require_jquery_file ('cookie');
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript" language="javascript">
|
<script type="text/javascript" language="javascript">
|
||||||
/* <![CDATA[ */
|
/* <![CDATA[ */
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
// GNU General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
if (file_exists("images/noaccess.png")){
|
if (file_exists("images/noaccess.png")){
|
||||||
print_page_header (__('You don\'t have access to this page'), "", false, "", true);
|
ui_print_page_header (__('You don\'t have access to this page'), "", false, "", true);
|
||||||
} else {
|
} else {
|
||||||
echo "<br><br><center><h3>".__('You don\'t have access to this page')."</h3></center>";
|
echo "<br><br><center><h3>".__('You don\'t have access to this page')."</h3></center>";
|
||||||
}
|
}
|
||||||
|
@ -92,7 +92,7 @@ if ($show_filter_form) {
|
|||||||
echo '</div>';
|
echo '</div>';
|
||||||
echo '</form>';
|
echo '</form>';
|
||||||
|
|
||||||
require_jquery_file ('form');
|
ui_require_jquery_file ('form');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! isset ($filter) || ! is_array ($filter))
|
if (! isset ($filter) || ! is_array ($filter))
|
||||||
@ -123,7 +123,7 @@ if (! is_ajax ()) {
|
|||||||
|
|
||||||
echo '<div id="agents_list"'.($agents === false ? ' class="invisible"' : '').'">';
|
echo '<div id="agents_list"'.($agents === false ? ' class="invisible"' : '').'">';
|
||||||
echo '<div id="no_agents"'.($agents === false ? '' : ' class="invisible"').'>';
|
echo '<div id="no_agents"'.($agents === false ? '' : ' class="invisible"').'>';
|
||||||
print_error_message (__('No agents found'));
|
ui_print_error_message (__('No agents found'));
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
$table->width = '90%';
|
$table->width = '90%';
|
||||||
@ -147,7 +147,7 @@ if ($agents !== false) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo '<div id="agents"'.($agents === false ? ' class="invisible"' : '').'>';
|
echo '<div id="agents"'.($agents === false ? ' class="invisible"' : '').'>';
|
||||||
pagination ($total_agents, '#');
|
ui_pagination ($total_agents, '#');
|
||||||
print_table ($table);
|
print_table ($table);
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
@ -32,7 +32,7 @@ if (! check_acl ($config['id_user'], 0, "PM")) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
print_page_header (__('Pandora audit')." » ".__('Review Logs'), "", false, "", true );
|
ui_print_page_header (__('Pandora audit')." » ".__('Review Logs'), "", false, "", true );
|
||||||
|
|
||||||
$offset = get_parameter ("offset", 0);
|
$offset = get_parameter ("offset", 0);
|
||||||
$tipo_log = get_parameter ("tipo_log", 'all');
|
$tipo_log = get_parameter ("tipo_log", 'all');
|
||||||
@ -136,7 +136,7 @@ $sql = "SELECT COUNT(*) FROM tsesion " . $filter;
|
|||||||
$count = get_db_sql ($sql);
|
$count = get_db_sql ($sql);
|
||||||
$url = "index.php?sec=godmode&sec2=godmode/admin_access_logs&tipo_log=".$tipo_log;
|
$url = "index.php?sec=godmode&sec2=godmode/admin_access_logs&tipo_log=".$tipo_log;
|
||||||
|
|
||||||
pagination ($count, $url);
|
ui_pagination ($count, $url);
|
||||||
|
|
||||||
switch ($config["dbtype"]) {
|
switch ($config["dbtype"]) {
|
||||||
case "mysql":
|
case "mysql":
|
||||||
|
@ -21,7 +21,7 @@ if (!isset ($id_agente)) {
|
|||||||
require_once ('include/functions_gis.php');
|
require_once ('include/functions_gis.php');
|
||||||
require_once ('include/functions_html.php');
|
require_once ('include/functions_html.php');
|
||||||
|
|
||||||
require_javascript_file('openlayers.pandora');
|
ui_require_javascript_file('openlayers.pandora');
|
||||||
|
|
||||||
echo "<div style='margin-bottom: 10px;'></div>";
|
echo "<div style='margin-bottom: 10px;'></div>";
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ enterprise_include ('godmode/agentes/agent_manager.php');
|
|||||||
require_once ('include/functions_servers.php');
|
require_once ('include/functions_servers.php');
|
||||||
require_once ('include/functions_gis.php');
|
require_once ('include/functions_gis.php');
|
||||||
|
|
||||||
require_javascript_file('openlayers.pandora');
|
ui_require_javascript_file('openlayers.pandora');
|
||||||
|
|
||||||
$new_agent = (bool) get_parameter ('new_agent');
|
$new_agent = (bool) get_parameter ('new_agent');
|
||||||
|
|
||||||
@ -96,7 +96,7 @@ $table->style[0] = 'font-weight: bold; width: 150px;';
|
|||||||
$table->data = array ();
|
$table->data = array ();
|
||||||
|
|
||||||
$table->data[0][0] = __('Agent name') .
|
$table->data[0][0] = __('Agent name') .
|
||||||
print_help_tip (__("The agent's name must be the same as the one defined at the console"), true);
|
ui_print_help_tip (__("The agent's name must be the same as the one defined at the console"), true);
|
||||||
$table->data[0][1] = print_input_text ('agente', $nombre_agente, '', 30, 100,true);
|
$table->data[0][1] = print_input_text ('agente', $nombre_agente, '', 30, 100,true);
|
||||||
|
|
||||||
if ($id_agente) {
|
if ($id_agente) {
|
||||||
@ -110,7 +110,7 @@ if (!$new_agent) {
|
|||||||
if (file_exists ($filename['md5'])) {
|
if (file_exists ($filename['md5'])) {
|
||||||
$table->data[0][1] .= '<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=main&id_agente='.$id_agente.'&disk_conf='.$agent_md5.'">';
|
$table->data[0][1] .= '<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=main&id_agente='.$id_agente.'&disk_conf='.$agent_md5.'">';
|
||||||
$table->data[0][1] .= print_image ("images/application_edit.png", true, array ("border" => 0, "title" => __('This agent can be remotely configured')));
|
$table->data[0][1] .= print_image ("images/application_edit.png", true, array ("border" => 0, "title" => __('This agent can be remotely configured')));
|
||||||
$table->data[0][1] .= '</a>'.print_help_tip (__('You can remotely edit this agent configuration'), true);
|
$table->data[0][1] .= '</a>'.ui_print_help_tip (__('You can remotely edit this agent configuration'), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -134,7 +134,7 @@ $table->data[2][1] = print_input_text_extended ('id_parent', get_agent_name ($id
|
|||||||
array('style' => 'background: url(images/lightning.png) no-repeat right;'), true)
|
array('style' => 'background: url(images/lightning.png) no-repeat right;'), true)
|
||||||
. '<a href="#" class="tip"> <span>' . __("Type at least two characters to search") . '</span></a>';
|
. '<a href="#" class="tip"> <span>' . __("Type at least two characters to search") . '</span></a>';
|
||||||
|
|
||||||
$table->data[2][1] .= print_checkbox ("cascade_protection", 1, $cascade_protection, true).__('Cascade protection'). " " . print_help_icon("cascade_protection", true);
|
$table->data[2][1] .= print_checkbox ("cascade_protection", 1, $cascade_protection, true).__('Cascade protection'). " " . ui_print_help_icon("cascade_protection", true);
|
||||||
|
|
||||||
$table->data[3][0] = __('Group');
|
$table->data[3][0] = __('Group');
|
||||||
$table->data[3][1] = print_select_groups(false, "AR", false, 'grupo', $grupo, '', '', 0, true);
|
$table->data[3][1] = print_select_groups(false, "AR", false, 'grupo', $grupo, '', '', 0, true);
|
||||||
@ -157,7 +157,7 @@ $table->data[5][0] = __('OS');
|
|||||||
$table->data[5][1] = print_select_from_sql ('SELECT id_os, name FROM tconfig_os',
|
$table->data[5][1] = print_select_from_sql ('SELECT id_os, name FROM tconfig_os',
|
||||||
'id_os', $id_os, '', '', '0', true);
|
'id_os', $id_os, '', '', '0', true);
|
||||||
$table->data[5][1] .= ' <span id="os_preview">';
|
$table->data[5][1] .= ' <span id="os_preview">';
|
||||||
$table->data[5][1] .= print_os_icon ($id_os, false, true);
|
$table->data[5][1] .= ui_print_os_icon ($id_os, false, true);
|
||||||
$table->data[5][1] .= '</span>';
|
$table->data[5][1] .= '</span>';
|
||||||
|
|
||||||
// Network server
|
// Network server
|
||||||
@ -188,7 +188,7 @@ $table->data[0][0] = __('Custom ID');
|
|||||||
$table->data[0][1] = print_input_text ('custom_id', $custom_id, '', 16, 255, true);
|
$table->data[0][1] = print_input_text ('custom_id', $custom_id, '', 16, 255, true);
|
||||||
|
|
||||||
// Learn mode / Normal mode
|
// Learn mode / Normal mode
|
||||||
$table->data[1][0] = __('Module definition').print_help_icon("module_definition", true);
|
$table->data[1][0] = __('Module definition').ui_print_help_icon("module_definition", true);
|
||||||
$table->data[1][1] = __('Learning mode').' '.print_radio_button_extended ("modo", 1, '', $modo, false, '', 'style="margin-right: 40px;"', true);
|
$table->data[1][1] = __('Learning mode').' '.print_radio_button_extended ("modo", 1, '', $modo, false, '', 'style="margin-right: 40px;"', true);
|
||||||
$table->data[1][1] .= __('Normal mode').' '.print_radio_button_extended ("modo", 0, '', $modo, false, '', 'style="margin-right: 40px;"', true);
|
$table->data[1][1] .= __('Normal mode').' '.print_radio_button_extended ("modo", 0, '', $modo, false, '', 'style="margin-right: 40px;"', true);
|
||||||
|
|
||||||
@ -206,7 +206,7 @@ if (!$new_agent) {
|
|||||||
// Delete remote configuration
|
// Delete remote configuration
|
||||||
$table->data[3][1] .= '<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=main&disk_conf_delete=1&id_agente='.$id_agente.'">';
|
$table->data[3][1] .= '<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=main&disk_conf_delete=1&id_agente='.$id_agente.'">';
|
||||||
$table->data[3][1] .= print_image ("images/cross.png", true, array ('title' => __('Delete remote configuration file'), 'style' => 'vertical-align: middle;')).'</a>';
|
$table->data[3][1] .= print_image ("images/cross.png", true, array ('title' => __('Delete remote configuration file'), 'style' => 'vertical-align: middle;')).'</a>';
|
||||||
$table->data[3][1] .= '</a>'.print_help_tip (__('Delete this conf file implies that for restore you must reactive remote config in the local agent.'), true);
|
$table->data[3][1] .= '</a>'.ui_print_help_tip (__('Delete this conf file implies that for restore you must reactive remote config in the local agent.'), true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$table->data[3][1] = '<em>'.__('Not available').'</em>';
|
$table->data[3][1] = '<em>'.__('Not available').'</em>';
|
||||||
@ -237,7 +237,7 @@ if ($config['activate_gis']) {
|
|||||||
$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] .= __('Active').' '.print_radio_button_extended ("update_gis_data", 1, '', $update_gis_data, false, '', 'style="margin-right: 40px;"', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
toggle(print_table ($table, true), __('Advanced options'));
|
ui_toggle(print_table ($table, true), __('Advanced options'));
|
||||||
unset($table);
|
unset($table);
|
||||||
|
|
||||||
$table->width = '95%';
|
$table->width = '95%';
|
||||||
@ -268,7 +268,7 @@ foreach ($fields as $field) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!empty($fields)) {
|
if(!empty($fields)) {
|
||||||
toggle(print_table ($table, true), __('Custom fields'));
|
ui_toggle(print_table ($table, true), __('Custom fields'));
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
||||||
@ -282,10 +282,10 @@ if ($id_agente) {
|
|||||||
}
|
}
|
||||||
echo '</div></form>';
|
echo '</div></form>';
|
||||||
|
|
||||||
require_jquery_file ('pandora.controls');
|
ui_require_jquery_file ('pandora.controls');
|
||||||
require_jquery_file ('ajaxqueue');
|
ui_require_jquery_file ('ajaxqueue');
|
||||||
require_jquery_file ('bgiframe');
|
ui_require_jquery_file ('bgiframe');
|
||||||
require_jquery_file ('autocomplete');
|
ui_require_jquery_file ('autocomplete');
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
/* <![CDATA[ */
|
/* <![CDATA[ */
|
||||||
|
@ -193,7 +193,7 @@ if ($create_agent) {
|
|||||||
// Show tabs
|
// Show tabs
|
||||||
$img_style = array ("class" => "top", "width" => 16);
|
$img_style = array ("class" => "top", "width" => 16);
|
||||||
|
|
||||||
// TODO: Change to use print_page_header
|
// TODO: Change to use ui_print_page_header
|
||||||
if ($id_agente) {
|
if ($id_agente) {
|
||||||
|
|
||||||
/* View tab */
|
/* View tab */
|
||||||
@ -309,13 +309,13 @@ if ($id_agente) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print_page_header (__('Agent configuration').' - '.printTruncateText(get_agent_name ($id_agente), 25, false), "images/setup.png", false, "", true, $onheader);
|
ui_print_page_header (__('Agent configuration') . ' - ' . ui_print_truncate_text(get_agent_name ($id_agente), 25, false), "images/setup.png", false, "", true, $onheader);
|
||||||
|
|
||||||
}
|
}
|
||||||
// Create agent
|
// Create agent
|
||||||
else {
|
else {
|
||||||
|
|
||||||
print_page_header (__('Agent manager'), "images/bricks.png", false, "create_agent", true);
|
ui_print_page_header (__('Agent manager'), "images/bricks.png", false, "create_agent", true);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -337,7 +337,7 @@ if ($delete_conf_file) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message ($correct,
|
ui_print_result_message ($correct,
|
||||||
__('Conf file deleted successfully'),
|
__('Conf file deleted successfully'),
|
||||||
__('Could not delete conf file'));
|
__('Could not delete conf file'));
|
||||||
}
|
}
|
||||||
@ -345,7 +345,7 @@ if ($delete_conf_file) {
|
|||||||
|
|
||||||
// Show agent creation results
|
// Show agent creation results
|
||||||
if ($create_agent) {
|
if ($create_agent) {
|
||||||
print_result_message ($agent_created_ok,
|
ui_print_result_message ($agent_created_ok,
|
||||||
__('Successfully created'),
|
__('Successfully created'),
|
||||||
__('Could not be created'));
|
__('Could not be created'));
|
||||||
}
|
}
|
||||||
@ -369,7 +369,7 @@ if (isset( $_GET["fix_module"])) {
|
|||||||
$error = " - ".__('No data to normalize');
|
$error = " - ".__('No data to normalize');
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Deleted data above %d', $media),
|
__('Deleted data above %d', $media),
|
||||||
__('Error normalizing module %s', $error));
|
__('Error normalizing module %s', $error));
|
||||||
}
|
}
|
||||||
@ -467,7 +467,7 @@ if ($update_agent) { // if modified some agent paramenter
|
|||||||
array ('id_agente' => $id_agente));
|
array ('id_agente' => $id_agente));
|
||||||
|
|
||||||
if ($result === false) {
|
if ($result === false) {
|
||||||
print_error_message (__('There was a problem updating the agent'));
|
ui_print_error_message (__('There was a problem updating the agent'));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$info = 'Group: ' . $grupo . ' Interval: ' . $intervalo .
|
$info = 'Group: ' . $grupo . ' Interval: ' . $intervalo .
|
||||||
@ -478,7 +478,7 @@ if ($update_agent) { // if modified some agent paramenter
|
|||||||
' Icon Path: ' . $icon_path . 'Update GIS data: ' .$update_gis_data;
|
' Icon Path: ' . $icon_path . 'Update GIS data: ' .$update_gis_data;
|
||||||
|
|
||||||
enterprise_hook ('update_agent', array ($id_agente));
|
enterprise_hook ('update_agent', array ($id_agente));
|
||||||
print_success_message (__('Successfully updated'));
|
ui_print_success_message (__('Successfully updated'));
|
||||||
pandora_audit("Agent management",
|
pandora_audit("Agent management",
|
||||||
"Updated agent $nombre_agente", false, false, $info);
|
"Updated agent $nombre_agente", false, false, $info);
|
||||||
|
|
||||||
@ -500,7 +500,7 @@ if ($id_agente) {
|
|||||||
$agent = get_db_row ('tagente', 'id_agente', $id_agente);
|
$agent = get_db_row ('tagente', 'id_agente', $id_agente);
|
||||||
if (empty ($agent)) {
|
if (empty ($agent)) {
|
||||||
//Close out the page
|
//Close out the page
|
||||||
print_error_message (__('There was a problem loading the agent'));
|
ui_print_error_message (__('There was a problem loading the agent'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -811,11 +811,11 @@ if ($delete_module) { // DELETE agent module !
|
|||||||
//Check for errors
|
//Check for errors
|
||||||
if ($error != 0) {
|
if ($error != 0) {
|
||||||
process_sql_rollback ();
|
process_sql_rollback ();
|
||||||
print_error_message (__('There was a problem deleting the module'));
|
ui_print_error_message (__('There was a problem deleting the module'));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
process_sql_commit ();
|
process_sql_commit ();
|
||||||
print_success_message (__('Module deleted succesfully'));
|
ui_print_success_message (__('Module deleted succesfully'));
|
||||||
|
|
||||||
$agent = get_db_row ('tagente', 'id_agente', $id_agente);
|
$agent = get_db_row ('tagente', 'id_agente', $id_agente);
|
||||||
pandora_audit("Agent management",
|
pandora_audit("Agent management",
|
||||||
@ -943,13 +943,13 @@ switch ($tab) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!$found) {
|
if (!$found) {
|
||||||
print_error_message ("Invalid tab specified");
|
ui_print_error_message ("Invalid tab specified");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (enterprise_hook ('switch_agent_tab', array ($tab)))
|
if (enterprise_hook ('switch_agent_tab', array ($tab)))
|
||||||
//This will make sure that blank pages will have at least some
|
//This will make sure that blank pages will have at least some
|
||||||
//debug info in them - do not translate debug
|
//debug info in them - do not translate debug
|
||||||
print_error_message ("Invalid tab specified");
|
ui_print_error_message ("Invalid tab specified");
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -33,9 +33,9 @@ if ($id_field) {
|
|||||||
$field = get_db_row_filter('tagent_custom_fields',array('id_field' => $id_field));
|
$field = get_db_row_filter('tagent_custom_fields',array('id_field' => $id_field));
|
||||||
$name = $field['name'];
|
$name = $field['name'];
|
||||||
$display_on_front = $field['display_on_front'];
|
$display_on_front = $field['display_on_front'];
|
||||||
print_page_header (__("Update agent custom field"), "images/note.png", false, "", true, "");
|
ui_print_page_header (__("Update agent custom field"), "images/note.png", false, "", true, "");
|
||||||
} else {
|
} else {
|
||||||
print_page_header (__("Create agent custom field"), "images/note.png", false, "", true, "");
|
ui_print_page_header (__("Create agent custom field"), "images/note.png", false, "", true, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
$table->width = '450px';
|
$table->width = '450px';
|
||||||
@ -43,7 +43,7 @@ $table->data = array ();
|
|||||||
$table->data[0][0] = __('Name');
|
$table->data[0][0] = __('Name');
|
||||||
$table->data[0][1] = print_input_text ('name', $name, '', 35, 100, true);
|
$table->data[0][1] = print_input_text ('name', $name, '', 35, 100, true);
|
||||||
|
|
||||||
$table->data[1][0] = __('Display on front').print_help_tip (__('The fields with display on front enabled will be displayed into the agent details'), true);
|
$table->data[1][0] = __('Display on front').ui_print_help_tip (__('The fields with display on front enabled will be displayed into the agent details'), true);
|
||||||
$table->data[1][1] = print_checkbox ('display_on_front', 1, $display_on_front, true);
|
$table->data[1][1] = print_checkbox ('display_on_front', 1, $display_on_front, true);
|
||||||
|
|
||||||
echo '<form name="field" method="post" action="index.php?sec=gagente&sec2=godmode/agentes/fields_manager">';
|
echo '<form name="field" method="post" action="index.php?sec=gagente&sec2=godmode/agentes/fields_manager">';
|
||||||
|
@ -28,7 +28,7 @@ if (!check_acl($config['id_user'], 0, "PM")) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__("Agents custom fields manager"), "images/note.png", false, "", true, "");
|
ui_print_page_header (__("Agents custom fields manager"), "images/note.png", false, "", true, "");
|
||||||
|
|
||||||
$create_field = (bool) get_parameter ('create_field');
|
$create_field = (bool) get_parameter ('create_field');
|
||||||
$update_field = (bool) get_parameter ('update_field');
|
$update_field = (bool) get_parameter ('update_field');
|
||||||
@ -91,7 +91,7 @@ $fields = get_db_all_fields_in_table('tagent_custom_fields');
|
|||||||
if ($fields) {
|
if ($fields) {
|
||||||
$table->head = array ();
|
$table->head = array ();
|
||||||
$table->head[0] = __('Field');
|
$table->head[0] = __('Field');
|
||||||
$table->head[1] = __('Display on front').print_help_tip (__('The fields with display on front enabled will be displayed into the agent details'), true);
|
$table->head[1] = __('Display on front').ui_print_help_tip (__('The fields with display on front enabled will be displayed into the agent details'), true);
|
||||||
$table->head[2] = __('Actions');
|
$table->head[2] = __('Actions');
|
||||||
$table->align = array ();
|
$table->align = array ();
|
||||||
$table->align[1] = 'center';
|
$table->align[1] = 'center';
|
||||||
|
@ -37,7 +37,7 @@ if ((isset($_GET["operacion"])) AND ($update_group == -1) ) {
|
|||||||
// ---------
|
// ---------
|
||||||
if (isset($_POST["copy"])) {
|
if (isset($_POST["copy"])) {
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__("Data Copy"), "images/god1.png", false, "", true, "");
|
ui_print_page_header (__("Data Copy"), "images/god1.png", false, "", true, "");
|
||||||
|
|
||||||
// Initial checkings
|
// Initial checkings
|
||||||
|
|
||||||
@ -94,7 +94,7 @@ if ((isset($_GET["operacion"])) AND ($update_group == -1) ) {
|
|||||||
|
|
||||||
// title
|
// title
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__("Remote configuration management"), "images/god1.png", false, "", true, "");
|
ui_print_page_header (__("Remote configuration management"), "images/god1.png", false, "", true, "");
|
||||||
echo '<form method="post" action="index.php?sec=gagente&sec2=godmode/agentes/manage_config_remote&operacion=1">';
|
echo '<form method="post" action="index.php?sec=gagente&sec2=godmode/agentes/manage_config_remote&operacion=1">';
|
||||||
echo "<table width='650' border='0' cellspacing='4' cellpadding='4' class='databox'>";
|
echo "<table width='650' border='0' cellspacing='4' cellpadding='4' class='databox'>";
|
||||||
|
|
||||||
@ -111,7 +111,7 @@ if ((isset($_GET["operacion"])) AND ($update_group == -1) ) {
|
|||||||
|
|
||||||
// Source agent
|
// Source agent
|
||||||
echo '<b>'. __('Source agent').'</b>';
|
echo '<b>'. __('Source agent').'</b>';
|
||||||
print_help_icon ('duplicateconfig');
|
ui_print_help_icon ('duplicateconfig');
|
||||||
echo '<br><br>';
|
echo '<br><br>';
|
||||||
|
|
||||||
// Show combo with SOURCE agents
|
// Show combo with SOURCE agents
|
||||||
|
@ -61,7 +61,7 @@ if (!empty($agent_to_delete)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Agent configuration')." » ".__('Agents defined in Pandora'), "", false, "", true);
|
ui_print_page_header (__('Agent configuration')." » ".__('Agents defined in Pandora'), "", false, "", true);
|
||||||
|
|
||||||
// Show group selector
|
// Show group selector
|
||||||
if (isset($_POST["ag_group"])) {
|
if (isset($_POST["ag_group"])) {
|
||||||
@ -297,7 +297,7 @@ if (($config['dbtype'] == 'oracle') && ($agents !== false)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Prepare pagination
|
// Prepare pagination
|
||||||
pagination ($total_agents, "index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&group_id=$ag_group&search=$search&sort_field=$sortField&sort=$sort", $offset);
|
ui_pagination ($total_agents, "index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&group_id=$ag_group&search=$search&sort_field=$sortField&sort=$sort", $offset);
|
||||||
echo "<div style='height: 20px'> </div>";
|
echo "<div style='height: 20px'> </div>";
|
||||||
|
|
||||||
if ($agents !== false) {
|
if ($agents !== false) {
|
||||||
@ -350,9 +350,9 @@ if ($agents !== false) {
|
|||||||
echo '<span class="left">';
|
echo '<span class="left">';
|
||||||
echo "<strong><a href='index.php?sec=gagente&
|
echo "<strong><a href='index.php?sec=gagente&
|
||||||
sec2=godmode/agentes/configurar_agente&tab=main&
|
sec2=godmode/agentes/configurar_agente&tab=main&
|
||||||
id_agente=".$agent["id_agente"]."'>".printTruncateText($agent["nombre"], 30, true)."</a></strong>";
|
id_agente=".$agent["id_agente"]."'>" . ui_print_truncate_text($agent["nombre"], 30, true)."</a></strong>";
|
||||||
if ($agent["disabled"]) {
|
if ($agent["disabled"]) {
|
||||||
print_help_tip(__('Disabled'));
|
ui_print_help_tip(__('Disabled'));
|
||||||
echo "</em>";
|
echo "</em>";
|
||||||
}
|
}
|
||||||
echo '</span><div class="left actions" style="visibility: hidden; clear: left">';
|
echo '</span><div class="left actions" style="visibility: hidden; clear: left">';
|
||||||
@ -388,10 +388,10 @@ if ($agents !== false) {
|
|||||||
|
|
||||||
// Operating System icon
|
// Operating System icon
|
||||||
echo "<td class='$tdcolor' align='center' valign='middle'>";
|
echo "<td class='$tdcolor' align='center' valign='middle'>";
|
||||||
print_os_icon ($agent["id_os"], false);
|
ui_print_os_icon ($agent["id_os"], false);
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
// Group icon and name
|
// Group icon and name
|
||||||
echo "<td class='$tdcolor' align='center' valign='middle'>".print_group_icon ($id_grupo, true)."</td>";
|
echo "<td class='$tdcolor' align='center' valign='middle'>" . ui_print_group_icon ($id_grupo, true)."</td>";
|
||||||
// Description
|
// Description
|
||||||
echo "<td class='".$tdcolor."f9'>".$agent["comentarios"]."</td>";
|
echo "<td class='".$tdcolor."f9'>".$agent["comentarios"]."</td>";
|
||||||
// Action
|
// Action
|
||||||
@ -407,7 +407,7 @@ if ($agents !== false) {
|
|||||||
echo print_image('images/cross.png', true, array("border" => '0')) . "</a></td>";
|
echo print_image('images/cross.png', true, array("border" => '0')) . "</a></td>";
|
||||||
}
|
}
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
pagination ($total_agents, "index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&group_id=$ag_group&search=$search&sort_field=$sortField&sort=$sort", $offset);
|
ui_pagination ($total_agents, "index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&group_id=$ag_group&search=$search&sort_field=$sortField&sort=$sort", $offset);
|
||||||
echo "<table width='95%'><tr><td align='right'>";
|
echo "<table width='95%'><tr><td align='right'>";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -136,11 +136,11 @@ if ($multiple_delete) {
|
|||||||
//Check for errors
|
//Check for errors
|
||||||
if ($error != 0) {
|
if ($error != 0) {
|
||||||
process_sql_rollback ();
|
process_sql_rollback ();
|
||||||
print_error_message (__('There was a problem deleting the module'));
|
ui_print_error_message (__('There was a problem deleting the module'));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
process_sql_commit ();
|
process_sql_commit ();
|
||||||
print_success_message (__('Module deleted succesfully'));
|
ui_print_success_message (__('Module deleted succesfully'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -335,9 +335,9 @@ foreach ($modules as $module) {
|
|||||||
|
|
||||||
$data[0] = '<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&tab=module&edit_module=1&id_agent_module='.$module['id_agente_modulo'].'">';
|
$data[0] = '<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&tab=module&edit_module=1&id_agent_module='.$module['id_agente_modulo'].'">';
|
||||||
if ($module["disabled"])
|
if ($module["disabled"])
|
||||||
$data[0] .= '<em class="disabled_module">'.printTruncateText($module['nombre'], 25, false).'</em>';
|
$data[0] .= '<em class="disabled_module">' . ui_print_truncate_text($module['nombre'], 25, false).'</em>';
|
||||||
else
|
else
|
||||||
$data[0] .= printTruncateText($module['nombre'], 25, false);
|
$data[0] .= ui_print_truncate_text($module['nombre'], 25, false);
|
||||||
$data[0] .= '</a>';
|
$data[0] .= '</a>';
|
||||||
|
|
||||||
if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
|
if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
|
||||||
@ -393,7 +393,7 @@ foreach ($modules as $module) {
|
|||||||
// Module type (by data type)
|
// Module type (by data type)
|
||||||
$data[3] = '';
|
$data[3] = '';
|
||||||
if ($type) {
|
if ($type) {
|
||||||
$data[3] = print_moduletype_icon ($type, true);
|
$data[3] = ui_print_moduletype_icon ($type, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Module interval
|
// Module interval
|
||||||
@ -403,7 +403,7 @@ foreach ($modules as $module) {
|
|||||||
$data[4] = $agent_interval;
|
$data[4] = $agent_interval;
|
||||||
}
|
}
|
||||||
|
|
||||||
$data[5] = printTruncateText($module['descripcion'], 25, false);
|
$data[5] = ui_print_truncate_text($module['descripcion'], 25, false);
|
||||||
|
|
||||||
// MAX / MIN values
|
// MAX / MIN values
|
||||||
$data[6] = $module["max"] ? $module["max"] : __('N/A');
|
$data[6] = $module["max"] ? $module["max"] : __('N/A');
|
||||||
|
@ -228,14 +228,14 @@ $unlink_policy = get_parameter('unlink_policy', 0);
|
|||||||
|
|
||||||
if($relink_policy) {
|
if($relink_policy) {
|
||||||
$result = relink_module_policy($id_agent_module);
|
$result = relink_module_policy($id_agent_module);
|
||||||
print_result_message($result, 'Module relinked to the policy successful');
|
ui_print_result_message($result, 'Module relinked to the policy successful');
|
||||||
|
|
||||||
pandora_audit("Agent management", "Re-link module " . $id_agent_module);
|
pandora_audit("Agent management", "Re-link module " . $id_agent_module);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($unlink_policy) {
|
if($unlink_policy) {
|
||||||
$result = unlink_module_policy($id_agent_module);
|
$result = unlink_module_policy($id_agent_module);
|
||||||
print_result_message($result, 'Module unlinked from the policy successful');
|
ui_print_result_message($result, 'Module unlinked from the policy successful');
|
||||||
|
|
||||||
pandora_audit("Agent management", "Unlink module " . $id_agent_module);
|
pandora_audit("Agent management", "Unlink module " . $id_agent_module);
|
||||||
}
|
}
|
||||||
@ -337,12 +337,12 @@ if ($id_agent_module) {
|
|||||||
echo '</div>';
|
echo '</div>';
|
||||||
echo '</form>';
|
echo '</form>';
|
||||||
|
|
||||||
require_jquery_file ('ui');
|
ui_require_jquery_file ('ui');
|
||||||
require_jquery_file ('form');
|
ui_require_jquery_file ('form');
|
||||||
require_jquery_file ('pandora');
|
ui_require_jquery_file ('pandora');
|
||||||
require_jquery_file ('pandora.controls');
|
ui_require_jquery_file ('pandora.controls');
|
||||||
|
|
||||||
require_javascript_file ('pandora_modules');
|
ui_require_javascript_file ('pandora_modules');
|
||||||
?>
|
?>
|
||||||
<script language="javascript">
|
<script language="javascript">
|
||||||
/* <![CDATA[ */
|
/* <![CDATA[ */
|
||||||
|
@ -63,7 +63,7 @@ function add_component_selection ($id_network_component_type) {
|
|||||||
|
|
||||||
$data = array ();
|
$data = array ();
|
||||||
$data[0] = __('Using module component').' ';
|
$data[0] = __('Using module component').' ';
|
||||||
$data[0] .= print_help_icon ('network_component', true);
|
$data[0] .= ui_print_help_icon ('network_component', true);
|
||||||
|
|
||||||
$component_groups = get_network_component_groups ($id_network_component_type);
|
$component_groups = get_network_component_groups ($id_network_component_type);
|
||||||
$data[1] = '<span id="component_group" class="left">';
|
$data[1] = '<span id="component_group" class="left">';
|
||||||
@ -124,7 +124,7 @@ $table_simple->data[0][1] = print_input_text ('name', $name, '', 20, 100, true,
|
|||||||
$table_simple->data[0][2] = __('Disabled');
|
$table_simple->data[0][2] = __('Disabled');
|
||||||
$table_simple->data[0][3] = print_checkbox ("disabled", 1, $disabled, true);
|
$table_simple->data[0][3] = print_checkbox ("disabled", 1, $disabled, true);
|
||||||
|
|
||||||
$table_simple->data[1][0] = __('Type').' '.print_help_icon ('module_type', true);
|
$table_simple->data[1][0] = __('Type').' ' . ui_print_help_icon ('module_type', true);
|
||||||
|
|
||||||
if (isset($id_agent_module)) {
|
if (isset($id_agent_module)) {
|
||||||
if ($id_agent_module) {
|
if ($id_agent_module) {
|
||||||
@ -165,14 +165,14 @@ $table_simple->data[1][3] = print_select_from_sql ('SELECT id_mg, name FROM tmod
|
|||||||
'id_module_group', $id_module_group, '', __('Not assigned'), '0',
|
'id_module_group', $id_module_group, '', __('Not assigned'), '0',
|
||||||
true, false, true, $disabledBecauseInPolicy);
|
true, false, true, $disabledBecauseInPolicy);
|
||||||
|
|
||||||
$table_simple->data[2][0] = __('Warning status').' '.print_help_icon ('warning_status', true);
|
$table_simple->data[2][0] = __('Warning status').' ' . ui_print_help_icon ('warning_status', true);
|
||||||
$table_simple->data[2][1] = '<em>'.__('Min.').'</em>';
|
$table_simple->data[2][1] = '<em>'.__('Min.').'</em>';
|
||||||
$table_simple->data[2][1] .= print_input_text ('min_warning', $min_warning,
|
$table_simple->data[2][1] .= print_input_text ('min_warning', $min_warning,
|
||||||
'', 5, 255, true, $disabledBecauseInPolicy);
|
'', 5, 255, true, $disabledBecauseInPolicy);
|
||||||
$table_simple->data[2][1] .= '<br /><em>'.__('Max.').'</em>';
|
$table_simple->data[2][1] .= '<br /><em>'.__('Max.').'</em>';
|
||||||
$table_simple->data[2][1] .= print_input_text ('max_warning', $max_warning,
|
$table_simple->data[2][1] .= print_input_text ('max_warning', $max_warning,
|
||||||
'', 5, 255, true, $disabledBecauseInPolicy);
|
'', 5, 255, true, $disabledBecauseInPolicy);
|
||||||
$table_simple->data[2][2] = __('Critical status').' '.print_help_icon ('critical_status', true);
|
$table_simple->data[2][2] = __('Critical status').' ' . ui_print_help_icon ('critical_status', true);
|
||||||
$table_simple->data[2][3] = '<em>'.__('Min.').'</em>';
|
$table_simple->data[2][3] = '<em>'.__('Min.').'</em>';
|
||||||
$table_simple->data[2][3] .= print_input_text ('min_critical', $min_critical,
|
$table_simple->data[2][3] .= print_input_text ('min_critical', $min_critical,
|
||||||
'', 5, 255, true, $disabledBecauseInPolicy);
|
'', 5, 255, true, $disabledBecauseInPolicy);
|
||||||
@ -181,7 +181,7 @@ $table_simple->data[2][3] .= print_input_text ('max_critical', $max_critical,
|
|||||||
'', 5, 255, true, $disabledBecauseInPolicy);
|
'', 5, 255, true, $disabledBecauseInPolicy);
|
||||||
|
|
||||||
/* FF stands for Flip-flop */
|
/* FF stands for Flip-flop */
|
||||||
$table_simple->data[3][0] = __('FF threshold').' '.print_help_icon ('ff_threshold', true);
|
$table_simple->data[3][0] = __('FF threshold').' ' . ui_print_help_icon ('ff_threshold', true);
|
||||||
$table_simple->data[3][1] = print_input_text ('ff_event', $ff_event,
|
$table_simple->data[3][1] = print_input_text ('ff_event', $ff_event,
|
||||||
'', 5, 15, true, $disabledBecauseInPolicy);
|
'', 5, 15, true, $disabledBecauseInPolicy);
|
||||||
$table_simple->data[3][2] = __('Historical data');
|
$table_simple->data[3][2] = __('Historical data');
|
||||||
@ -208,9 +208,9 @@ $table_advanced->data[1][1] = print_input_text ('custom_id', $custom_id,
|
|||||||
|
|
||||||
$table_advanced->data[2][0] = __('Interval');
|
$table_advanced->data[2][0] = __('Interval');
|
||||||
$table_advanced->data[2][1] = print_input_text ('module_interval', $interval,
|
$table_advanced->data[2][1] = print_input_text ('module_interval', $interval,
|
||||||
'', 5, 10, true, $disabledBecauseInPolicy).print_help_tip (__('Module execution time interval (in secs).'), true);
|
'', 5, 10, true, $disabledBecauseInPolicy).ui_print_help_tip (__('Module execution time interval (in secs).'), true);
|
||||||
|
|
||||||
$table_advanced->data[2][2] = __('Post process').' '.print_help_icon ('postprocess', true);
|
$table_advanced->data[2][2] = __('Post process').' ' . ui_print_help_icon ('postprocess', true);
|
||||||
$table_advanced->data[2][3] = print_input_text ('post_process',
|
$table_advanced->data[2][3] = print_input_text ('post_process',
|
||||||
$post_process, '', 12, 25, true, $disabledBecauseInPolicy);
|
$post_process, '', 12, 25, true, $disabledBecauseInPolicy);
|
||||||
|
|
||||||
@ -221,6 +221,6 @@ $table_advanced->data[3][3] = print_input_text ('max', $max, '', 5, 15, true, $d
|
|||||||
|
|
||||||
$table_advanced->data[4][0] = __('Export target');
|
$table_advanced->data[4][0] = __('Export target');
|
||||||
$table_advanced->data[4][1] = print_select_from_sql ('SELECT id, name FROM tserver_export ORDER BY name',
|
$table_advanced->data[4][1] = print_select_from_sql ('SELECT id, name FROM tserver_export ORDER BY name',
|
||||||
'id_export', $id_export, '',__('None'),'0', true, false, false, $disabledBecauseInPolicy).print_help_tip (__('In case you use an Export server you can link this module and export data to one these.'), true);
|
'id_export', $id_export, '',__('None'),'0', true, false, false, $disabledBecauseInPolicy).ui_print_help_tip (__('In case you use an Export server you can link this module and export data to one these.'), true);
|
||||||
$table_advanced->colspan[4][1] = 3;
|
$table_advanced->colspan[4][1] = 3;
|
||||||
?>
|
?>
|
||||||
|
@ -98,7 +98,7 @@ else
|
|||||||
|
|
||||||
$data[1] .= print_button (__('SNMP walk'), 'snmp_walk', $disableButton, '',
|
$data[1] .= print_button (__('SNMP walk'), 'snmp_walk', $disableButton, '',
|
||||||
'class="sub next"', true);
|
'class="sub next"', true);
|
||||||
$data[1] .= print_help_icon ('snmpwalk', true);
|
$data[1] .= ui_print_help_icon ('snmpwalk', true);
|
||||||
$data[1] .= '</span>';
|
$data[1] .= '</span>';
|
||||||
$table_simple->colspan['snmp_2'][1] = 3;
|
$table_simple->colspan['snmp_2'][1] = 3;
|
||||||
|
|
||||||
@ -106,7 +106,7 @@ push_table_simple ($data, 'snmp_2');
|
|||||||
|
|
||||||
/* Advanced stuff */
|
/* Advanced stuff */
|
||||||
$data = array ();
|
$data = array ();
|
||||||
$data[0] = __('TCP send').' '.print_help_icon ("tcp_send", true);
|
$data[0] = __('TCP send') . ' ' . ui_print_help_icon ("tcp_send", true);
|
||||||
$data[1] = print_textarea ('tcp_send', 2, 65, $tcp_send, $disabledTextBecauseInPolicy, true);
|
$data[1] = print_textarea ('tcp_send', 2, 65, $tcp_send, $disabledTextBecauseInPolicy, true);
|
||||||
$table_advanced->colspan['tcp_send'][1] = 3;
|
$table_advanced->colspan['tcp_send'][1] = 3;
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ push_table_simple ($data, 'plugin_2');
|
|||||||
|
|
||||||
$data = array ();
|
$data = array ();
|
||||||
$data[0] = __('Plugin parameters');
|
$data[0] = __('Plugin parameters');
|
||||||
$data[0] .= print_help_icon ('plugin_parameters', true);
|
$data[0] .= ui_print_help_icon ('plugin_parameters', true);
|
||||||
$data[1] = print_input_text ('plugin_parameter', $plugin_parameter, '', 255, '', true, $disabledBecauseInPolicy);
|
$data[1] = print_input_text ('plugin_parameter', $plugin_parameter, '', 255, '', true, $disabledBecauseInPolicy);
|
||||||
$table_simple->colspan['plugin_3'][1] = 3;
|
$table_simple->colspan['plugin_3'][1] = 3;
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ $extra_title = __('Prediction server module');
|
|||||||
|
|
||||||
$data = array ();
|
$data = array ();
|
||||||
$data[0] = __('Source module');
|
$data[0] = __('Source module');
|
||||||
$data[0] .= print_help_icon ('prediction_source_module', true);
|
$data[0] .= ui_print_help_icon ('prediction_source_module', true);
|
||||||
$data[1] = '';
|
$data[1] = '';
|
||||||
// Services are an Enterprise feature.
|
// Services are an Enterprise feature.
|
||||||
$module_service_selector = enterprise_hook('get_module_service_selector', array($is_service));
|
$module_service_selector = enterprise_hook('get_module_service_selector', array($is_service));
|
||||||
|
@ -41,7 +41,7 @@ $data = array ();
|
|||||||
$data[0] = __('Target IP');
|
$data[0] = __('Target IP');
|
||||||
$data[1] = print_input_text ('ip_target', $ip_target, '', 15, 60, true);
|
$data[1] = print_input_text ('ip_target', $ip_target, '', 15, 60, true);
|
||||||
$data[2] = __('Namespace');
|
$data[2] = __('Namespace');
|
||||||
$data[2] .= print_help_icon ('wminamespace', true);
|
$data[2] .= ui_print_help_icon ('wminamespace', true);
|
||||||
$data[3] = print_input_text ('tcp_send', $tcp_send, '', 5, 20, true, $disabledBecauseInPolicy);
|
$data[3] = print_input_text ('tcp_send', $tcp_send, '', 5, 20, true, $disabledBecauseInPolicy);
|
||||||
|
|
||||||
push_table_simple ($data, 'target_ip');
|
push_table_simple ($data, 'target_ip');
|
||||||
@ -56,7 +56,7 @@ push_table_simple ($data, 'user_pass');
|
|||||||
|
|
||||||
$data = array ();
|
$data = array ();
|
||||||
$data[0] = __('WMI query');
|
$data[0] = __('WMI query');
|
||||||
$data[0] .= print_help_icon ('wmiquery', true);
|
$data[0] .= ui_print_help_icon ('wmiquery', true);
|
||||||
$data[1] = print_input_text ('snmp_oid', $snmp_oid, '', 35, 255, true, $disabledBecauseInPolicy);
|
$data[1] = print_input_text ('snmp_oid', $snmp_oid, '', 35, 255, true, $disabledBecauseInPolicy);
|
||||||
$table_simple->colspan['wmi_query'][1] = 3;
|
$table_simple->colspan['wmi_query'][1] = 3;
|
||||||
|
|
||||||
@ -64,10 +64,10 @@ push_table_simple ($data, 'wmi_query');
|
|||||||
|
|
||||||
$data = array ();
|
$data = array ();
|
||||||
$data[0] = __('Key string');
|
$data[0] = __('Key string');
|
||||||
$data[0] .= print_help_icon ('wmikey', true);
|
$data[0] .= ui_print_help_icon ('wmikey', true);
|
||||||
$data[1] = print_input_text ('snmp_community', $snmp_community, '', 20, 60, true, $disabledBecauseInPolicy);
|
$data[1] = print_input_text ('snmp_community', $snmp_community, '', 20, 60, true, $disabledBecauseInPolicy);
|
||||||
$data[2] = __('Field number');
|
$data[2] = __('Field number');
|
||||||
$data[2] .= print_help_icon ('wmifield', true);
|
$data[2] .= ui_print_help_icon ('wmifield', true);
|
||||||
$data[3] = print_input_text ('tcp_port', $tcp_port, '', 5, 15, true, $disabledBecauseInPolicy);
|
$data[3] = print_input_text ('tcp_port', $tcp_port, '', 5, 15, true, $disabledBecauseInPolicy);
|
||||||
|
|
||||||
push_table_simple ($data, 'key_field');
|
push_table_simple ($data, 'key_field');
|
||||||
|
@ -50,7 +50,7 @@ $delete_downtime_agent = (int) get_parameter ("delete_downtime_agent", 0);
|
|||||||
$groups = get_user_groups ();
|
$groups = get_user_groups ();
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__("Planned Downtime"), "images/god1.png", false, "", true, "");
|
ui_print_page_header (__("Planned Downtime"), "images/god1.png", false, "", true, "");
|
||||||
|
|
||||||
// INSERT A NEW DOWNTIME_AGENT ASSOCIATION
|
// INSERT A NEW DOWNTIME_AGENT ASSOCIATION
|
||||||
if ($insert_downtime_agent == 1){
|
if ($insert_downtime_agent == 1){
|
||||||
@ -188,7 +188,7 @@ if ($create_downtime || $update_downtime) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Editor form
|
//Editor form
|
||||||
echo '<h3>'.__('Planned Downtime Form').' '.print_help_icon ('planned_downtime', true).'</h3>';
|
echo '<h3>'.__('Planned Downtime Form').' '.ui_print_help_icon ('planned_downtime', true).'</h3>';
|
||||||
print_table ($table);
|
print_table ($table);
|
||||||
|
|
||||||
print_input_hidden ('id_agent', $id_agent);
|
print_input_hidden ('id_agent', $id_agent);
|
||||||
@ -283,7 +283,7 @@ if ($create_downtime || $update_downtime) {
|
|||||||
$data[1] = get_db_sql ("SELECT nombre FROM tgrupo WHERE id_grupo = ". $downtime["id_grupo"]);
|
$data[1] = get_db_sql ("SELECT nombre FROM tgrupo WHERE id_grupo = ". $downtime["id_grupo"]);
|
||||||
|
|
||||||
|
|
||||||
$data[2] = print_os_icon ($downtime["id_os"], true, true);
|
$data[2] = ui_print_os_icon ($downtime["id_os"], true, true);
|
||||||
|
|
||||||
$data[3] = $downtime["ultimo_contacto"];
|
$data[3] = $downtime["ultimo_contacto"];
|
||||||
|
|
||||||
@ -331,7 +331,7 @@ else {
|
|||||||
|
|
||||||
$data[0] = $downtime['name']. " ($total)";
|
$data[0] = $downtime['name']. " ($total)";
|
||||||
$data[1] = $downtime['description'];
|
$data[1] = $downtime['description'];
|
||||||
$data[2] = print_group_icon ($downtime['id_group'], true);
|
$data[2] = ui_print_group_icon ($downtime['id_group'], true);
|
||||||
$data[3] = date ("Y-m-d H:i", $downtime['date_from']);
|
$data[3] = date ("Y-m-d H:i", $downtime['date_from']);
|
||||||
$data[4] = date ("Y-m-d H:i", $downtime['date_to']);
|
$data[4] = date ("Y-m-d H:i", $downtime['date_to']);
|
||||||
if ($downtime["executed"] == 0){
|
if ($downtime["executed"] == 0){
|
||||||
@ -364,10 +364,10 @@ else {
|
|||||||
echo '</div>';
|
echo '</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
require_css_file ('datepicker');
|
ui_require_css_file ('datepicker');
|
||||||
require_jquery_file ('ui.core');
|
ui_require_jquery_file ('ui.core');
|
||||||
require_jquery_file ('ui.datepicker');
|
ui_require_jquery_file ('ui.datepicker');
|
||||||
require_jquery_file ('timeentry');
|
ui_require_jquery_file ('timeentry');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<script language="javascript" type="text/javascript">
|
<script language="javascript" type="text/javascript">
|
||||||
|
@ -46,7 +46,7 @@ $copy_action = (bool) get_parameter ('copy_action');
|
|||||||
|
|
||||||
if ((!$copy_action) && (!$delete_action))
|
if ((!$copy_action) && (!$delete_action))
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Alerts').' » '.__('Alert actions'), "images/god2.png", false, "", true);
|
ui_print_page_header (__('Alerts').' » '.__('Alert actions'), "images/god2.png", false, "", true);
|
||||||
|
|
||||||
if ($copy_action) {
|
if ($copy_action) {
|
||||||
$id = get_parameter ('id');
|
$id = get_parameter ('id');
|
||||||
@ -64,7 +64,7 @@ if ($copy_action) {
|
|||||||
exit;
|
exit;
|
||||||
}else
|
}else
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Alerts').' » '.__('Alert actions'), "images/god2.png", false, "", true);
|
ui_print_page_header (__('Alerts').' » '.__('Alert actions'), "images/god2.png", false, "", true);
|
||||||
// If user tries to copy an action of others groups
|
// If user tries to copy an action of others groups
|
||||||
}else{
|
}else{
|
||||||
$own_info = get_user_info ($config['id_user']);
|
$own_info = get_user_info ($config['id_user']);
|
||||||
@ -76,7 +76,7 @@ if ($copy_action) {
|
|||||||
// Then action group have to be in his own groups
|
// Then action group have to be in his own groups
|
||||||
if ($is_in_group)
|
if ($is_in_group)
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Alerts').' » '.__('Alert actions'), "images/god2.png", false, "", true);
|
ui_print_page_header (__('Alerts').' » '.__('Alert actions'), "images/god2.png", false, "", true);
|
||||||
else{
|
else{
|
||||||
pandora_audit("ACL Violation",
|
pandora_audit("ACL Violation",
|
||||||
"Trying to access Alert Management");
|
"Trying to access Alert Management");
|
||||||
@ -86,7 +86,7 @@ if ($copy_action) {
|
|||||||
}
|
}
|
||||||
}else
|
}else
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Alerts').' » '.__('Alert actions'), "images/god2.png", false, "", true);
|
ui_print_page_header (__('Alerts').' » '.__('Alert actions'), "images/god2.png", false, "", true);
|
||||||
|
|
||||||
|
|
||||||
$result = clone_alert_action ($id);
|
$result = clone_alert_action ($id);
|
||||||
@ -98,7 +98,7 @@ if ($copy_action) {
|
|||||||
pandora_audit("Command management", "Fail try to duplicate alert action " . $id);
|
pandora_audit("Command management", "Fail try to duplicate alert action " . $id);
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Successfully copied'),
|
__('Successfully copied'),
|
||||||
__('Could not be copied'));
|
__('Could not be copied'));
|
||||||
}
|
}
|
||||||
@ -130,7 +130,7 @@ if ($create_action) {
|
|||||||
pandora_audit("Command management", "Fail try to create alert action", false, false, $info);
|
pandora_audit("Command management", "Fail try to create alert action", false, false, $info);
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Successfully created'),
|
__('Successfully created'),
|
||||||
__('Could not be created'));
|
__('Could not be created'));
|
||||||
}
|
}
|
||||||
@ -149,11 +149,11 @@ if ($update_action) {
|
|||||||
exit;
|
exit;
|
||||||
}else
|
}else
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Alerts').' » '.__('Alert actions'), "images/god2.png", false, "", true);
|
ui_print_page_header (__('Alerts').' » '.__('Alert actions'), "images/god2.png", false, "", true);
|
||||||
}
|
}
|
||||||
}else
|
}else
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Alerts').' » '.__('Alert actions'), "images/god2.png", false, "", true);
|
ui_print_page_header (__('Alerts').' » '.__('Alert actions'), "images/god2.png", false, "", true);
|
||||||
|
|
||||||
|
|
||||||
$name = (string) get_parameter ('name');
|
$name = (string) get_parameter ('name');
|
||||||
@ -186,7 +186,7 @@ if ($update_action) {
|
|||||||
pandora_audit("Command management", "Fail try to update alert action " . $id, false, false, json_encode($values));
|
pandora_audit("Command management", "Fail try to update alert action " . $id, false, false, json_encode($values));
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Successfully updated'),
|
__('Successfully updated'),
|
||||||
__('Could not be updated'));
|
__('Could not be updated'));
|
||||||
}
|
}
|
||||||
@ -207,7 +207,7 @@ if ($delete_action) {
|
|||||||
exit;
|
exit;
|
||||||
}else
|
}else
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Alerts').' » '.__('Alert actions'), "images/god2.png", false, "", true);
|
ui_print_page_header (__('Alerts').' » '.__('Alert actions'), "images/god2.png", false, "", true);
|
||||||
// If user tries to delete an action of others groups
|
// If user tries to delete an action of others groups
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
@ -220,7 +220,7 @@ if ($delete_action) {
|
|||||||
// Then action group have to be in his own groups
|
// Then action group have to be in his own groups
|
||||||
if ($is_in_group)
|
if ($is_in_group)
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Alerts').' » '.__('Alert actions'), "images/god2.png", false, "", true);
|
ui_print_page_header (__('Alerts').' » '.__('Alert actions'), "images/god2.png", false, "", true);
|
||||||
else{
|
else{
|
||||||
pandora_audit("ACL Violation",
|
pandora_audit("ACL Violation",
|
||||||
"Trying to access Alert Management");
|
"Trying to access Alert Management");
|
||||||
@ -231,7 +231,7 @@ if ($delete_action) {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Alerts').' » '.__('Alert actions'), "images/god2.png", false, "", true);
|
ui_print_page_header (__('Alerts').' » '.__('Alert actions'), "images/god2.png", false, "", true);
|
||||||
|
|
||||||
|
|
||||||
$result = delete_alert_action ($id);
|
$result = delete_alert_action ($id);
|
||||||
@ -243,7 +243,7 @@ if ($delete_action) {
|
|||||||
pandora_audit("Command management", "Fail try to delete alert action " . $id);
|
pandora_audit("Command management", "Fail try to delete alert action " . $id);
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Successfully deleted'),
|
__('Successfully deleted'),
|
||||||
__('Could not be deleted'));
|
__('Could not be deleted'));
|
||||||
}
|
}
|
||||||
@ -282,7 +282,7 @@ foreach ($actions as $action) {
|
|||||||
|
|
||||||
$data[0] = '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_action&id='.$action['id'].'">'.
|
$data[0] = '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_action&id='.$action['id'].'">'.
|
||||||
$action['name'].'</a>';
|
$action['name'].'</a>';
|
||||||
$data[1] = print_group_icon ($action["id_group"], true) .' '. printTruncateText(get_group_name ($action["id_group"], true));
|
$data[1] = ui_print_group_icon ($action["id_group"], true) .' '. ui_print_truncate_text(get_group_name ($action["id_group"], true));
|
||||||
$data[2] = '<a href="index.php?sec=galertas&sec2=godmode/alerts/alert_actions©_action=1&id='.$action['id'].'"
|
$data[2] = '<a href="index.php?sec=galertas&sec2=godmode/alerts/alert_actions©_action=1&id='.$action['id'].'"
|
||||||
onClick="if (!confirm(\''.__('Are you sure?').'\')) return false;">' .
|
onClick="if (!confirm(\''.__('Are you sure?').'\')) return false;">' .
|
||||||
print_image("images/copy.png", true) . '</a>';
|
print_image("images/copy.png", true) . '</a>';
|
||||||
|
@ -39,7 +39,7 @@ if (is_ajax ()) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Alerts').' » '.__('Alert commands'), "images/god2.png", false, "", true);
|
ui_print_page_header (__('Alerts').' » '.__('Alert commands'), "images/god2.png", false, "", true);
|
||||||
|
|
||||||
$update_command = (bool) get_parameter ('update_command');
|
$update_command = (bool) get_parameter ('update_command');
|
||||||
$create_command = (bool) get_parameter ('create_command');
|
$create_command = (bool) get_parameter ('create_command');
|
||||||
@ -62,7 +62,7 @@ if ($create_command) {
|
|||||||
pandora_audit("Command management", "Fail try to create alert command", false, false, $info);
|
pandora_audit("Command management", "Fail try to create alert command", false, false, $info);
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Successfully created'),
|
__('Successfully created'),
|
||||||
__('Could not be created'));
|
__('Could not be created'));
|
||||||
}
|
}
|
||||||
@ -93,7 +93,7 @@ if ($update_command) {
|
|||||||
pandora_audit("Command management", "Fail to create alert command " . $id, false, false, $info);
|
pandora_audit("Command management", "Fail to create alert command " . $id, false, false, $info);
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Successfully updated'),
|
__('Successfully updated'),
|
||||||
__('Could not be updated'));
|
__('Could not be updated'));
|
||||||
}
|
}
|
||||||
@ -118,7 +118,7 @@ if ($delete_command) {
|
|||||||
pandora_audit("Command management", "Fail to delete alert command " . $id);
|
pandora_audit("Command management", "Fail to delete alert command " . $id);
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Successfully deleted'),
|
__('Successfully deleted'),
|
||||||
__('Could not be deleted'));
|
__('Could not be deleted'));
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ $enable_alert = (int) get_parameter ('enable_alert');
|
|||||||
$disable_alert = (int) get_parameter ('disable_alert');
|
$disable_alert = (int) get_parameter ('disable_alert');
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Alerts').' » '.__('Correlated alerts'), "images/god2.png", false, "", true);
|
ui_print_page_header (__('Alerts').' » '.__('Correlated alerts'), "images/god2.png", false, "", true);
|
||||||
|
|
||||||
if ($update_compound) {
|
if ($update_compound) {
|
||||||
$id = (int) get_parameter ('id');
|
$id = (int) get_parameter ('id');
|
||||||
@ -62,7 +62,7 @@ if ($update_compound) {
|
|||||||
'field2_recovery' => $field2_recovery,
|
'field2_recovery' => $field2_recovery,
|
||||||
'field3_recovery' => $field3_recovery));
|
'field3_recovery' => $field3_recovery));
|
||||||
|
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Successfully updated'),
|
__('Successfully updated'),
|
||||||
__('Could not be updated'));
|
__('Could not be updated'));
|
||||||
}
|
}
|
||||||
@ -70,7 +70,7 @@ if ($update_compound) {
|
|||||||
if ($delete_alert) {
|
if ($delete_alert) {
|
||||||
$id = (int) get_parameter ('id');
|
$id = (int) get_parameter ('id');
|
||||||
$result = delete_alert_compound ($id);
|
$result = delete_alert_compound ($id);
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Successfully deleted'),
|
__('Successfully deleted'),
|
||||||
__('Could not be deleted'));
|
__('Could not be deleted'));
|
||||||
if (is_ajax ())
|
if (is_ajax ())
|
||||||
@ -80,7 +80,7 @@ if ($delete_alert) {
|
|||||||
if ($enable_alert) {
|
if ($enable_alert) {
|
||||||
$id = (int) get_parameter ('id');
|
$id = (int) get_parameter ('id');
|
||||||
$result = set_alerts_compound_disable ($id, false);
|
$result = set_alerts_compound_disable ($id, false);
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Successfully enabled'),
|
__('Successfully enabled'),
|
||||||
__('Could not be enabled'));
|
__('Could not be enabled'));
|
||||||
if (is_ajax ())
|
if (is_ajax ())
|
||||||
@ -90,7 +90,7 @@ if ($enable_alert) {
|
|||||||
if ($disable_alert) {
|
if ($disable_alert) {
|
||||||
$id = (int) get_parameter ('id');
|
$id = (int) get_parameter ('id');
|
||||||
$result = set_alerts_compound_disable ($id, true);
|
$result = set_alerts_compound_disable ($id, true);
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Successfully disabled'),
|
__('Successfully disabled'),
|
||||||
__('Could not be disabled'));
|
__('Could not be disabled'));
|
||||||
if (is_ajax ())
|
if (is_ajax ())
|
||||||
@ -157,7 +157,7 @@ if (count($agents) > 0) {
|
|||||||
implode (',', array_keys ($agents)), $where);
|
implode (',', array_keys ($agents)), $where);
|
||||||
$total = (int) get_db_sql ($sql);
|
$total = (int) get_db_sql ($sql);
|
||||||
}
|
}
|
||||||
pagination ($total, $url);
|
ui_pagination ($total, $url);
|
||||||
|
|
||||||
$table->id = 'alert_list';
|
$table->id = 'alert_list';
|
||||||
$table->class = 'alert_list databox';
|
$table->class = 'alert_list databox';
|
||||||
@ -251,7 +251,7 @@ print_input_hidden ('new_compound', 1);
|
|||||||
echo '</form>';
|
echo '</form>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
require_jquery_file ('pandora.controls');
|
ui_require_jquery_file ('pandora.controls');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -98,7 +98,7 @@ $table->data[2][1] .= __('Number of alerts match from').' ';
|
|||||||
$table->data[2][1] .= print_input_text ('fires_min', '', '', 4, 10, true);
|
$table->data[2][1] .= print_input_text ('fires_min', '', '', 4, 10, true);
|
||||||
$table->data[2][1] .= ' '.__('to').' ';
|
$table->data[2][1] .= ' '.__('to').' ';
|
||||||
$table->data[2][1] .= print_input_text ('fires_max', '', '', 4, 10, true);
|
$table->data[2][1] .= print_input_text ('fires_max', '', '', 4, 10, true);
|
||||||
$table->data[2][1] .= print_help_icon ("alert-matches", true);
|
$table->data[2][1] .= ui_print_help_icon ("alert-matches", true);
|
||||||
$table->data[2][1] .= '</span>';
|
$table->data[2][1] .= '</span>';
|
||||||
$table->data[2][1] .= '</div>';
|
$table->data[2][1] .= '</div>';
|
||||||
if (check_acl ($config['id_user'], 0, "LM")) {
|
if (check_acl ($config['id_user'], 0, "LM")) {
|
||||||
@ -108,7 +108,7 @@ if (check_acl ($config['id_user'], 0, "LM")) {
|
|||||||
$table->data[2][1] .= '</a>';
|
$table->data[2][1] .= '</a>';
|
||||||
}
|
}
|
||||||
$table->data[3][0] = __('Threshold');
|
$table->data[3][0] = __('Threshold');
|
||||||
$table->data[3][1] = print_input_text ('module_action_threshold', '', '', 4, 10, true) . print_help_icon ('action_threshold', true);
|
$table->data[3][1] = print_input_text ('module_action_threshold', '', '', 4, 10, true) . ui_print_help_icon ('action_threshold', true);
|
||||||
|
|
||||||
echo '<form class="add_alert_form" method="post">';
|
echo '<form class="add_alert_form" method="post">';
|
||||||
|
|
||||||
@ -119,11 +119,11 @@ print_submit_button (__('Add alert'), 'add', false, 'class="sub wand"');
|
|||||||
print_input_hidden ('create_alert', 1);
|
print_input_hidden ('create_alert', 1);
|
||||||
echo '</div></form>';
|
echo '</div></form>';
|
||||||
|
|
||||||
require_css_file ('cluetip');
|
ui_require_css_file ('cluetip');
|
||||||
require_jquery_file ('cluetip');
|
ui_require_jquery_file ('cluetip');
|
||||||
require_jquery_file ('pandora.controls');
|
ui_require_jquery_file ('pandora.controls');
|
||||||
require_jquery_file ('bgiframe');
|
ui_require_jquery_file ('bgiframe');
|
||||||
require_jquery_file ('autocomplete');
|
ui_require_jquery_file ('autocomplete');
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
/* <![CDATA[ */
|
/* <![CDATA[ */
|
||||||
|
@ -113,7 +113,7 @@ $form_filter .= "</tr>\n";
|
|||||||
$form_filter .= "</table>\n";
|
$form_filter .= "</table>\n";
|
||||||
$form_filter .= "</form>\n";
|
$form_filter .= "</form>\n";
|
||||||
|
|
||||||
toggle($form_filter,__('Alert control filter'), __('Toggle filter(s)'));
|
ui_toggle($form_filter,__('Alert control filter'), __('Toggle filter(s)'));
|
||||||
|
|
||||||
$simple_alerts = array();
|
$simple_alerts = array();
|
||||||
|
|
||||||
@ -272,10 +272,10 @@ switch ($sortField) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($id_agente) {
|
if ($id_agente) {
|
||||||
pagination ($total, 'index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=alert&id_agente=' . $id_agente);
|
ui_pagination ($total, 'index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=alert&id_agente=' . $id_agente);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
pagination ($total, 'index.php?sec=gagente&sec2=godmode/alerts/alert_list');
|
ui_pagination ($total, 'index.php?sec=gagente&sec2=godmode/alerts/alert_list');
|
||||||
}
|
}
|
||||||
$simple_alerts = get_agent_alerts_simple (array_keys ($agents), false,
|
$simple_alerts = get_agent_alerts_simple (array_keys ($agents), false,
|
||||||
array ('offset' => (int) get_parameter ('offset'),
|
array ('offset' => (int) get_parameter ('offset'),
|
||||||
@ -417,13 +417,13 @@ foreach ($simple_alerts as $alert) {
|
|||||||
$data[2] .= '</span>';
|
$data[2] .= '</span>';
|
||||||
$data[2] .= '</a>';
|
$data[2] .= '</a>';
|
||||||
}
|
}
|
||||||
$data[3] = printTruncateText(get_agentmodule_name ($alert['id_agent_module']), 25, false);
|
$data[3] = ui_print_truncate_text(get_agentmodule_name ($alert['id_agent_module']), 25, false);
|
||||||
$data[4] = ' <a class="template_details"
|
$data[4] = ' <a class="template_details"
|
||||||
href="ajax.php?page=godmode/alerts/alert_templates&get_template_tooltip=1&id_template='.$alert['id_alert_template'].'">' .
|
href="ajax.php?page=godmode/alerts/alert_templates&get_template_tooltip=1&id_template='.$alert['id_alert_template'].'">' .
|
||||||
print_image("images/zoom.png", true, array("id" => 'template-details-'.$alert['id_alert_template'], "class" => "img_help")) . '</a> ';
|
print_image("images/zoom.png", true, array("id" => 'template-details-'.$alert['id_alert_template'], "class" => "img_help")) . '</a> ';
|
||||||
|
|
||||||
$data[4] .= "<a href='index.php?sec=galertas&sec2=godmode/alerts/configure_alert_template&id=".$alert['id_alert_template']."'>";
|
$data[4] .= "<a href='index.php?sec=galertas&sec2=godmode/alerts/configure_alert_template&id=".$alert['id_alert_template']."'>";
|
||||||
$data[4] .= printTruncateText(get_alert_template_name ($alert['id_alert_template']), 15, false);
|
$data[4] .= ui_print_truncate_text(get_alert_template_name ($alert['id_alert_template']), 15, false);
|
||||||
$data[4] .= "</a>";
|
$data[4] .= "</a>";
|
||||||
|
|
||||||
if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
|
if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
|
||||||
@ -458,7 +458,7 @@ foreach ($simple_alerts as $alert) {
|
|||||||
$data[6] .= '<font class="action_name" style="font-style: italic; color: #aaaaaa;">';
|
$data[6] .= '<font class="action_name" style="font-style: italic; color: #aaaaaa;">';
|
||||||
else
|
else
|
||||||
$data[6] .= '<font class="action_name">';
|
$data[6] .= '<font class="action_name">';
|
||||||
$data[6] .= printTruncateText($action['name'], 15, false);
|
$data[6] .= ui_print_truncate_text($action['name'], 15, false);
|
||||||
$data[6] .= ' <em>(';
|
$data[6] .= ' <em>(';
|
||||||
if ($action['fires_min'] == $action['fires_max']) {
|
if ($action['fires_min'] == $action['fires_max']) {
|
||||||
if ($action['fires_min'] == 0)
|
if ($action['fires_min'] == 0)
|
||||||
@ -513,9 +513,9 @@ foreach ($simple_alerts as $alert) {
|
|||||||
$data[6] .= print_input_text ('fires_min', -1, '', 4, 10, true);
|
$data[6] .= print_input_text ('fires_min', -1, '', 4, 10, true);
|
||||||
$data[6] .= ' '.__('to').' ';
|
$data[6] .= ' '.__('to').' ';
|
||||||
$data[6] .= print_input_text ('fires_max', -1, '', 4, 10, true);
|
$data[6] .= print_input_text ('fires_max', -1, '', 4, 10, true);
|
||||||
$data[6] .= print_help_icon ("alert-matches", true);
|
$data[6] .= ui_print_help_icon ("alert-matches", true);
|
||||||
$data[6] .= '<br />' . __('Threshold');
|
$data[6] .= '<br />' . __('Threshold');
|
||||||
$data[6] .= print_input_text ('module_action_threshold', '', '', 4, 10, true) . print_help_icon ('action_threshold', true);
|
$data[6] .= print_input_text ('module_action_threshold', '', '', 4, 10, true) . ui_print_help_icon ('action_threshold', true);
|
||||||
$data[6] .= '</span>';
|
$data[6] .= '</span>';
|
||||||
$data[6] .= '<div class="right">';
|
$data[6] .= '<div class="right">';
|
||||||
$data[6] .= print_submit_button (__('Add'), 'add_action', false, 'class="sub next"', true);
|
$data[6] .= print_submit_button (__('Add'), 'add_action', false, 'class="sub next"', true);
|
||||||
@ -538,7 +538,7 @@ foreach ($simple_alerts as $alert) {
|
|||||||
$title = __('Alert not fired');
|
$title = __('Alert not fired');
|
||||||
}
|
}
|
||||||
|
|
||||||
$data[7] = print_status_image($status, $title, true);
|
$data[7] = ui_print_status_image($status, $title, true);
|
||||||
|
|
||||||
$data[8] = '<form class="delete_alert_form" method="post" style="display: inline;">';
|
$data[8] = '<form class="delete_alert_form" method="post" style="display: inline;">';
|
||||||
|
|
||||||
@ -563,11 +563,11 @@ print_submit_button (__('Create'), 'crtbtn', false, 'class="sub next"');
|
|||||||
echo '</form>';
|
echo '</form>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
require_css_file ('cluetip');
|
ui_require_css_file ('cluetip');
|
||||||
require_jquery_file ('cluetip');
|
ui_require_jquery_file ('cluetip');
|
||||||
require_jquery_file ('pandora.controls');
|
ui_require_jquery_file ('pandora.controls');
|
||||||
require_jquery_file ('bgiframe');
|
ui_require_jquery_file ('bgiframe');
|
||||||
require_jquery_file ('autocomplete');
|
ui_require_jquery_file ('autocomplete');
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
/* <![CDATA[ */
|
/* <![CDATA[ */
|
||||||
|
@ -70,7 +70,7 @@ if ($create_alert) {
|
|||||||
FROM talert_template_modules
|
FROM talert_template_modules
|
||||||
WHERE id_agent_module = " . $id_agent_module . "
|
WHERE id_agent_module = " . $id_agent_module . "
|
||||||
AND id_alert_template = " . $id_alert_template) > 0) {
|
AND id_alert_template = " . $id_alert_template) > 0) {
|
||||||
$messageAction = print_result_message (false, '', __('Already added'), '', true);
|
$messageAction = ui_print_result_message (false, '', __('Already added'), '', true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$id = create_alert_agent_module ($id_agent_module, $id_alert_template);
|
$id = create_alert_agent_module ($id_agent_module, $id_alert_template);
|
||||||
@ -89,7 +89,7 @@ if ($create_alert) {
|
|||||||
"Fail Added alert '$alert_template_name' for module '$module_name' in agent '$agent_name'");
|
"Fail Added alert '$alert_template_name' for module '$module_name' in agent '$agent_name'");
|
||||||
}
|
}
|
||||||
|
|
||||||
$messageAction = print_result_message ($id, __('Successfully created'), __('Could not be created'), '', true);
|
$messageAction = ui_print_result_message ($id, __('Successfully created'), __('Could not be created'), '', true);
|
||||||
if ($id !== false) {
|
if ($id !== false) {
|
||||||
$action_select = get_parameter('action_select');
|
$action_select = get_parameter('action_select');
|
||||||
|
|
||||||
@ -126,7 +126,7 @@ if ($delete_alert) {
|
|||||||
"Fail to deleted alert '$alert_template_name' for module '$module_name' in agent '$agent_name'");
|
"Fail to deleted alert '$alert_template_name' for module '$module_name' in agent '$agent_name'");
|
||||||
}
|
}
|
||||||
|
|
||||||
$messageAction = print_result_message ($result, __('Successfully deleted'), __('Could not be deleted'), '', true);
|
$messageAction = ui_print_result_message ($result, __('Successfully deleted'), __('Could not be deleted'), '', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($add_action) {
|
if ($add_action) {
|
||||||
@ -150,7 +150,7 @@ if ($add_action) {
|
|||||||
pandora_audit("Alert management", 'Fail to add action ' . $id_action . ' in alert ' . $id_alert_module);
|
pandora_audit("Alert management", 'Fail to add action ' . $id_action . ' in alert ' . $id_alert_module);
|
||||||
}
|
}
|
||||||
|
|
||||||
$messageAction = print_result_message ($result, __('Successfully added'), __('Could not be added'), '', true);
|
$messageAction = ui_print_result_message ($result, __('Successfully added'), __('Could not be added'), '', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($delete_action) {
|
if ($delete_action) {
|
||||||
@ -166,7 +166,7 @@ if ($delete_action) {
|
|||||||
pandora_audit("Alert management", 'Fail to delete action ' . $id_action . ' in alert ' . $id_alert);
|
pandora_audit("Alert management", 'Fail to delete action ' . $id_action . ' in alert ' . $id_alert);
|
||||||
}
|
}
|
||||||
|
|
||||||
$messageAction = print_result_message ($result, __('Successfully deleted'), __('Could not be deleted'), '', true);
|
$messageAction = ui_print_result_message ($result, __('Successfully deleted'), __('Could not be deleted'), '', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($enable_alert) {
|
if ($enable_alert) {
|
||||||
@ -181,7 +181,7 @@ if ($enable_alert) {
|
|||||||
pandora_audit("Alert management", 'Fail to enable ' . $id_alert);
|
pandora_audit("Alert management", 'Fail to enable ' . $id_alert);
|
||||||
}
|
}
|
||||||
|
|
||||||
$messageAction = print_result_message ($result, __('Successfully enabled'), __('Could not be enabled'), '', true);
|
$messageAction = ui_print_result_message ($result, __('Successfully enabled'), __('Could not be enabled'), '', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($disable_alert) {
|
if ($disable_alert) {
|
||||||
@ -196,7 +196,7 @@ if ($disable_alert) {
|
|||||||
pandora_audit("Alert management", 'Fail to disable ' . $id_alert);
|
pandora_audit("Alert management", 'Fail to disable ' . $id_alert);
|
||||||
}
|
}
|
||||||
|
|
||||||
$messageAction = print_result_message ($result, __('Successfully disabled'), __('Could not be disabled'), '', true);
|
$messageAction = ui_print_result_message ($result, __('Successfully disabled'), __('Could not be disabled'), '', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($standbyon_alert) {
|
if ($standbyon_alert) {
|
||||||
@ -211,7 +211,7 @@ if ($standbyon_alert) {
|
|||||||
pandora_audit("Alert management", 'Fail to standby ' . $id_alert);
|
pandora_audit("Alert management", 'Fail to standby ' . $id_alert);
|
||||||
}
|
}
|
||||||
|
|
||||||
$messageAction = print_result_message ($result, __('Successfully set standby'), __('Could not be set standby'), '', true);
|
$messageAction = ui_print_result_message ($result, __('Successfully set standby'), __('Could not be set standby'), '', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($standbyoff_alert) {
|
if ($standbyoff_alert) {
|
||||||
@ -226,7 +226,7 @@ if ($standbyoff_alert) {
|
|||||||
pandora_audit("Alert management", 'Fail to standbyoff ' . $id_alert);
|
pandora_audit("Alert management", 'Fail to standbyoff ' . $id_alert);
|
||||||
}
|
}
|
||||||
|
|
||||||
$messageAction = print_result_message ($result, __('Successfully set off standby'), __('Could not be set off standby'), '', true);
|
$messageAction = ui_print_result_message ($result, __('Successfully set off standby'), __('Could not be set off standby'), '', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($id_agente) {
|
if ($id_agente) {
|
||||||
@ -259,9 +259,9 @@ else {
|
|||||||
$buttons[$tab]['active'] = true;
|
$buttons[$tab]['active'] = true;
|
||||||
|
|
||||||
if ($tab == 'list') {
|
if ($tab == 'list') {
|
||||||
print_page_header(__('Alerts') . ' » ' . __('Manage alerts') . ' » ' . __('List'), "images/god2.png", false, "manage_alert_list", true, $buttons);
|
ui_print_page_header(__('Alerts') . ' » ' . __('Manage alerts') . ' » ' . __('List'), "images/god2.png", false, "manage_alert_list", true, $buttons);
|
||||||
} else {
|
} else {
|
||||||
print_page_header(__('Alerts') . ' » ' . __('Manage alerts') . ' » ' . __('Create'), "images/god2.png", false, "manage_alert_list", true, $buttons);
|
ui_print_page_header(__('Alerts') . ' » ' . __('Manage alerts') . ' » ' . __('Create'), "images/god2.png", false, "manage_alert_list", true, $buttons);
|
||||||
}
|
}
|
||||||
|
|
||||||
echo $messageAction;
|
echo $messageAction;
|
||||||
|
@ -34,7 +34,7 @@ if (is_ajax ()) {
|
|||||||
echo get_alert_templates_type_name ($template['type']);
|
echo get_alert_templates_type_name ($template['type']);
|
||||||
|
|
||||||
echo '<br />';
|
echo '<br />';
|
||||||
echo print_alert_template_example ($template['id'], true);
|
echo ui_print_alert_template_example ($template['id'], true);
|
||||||
|
|
||||||
echo '<br />';
|
echo '<br />';
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ $delete_template = (bool) get_parameter ('delete_template');
|
|||||||
// This prevents to duplicate the header in case delete_templete action is performed
|
// This prevents to duplicate the header in case delete_templete action is performed
|
||||||
if (!$delete_template)
|
if (!$delete_template)
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Alerts')." » ". __('Alert templates'), "images/god2.png", false, "", true);
|
ui_print_page_header (__('Alerts')." » ". __('Alert templates'), "images/god2.png", false, "", true);
|
||||||
|
|
||||||
if ($update_template) {
|
if ($update_template) {
|
||||||
$id = (int) get_parameter ('id');
|
$id = (int) get_parameter ('id');
|
||||||
@ -126,7 +126,7 @@ if ($update_template) {
|
|||||||
'field2_recovery' => $field2_recovery,
|
'field2_recovery' => $field2_recovery,
|
||||||
'field3_recovery' => $field3_recovery));
|
'field3_recovery' => $field3_recovery));
|
||||||
|
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Successfully updated'),
|
__('Successfully updated'),
|
||||||
__('Could not be updated'));
|
__('Could not be updated'));
|
||||||
}
|
}
|
||||||
@ -146,7 +146,7 @@ if ($delete_template) {
|
|||||||
exit;
|
exit;
|
||||||
}else
|
}else
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Alerts')." » ". __('Alert templates'), "images/god2.png", false, "", true);
|
ui_print_page_header (__('Alerts')." » ". __('Alert templates'), "images/god2.png", false, "", true);
|
||||||
// If user tries to delete a template of others groups
|
// If user tries to delete a template of others groups
|
||||||
}else{
|
}else{
|
||||||
$own_info = get_user_info ($config['id_user']);
|
$own_info = get_user_info ($config['id_user']);
|
||||||
@ -158,7 +158,7 @@ if ($delete_template) {
|
|||||||
// Then template group have to be is his own groups
|
// Then template group have to be is his own groups
|
||||||
if ($is_in_group)
|
if ($is_in_group)
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Alerts')." » ". __('Alert templates'), "images/god2.png", false, "", true);
|
ui_print_page_header (__('Alerts')." » ". __('Alert templates'), "images/god2.png", false, "", true);
|
||||||
else{
|
else{
|
||||||
pandora_audit("ACL Violation",
|
pandora_audit("ACL Violation",
|
||||||
"Trying to access Alert Management");
|
"Trying to access Alert Management");
|
||||||
@ -168,7 +168,7 @@ if ($delete_template) {
|
|||||||
}
|
}
|
||||||
}else
|
}else
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Alerts')." » ". __('Alert templates'), "images/god2.png", false, "", true);
|
ui_print_page_header (__('Alerts')." » ". __('Alert templates'), "images/god2.png", false, "", true);
|
||||||
|
|
||||||
$result = delete_alert_template ($id);
|
$result = delete_alert_template ($id);
|
||||||
|
|
||||||
@ -179,12 +179,12 @@ if ($delete_template) {
|
|||||||
pandora_audit("Template alert management", "Fail try to delete alert template " . $id);
|
pandora_audit("Template alert management", "Fail try to delete alert template " . $id);
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Successfully deleted'),
|
__('Successfully deleted'),
|
||||||
__('Could not be deleted'));
|
__('Could not be deleted'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$url = get_url_refresh (array ('offset' => false));
|
$url = ui_get_url_refresh (array ('offset' => false));
|
||||||
|
|
||||||
$search_string = (string) get_parameter ('search_string');
|
$search_string = (string) get_parameter ('search_string');
|
||||||
$search_type = (string) get_parameter ('search_type');
|
$search_type = (string) get_parameter ('search_type');
|
||||||
@ -257,7 +257,7 @@ foreach ($templates as $template) {
|
|||||||
$data[0] = '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_template&id='.$template['id'].'">'.
|
$data[0] = '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_template&id='.$template['id'].'">'.
|
||||||
$template['name'].'</a>';
|
$template['name'].'</a>';
|
||||||
|
|
||||||
$data[1] = print_group_icon ($template["id_group"], true) .' '. printTruncateText(get_group_name ($template['id_group'], true));
|
$data[1] = ui_print_group_icon ($template["id_group"], true) .' '. ui_print_truncate_text(get_group_name ($template['id_group'], true));
|
||||||
$data[3] = get_alert_templates_type_name ($template['type']);
|
$data[3] = get_alert_templates_type_name ($template['type']);
|
||||||
|
|
||||||
$data[4] = '<form method="post" action="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_template" style="display: inline; float: left">';
|
$data[4] = '<form method="post" action="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_template" style="display: inline; float: left">';
|
||||||
@ -275,7 +275,7 @@ foreach ($templates as $template) {
|
|||||||
array_push ($table->data, $data);
|
array_push ($table->data, $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
pagination ($total_templates, $url);
|
ui_pagination ($total_templates, $url);
|
||||||
if (isset($data)){
|
if (isset($data)){
|
||||||
print_table ($table);
|
print_table ($table);
|
||||||
} else {
|
} else {
|
||||||
|
@ -42,7 +42,7 @@ if ($al_action !== false){
|
|||||||
exit;
|
exit;
|
||||||
}else
|
}else
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Alerts').' » '.__('Configure alert action'), "images/god2.png", false, "", true);
|
ui_print_page_header (__('Alerts').' » '.__('Configure alert action'), "images/god2.png", false, "", true);
|
||||||
// If user tries to edit an action of others groups
|
// If user tries to edit an action of others groups
|
||||||
}else{
|
}else{
|
||||||
$own_info = get_user_info ($config['id_user']);
|
$own_info = get_user_info ($config['id_user']);
|
||||||
@ -54,7 +54,7 @@ if ($al_action !== false){
|
|||||||
// Then action group have to be in his own groups
|
// Then action group have to be in his own groups
|
||||||
if ($is_in_group)
|
if ($is_in_group)
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Alerts').' » '.__('Configure alert action'), "images/god2.png", false, "", true);
|
ui_print_page_header (__('Alerts').' » '.__('Configure alert action'), "images/god2.png", false, "", true);
|
||||||
else{
|
else{
|
||||||
pandora_audit("ACL Violation",
|
pandora_audit("ACL Violation",
|
||||||
"Trying to access Alert Management");
|
"Trying to access Alert Management");
|
||||||
@ -64,7 +64,7 @@ if ($al_action !== false){
|
|||||||
}
|
}
|
||||||
}else
|
}else
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Alerts').' » '.__('Configure alert action'), "images/god2.png", false, "", true);
|
ui_print_page_header (__('Alerts').' » '.__('Configure alert action'), "images/god2.png", false, "", true);
|
||||||
|
|
||||||
$name = '';
|
$name = '';
|
||||||
$id_command = '';
|
$id_command = '';
|
||||||
@ -117,9 +117,9 @@ if (check_acl ($config['id_user'], 0, "PM")){
|
|||||||
}
|
}
|
||||||
$table->data[3][0] = __('Threshold');
|
$table->data[3][0] = __('Threshold');
|
||||||
$table->data[3][1] = print_input_text ('action_threshold', $action_threshold, '', 5, 7, true);
|
$table->data[3][1] = print_input_text ('action_threshold', $action_threshold, '', 5, 7, true);
|
||||||
$table->data[3][1] .= ' '.__('seconds') . print_help_icon ('action_threshold', true);
|
$table->data[3][1] .= ' '.__('seconds') . ui_print_help_icon ('action_threshold', true);
|
||||||
$table->data[4][0] = __('Field 1');
|
$table->data[4][0] = __('Field 1');
|
||||||
$table->data[4][1] = print_input_text ('field1', $field1, '', 35, 255, true) . print_help_icon ('alert_macros', true);
|
$table->data[4][1] = print_input_text ('field1', $field1, '', 35, 255, true) . ui_print_help_icon ('alert_macros', true);
|
||||||
|
|
||||||
$table->data[5][0] = __('Field 2');
|
$table->data[5][0] = __('Field 2');
|
||||||
$table->data[5][1] = print_input_text ('field2', $field2, '', 80, 255, true);
|
$table->data[5][1] = print_input_text ('field2', $field2, '', 80, 255, true);
|
||||||
@ -145,7 +145,7 @@ if ($id) {
|
|||||||
echo '</div>';
|
echo '</div>';
|
||||||
echo '</form>';
|
echo '</form>';
|
||||||
|
|
||||||
require_javascript_file ('pandora_alerts');
|
ui_require_javascript_file ('pandora_alerts');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -39,7 +39,7 @@ if ($id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Alerts').' » '.__('Configure alert command'), "images/god2.png", false, "", true);
|
ui_print_page_header (__('Alerts').' » '.__('Configure alert command'), "images/god2.png", false, "", true);
|
||||||
|
|
||||||
$table->width = '90%';
|
$table->width = '90%';
|
||||||
$table->style = array ();
|
$table->style = array ();
|
||||||
@ -50,7 +50,7 @@ $table->data = array ();
|
|||||||
$table->data[0][0] = __('Name');
|
$table->data[0][0] = __('Name');
|
||||||
$table->data[0][1] = print_input_text ('name', $name, '', 35, 255, true);
|
$table->data[0][1] = print_input_text ('name', $name, '', 35, 255, true);
|
||||||
$table->data[1][0] = __('Command');
|
$table->data[1][0] = __('Command');
|
||||||
$table->data[1][0] .= print_help_icon ('alert_macros', true);
|
$table->data[1][0] .= ui_print_help_icon ('alert_macros', true);
|
||||||
$table->data[1][1] = print_input_text ('command', $command, '', 80, 255, true);
|
$table->data[1][1] = print_input_text ('command', $command, '', 80, 255, true);
|
||||||
|
|
||||||
$table->data[2][0] = __('Description');
|
$table->data[2][0] = __('Description');
|
||||||
|
@ -236,7 +236,7 @@ if ($id && ! $create_compound) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Alerts').' » '.__('Configure correlated alert'), "images/god2.png", false, "", true);
|
ui_print_page_header (__('Alerts').' » '.__('Configure correlated alert'), "images/god2.png", false, "", true);
|
||||||
|
|
||||||
if ($create_compound) {
|
if ($create_compound) {
|
||||||
$name = (string) get_parameter ('name');
|
$name = (string) get_parameter ('name');
|
||||||
@ -245,7 +245,7 @@ if ($create_compound) {
|
|||||||
$result = create_alert_compound ($name, $id_agent,
|
$result = create_alert_compound ($name, $id_agent,
|
||||||
array ('description' => $description));
|
array ('description' => $description));
|
||||||
|
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Successfully created'),
|
__('Successfully created'),
|
||||||
__('Could not be created'));
|
__('Could not be created'));
|
||||||
/* Go to previous step in case of error */
|
/* Go to previous step in case of error */
|
||||||
@ -265,7 +265,7 @@ if ($create_compound) {
|
|||||||
if ($update_compound) {
|
if ($update_compound) {
|
||||||
$result = update_compound ($step - 1);
|
$result = update_compound ($step - 1);
|
||||||
|
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Successfully updated'),
|
__('Successfully updated'),
|
||||||
__('Could not be updated'));
|
__('Could not be updated'));
|
||||||
/* Go to previous step in case of error */
|
/* Go to previous step in case of error */
|
||||||
@ -366,7 +366,7 @@ if ($step == 2) {
|
|||||||
$table->data[4][1] .= ' '.__('to').' ';
|
$table->data[4][1] .= ' '.__('to').' ';
|
||||||
$table->data[4][1] .= print_input_text ('fires_max', 0, '', 4, 10, true);
|
$table->data[4][1] .= print_input_text ('fires_max', 0, '', 4, 10, true);
|
||||||
$table->data[4][1] .= ' '.__('matches of the alert');
|
$table->data[4][1] .= ' '.__('matches of the alert');
|
||||||
$table->data[4][1] .= print_help_icon("alert-matches", true);
|
$table->data[4][1] .= ui_print_help_icon("alert-matches", true);
|
||||||
$table->data[4][1] .= '</span>';
|
$table->data[4][1] .= '</span>';
|
||||||
*/
|
*/
|
||||||
$table->data['actions'][0] = __('Assigned actions');
|
$table->data['actions'][0] = __('Assigned actions');
|
||||||
@ -602,12 +602,12 @@ if ($step == 1) {
|
|||||||
echo '</div>';
|
echo '</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
require_css_file ('timeentry');
|
ui_require_css_file ('timeentry');
|
||||||
require_jquery_file ('form');
|
ui_require_jquery_file ('form');
|
||||||
require_jquery_file ('tablesorter');
|
ui_require_jquery_file ('tablesorter');
|
||||||
require_jquery_file ('tablesorter.pager');
|
ui_require_jquery_file ('tablesorter.pager');
|
||||||
require_jquery_file ('ui.core');
|
ui_require_jquery_file ('ui.core');
|
||||||
require_jquery_file ('timeentry');
|
ui_require_jquery_file ('timeentry');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript" src="include/javascript/pandora_alerts.js"></script>
|
<script type="text/javascript" src="include/javascript/pandora_alerts.js"></script>
|
||||||
|
@ -49,7 +49,7 @@ if ($a_template !== false){
|
|||||||
exit;
|
exit;
|
||||||
}else
|
}else
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Alerts').' » '.__('Configure alert template'), "", false, "", true);
|
ui_print_page_header (__('Alerts').' » '.__('Configure alert template'), "", false, "", true);
|
||||||
// If user tries to duplicate/edit a template of others groups
|
// If user tries to duplicate/edit a template of others groups
|
||||||
}else{
|
}else{
|
||||||
$own_info = get_user_info ($config['id_user']);
|
$own_info = get_user_info ($config['id_user']);
|
||||||
@ -61,7 +61,7 @@ if ($a_template !== false){
|
|||||||
// Then template group have to be in his own groups
|
// Then template group have to be in his own groups
|
||||||
if ($is_in_group)
|
if ($is_in_group)
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Alerts').' » '.__('Configure alert template'), "", false, "", true);
|
ui_print_page_header (__('Alerts').' » '.__('Configure alert template'), "", false, "", true);
|
||||||
else{
|
else{
|
||||||
pandora_audit("ACL Violation",
|
pandora_audit("ACL Violation",
|
||||||
"Trying to access Alert Management");
|
"Trying to access Alert Management");
|
||||||
@ -72,7 +72,7 @@ if ($a_template !== false){
|
|||||||
// This prevents to duplicate the header in case duplicate/edit_template action is performed
|
// This prevents to duplicate the header in case duplicate/edit_template action is performed
|
||||||
}else
|
}else
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Alerts').' » '.__('Configure alert template'), "", false, "", true);
|
ui_print_page_header (__('Alerts').' » '.__('Configure alert template'), "", false, "", true);
|
||||||
|
|
||||||
|
|
||||||
if ($duplicate_template) {
|
if ($duplicate_template) {
|
||||||
@ -87,7 +87,7 @@ if ($duplicate_template) {
|
|||||||
pandora_audit("Template alert management", "Fail try to duplicate alert template " . $source_id);
|
pandora_audit("Template alert management", "Fail try to duplicate alert template " . $source_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message ($id,
|
ui_print_result_message ($id,
|
||||||
__('Successfully created from %s', get_alert_template_name ($source_id)),
|
__('Successfully created from %s', get_alert_template_name ($source_id)),
|
||||||
__('Could not be created'));
|
__('Could not be created'));
|
||||||
}
|
}
|
||||||
@ -323,7 +323,7 @@ if ($create_template) {
|
|||||||
pandora_audit("Command management", "Fail try to create alert command", false, false, json_encode($values));
|
pandora_audit("Command management", "Fail try to create alert command", false, false, json_encode($values));
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Successfully created'),
|
__('Successfully created'),
|
||||||
__('Could not be created'));
|
__('Could not be created'));
|
||||||
/* Go to previous step in case of error */
|
/* Go to previous step in case of error */
|
||||||
@ -336,7 +336,7 @@ if ($create_template) {
|
|||||||
if ($update_template) {
|
if ($update_template) {
|
||||||
$result = update_template ($step - 1);
|
$result = update_template ($step - 1);
|
||||||
|
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Successfully updated'),
|
__('Successfully updated'),
|
||||||
__('Could not be updated'));
|
__('Could not be updated'));
|
||||||
/* Go to previous step in case of error */
|
/* Go to previous step in case of error */
|
||||||
@ -445,13 +445,13 @@ if ($step == 2) {
|
|||||||
$table->data[3][3] = print_input_text ('max_alerts', $max_alerts, '',
|
$table->data[3][3] = print_input_text ('max_alerts', $max_alerts, '',
|
||||||
5, 7, true);
|
5, 7, true);
|
||||||
|
|
||||||
$table->data['field1'][0] = __('Field 1') . print_help_icon ('alert_macros', true);
|
$table->data['field1'][0] = __('Field 1') . ui_print_help_icon ('alert_macros', true);
|
||||||
$table->data['field1'][1] = print_input_text ('field1', $field1, '', 70, 255, true);
|
$table->data['field1'][1] = print_input_text ('field1', $field1, '', 70, 255, true);
|
||||||
|
|
||||||
$table->data['field2'][0] = __('Field 2') . print_help_icon ('alert_macros', true);
|
$table->data['field2'][0] = __('Field 2') . ui_print_help_icon ('alert_macros', true);
|
||||||
$table->data['field2'][1] = print_input_text ('field2', $field2, '', 70, 255, true);
|
$table->data['field2'][1] = print_input_text ('field2', $field2, '', 70, 255, true);
|
||||||
|
|
||||||
$table->data['field3'][0] = __('Field 3') . print_help_icon ('alert_macros', true);
|
$table->data['field3'][0] = __('Field 3') . ui_print_help_icon ('alert_macros', true);
|
||||||
$table->data['field3'][1] = print_textarea ('field3', 10, 30, $field3, '', true);
|
$table->data['field3'][1] = print_textarea ('field3', 10, 30, $field3, '', true);
|
||||||
|
|
||||||
$table->data[4][0] = __('Default action');
|
$table->data[4][0] = __('Default action');
|
||||||
@ -459,7 +459,7 @@ if ($step == 2) {
|
|||||||
$sql_query = sprintf('SELECT id, name FROM talert_actions WHERE id_group IN (%s) ORDER BY name', $usr_groups);
|
$sql_query = sprintf('SELECT id, name FROM talert_actions WHERE id_group IN (%s) ORDER BY name', $usr_groups);
|
||||||
$table->data[4][1] = print_select_from_sql ($sql_query,
|
$table->data[4][1] = print_select_from_sql ($sql_query,
|
||||||
'default_action', $default_action, '', __('None'), 0,
|
'default_action', $default_action, '', __('None'), 0,
|
||||||
true, false, false).print_help_tip (__('In case you fill any Field 1, Field 2 or Field 3 above, those will replace the corresponding fields of this associated "Default action".'), true);
|
true, false, false).ui_print_help_tip (__('In case you fill any Field 1, Field 2 or Field 3 above, those will replace the corresponding fields of this associated "Default action".'), true);
|
||||||
} else if ($step == 3) {
|
} else if ($step == 3) {
|
||||||
/* Alert recover */
|
/* Alert recover */
|
||||||
if (! $recovery_notify) {
|
if (! $recovery_notify) {
|
||||||
@ -563,7 +563,7 @@ if ($step == 2) {
|
|||||||
$table->data['max'][0] = __('Max.');
|
$table->data['max'][0] = __('Max.');
|
||||||
$table->data['max'][1] = print_input_text ('max', $max, '', 5, 255, true);
|
$table->data['max'][1] = print_input_text ('max', $max, '', 5, 255, true);
|
||||||
|
|
||||||
$table->data['example'][1] = print_alert_template_example ($id, true, false);
|
$table->data['example'][1] = ui_print_alert_template_example ($id, true, false);
|
||||||
$table->colspan['example'][1] = 2;
|
$table->colspan['example'][1] = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -592,9 +592,9 @@ if ($step >= LAST_STEP) {
|
|||||||
echo '</div>';
|
echo '</div>';
|
||||||
echo '</form>';
|
echo '</form>';
|
||||||
|
|
||||||
require_jquery_file ('ui.core');
|
ui_require_jquery_file ('ui.core');
|
||||||
require_jquery_file ('timeentry');
|
ui_require_jquery_file ('timeentry');
|
||||||
require_javascript_file ('pandora_alerts');
|
ui_require_javascript_file ('pandora_alerts');
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
/* <![CDATA[ */
|
/* <![CDATA[ */
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
// Load global vars
|
// Load global vars
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
print_page_header (__('Database maintenance').' » '.__('Database audit purge'), "images/god8.png", false, "", true);
|
ui_print_page_header (__('Database maintenance').' » '.__('Database audit purge'), "images/god8.png", false, "", true);
|
||||||
|
|
||||||
check_login ();
|
check_login ();
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ global $config;
|
|||||||
|
|
||||||
check_login ();
|
check_login ();
|
||||||
|
|
||||||
print_page_header (__('Database maintenance').' » '.__('Event database cleanup'), "images/god8.png", false, "", true);
|
ui_print_page_header (__('Database maintenance').' » '.__('Event database cleanup'), "images/god8.png", false, "", true);
|
||||||
|
|
||||||
if (! check_acl ($config['id_user'], 0, "DM")) {
|
if (! check_acl ($config['id_user'], 0, "DM")) {
|
||||||
pandora_audit("ACL Violation", "Trying to access Database Management Event");
|
pandora_audit("ACL Violation", "Trying to access Database Management Event");
|
||||||
|
@ -24,7 +24,7 @@ if ($config['flash_charts']) {
|
|||||||
require('include/fgraph.php');
|
require('include/fgraph.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
print_page_header (__('Database maintenance').' » '.__('Database information'), "images/god8.png", false, "", true);
|
ui_print_page_header (__('Database maintenance').' » '.__('Database information'), "images/god8.png", false, "", true);
|
||||||
|
|
||||||
check_login ();
|
check_login ();
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ switch ($config["dbtype"]) {
|
|||||||
$max_access = 1000000;
|
$max_access = 1000000;
|
||||||
$max_data = 12000000;
|
$max_data = 12000000;
|
||||||
|
|
||||||
print_page_header (__('Current database maintenance setup'), "", false, "", true);
|
ui_print_page_header (__('Current database maintenance setup'), "", false, "", true);
|
||||||
|
|
||||||
echo '<table class=databox width="550" cellspacing="4" cellpadding="4" border="0">';
|
echo '<table class=databox width="550" cellspacing="4" cellpadding="4" border="0">';
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ if (! check_acl ($config['id_user'], 0, "DM")) {
|
|||||||
//id_agent = -1: None selected; id_agent = 0: All
|
//id_agent = -1: None selected; id_agent = 0: All
|
||||||
$id_agent = (int) get_parameter_post ("agent", -1);
|
$id_agent = (int) get_parameter_post ("agent", -1);
|
||||||
|
|
||||||
print_page_header (__('Database maintenance').' » '.__('Database purge'), "images/god8.png", false, "", true);
|
ui_print_page_header (__('Database maintenance').' » '.__('Database purge'), "images/god8.png", false, "", true);
|
||||||
|
|
||||||
echo grafico_db_agentes_purge2($id_agent);
|
echo grafico_db_agentes_purge2($id_agent);
|
||||||
|
|
||||||
@ -160,10 +160,10 @@ $agents[0] = __('All agents');
|
|||||||
echo '<form action="index.php?sec=gdbman&sec2=godmode/db/db_purge" method="post">';
|
echo '<form action="index.php?sec=gdbman&sec2=godmode/db/db_purge" method="post">';
|
||||||
echo '<div style="width:100%;">';
|
echo '<div style="width:100%;">';
|
||||||
print_select ($agents, "agent", $id_agent, "this.form.submit();", "", "", false, false, false);
|
print_select ($agents, "agent", $id_agent, "this.form.submit();", "", "", false, false, false);
|
||||||
print_help_tip (__("Select the agent you want information about"));
|
ui_print_help_tip (__("Select the agent you want information about"));
|
||||||
echo '<noscript>';
|
echo '<noscript>';
|
||||||
print_submit_button (__('Get data'), 'purgedb_ag', false, 'class="sub upd"');
|
print_submit_button (__('Get data'), 'purgedb_ag', false, 'class="sub upd"');
|
||||||
print_help_tip (__("Click here to get the data from the agent specified in the select box"));
|
ui_print_help_tip (__("Click here to get the data from the agent specified in the select box"));
|
||||||
echo '</noscript><br />';
|
echo '</noscript><br />';
|
||||||
|
|
||||||
if ($id_agent > 0) {
|
if ($id_agent > 0) {
|
||||||
|
@ -26,7 +26,7 @@ if (! check_acl ($config['id_user'], 0, "DM")) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
print_page_header (__('Database maintenance').' » '.__('Database debug'), "images/god8.png", false, "", true);
|
ui_print_page_header (__('Database maintenance').' » '.__('Database debug'), "images/god8.png", false, "", true);
|
||||||
|
|
||||||
|
|
||||||
if ((isset ($_GET["operacion"])) && (!isset ($_POST["update_agent"]))) {
|
if ((isset ($_GET["operacion"])) && (!isset ($_POST["update_agent"]))) {
|
||||||
|
@ -26,7 +26,7 @@ if (! check_acl ($config["id_user"], 0, "DM")) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
print_page_header (__('Database maintenance').' » '.__('Database sanity tool'), "images/god8.png", false, "", true);
|
ui_print_page_header (__('Database maintenance').' » '.__('Database sanity tool'), "images/god8.png", false, "", true);
|
||||||
|
|
||||||
$sanity = get_parameter ("sanity", 0);
|
$sanity = get_parameter ("sanity", 0);
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ if (! check_acl ($config['id_user'], 0, "PM")) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Extensions'). " » ". __('Defined extensions'), "images/extensions.png", false, "", true, "" );
|
ui_print_page_header (__('Extensions'). " » ". __('Defined extensions'), "images/extensions.png", false, "", true, "" );
|
||||||
|
|
||||||
if (sizeof ($config['extensions']) == 0) {
|
if (sizeof ($config['extensions']) == 0) {
|
||||||
$extensions = getExtensionInfo();
|
$extensions = getExtensionInfo();
|
||||||
|
@ -17,14 +17,14 @@ global $config;
|
|||||||
|
|
||||||
check_login ();
|
check_login ();
|
||||||
|
|
||||||
print_page_header (__('GIS Maps builder'), "images/server_web.png", false, "configure_gis_map", true);
|
ui_print_page_header (__('GIS Maps builder'), "images/server_web.png", false, "configure_gis_map", true);
|
||||||
|
|
||||||
|
|
||||||
require_once ('include/functions_gis.php');
|
require_once ('include/functions_gis.php');
|
||||||
|
|
||||||
$magicQuotesFlag = (boolean)ini_get('magic_quotes_gpc');
|
$magicQuotesFlag = (boolean)ini_get('magic_quotes_gpc');
|
||||||
|
|
||||||
require_javascript_file('openlayers.pandora');
|
ui_require_javascript_file('openlayers.pandora');
|
||||||
//Global vars for javascript and scripts.
|
//Global vars for javascript and scripts.
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
@ -159,7 +159,7 @@ switch ($action) {
|
|||||||
}
|
}
|
||||||
$layer_list = $arrayLayers;
|
$layer_list = $arrayLayers;
|
||||||
|
|
||||||
print_result_message ($mapCreatedOk, __('Map successfully created'),
|
ui_print_result_message ($mapCreatedOk, __('Map successfully created'),
|
||||||
__('Map could not be created'));
|
__('Map could not be created'));
|
||||||
break;
|
break;
|
||||||
case 'new_map':
|
case 'new_map':
|
||||||
@ -289,7 +289,7 @@ switch ($action) {
|
|||||||
}
|
}
|
||||||
$layer_list = $arrayLayers;
|
$layer_list = $arrayLayers;
|
||||||
|
|
||||||
print_result_message ($mapCreatedOk, __('Map successfully update'),
|
ui_print_result_message ($mapCreatedOk, __('Map successfully update'),
|
||||||
__('Map could not be update'));
|
__('Map could not be update'));
|
||||||
|
|
||||||
print_input_hidden('action', 'update_saved');
|
print_input_hidden('action', 'update_saved');
|
||||||
@ -301,7 +301,7 @@ $table->width = '90%';
|
|||||||
$table->data = array ();
|
$table->data = array ();
|
||||||
$table->valign[0] = 'top';
|
$table->valign[0] = 'top';
|
||||||
|
|
||||||
$table->data[0][0] = __('Map Name') . print_help_tip (__('Descriptive name for the map'), true). ':';
|
$table->data[0][0] = __('Map Name') . ui_print_help_tip (__('Descriptive name for the map'), true). ':';
|
||||||
$table->data[0][1] = print_input_text ('map_name', $map_name, '', 30, 60, true);
|
$table->data[0][1] = print_input_text ('map_name', $map_name, '', 30, 60, true);
|
||||||
$table->rowspan[0][2] = 9;
|
$table->rowspan[0][2] = 9;
|
||||||
|
|
||||||
@ -320,7 +320,7 @@ foreach ($listConnectionTemp as $connectionTemp) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$table->data[1][0] = __("Add Map connection") . print_help_tip (__('At least one map connection must be defined, it will be possible to change between the connections in the map'), true). ": " . $iconError;
|
$table->data[1][0] = __("Add Map connection") . ui_print_help_tip (__('At least one map connection must be defined, it will be possible to change between the connections in the map'), true). ": " . $iconError;
|
||||||
$table->data[1][1] = "<table class='databox' border='0' id='map_connection'>
|
$table->data[1][1] = "<table class='databox' border='0' id='map_connection'>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
@ -338,10 +338,10 @@ if ($own_info['is_admin'] || check_acl ($config['id_user'], 0, "PM"))
|
|||||||
$display_all_group = true;
|
$display_all_group = true;
|
||||||
else
|
else
|
||||||
$display_all_group = false;
|
$display_all_group = false;
|
||||||
$table->data[2][0] = __('Group') . print_help_tip (__('Group that owns the map'), true). ':';
|
$table->data[2][0] = __('Group') . ui_print_help_tip (__('Group that owns the map'), true). ':';
|
||||||
$table->data[2][1] = print_select_groups(false, 'IW', $display_all_group, 'map_group_id', $map_group_id, '', '', '', true);
|
$table->data[2][1] = print_select_groups(false, 'IW', $display_all_group, 'map_group_id', $map_group_id, '', '', '', true);
|
||||||
|
|
||||||
$table->data[3][0] = __('Default zoom') . print_help_tip (__('Default zoom level when opening the map'), true). ':';
|
$table->data[3][0] = __('Default zoom') . ui_print_help_tip (__('Default zoom level when opening the map'), true). ':';
|
||||||
$table->data[3][1] = print_input_text ('map_zoom_level', $map_zoom_level, '', 2, 4, true) . print_input_hidden('map_levels_zoom', $map_levels_zoom, true);
|
$table->data[3][1] = print_input_text ('map_zoom_level', $map_zoom_level, '', 2, 4, true) . print_input_hidden('map_levels_zoom', $map_levels_zoom, true);
|
||||||
|
|
||||||
$table->data[4][0] = __('Center Longitude') . ':';
|
$table->data[4][0] = __('Center Longitude') . ':';
|
||||||
@ -364,14 +364,14 @@ $table->data[9][1] = print_input_text ('map_default_altitude', $map_default_alti
|
|||||||
|
|
||||||
print_table($table);
|
print_table($table);
|
||||||
|
|
||||||
echo "<h3>" . __('Layers') . print_help_tip (__('Each layer can show agents from one group or the agents added to that layer or both.'), true). "</h3>";
|
echo "<h3>" . __('Layers') . ui_print_help_tip (__('Each layer can show agents from one group or the agents added to that layer or both.'), true). "</h3>";
|
||||||
|
|
||||||
$table->width = '90%';
|
$table->width = '90%';
|
||||||
$table->data = array ();
|
$table->data = array ();
|
||||||
$table->valign[0] = 'top';
|
$table->valign[0] = 'top';
|
||||||
$table->valign[1] = 'top';
|
$table->valign[1] = 'top';
|
||||||
|
|
||||||
$table->data[0][0] = "<h4>" .__('List of layers') . print_help_tip (__('It is possible to edit, delete and reorder the layers.'), true) . "</h4>";
|
$table->data[0][0] = "<h4>" .__('List of layers') . ui_print_help_tip (__('It is possible to edit, delete and reorder the layers.'), true) . "</h4>";
|
||||||
$table->data[0][1] = '<div style="text-align: right;">' . print_button(__('New layer'), 'new_layer', false, 'newLayer();', 'class="sub add"', true) . '</div>';
|
$table->data[0][1] = '<div style="text-align: right;">' . print_button(__('New layer'), 'new_layer', false, 'newLayer();', 'class="sub add"', true) . '</div>';
|
||||||
|
|
||||||
$table->data[1][0] = '<table class="databox" border="0" cellpadding="4" cellspacing="4" id="list_layers">' .
|
$table->data[1][0] = '<table class="databox" border="0" cellpadding="4" cellspacing="4" id="list_layers">' .
|
||||||
@ -485,12 +485,12 @@ echo "</form>";
|
|||||||
<?php
|
<?php
|
||||||
//-------------------------END CHUNKS---------------------------------------
|
//-------------------------END CHUNKS---------------------------------------
|
||||||
|
|
||||||
require_css_file ('cluetip');
|
ui_require_css_file ('cluetip');
|
||||||
require_jquery_file ('cluetip');
|
ui_require_jquery_file ('cluetip');
|
||||||
require_jquery_file ('pandora.controls');
|
ui_require_jquery_file ('pandora.controls');
|
||||||
require_jquery_file ('bgiframe');
|
ui_require_jquery_file ('bgiframe');
|
||||||
require_jquery_file ('autocomplete');
|
ui_require_jquery_file ('autocomplete');
|
||||||
require_jquery_file ('json');
|
ui_require_jquery_file ('json');
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function refreshMapView() {
|
function refreshMapView() {
|
||||||
|
@ -19,7 +19,7 @@ check_login ();
|
|||||||
|
|
||||||
require_once ('include/functions_gis.php');
|
require_once ('include/functions_gis.php');
|
||||||
|
|
||||||
require_javascript_file('openlayers.pandora');
|
ui_require_javascript_file('openlayers.pandora');
|
||||||
|
|
||||||
if (! check_acl ($config['id_user'], 0, "IW")) {
|
if (! check_acl ($config['id_user'], 0, "IW")) {
|
||||||
pandora_audit("ACL Violation", "Trying to access map builder");
|
pandora_audit("ACL Violation", "Trying to access map builder");
|
||||||
@ -62,7 +62,7 @@ switch ($action) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
print_page_header (__('GIS Maps builder'), "images/server_web.png", false, "gis_map_builder", true);
|
ui_print_page_header (__('GIS Maps builder'), "images/server_web.png", false, "gis_map_builder", true);
|
||||||
|
|
||||||
$table->width = '500px';
|
$table->width = '500px';
|
||||||
$table->head[0] = __('Map name');
|
$table->head[0] = __('Map name');
|
||||||
@ -100,7 +100,7 @@ if (!$maps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$table_info = array('<a href="index.php?sec=godgismaps&sec2=godmode/gis_maps/configure_gis_map&map_id='.$map['id_tgis_map'].'&action=edit_map">' . $map['map_name'] . '</a>',
|
$table_info = array('<a href="index.php?sec=godgismaps&sec2=godmode/gis_maps/configure_gis_map&map_id='.$map['id_tgis_map'].'&action=edit_map">' . $map['map_name'] . '</a>',
|
||||||
print_group_icon ($map['group_id'], true),
|
ui_print_group_icon ($map['group_id'], true),
|
||||||
'<a href="index.php?sec=gismaps&sec2=operation/gis_maps/render_view&map_id='.$map['id_tgis_map'].'">' . print_image ("images/eye.png", true).'</a>');
|
'<a href="index.php?sec=gismaps&sec2=operation/gis_maps/render_view&map_id='.$map['id_tgis_map'].'">' . print_image ("images/eye.png", true).'</a>');
|
||||||
if ($display_default_column) {
|
if ($display_default_column) {
|
||||||
$default_button = print_radio_button_extended('default_map', $map['id_tgis_map'], '', $checked, false, "setDefault(" . $map['id_tgis_map'] . ");", '', true);
|
$default_button = print_radio_button_extended('default_map', $map['id_tgis_map'], '', $checked, false, "setDefault(" . $map['id_tgis_map'] . ");", '', true);
|
||||||
|
@ -57,10 +57,10 @@ if ($id_group) {
|
|||||||
|
|
||||||
// Header
|
// Header
|
||||||
if ($id_group) {
|
if ($id_group) {
|
||||||
print_page_header (__("Update group"), "images/god1.png", false, "", true, "");
|
ui_print_page_header (__("Update group"), "images/god1.png", false, "", true, "");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
print_page_header (__("Create group"), "images/god1.png", false, "", true, "");
|
ui_print_page_header (__("Create group"), "images/god1.png", false, "", true, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
$table->width = '450px';
|
$table->width = '450px';
|
||||||
@ -96,7 +96,7 @@ $table->data[2][1] .= '</span>';
|
|||||||
$table->data[3][0] = __('Alerts');
|
$table->data[3][0] = __('Alerts');
|
||||||
$table->data[3][1] = print_checkbox ('alerts_enabled', 1, ! $alerts_disabled, true);
|
$table->data[3][1] = print_checkbox ('alerts_enabled', 1, ! $alerts_disabled, true);
|
||||||
|
|
||||||
$table->data[4][0] = __('Propagate ACL') . print_help_tip (__("Propagate the same ACL security into the child subgroups."), true);
|
$table->data[4][0] = __('Propagate ACL') . ui_print_help_tip (__("Propagate the same ACL security into the child subgroups."), true);
|
||||||
$table->data[4][1] = print_checkbox('propagate', 1, $propagate, true);
|
$table->data[4][1] = print_checkbox('propagate', 1, $propagate, true);
|
||||||
|
|
||||||
$table->data[5][0] = __('Custom ID');
|
$table->data[5][0] = __('Custom ID');
|
||||||
|
@ -26,7 +26,7 @@ if (! check_acl ($config['id_user'], 0, "PM")) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__("Module group management"), "images/god1.png", false, "", true, "");
|
ui_print_page_header (__("Module group management"), "images/god1.png", false, "", true, "");
|
||||||
|
|
||||||
// Init vars
|
// Init vars
|
||||||
$icon = "";
|
$icon = "";
|
||||||
|
@ -85,7 +85,7 @@ if (! check_acl($config['id_user'], 0, "PM")) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__("Groups defined in Pandora"), "images/god1.png", false, "", true, "");
|
ui_print_page_header (__("Groups defined in Pandora"), "images/god1.png", false, "", true, "");
|
||||||
|
|
||||||
$create_group = (bool) get_parameter ('create_group');
|
$create_group = (bool) get_parameter ('create_group');
|
||||||
$update_group = (bool) get_parameter ('update_group');
|
$update_group = (bool) get_parameter ('update_group');
|
||||||
@ -276,12 +276,12 @@ foreach ($groups as $id_group => $group) {
|
|||||||
|
|
||||||
if ($group['hash_branch']) {
|
if ($group['hash_branch']) {
|
||||||
$data[0] = '<strong>'.$tabulation . ' ' .
|
$data[0] = '<strong>'.$tabulation . ' ' .
|
||||||
'<a href="javascript: showBranch(' . $group['id_grupo'] . ', ' . $group['parent'] . ');" title="' . __('Show branch children') . '"><span class="symbol_' . $group['id_grupo'] . ' ' . $symbolBranchs . '">' . $symbol . '</span> '. printTruncateText($group['nombre']).'</a></strong>';
|
'<a href="javascript: showBranch(' . $group['id_grupo'] . ', ' . $group['parent'] . ');" title="' . __('Show branch children') . '"><span class="symbol_' . $group['id_grupo'] . ' ' . $symbolBranchs . '">' . $symbol . '</span> '. ui_print_truncate_text($group['nombre']).'</a></strong>';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$data[0] = '<strong>'.$tabulation . ' '. printTruncateText($group['nombre']).'</strong>';
|
$data[0] = '<strong>'.$tabulation . ' '. ui_print_truncate_text($group['nombre']).'</strong>';
|
||||||
}
|
}
|
||||||
$data[1] = print_group_icon($group['id_grupo'], true);
|
$data[1] = ui_print_group_icon($group['id_grupo'], true);
|
||||||
$data[2] = $group['disabled'] ? __('Disabled') : __('Enabled');
|
$data[2] = $group['disabled'] ? __('Disabled') : __('Enabled');
|
||||||
if ($group['id_grupo'] == 0) {
|
if ($group['id_grupo'] == 0) {
|
||||||
$data[3] = '';
|
$data[3] = '';
|
||||||
|
@ -51,7 +51,7 @@ if (is_ajax ()) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__("Module groups defined in Pandora"), "images/god1.png", false, "", true, "");
|
ui_print_page_header (__("Module groups defined in Pandora"), "images/god1.png", false, "", true, "");
|
||||||
|
|
||||||
$create_group = (bool) get_parameter ('create_group');
|
$create_group = (bool) get_parameter ('create_group');
|
||||||
$update_group = (bool) get_parameter ('update_group');
|
$update_group = (bool) get_parameter ('update_group');
|
||||||
@ -121,7 +121,7 @@ $groups = get_db_all_rows_sql ($sql, true);
|
|||||||
foreach ($groups as $id_group ) {
|
foreach ($groups as $id_group ) {
|
||||||
$data = array ();
|
$data = array ();
|
||||||
|
|
||||||
$data[0] = '<strong><a href="index.php?sec=gagente&sec2=godmode/groups/configure_modu_group&id_group='.$id_group["id_mg"].'">'.printTruncateText($id_group["name"], 50).'</a></strong>';
|
$data[0] = '<strong><a href="index.php?sec=gagente&sec2=godmode/groups/configure_modu_group&id_group='.$id_group["id_mg"].'">' . ui_print_truncate_text($id_group["name"], 50).'</a></strong>';
|
||||||
$data[1] = '<a href="index.php?sec=gagente&sec2=godmode/groups/modu_group_list&id_group='.$id_group["id_mg"].'&delete_group=1" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">' . print_image("images/cross.png", true, array("border" => '0')) . '</a>';
|
$data[1] = '<a href="index.php?sec=gagente&sec2=godmode/groups/modu_group_list&id_group='.$id_group["id_mg"].'&delete_group=1" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">' . print_image("images/cross.png", true, array("border" => '0')) . '</a>';
|
||||||
|
|
||||||
array_push ($table->data, $data);
|
array_push ($table->data, $data);
|
||||||
|
@ -66,7 +66,7 @@ $add = (bool) get_parameter_post ('add');
|
|||||||
|
|
||||||
if ($add) {
|
if ($add) {
|
||||||
if(empty($id_agents))
|
if(empty($id_agents))
|
||||||
print_result_message (false, '', __('Could not be added').". ".__('No agents selected'));
|
ui_print_result_message (false, '', __('Could not be added').". ".__('No agents selected'));
|
||||||
else {
|
else {
|
||||||
$action = (int) get_parameter ('action');
|
$action = (int) get_parameter ('action');
|
||||||
$fires_min = get_parameter ('fires_min');
|
$fires_min = get_parameter ('fires_min');
|
||||||
@ -100,7 +100,7 @@ if ($add) {
|
|||||||
$options['fires_max'] = $fires_max;
|
$options['fires_max'] = $fires_max;
|
||||||
|
|
||||||
if (empty($agent_alerts_id) && empty($agent_alerts_id_compound)) {
|
if (empty($agent_alerts_id) && empty($agent_alerts_id_compound)) {
|
||||||
print_result_message (false, '', __('Could not be added').". ".__('No alerts selected'));
|
ui_print_result_message (false, '', __('Could not be added').". ".__('No alerts selected'));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$results = true;
|
$results = true;
|
||||||
@ -120,11 +120,11 @@ if ($add) {
|
|||||||
json_encode($id_agents) . ' Alerts : ' . json_encode($agent_alerts) .
|
json_encode($id_agents) . ' Alerts : ' . json_encode($agent_alerts) .
|
||||||
' Fires Min: ' . $fires_min . ' Fires Max: ' . $fires_max . ' Action: ' . $action);
|
' Fires Min: ' . $fires_min . ' Fires Max: ' . $fires_max . ' Action: ' . $action);
|
||||||
|
|
||||||
print_result_message ($results, __('Successfully added'), __('Could not be added'));
|
ui_print_result_message ($results, __('Successfully added'), __('Could not be added'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
print_result_message (false, '', __('Could not be added').". ".__('No action selected'));
|
ui_print_result_message (false, '', __('Could not be added').". ".__('No action selected'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -194,7 +194,7 @@ $table->data[4][1] .= __('Number of alerts match from').' ';
|
|||||||
$table->data[4][1] .= print_input_text ('fires_min', 0, '', 4, 10, true);
|
$table->data[4][1] .= print_input_text ('fires_min', 0, '', 4, 10, true);
|
||||||
$table->data[4][1] .= ' '.__('to').' ';
|
$table->data[4][1] .= ' '.__('to').' ';
|
||||||
$table->data[4][1] .= print_input_text ('fires_max', 0, '', 4, 10, true);
|
$table->data[4][1] .= print_input_text ('fires_max', 0, '', 4, 10, true);
|
||||||
$table->data[4][1] .= print_help_icon ("alert-matches", true);
|
$table->data[4][1] .= ui_print_help_icon ("alert-matches", true);
|
||||||
$table->data[4][1] .= '</span>';
|
$table->data[4][1] .= '</span>';
|
||||||
|
|
||||||
echo '<form method="post" action="index.php?sec=gmassive&sec2=godmode/massive/massive_operations&option=add_action_alerts" onsubmit="if (! confirm(\''.__('Are you sure?').'\')) return false;">';
|
echo '<form method="post" action="index.php?sec=gmassive&sec2=godmode/massive/massive_operations&option=add_action_alerts" onsubmit="if (! confirm(\''.__('Are you sure?').'\')) return false;">';
|
||||||
@ -208,8 +208,8 @@ echo '</form>';
|
|||||||
|
|
||||||
echo '<h3 class="error invisible" id="message"> </h3>';
|
echo '<h3 class="error invisible" id="message"> </h3>';
|
||||||
|
|
||||||
require_jquery_file ('form');
|
ui_require_jquery_file ('form');
|
||||||
require_jquery_file ('pandora.controls');
|
ui_require_jquery_file ('pandora.controls');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -81,7 +81,7 @@ function process_manage_add ($id_alert_template, $id_agents, $module_names) {
|
|||||||
pandora_audit("Masive management", "Fail try to add alert", false, false, "Alert template: " . $id_alert_template . " Modules: " . json_encode($modules_id));
|
pandora_audit("Masive management", "Fail try to add alert", false, false, "Alert template: " . $id_alert_template . " Modules: " . json_encode($modules_id));
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message ($contsuccess > 0,
|
ui_print_result_message ($contsuccess > 0,
|
||||||
__('Successfully added')."(".$contsuccess."/".$conttotal.")",
|
__('Successfully added')."(".$contsuccess."/".$conttotal.")",
|
||||||
__('Could not be added'));
|
__('Could not be added'));
|
||||||
|
|
||||||
@ -153,8 +153,8 @@ echo '<h3 class="error invisible" id="message"> </h3>';
|
|||||||
//Hack to translate text "none" in PHP to javascript
|
//Hack to translate text "none" in PHP to javascript
|
||||||
echo '<span id ="none_text" style="display: none;">' . __('None') . '</span>';
|
echo '<span id ="none_text" style="display: none;">' . __('None') . '</span>';
|
||||||
|
|
||||||
require_jquery_file ('form');
|
ui_require_jquery_file ('form');
|
||||||
require_jquery_file ('pandora.controls');
|
ui_require_jquery_file ('pandora.controls');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -66,7 +66,7 @@ if ($create_profiles) {
|
|||||||
'Profiles: ' . json_encode($profiles_id) . ' Groups: ' . json_encode($groups_id) . 'Users: ' . json_encode($users_id));
|
'Profiles: ' . json_encode($profiles_id) . ' Groups: ' . json_encode($groups_id) . 'Users: ' . json_encode($users_id));
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message ($n_added > 0,
|
ui_print_result_message ($n_added > 0,
|
||||||
__('Profiles added successfully').'('.$n_added.')',
|
__('Profiles added successfully').'('.$n_added.')',
|
||||||
__('Profiles cannot be added'));
|
__('Profiles cannot be added'));
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ echo '<form action="index.php?sec=gmassive&sec2=godmode/massive/massive_operatio
|
|||||||
|
|
||||||
echo '<fieldset id="fieldset_source">';
|
echo '<fieldset id="fieldset_source">';
|
||||||
echo '<legend><span>'.__('Source');
|
echo '<legend><span>'.__('Source');
|
||||||
print_help_icon ('manageconfig');
|
ui_print_help_icon ('manageconfig');
|
||||||
echo '</span></legend>';
|
echo '</span></legend>';
|
||||||
print_table ($table);
|
print_table ($table);
|
||||||
echo '</fieldset>';
|
echo '</fieldset>';
|
||||||
@ -171,8 +171,8 @@ echo '</form>';
|
|||||||
|
|
||||||
echo '<h3 class="error invisible" id="message"> </h3>';
|
echo '<h3 class="error invisible" id="message"> </h3>';
|
||||||
|
|
||||||
require_jquery_file ('form');
|
ui_require_jquery_file ('form');
|
||||||
require_jquery_file ('pandora.controls');
|
ui_require_jquery_file ('pandora.controls');
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
/* <![CDATA[ */
|
/* <![CDATA[ */
|
||||||
|
@ -65,7 +65,7 @@ $delete = (bool) get_parameter_post ('delete');
|
|||||||
|
|
||||||
if ($delete) {
|
if ($delete) {
|
||||||
if(empty($id_agents))
|
if(empty($id_agents))
|
||||||
print_result_message (false, '', __('Could not be deleted').". ".__('No agents selected'));
|
ui_print_result_message (false, '', __('Could not be deleted').". ".__('No agents selected'));
|
||||||
else {
|
else {
|
||||||
$action = (int) get_parameter ('action');
|
$action = (int) get_parameter ('action');
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ if ($delete) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (empty($alerts_agent_modules) && empty($alerts_compound)) {
|
if (empty($alerts_agent_modules) && empty($alerts_compound)) {
|
||||||
print_result_message (false, '', __('Could not be deleted').". ".__('No alerts selected'));
|
ui_print_result_message (false, '', __('Could not be deleted').". ".__('No alerts selected'));
|
||||||
} else {
|
} else {
|
||||||
$results = true;
|
$results = true;
|
||||||
$agent_module_actions = array();
|
$agent_module_actions = array();
|
||||||
@ -129,11 +129,11 @@ if ($delete) {
|
|||||||
' Alert compound: ' . $id_alert_compounds . ' Action: ' . $action);
|
' Alert compound: ' . $id_alert_compounds . ' Action: ' . $action);
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message ($results, __('Successfully deleted'), __('Could not be deleted')/*.": ". $agent_alerts['simple'][0]['id']*/);
|
ui_print_result_message ($results, __('Successfully deleted'), __('Could not be deleted')/*.": ". $agent_alerts['simple'][0]['id']*/);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
print_result_message (false, '', __('Could not be deleted').". ".__('No action selected'));
|
ui_print_result_message (false, '', __('Could not be deleted').". ".__('No action selected'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -207,8 +207,8 @@ echo '</form>';
|
|||||||
|
|
||||||
echo '<h3 class="error invisible" id="message"> </h3>';
|
echo '<h3 class="error invisible" id="message"> </h3>';
|
||||||
|
|
||||||
require_jquery_file ('form');
|
ui_require_jquery_file ('form');
|
||||||
require_jquery_file ('pandora.controls');
|
ui_require_jquery_file ('pandora.controls');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -115,8 +115,8 @@ echo '</form>';
|
|||||||
|
|
||||||
echo '<h3 class="error invisible" id="message"> </h3>';
|
echo '<h3 class="error invisible" id="message"> </h3>';
|
||||||
|
|
||||||
require_jquery_file ('form');
|
ui_require_jquery_file ('form');
|
||||||
require_jquery_file ('pandora.controls');
|
ui_require_jquery_file ('pandora.controls');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -77,7 +77,7 @@ function process_manage_delete ($id_alert_template, $id_agents, $module_names) {
|
|||||||
$conttotal ++;
|
$conttotal ++;
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message ($contsuccess > 0,
|
ui_print_result_message ($contsuccess > 0,
|
||||||
__('Successfully deleted')."(".$contsuccess."/".$conttotal.")",
|
__('Successfully deleted')."(".$contsuccess."/".$conttotal.")",
|
||||||
__('Could not be deleted'));
|
__('Could not be deleted'));
|
||||||
|
|
||||||
@ -159,8 +159,8 @@ echo '<span id ="none_text" style="display: none;">' . __('None') . '</span>';
|
|||||||
|
|
||||||
echo '<h3 class="error invisible" id="message"> </h3>';
|
echo '<h3 class="error invisible" id="message"> </h3>';
|
||||||
|
|
||||||
require_jquery_file ('form');
|
ui_require_jquery_file ('form');
|
||||||
require_jquery_file ('pandora.controls');
|
ui_require_jquery_file ('pandora.controls');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
@ -143,8 +143,8 @@ echo '</form>';
|
|||||||
|
|
||||||
echo '<h3 class="error invisible" id="message"> </h3>';
|
echo '<h3 class="error invisible" id="message"> </h3>';
|
||||||
|
|
||||||
require_jquery_file ('form');
|
ui_require_jquery_file ('form');
|
||||||
require_jquery_file ('pandora.controls');
|
ui_require_jquery_file ('pandora.controls');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -76,7 +76,7 @@ if ($delete_profiles) {
|
|||||||
'Profiles: ' . json_encode($profiles_id) . ' Groups: ' . $groups_id . ' Users: ' . $users_id);
|
'Profiles: ' . json_encode($profiles_id) . ' Groups: ' . $groups_id . ' Users: ' . $users_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Profiles deleted successfully'),
|
__('Profiles deleted successfully'),
|
||||||
__('Profiles cannot be deleted'));
|
__('Profiles cannot be deleted'));
|
||||||
}
|
}
|
||||||
@ -130,8 +130,8 @@ unset ($table);
|
|||||||
|
|
||||||
echo '<h3 class="error invisible" id="message"> </h3>';
|
echo '<h3 class="error invisible" id="message"> </h3>';
|
||||||
|
|
||||||
require_jquery_file ('form');
|
ui_require_jquery_file ('form');
|
||||||
require_jquery_file ('pandora.controls');
|
ui_require_jquery_file ('pandora.controls');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -84,12 +84,12 @@ if ($update_agents) {
|
|||||||
|
|
||||||
$id_agents = get_parameter('id_agents', false);
|
$id_agents = get_parameter('id_agents', false);
|
||||||
if (!$id_agents) {
|
if (!$id_agents) {
|
||||||
print_error_message(__('No agents selected'));
|
ui_print_error_message(__('No agents selected'));
|
||||||
$id_agents = array();
|
$id_agents = array();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (empty($values) && empty($fields)) {
|
if (empty($values) && empty($fields)) {
|
||||||
print_error_message(__('No values changed'));
|
ui_print_error_message(__('No values changed'));
|
||||||
$id_agents = array();
|
$id_agents = array();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -115,7 +115,7 @@ if ($update_agents) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
print_result_message ($n_deleted > 0,
|
ui_print_result_message ($n_deleted > 0,
|
||||||
__('Configuration files deleted successfully').'('.$n_deleted.')',
|
__('Configuration files deleted successfully').'('.$n_deleted.')',
|
||||||
__('Configuration files cannot be deleted'));
|
__('Configuration files cannot be deleted'));
|
||||||
}
|
}
|
||||||
@ -166,7 +166,7 @@ if ($update_agents) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
print_result_message ($result !== false,
|
ui_print_result_message ($result !== false,
|
||||||
__('Agents updated successfully').'('.$n_edited.')',
|
__('Agents updated successfully').'('.$n_edited.')',
|
||||||
__('Agents cannot be updated'));
|
__('Agents cannot be updated'));
|
||||||
|
|
||||||
@ -232,7 +232,7 @@ $table->data[0][1] = print_input_text_extended ('id_parent', get_agent_name ($id
|
|||||||
array('style' => 'background: url(images/lightning.png) no-repeat right;'), true)
|
array('style' => 'background: url(images/lightning.png) no-repeat right;'), true)
|
||||||
. '<a href="#" class="tip"> <span>' . __("Type at least two characters to search") . '</span></a>';
|
. '<a href="#" class="tip"> <span>' . __("Type at least two characters to search") . '</span></a>';
|
||||||
|
|
||||||
$table->data[0][1] .= print_checkbox ("cascade_protection", 1, $cascade_protection, true).__('Cascade protection'). " " . print_help_icon("cascade_protection", true);
|
$table->data[0][1] .= 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][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] = print_select_groups(false, "AR", false, 'group', $group, '', __('No change'), -1, true, false, true, '', false, 'width: 150px;');
|
||||||
@ -254,7 +254,7 @@ $table->data[3][0] = __('OS');
|
|||||||
$table->data[3][1] = print_select_from_sql ('SELECT id_os, name FROM tconfig_os',
|
$table->data[3][1] = print_select_from_sql ('SELECT id_os, name FROM tconfig_os',
|
||||||
'id_os', $id_os, '', __('No change'), -1, true, false, true, false, 'width: 105px;');
|
'id_os', $id_os, '', __('No change'), -1, true, false, true, false, 'width: 105px;');
|
||||||
$table->data[3][1] .= ' <span id="os_preview">';
|
$table->data[3][1] .= ' <span id="os_preview">';
|
||||||
$table->data[3][1] .= print_os_icon ($id_os, false, true);
|
$table->data[3][1] .= ui_print_os_icon ($id_os, false, true);
|
||||||
$table->data[3][1] .= '</span>';
|
$table->data[3][1] .= '</span>';
|
||||||
|
|
||||||
// Network server
|
// Network server
|
||||||
@ -293,7 +293,7 @@ $table->data[0][0] = __('Custom ID');
|
|||||||
$table->data[0][1] = print_input_text ('custom_id', $custom_id, '', 16, 255, true);
|
$table->data[0][1] = print_input_text ('custom_id', $custom_id, '', 16, 255, true);
|
||||||
|
|
||||||
// Learn mode / Normal mode
|
// Learn mode / Normal mode
|
||||||
$table->data[1][0] = __('Module definition').print_help_icon("module_definition", true);
|
$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] = __('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] .= __('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] .= __('Normal mode').' '.print_radio_button_extended ("mode", 0, '', $mode, false, '', 'style="margin-right: 40px;"', true);
|
||||||
@ -335,7 +335,7 @@ if ($config['activate_gis']) {
|
|||||||
$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] .= __('Active').' '.print_radio_button_extended ("update_gis_data", 1, '', $update_gis_data, false, '', 'style="margin-right: 40px;"', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
toggle(print_table ($table, true), __('Advanced options'));
|
ui_toggle(print_table ($table, true), __('Advanced options'));
|
||||||
unset($table);
|
unset($table);
|
||||||
|
|
||||||
$table->width = '95%';
|
$table->width = '95%';
|
||||||
@ -366,7 +366,7 @@ foreach ($fields as $field) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($fields)) {
|
if (!empty($fields)) {
|
||||||
toggle(print_table ($table, true), __('Custom fields'));
|
ui_toggle(print_table ($table, true), __('Custom fields'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -382,14 +382,14 @@ echo "</div>"; // Shown and hide div
|
|||||||
|
|
||||||
echo '</div></form>';
|
echo '</div></form>';
|
||||||
|
|
||||||
require_jquery_file ('form');
|
ui_require_jquery_file ('form');
|
||||||
require_jquery_file ('pandora.controls');
|
ui_require_jquery_file ('pandora.controls');
|
||||||
|
|
||||||
|
|
||||||
require_jquery_file ('pandora.controls');
|
ui_require_jquery_file ('pandora.controls');
|
||||||
require_jquery_file ('ajaxqueue');
|
ui_require_jquery_file ('ajaxqueue');
|
||||||
require_jquery_file ('bgiframe');
|
ui_require_jquery_file ('bgiframe');
|
||||||
require_jquery_file ('autocomplete');
|
ui_require_jquery_file ('autocomplete');
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
/* <![CDATA[ */
|
/* <![CDATA[ */
|
||||||
|
@ -167,7 +167,7 @@ if ($update) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message ($success > 0,
|
ui_print_result_message ($success > 0,
|
||||||
__('Successfully updated')."(".$success."/".$count.")",
|
__('Successfully updated')."(".$success."/".$count.")",
|
||||||
__('Could not be updated'));
|
__('Could not be updated'));
|
||||||
|
|
||||||
@ -323,7 +323,7 @@ $table->data['edit6'][1] = print_select_from_sql ('SELECT id, name
|
|||||||
'id_export', '', '',__('None'),'0', true, false, false);
|
'id_export', '', '',__('None'),'0', true, false, false);
|
||||||
|
|
||||||
/* FF stands for Flip-flop */
|
/* FF stands for Flip-flop */
|
||||||
$table->data['edit7'][0] = __('FF threshold').' '.print_help_icon ('ff_threshold', true);
|
$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] = print_input_text ('min_ff_event', '', '', 5, 15, true);
|
||||||
$table->data['edit7'][2] = __('Historical data');
|
$table->data['edit7'][2] = __('Historical data');
|
||||||
$table->data['edit7'][3] = print_select(array('' => '', '1' => __('Yes'), '0' => __('No')),'history_data','','','', '', true);
|
$table->data['edit7'][3] = print_select(array('' => '', '1' => __('Yes'), '0' => __('No')),'history_data','','','', '', true);
|
||||||
@ -340,7 +340,7 @@ echo '</form>';
|
|||||||
echo '<h3 class="error invisible" id="message"> </h3>';
|
echo '<h3 class="error invisible" id="message"> </h3>';
|
||||||
//Hack to translate text "none" in PHP to javascript
|
//Hack to translate text "none" in PHP to javascript
|
||||||
echo '<span id ="none_text" style="display: none;">' . __('None') . '</span>';
|
echo '<span id ="none_text" style="display: none;">' . __('None') . '</span>';
|
||||||
require_jquery_file ('pandora.controls');
|
ui_require_jquery_file ('pandora.controls');
|
||||||
|
|
||||||
if($selection_mode == 'modules'){
|
if($selection_mode == 'modules'){
|
||||||
$modules_row = '';
|
$modules_row = '';
|
||||||
|
@ -72,7 +72,7 @@ switch($action) {
|
|||||||
$result = set_alerts_agent_module_disable ($id_alert, false);
|
$result = set_alerts_agent_module_disable ($id_alert, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message ($result, __('Successfully enabled'), __('Could not be enabled'));
|
ui_print_result_message ($result, __('Successfully enabled'), __('Could not be enabled'));
|
||||||
|
|
||||||
$info = 'Alert: ' . json_encode($id_disabled_alerts);
|
$info = 'Alert: ' . json_encode($id_disabled_alerts);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
@ -90,7 +90,7 @@ switch($action) {
|
|||||||
$result = set_alerts_agent_module_disable ($id_alert, true);
|
$result = set_alerts_agent_module_disable ($id_alert, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message ($result, __('Successfully disabled'), __('Could not be disabled'));
|
ui_print_result_message ($result, __('Successfully disabled'), __('Could not be disabled'));
|
||||||
|
|
||||||
$info = 'Alert: ' . json_encode($id_disabled_alerts);
|
$info = 'Alert: ' . json_encode($id_disabled_alerts);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
@ -138,7 +138,7 @@ $table->data[2][0] .= print_image("images/spinner.png", true);
|
|||||||
$table->data[2][0] .= '</span>';
|
$table->data[2][0] .= '</span>';
|
||||||
$table->data[2][1] = print_select ('', 'id_alert_templates[]', '', '', '', '', true, true, true, '', true);
|
$table->data[2][1] = print_select ('', 'id_alert_templates[]', '', '', '', '', true, true, true, '', true);
|
||||||
|
|
||||||
$table->data[3][0] = __('Enabled alerts').print_help_tip(__('Format').":<br> ".__('Agent')." - ".__('Module'), true);
|
$table->data[3][0] = __('Enabled alerts').ui_print_help_tip(__('Format').":<br> ".__('Agent')." - ".__('Module'), true);
|
||||||
$table->data[3][0] .= '<span id="alerts_loading" class="invisible">';
|
$table->data[3][0] .= '<span id="alerts_loading" class="invisible">';
|
||||||
$table->data[3][0] .= print_image("images/spinner.png", true);
|
$table->data[3][0] .= print_image("images/spinner.png", true);
|
||||||
$table->data[3][0] .= '</span>';
|
$table->data[3][0] .= '</span>';
|
||||||
@ -155,7 +155,7 @@ $table->data[4][1] .= '<form method="post" action="index.php?sec=gmassive&sec2=g
|
|||||||
$table->data[4][1] .= print_input_hidden('id_alert_template_disabled', $id_alert_templates, true);
|
$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')))."</td></tr></table>";
|
$table->data[4][1] .= print_input_image ('enable_alerts', 'images/darrowup.png', 1, 'margin-left: 200px;', true, array ('title' => __('Enable selected alerts')))."</td></tr></table>";
|
||||||
|
|
||||||
$table->data[5][0] = __('Disabled alerts').print_help_tip(__('Format').":<br> ".__('Agent')." - ".__('Module'), true);
|
$table->data[5][0] = __('Disabled alerts').ui_print_help_tip(__('Format').":<br> ".__('Agent')." - ".__('Module'), true);
|
||||||
$table->data[5][0] .= '<span id="alerts_loading2" class="invisible">';
|
$table->data[5][0] .= '<span id="alerts_loading2" class="invisible">';
|
||||||
$table->data[5][0] .= print_image("images/spinner.png", true);
|
$table->data[5][0] .= print_image("images/spinner.png", true);
|
||||||
$table->data[5][0] .= '</span>';
|
$table->data[5][0] .= '</span>';
|
||||||
@ -167,8 +167,8 @@ print_table ($table);
|
|||||||
|
|
||||||
echo '<h3 class="error invisible" id="message"> </h3>';
|
echo '<h3 class="error invisible" id="message"> </h3>';
|
||||||
|
|
||||||
require_jquery_file ('form');
|
ui_require_jquery_file ('form');
|
||||||
require_jquery_file ('pandora.controls');
|
ui_require_jquery_file ('pandora.controls');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -128,7 +128,7 @@ $onheader = array('massive_agents' => $agentstab, 'massive_modules' => $modulest
|
|||||||
'user_agents' => $userstab, 'massive_alerts' => $alertstab,
|
'user_agents' => $userstab, 'massive_alerts' => $alertstab,
|
||||||
'policies' => $policiestab);
|
'policies' => $policiestab);
|
||||||
|
|
||||||
print_page_header (__('Massive operations'). ' » '. $options[$option], "images/sitemap_color.png", false, "", true, $onheader);
|
ui_print_page_header (__('Massive operations'). ' » '. $options[$option], "images/sitemap_color.png", false, "", true, $onheader);
|
||||||
|
|
||||||
echo '<form method="post" id="form_options" action="index.php?sec=gmassive&sec2=godmode/massive/massive_operations">';
|
echo '<form method="post" id="form_options" action="index.php?sec=gmassive&sec2=godmode/massive/massive_operations">';
|
||||||
echo '<table border="0"><tr><td>';
|
echo '<table border="0"><tr><td>';
|
||||||
|
@ -73,7 +73,7 @@ switch($action) {
|
|||||||
$result = set_alerts_agent_module_standby ($id_alert, false);
|
$result = set_alerts_agent_module_standby ($id_alert, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message ($result, __('Successfully set off standby'), __('Could not be set off standby'));
|
ui_print_result_message ($result, __('Successfully set off standby'), __('Could not be set off standby'));
|
||||||
|
|
||||||
$info = 'Alert: ' . json_encode($id_standby_alerts);
|
$info = 'Alert: ' . json_encode($id_standby_alerts);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
@ -91,7 +91,7 @@ switch($action) {
|
|||||||
$result = set_alerts_agent_module_standby ($id_alert, true);
|
$result = set_alerts_agent_module_standby ($id_alert, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message ($result, __('Successfully set standby'), __('Could not be set standby'));
|
ui_print_result_message ($result, __('Successfully set standby'), __('Could not be set standby'));
|
||||||
|
|
||||||
$info = 'Alert: ' . json_encode($id_not_standby_alerts);
|
$info = 'Alert: ' . json_encode($id_not_standby_alerts);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
@ -140,7 +140,7 @@ $table->data[2][0] .= print_image('images/spinner.png', true);
|
|||||||
$table->data[2][0] .= '</span>';
|
$table->data[2][0] .= '</span>';
|
||||||
$table->data[2][1] = print_select ('', 'id_alert_templates[]', '', '', '', '', true, true, true, '', true);
|
$table->data[2][1] = print_select ('', 'id_alert_templates[]', '', '', '', '', true, true, true, '', true);
|
||||||
|
|
||||||
$table->data[3][0] = __('Not standby alerts').print_help_tip(__('Format').":<br> ".__('Agent')." - ".__('Module'), true);
|
$table->data[3][0] = __('Not standby alerts').ui_print_help_tip(__('Format').":<br> ".__('Agent')." - ".__('Module'), true);
|
||||||
$table->data[3][0] .= '<span id="alerts_loading" class="invisible">';
|
$table->data[3][0] .= '<span id="alerts_loading" class="invisible">';
|
||||||
$table->data[3][0] .= print_image('images/spinner.png', true);
|
$table->data[3][0] .= print_image('images/spinner.png', true);
|
||||||
$table->data[3][0] .= '</span>';
|
$table->data[3][0] .= '</span>';
|
||||||
@ -157,7 +157,7 @@ $table->data[4][1] .= '<form method="post" action="index.php?sec=gmassive&sec2=g
|
|||||||
$table->data[4][1] .= print_input_hidden('id_alert_template_standby', $id_alert_templates, true);
|
$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')))."</td></tr></table>";
|
$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')))."</td></tr></table>";
|
||||||
|
|
||||||
$table->data[5][0] = __('Standby alerts').print_help_tip(__('Format').":<br> ".__('Agent')." - ".__('Module'), true);
|
$table->data[5][0] = __('Standby alerts').ui_print_help_tip(__('Format').":<br> ".__('Agent')." - ".__('Module'), true);
|
||||||
$table->data[5][0] .= '<span id="alerts_loading2" class="invisible">';
|
$table->data[5][0] .= '<span id="alerts_loading2" class="invisible">';
|
||||||
$table->data[5][0] .= print_image('images/spinner.png', true);
|
$table->data[5][0] .= print_image('images/spinner.png', true);
|
||||||
$table->data[5][0] .= '</span>';
|
$table->data[5][0] .= '</span>';
|
||||||
@ -169,8 +169,8 @@ print_table ($table);
|
|||||||
|
|
||||||
echo '<h3 class="error invisible" id="message"> </h3>';
|
echo '<h3 class="error invisible" id="message"> </h3>';
|
||||||
|
|
||||||
require_jquery_file ('form');
|
ui_require_jquery_file ('form');
|
||||||
require_jquery_file ('pandora.controls');
|
ui_require_jquery_file ('pandora.controls');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -26,7 +26,7 @@ if (! check_acl ($config['id_user'], 0, "PM")) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Module management').' » '. __('Component group management'), "", false, "", true);
|
ui_print_page_header (__('Module management').' » '. __('Component group management'), "", false, "", true);
|
||||||
|
|
||||||
|
|
||||||
require_once ('include/functions_network_components.php');
|
require_once ('include/functions_network_components.php');
|
||||||
@ -44,7 +44,7 @@ if ($create) {
|
|||||||
$result = process_sql_insert ('tnetwork_component_group',
|
$result = process_sql_insert ('tnetwork_component_group',
|
||||||
array ('name' => $name,
|
array ('name' => $name,
|
||||||
'parent' => $parent));
|
'parent' => $parent));
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Successfully created'),
|
__('Successfully created'),
|
||||||
__('Could not be created'));
|
__('Could not be created'));
|
||||||
}
|
}
|
||||||
@ -57,7 +57,7 @@ if ($update) {
|
|||||||
array ('name' => $name,
|
array ('name' => $name,
|
||||||
'parent' => $parent),
|
'parent' => $parent),
|
||||||
array ('id_sg' => $id));
|
array ('id_sg' => $id));
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Successfully updated'),
|
__('Successfully updated'),
|
||||||
__('Not updated. Error updating data'));
|
__('Not updated. Error updating data'));
|
||||||
}
|
}
|
||||||
@ -65,7 +65,7 @@ if ($update) {
|
|||||||
if ($delete) {
|
if ($delete) {
|
||||||
$result = process_sql_delete ('tnetwork_component_group',
|
$result = process_sql_delete ('tnetwork_component_group',
|
||||||
array ('id_sg' => $id));
|
array ('id_sg' => $id));
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Successfully deleted'),
|
__('Successfully deleted'),
|
||||||
__('Not deleted. Error deleting data'));
|
__('Not deleted. Error deleting data'));
|
||||||
}
|
}
|
||||||
@ -76,7 +76,7 @@ if ($id || $new) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$url = get_url_refresh (array ('offset' => false,
|
$url = ui_get_url_refresh (array ('offset' => false,
|
||||||
'create' => false,
|
'create' => false,
|
||||||
'update' => false,
|
'update' => false,
|
||||||
'delete' => false,
|
'delete' => false,
|
||||||
@ -111,7 +111,7 @@ $groups = get_db_all_rows_filter ('tnetwork_component_group', $filter);
|
|||||||
if ($groups === false)
|
if ($groups === false)
|
||||||
$groups = array ();
|
$groups = array ();
|
||||||
|
|
||||||
pagination ($total_groups, $url);
|
ui_pagination ($total_groups, $url);
|
||||||
|
|
||||||
foreach ($groups as $group) {
|
foreach ($groups as $group) {
|
||||||
$data = array ();
|
$data = array ();
|
||||||
|
@ -26,7 +26,7 @@ if (! check_acl ($config['id_user'], 0, "PM")) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Module management').' » '.__('Network component management'), "", false, "", true);
|
ui_print_page_header (__('Module management').' » '.__('Network component management'), "", false, "", true);
|
||||||
|
|
||||||
require_once ('include/functions_network_components.php');
|
require_once ('include/functions_network_components.php');
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ if ($duplicate_network_component) {
|
|||||||
$source_id = (int) get_parameter ('source_id');
|
$source_id = (int) get_parameter ('source_id');
|
||||||
|
|
||||||
$id = duplicate_network_component ($source_id);
|
$id = duplicate_network_component ($source_id);
|
||||||
print_result_message ($id,
|
ui_print_result_message ($id,
|
||||||
__('Successfully created from %s', get_network_component_name ($source_id)),
|
__('Successfully created from %s', get_network_component_name ($source_id)),
|
||||||
__('Could not be created'));
|
__('Could not be created'));
|
||||||
|
|
||||||
@ -132,11 +132,11 @@ if ($create_component) {
|
|||||||
'custom_string_3' => $custom_string_3,
|
'custom_string_3' => $custom_string_3,
|
||||||
'post_process' => $post_process));
|
'post_process' => $post_process));
|
||||||
if ($id === false) {
|
if ($id === false) {
|
||||||
print_error_message (__('Could not be created'));
|
ui_print_error_message (__('Could not be created'));
|
||||||
include_once ('godmode/modules/manage_network_components_form.php');
|
include_once ('godmode/modules/manage_network_components_form.php');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
print_success_message (__('Created successfully'));
|
ui_print_success_message (__('Created successfully'));
|
||||||
$id = 0;
|
$id = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -188,11 +188,11 @@ if ($update_component) {
|
|||||||
'custom_string_3' => $custom_string_3,
|
'custom_string_3' => $custom_string_3,
|
||||||
'post_process' => $post_process));
|
'post_process' => $post_process));
|
||||||
if ($result === false) {
|
if ($result === false) {
|
||||||
print_error_message (__('Could not be updated'));
|
ui_print_error_message (__('Could not be updated'));
|
||||||
include_once ('godmode/modules/manage_network_components_form.php');
|
include_once ('godmode/modules/manage_network_components_form.php');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
print_success_message (__('Updated successfully'));
|
ui_print_success_message (__('Updated successfully'));
|
||||||
|
|
||||||
$id = 0;
|
$id = 0;
|
||||||
}
|
}
|
||||||
@ -202,7 +202,7 @@ if ($delete_component) {
|
|||||||
|
|
||||||
$result = delete_network_component ($id);
|
$result = delete_network_component ($id);
|
||||||
|
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Successfully deleted'),
|
__('Successfully deleted'),
|
||||||
__('Could not be deleted'));
|
__('Could not be deleted'));
|
||||||
$id = 0;
|
$id = 0;
|
||||||
@ -213,7 +213,7 @@ if ($id || $new_component) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$url = get_url_refresh (array ('offset' => false,
|
$url = ui_get_url_refresh (array ('offset' => false,
|
||||||
'id' => false,
|
'id' => false,
|
||||||
'create_component' => false,
|
'create_component' => false,
|
||||||
'update_component' => false,
|
'update_component' => false,
|
||||||
@ -281,7 +281,7 @@ if ($search_string != '')
|
|||||||
|
|
||||||
$total_components = get_network_components (false, $filter, 'COUNT(*) AS total');
|
$total_components = get_network_components (false, $filter, 'COUNT(*) AS total');
|
||||||
$total_components = $total_components[0]['total'];
|
$total_components = $total_components[0]['total'];
|
||||||
pagination ($total_components, $url);
|
ui_pagination ($total_components, $url);
|
||||||
$filter['offset'] = (int) get_parameter ('offset');
|
$filter['offset'] = (int) get_parameter ('offset');
|
||||||
$filter['limit'] = (int) $config['block_size'];
|
$filter['limit'] = (int) $config['block_size'];
|
||||||
$components = get_network_components (false, $filter,
|
$components = get_network_components (false, $filter,
|
||||||
@ -315,7 +315,7 @@ foreach ($components as $component) {
|
|||||||
$data[0] = '<a href="index.php?sec=gmodules&sec2=godmode/modules/manage_network_components&id='.$component['id_nc'].'">';
|
$data[0] = '<a href="index.php?sec=gmodules&sec2=godmode/modules/manage_network_components&id='.$component['id_nc'].'">';
|
||||||
$data[0] .= $component['name'];
|
$data[0] .= $component['name'];
|
||||||
$data[0] .= '</a>';
|
$data[0] .= '</a>';
|
||||||
$data[1] = print_moduletype_icon ($component['type'], true);
|
$data[1] = ui_print_moduletype_icon ($component['type'], true);
|
||||||
$data[2] = $component['module_interval'] ? $component['module_interval'] : __('N/A ');
|
$data[2] = $component['module_interval'] ? $component['module_interval'] : __('N/A ');
|
||||||
$data[3] = mb_strimwidth ($component['description'], 0, 30, "...");
|
$data[3] = mb_strimwidth ($component['description'], 0, 30, "...");
|
||||||
$data[4] = get_network_component_group_name ($component['id_group']);
|
$data[4] = get_network_component_group_name ($component['id_group']);
|
||||||
|
@ -47,7 +47,7 @@ $table->data = array ();
|
|||||||
$table->data[0][0] = __('Name');
|
$table->data[0][0] = __('Name');
|
||||||
$table->data[0][1] = print_input_text ('name', $name, '', 55, 255, true);
|
$table->data[0][1] = print_input_text ('name', $name, '', 55, 255, true);
|
||||||
|
|
||||||
$table->data[1][0] = __('Type').' '.print_help_icon ('module_type', true);
|
$table->data[1][0] = __('Type') . ' ' . ui_print_help_icon ('module_type', true);
|
||||||
$sql = sprintf ('SELECT id_tipo, descripcion
|
$sql = sprintf ('SELECT id_tipo, descripcion
|
||||||
FROM ttipo_modulo
|
FROM ttipo_modulo
|
||||||
WHERE categoria IN (%s)
|
WHERE categoria IN (%s)
|
||||||
@ -83,7 +83,7 @@ $table->data[3][3] .= '<br /><em>'.__('Max.').'</em>';
|
|||||||
$table->data[3][3] .= print_input_text ('max_critical', $max_critical,
|
$table->data[3][3] .= print_input_text ('max_critical', $max_critical,
|
||||||
'', 5, 15, true);
|
'', 5, 15, true);
|
||||||
|
|
||||||
$table->data[4][0] = __('FF threshold').' '.print_help_icon ('ff_threshold', 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] = print_input_text ('ff_event', $ff_event,
|
||||||
'', 5, 15, true);
|
'', 5, 15, true);
|
||||||
$table->data[4][2] = __('Historical data');
|
$table->data[4][2] = __('Historical data');
|
||||||
|
@ -79,7 +79,7 @@ $data[3] = print_select(array('noAuthNoPriv' => __('Not auth and not privacy met
|
|||||||
push_table_row($data, 'field_snmpv3_row3');
|
push_table_row($data, 'field_snmpv3_row3');
|
||||||
|
|
||||||
$data = array();
|
$data = array();
|
||||||
$data[0] = __('Post process').' '.print_help_icon ('postprocess', true);
|
$data[0] = __('Post process') . ' ' . ui_print_help_icon ('postprocess', true);
|
||||||
$data[1] = print_input_text ('post_process', $post_process, '', 12, 25, true);
|
$data[1] = print_input_text ('post_process', $post_process, '', 12, 25, true);
|
||||||
$data[2] = $data[3] = '';
|
$data[2] = $data[3] = '';
|
||||||
push_table_row($data, 'field_process');
|
push_table_row($data, 'field_process');
|
||||||
@ -88,7 +88,7 @@ push_table_row($data, 'field_process');
|
|||||||
|
|
||||||
/* Advanced stuff */
|
/* Advanced stuff */
|
||||||
$data = array ();
|
$data = array ();
|
||||||
$data[0] = __('TCP send').' '.print_help_icon ("tcp_send", true);
|
$data[0] = __('TCP send') . ' ' . ui_print_help_icon ("tcp_send", true);
|
||||||
$data[1] = print_textarea ('tcp_send', 2, 65, $tcp_send, '', true);
|
$data[1] = print_textarea ('tcp_send', 2, 65, $tcp_send, '', true);
|
||||||
$table->colspan['tcp_send'][1] = 3;
|
$table->colspan['tcp_send'][1] = 3;
|
||||||
|
|
||||||
|
@ -38,9 +38,9 @@ push_table_row ($data, 'plugin_2');
|
|||||||
|
|
||||||
$data = array ();
|
$data = array ();
|
||||||
$data[0] = __('Plugin parameters');
|
$data[0] = __('Plugin parameters');
|
||||||
$data[0] .= print_help_icon ('plugin_parameters', true);
|
$data[0] .= ui_print_help_icon ('plugin_parameters', true);
|
||||||
$data[1] = print_input_text ('plugin_parameter', $plugin_parameter, '', 30, 255, true);
|
$data[1] = print_input_text ('plugin_parameter', $plugin_parameter, '', 30, 255, true);
|
||||||
$data[2] = __('Post process').' '.print_help_icon ('postprocess', 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] = print_input_text ('post_process', $post_process, '', 12, 25, true);
|
||||||
|
|
||||||
push_table_row ($data, 'plugin_3');
|
push_table_row ($data, 'plugin_3');
|
||||||
|
@ -31,15 +31,15 @@ echo "<h3>".__('WMI component management').'</h3>';
|
|||||||
$data = array ();
|
$data = array ();
|
||||||
$data[0] = __('WMI query');
|
$data[0] = __('WMI query');
|
||||||
$data[1] = print_input_text ('snmp_oid', $snmp_oid, '', 25, 255, true);
|
$data[1] = print_input_text ('snmp_oid', $snmp_oid, '', 25, 255, true);
|
||||||
$data[2] = __('Key string').' '.print_help_icon ('wmikey', 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] = print_input_text ('snmp_community', $snmp_community, '', 25, 255, true);
|
||||||
|
|
||||||
push_table_row ($data, 'wmi_1');
|
push_table_row ($data, 'wmi_1');
|
||||||
|
|
||||||
$data = array ();
|
$data = array ();
|
||||||
$data[0] = __('Field number').' '.print_help_icon ('wmifield', true);
|
$data[0] = __('Field number') . ' ' . ui_print_help_icon ('wmifield', true);
|
||||||
$data[1] = print_input_text ('tcp_port', $tcp_port, '', 5, 25, true);
|
$data[1] = print_input_text ('tcp_port', $tcp_port, '', 5, 25, true);
|
||||||
$data[2] = __('Namespace').' '.print_help_icon ('wminamespace', true);
|
$data[2] = __('Namespace') . ' ' . ui_print_help_icon ('wminamespace', true);
|
||||||
$data[3] = print_input_text ('tcp_send', $tcp_send, '', 25, 255, true);
|
$data[3] = print_input_text ('tcp_send', $tcp_send, '', 25, 255, true);
|
||||||
|
|
||||||
push_table_row ($data, 'wmi_2');
|
push_table_row ($data, 'wmi_2');
|
||||||
@ -53,7 +53,7 @@ $data[3] = print_input_password ('plugin_pass', $plugin_pass, '', 25, 255, true)
|
|||||||
push_table_row ($data, 'wmi_3');
|
push_table_row ($data, 'wmi_3');
|
||||||
|
|
||||||
$data = array();
|
$data = array();
|
||||||
$data[0] = __('Post process').' '.print_help_icon ('postprocess', true);
|
$data[0] = __('Post process') . ' ' . ui_print_help_icon ('postprocess', true);
|
||||||
$data[1] = print_input_text ('post_process', $post_process, '', 12, 25, true);
|
$data[1] = print_input_text ('post_process', $post_process, '', 12, 25, true);
|
||||||
$data[2] = $data[3] = '';
|
$data[2] = $data[3] = '';
|
||||||
push_table_row($data, 'field_process');
|
push_table_row($data, 'field_process');
|
||||||
@ -141,7 +141,7 @@ echo '</td></tr>';
|
|||||||
|
|
||||||
// WMI Query
|
// WMI Query
|
||||||
echo '<tr><td class="datos">' . __('WMI query') ;
|
echo '<tr><td class="datos">' . __('WMI query') ;
|
||||||
print_help_icon("wmiquery");
|
ui_print_help_icon("wmiquery");
|
||||||
echo '</td>';
|
echo '</td>';
|
||||||
echo '<td class="datos">';
|
echo '<td class="datos">';
|
||||||
echo '<input type="text" name="snmp_oid" size="25" value="' . $snmp_oid . '">';
|
echo '<input type="text" name="snmp_oid" size="25" value="' . $snmp_oid . '">';
|
||||||
@ -149,7 +149,7 @@ echo '</td>';
|
|||||||
|
|
||||||
// Key string
|
// Key string
|
||||||
echo '<td class="datos">' . __('Key string');
|
echo '<td class="datos">' . __('Key string');
|
||||||
print_help_icon("wmikey");
|
ui_print_help_icon("wmikey");
|
||||||
echo '</td>';
|
echo '</td>';
|
||||||
echo '<td class="datos">';
|
echo '<td class="datos">';
|
||||||
echo '<input type="text" name="snmp_community" size="25" value="' . $snmp_community . '">';
|
echo '<input type="text" name="snmp_community" size="25" value="' . $snmp_community . '">';
|
||||||
@ -157,7 +157,7 @@ echo '</td></tr>';
|
|||||||
|
|
||||||
// Field
|
// Field
|
||||||
echo '<td class="datos2">' . __('Field number');
|
echo '<td class="datos2">' . __('Field number');
|
||||||
print_help_icon("wmifield");
|
ui_print_help_icon("wmifield");
|
||||||
echo '</td>';
|
echo '</td>';
|
||||||
echo '<td class="datos2">';
|
echo '<td class="datos2">';
|
||||||
echo '<input type="text" name="tcp_port" size="5" value="' . $tcp_port . '">';
|
echo '<input type="text" name="tcp_port" size="5" value="' . $tcp_port . '">';
|
||||||
@ -165,7 +165,7 @@ echo '</td>';
|
|||||||
|
|
||||||
// Namespace
|
// Namespace
|
||||||
echo '<td class="datos2">' . __('Namespace');
|
echo '<td class="datos2">' . __('Namespace');
|
||||||
print_help_icon("wminamespace");
|
ui_print_help_icon("wminamespace");
|
||||||
echo '</td>';
|
echo '</td>';
|
||||||
echo '<td class="datos2">';
|
echo '<td class="datos2">';
|
||||||
echo '<input type="text" name="tcp_send" size="25" value="' . $tcp_send . '">';
|
echo '<input type="text" name="tcp_send" size="25" value="' . $tcp_send . '">';
|
||||||
|
@ -27,7 +27,7 @@ if (! check_acl ($config['id_user'], 0, "PM")) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Module management')." » ".__('Module template management'), "", false, "", true);
|
ui_print_page_header (__('Module management')." » ".__('Module template management'), "", false, "", true);
|
||||||
|
|
||||||
|
|
||||||
require_once ('include/functions_network_profiles.php');
|
require_once ('include/functions_network_profiles.php');
|
||||||
@ -39,7 +39,7 @@ if ($delete_profile) { // if delete
|
|||||||
$id = (int) get_parameter ('delete_profile');
|
$id = (int) get_parameter ('delete_profile');
|
||||||
|
|
||||||
$result = delete_network_profile ($id);
|
$result = delete_network_profile ($id);
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Template successfully deleted'),
|
__('Template successfully deleted'),
|
||||||
__('Error deleting template'));
|
__('Error deleting template'));
|
||||||
}
|
}
|
||||||
@ -49,7 +49,7 @@ if ($export_profile) {
|
|||||||
$profile_info = get_network_profile ($id);
|
$profile_info = get_network_profile ($id);
|
||||||
|
|
||||||
if (empty ($profile_info)) {
|
if (empty ($profile_info)) {
|
||||||
print_error_message (__('This template does not exist'));
|
ui_print_error_message (__('This template does not exist'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -153,7 +153,7 @@ $table->data = array ();
|
|||||||
foreach ($result as $row) {
|
foreach ($result as $row) {
|
||||||
$data = array ();
|
$data = array ();
|
||||||
$data[0] = '<a href="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&id_np='.$row["id_np"].'">'. safe_output($row["name"]).'</a>';
|
$data[0] = '<a href="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&id_np='.$row["id_np"].'">'. safe_output($row["name"]).'</a>';
|
||||||
$data[1] = printTruncateText(safe_output($row["description"]), 70, true, true, true, true);
|
$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] = print_input_image ("delete_profile", "images/cross.png",
|
||||||
$row["id_np"],'', true,
|
$row["id_np"],'', true,
|
||||||
array ('onclick' => 'if (!confirm(\''.__('Are you sure?').'\')) return false;'));
|
array ('onclick' => 'if (!confirm(\''.__('Are you sure?').'\')) return false;'));
|
||||||
|
@ -28,7 +28,7 @@ if (! check_acl ($config['id_user'], 0, "PM")) {
|
|||||||
|
|
||||||
require_once ('include/functions_network_components.php');
|
require_once ('include/functions_network_components.php');
|
||||||
|
|
||||||
print_page_header (__('Module management')." » ".__('Module template management'), "", false, "", true);
|
ui_print_page_header (__('Module management')." » ".__('Module template management'), "", false, "", true);
|
||||||
|
|
||||||
$id_np = get_parameter ("id_np", -1); //Network Profile
|
$id_np = get_parameter ("id_np", -1); //Network Profile
|
||||||
$ncgroup = get_parameter ("ncgroup", -1); //Network component group
|
$ncgroup = get_parameter ("ncgroup", -1); //Network component group
|
||||||
@ -48,7 +48,7 @@ if (isset ($_GET["delete_module"])) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message (($errors < 1),
|
ui_print_result_message (($errors < 1),
|
||||||
__('Successfully deleted module from profile'),
|
__('Successfully deleted module from profile'),
|
||||||
__('Error deleting module from profile'));
|
__('Error deleting module from profile'));
|
||||||
}
|
}
|
||||||
@ -64,7 +64,7 @@ elseif (isset ($_GET["add_module"])) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print_result_message (($errors < 1),
|
ui_print_result_message (($errors < 1),
|
||||||
__('Successfully added module to profile'),
|
__('Successfully added module to profile'),
|
||||||
__('Error adding module to profile'));
|
__('Error adding module to profile'));
|
||||||
}
|
}
|
||||||
@ -81,7 +81,7 @@ if (isset ($_GET["create"]) || isset ($_GET["update"])) {
|
|||||||
'description' => $description);
|
'description' => $description);
|
||||||
$result = process_sql_update('tnetwork_profile', $values, array('id_np' => $id_np));
|
$result = process_sql_update('tnetwork_profile', $values, array('id_np' => $id_np));
|
||||||
|
|
||||||
print_result_message ($result !== false,
|
ui_print_result_message ($result !== false,
|
||||||
__('Successfully updated network profile'),
|
__('Successfully updated network profile'),
|
||||||
__('Error updating network profile'));
|
__('Error updating network profile'));
|
||||||
}
|
}
|
||||||
@ -90,7 +90,7 @@ if (isset ($_GET["create"]) || isset ($_GET["update"])) {
|
|||||||
$values = array('name' => $name, 'description' => $description);
|
$values = array('name' => $name, 'description' => $description);
|
||||||
$result = process_sql_insert('tnetwork_profile', $values);
|
$result = process_sql_insert('tnetwork_profile', $values);
|
||||||
|
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Successfully added network profile'),
|
__('Successfully added network profile'),
|
||||||
__('Error adding network profile'));
|
__('Error adding network profile'));
|
||||||
$id_np = (int) $result; //Will return either 0 (in case of error) or an int
|
$id_np = (int) $result; //Will return either 0 (in case of error) or an int
|
||||||
|
@ -25,7 +25,7 @@ if (! check_acl ($config['id_user'], 0, "PM")) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Module management')." » ". __('Defined modules'), "", false, "", true);
|
ui_print_page_header (__('Module management')." » ". __('Defined modules'), "", false, "", true);
|
||||||
|
|
||||||
$update_module = (bool) get_parameter_post ('update_module');
|
$update_module = (bool) get_parameter_post ('update_module');
|
||||||
|
|
||||||
|
@ -142,10 +142,10 @@ echo "</tr><tr>";
|
|||||||
echo "<td colspan='3' align='right'><input type=submit name='store' class='sub add' value='".__('Add')."'></td>";
|
echo "<td colspan='3' align='right'><input type=submit name='store' class='sub add' value='".__('Add')."'></td>";
|
||||||
echo "</tr></table></form>";
|
echo "</tr></table></form>";
|
||||||
|
|
||||||
require_jquery_file ('pandora.controls');
|
ui_require_jquery_file ('pandora.controls');
|
||||||
require_jquery_file ('ajaxqueue');
|
ui_require_jquery_file ('ajaxqueue');
|
||||||
require_jquery_file ('bgiframe');
|
ui_require_jquery_file ('bgiframe');
|
||||||
require_jquery_file ('autocomplete');
|
ui_require_jquery_file ('autocomplete');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<script language="javascript" type="text/javascript">
|
<script language="javascript" type="text/javascript">
|
||||||
|
@ -180,19 +180,19 @@ if (isset($name))
|
|||||||
$head .= " - ".$name;
|
$head .= " - ".$name;
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
print_page_header ($head, "", false, "", true, $buttons);
|
ui_print_page_header ($head, "", false, "", true, $buttons);
|
||||||
|
|
||||||
if($add_graph)
|
if($add_graph)
|
||||||
print_result_message($id_graph, __('Graph stored successfully'), __('There was a problem storing Graph'));
|
ui_print_result_message($id_graph, __('Graph stored successfully'), __('There was a problem storing Graph'));
|
||||||
|
|
||||||
if($add_module)
|
if($add_module)
|
||||||
print_result_message($result, __('Module added successfully'), __('There was a problem adding Module'));
|
ui_print_result_message($result, __('Module added successfully'), __('There was a problem adding Module'));
|
||||||
|
|
||||||
if ($update_graph)
|
if ($update_graph)
|
||||||
print_result_message($success, __("Update the graph"), __("Bad update the graph"));
|
ui_print_result_message($success, __("Update the graph"), __("Bad update the graph"));
|
||||||
|
|
||||||
if ($delete_module) {
|
if ($delete_module) {
|
||||||
print_result_message($result, __('Graph deleted successfully'), __('There was a problem deleting Graph'));
|
ui_print_result_message($result, __('Graph deleted successfully'), __('There was a problem deleting Graph'));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parse CHUNK information into showable information
|
// Parse CHUNK information into showable information
|
||||||
|
@ -202,10 +202,10 @@ echo "</form>";
|
|||||||
/* We must add javascript here. Otherwise, the date picker won't
|
/* We must add javascript here. Otherwise, the date picker won't
|
||||||
work if the date is not correct because php is returning. */
|
work if the date is not correct because php is returning. */
|
||||||
|
|
||||||
require_css_file ('datepicker');
|
ui_require_css_file ('datepicker');
|
||||||
require_jquery_file ('ui.core');
|
ui_require_jquery_file ('ui.core');
|
||||||
require_jquery_file ('ui.datepicker');
|
ui_require_jquery_file ('ui.datepicker');
|
||||||
require_jquery_file ('timeentry');
|
ui_require_jquery_file ('timeentry');
|
||||||
?>
|
?>
|
||||||
<script language="javascript" type="text/javascript">
|
<script language="javascript" type="text/javascript">
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ $view_graph = (bool) get_parameter ('view_graph');
|
|||||||
$id = (int) get_parameter ('id');
|
$id = (int) get_parameter ('id');
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
print_page_header (__('Graphs management'), "", false, "", true);
|
ui_print_page_header (__('Graphs management'), "", false, "", true);
|
||||||
|
|
||||||
// Delete module SQL code
|
// Delete module SQL code
|
||||||
if ($delete_graph) {
|
if ($delete_graph) {
|
||||||
@ -101,7 +101,7 @@ if (! empty ($graphs)) {
|
|||||||
$data[2] = $graph["description"];
|
$data[2] = $graph["description"];
|
||||||
|
|
||||||
$data[3] = $graph["graphs_count"];
|
$data[3] = $graph["graphs_count"];
|
||||||
$data[4] = print_group_icon($graph['id_group'],true);
|
$data[4] = ui_print_group_icon($graph['id_group'],true);
|
||||||
|
|
||||||
if (check_acl ($config['id_user'], 0, "AW")) {
|
if (check_acl ($config['id_user'], 0, "AW")) {
|
||||||
$data[5] = '<a href="index.php?sec=greporting&sec2=godmode/reporting/graphs&delete_graph=1&id='
|
$data[5] = '<a href="index.php?sec=greporting&sec2=godmode/reporting/graphs&delete_graph=1&id='
|
||||||
|
@ -17,7 +17,7 @@ global $config;
|
|||||||
|
|
||||||
require_once ('include/functions_visual_map.php');
|
require_once ('include/functions_visual_map.php');
|
||||||
|
|
||||||
print_page_header (__('Visual console builder'), "", false, "map_builder", true);
|
ui_print_page_header (__('Visual console builder'), "", false, "map_builder", true);
|
||||||
|
|
||||||
$id_layout = (int) get_parameter ('id_layout');
|
$id_layout = (int) get_parameter ('id_layout');
|
||||||
$copy_layout = (bool) get_parameter ('copy_layout');
|
$copy_layout = (bool) get_parameter ('copy_layout');
|
||||||
@ -130,7 +130,7 @@ if (!$maps) {
|
|||||||
$data = array ();
|
$data = array ();
|
||||||
$data[0] = '<a href="index.php?sec=gmap&sec2=godmode/reporting/visual_console_builder&tab=data&action=edit&id_visual_console='.$map['id'].'">'.$map['name'].'</a>';
|
$data[0] = '<a href="index.php?sec=gmap&sec2=godmode/reporting/visual_console_builder&tab=data&action=edit&id_visual_console='.$map['id'].'">'.$map['name'].'</a>';
|
||||||
|
|
||||||
$data[1] = print_group_icon ($map['id_group'], true);
|
$data[1] = ui_print_group_icon ($map['id_group'], true);
|
||||||
$data[2] = get_db_sql ("SELECT COUNT(*) FROM tlayout_data WHERE id_layout = ".$map['id']);
|
$data[2] = get_db_sql ("SELECT COUNT(*) FROM tlayout_data WHERE id_layout = ".$map['id']);
|
||||||
|
|
||||||
$data[3] = '<a href="index.php?sec=gmap&sec2=godmode/reporting/map_builder&id_layout='.$map['id'].'&copy_layout=1">'.print_image ("images/copy.png", true).'</a>';
|
$data[3] = '<a href="index.php?sec=gmap&sec2=godmode/reporting/map_builder&id_layout='.$map['id'].'&copy_layout=1">'.print_image ("images/copy.png", true).'</a>';
|
||||||
|
@ -509,9 +509,9 @@ else {
|
|||||||
echo '</div>';
|
echo '</div>';
|
||||||
echo '</form>';
|
echo '</form>';
|
||||||
|
|
||||||
require_jquery_file ('timeentry');
|
ui_require_jquery_file ('timeentry');
|
||||||
require_jquery_file ('autocomplete');
|
ui_require_jquery_file ('autocomplete');
|
||||||
require_javascript_file('pandora');
|
ui_require_javascript_file('pandora');
|
||||||
if ($enterpriseEnable) {
|
if ($enterpriseEnable) {
|
||||||
enterpriseTextBox();
|
enterpriseTextBox();
|
||||||
}
|
}
|
||||||
|
@ -224,18 +224,18 @@ foreach ($items as $item) {
|
|||||||
$row[3] = '-';
|
$row[3] = '-';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$row[2] = printTruncateText(get_agent_name(get_agent_module_id($item['id_agent_module'])), 20);
|
$row[2] = ui_print_truncate_text(get_agent_name(get_agent_module_id($item['id_agent_module'])), 20);
|
||||||
$row[3] = printTruncateText(get_db_value_filter('nombre', 'tagente_modulo', array('id_agente_modulo' => $item['id_agent_module'])), 20);
|
$row[3] = ui_print_truncate_text(get_db_value_filter('nombre', 'tagente_modulo', array('id_agente_modulo' => $item['id_agent_module'])), 20);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$row[2] = printTruncateText(get_agent_name($item['id_agent']), 20);
|
$row[2] = ui_print_truncate_text(get_agent_name($item['id_agent']), 20);
|
||||||
|
|
||||||
if ($item['id_agent_module'] == '') {
|
if ($item['id_agent_module'] == '') {
|
||||||
$row [3] = '-';
|
$row [3] = '-';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$row[3] = printTruncateText(get_db_value_filter('nombre', 'tagente_modulo', array('id_agente_modulo' => $item['id_agent_module'])),20);
|
$row[3] = ui_print_truncate_text(get_db_value_filter('nombre', 'tagente_modulo', array('id_agente_modulo' => $item['id_agent_module'])),20);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -245,7 +245,7 @@ foreach ($items as $item) {
|
|||||||
$row[5] = '-';
|
$row[5] = '-';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$row[5] = printTruncateText($item['description'], 25, true, true);
|
$row[5] = ui_print_truncate_text($item['description'], 25, true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
$row[6] = '<a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=item_editor&action=edit&id_report=' . $idReport . '&id_item=' . $item['id_rc'] . '">' . print_image("images/wrench_orange.png", true, array("title" => __('Edit'))) . '</a>';
|
$row[6] = '<a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=item_editor&action=edit&id_report=' . $idReport . '&id_item=' . $item['id_rc'] . '">' . print_image("images/wrench_orange.png", true, array("title" => __('Edit'))) . '</a>';
|
||||||
@ -255,9 +255,9 @@ foreach ($items as $item) {
|
|||||||
$table->data[] = $row;
|
$table->data[] = $row;
|
||||||
$count++;
|
$count++;
|
||||||
}
|
}
|
||||||
pagination ($countItems, 'index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter);
|
ui_pagination ($countItems, 'index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter);
|
||||||
print_table($table);
|
print_table($table);
|
||||||
pagination ($countItems, 'index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter);
|
ui_pagination ($countItems, 'index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter);
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function toggleFormFilter() {
|
function toggleFormFilter() {
|
||||||
|
@ -41,11 +41,11 @@ switch ($action) {
|
|||||||
case 'delete_report':
|
case 'delete_report':
|
||||||
case 'list':
|
case 'list':
|
||||||
// Report LIST
|
// Report LIST
|
||||||
print_page_header (__('Reporting').' » '.__('Custom reporting'), "images/reporting_edit.png", false, "", true);
|
ui_print_page_header (__('Reporting').' » '.__('Custom reporting'), "images/reporting_edit.png", false, "", true);
|
||||||
|
|
||||||
if ($action == 'delete_report') {
|
if ($action == 'delete_report') {
|
||||||
$result = delete_report ($idReport);
|
$result = delete_report ($idReport);
|
||||||
print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Successfully deleted'),
|
__('Successfully deleted'),
|
||||||
__('Could not be deleted'));
|
__('Could not be deleted'));
|
||||||
}
|
}
|
||||||
@ -95,7 +95,7 @@ switch ($action) {
|
|||||||
else
|
else
|
||||||
$data[2] = __('No');
|
$data[2] = __('No');
|
||||||
|
|
||||||
$data[3] = print_group_icon($report['id_group'], true);
|
$data[3] = ui_print_group_icon($report['id_group'], true);
|
||||||
$data[4] = '<form method="post" style="display:inline" onsubmit="if (!confirm (\''.__('Are you sure?').'\')) return false">';
|
$data[4] = '<form method="post" style="display:inline" onsubmit="if (!confirm (\''.__('Are you sure?').'\')) return false">';
|
||||||
$data[4] .= print_input_hidden ('id_report', $report['id_report'], true);
|
$data[4] .= print_input_hidden ('id_report', $report['id_report'], true);
|
||||||
$data[4] .= print_input_hidden ('action','delete_report', true);
|
$data[4] .= print_input_hidden ('action','delete_report', true);
|
||||||
@ -520,10 +520,10 @@ else {
|
|||||||
$textReportName = '';
|
$textReportName = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
print_page_header(__('Reporting') . $textReportName, "images/reporting_edit.png", false, "reporting_" . $activeTab . "_tab", true, $buttons);
|
ui_print_page_header(__('Reporting') . $textReportName, "images/reporting_edit.png", false, "reporting_" . $activeTab . "_tab", true, $buttons);
|
||||||
|
|
||||||
if ($resultOperationDB !== null) {
|
if ($resultOperationDB !== null) {
|
||||||
print_result_message ($resultOperationDB, __('Successfull action'), __('Unsuccessfull action'));
|
ui_print_result_message ($resultOperationDB, __('Successfull action'), __('Unsuccessfull action'));
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($activeTab) {
|
switch ($activeTab) {
|
||||||
|
@ -87,10 +87,10 @@ echo '</div>';
|
|||||||
/* We must add javascript here. Otherwise, the date picker won't
|
/* We must add javascript here. Otherwise, the date picker won't
|
||||||
work if the date is not correct because php is returning. */
|
work if the date is not correct because php is returning. */
|
||||||
|
|
||||||
require_css_file ('datepicker');
|
ui_require_css_file ('datepicker');
|
||||||
require_jquery_file ('ui.core');
|
ui_require_jquery_file ('ui.core');
|
||||||
require_jquery_file ('ui.datepicker');
|
ui_require_jquery_file ('ui.datepicker');
|
||||||
require_jquery_file ('timeentry');
|
ui_require_jquery_file ('timeentry');
|
||||||
?>
|
?>
|
||||||
<script language="javascript" type="text/javascript">
|
<script language="javascript" type="text/javascript">
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ switch ($action) {
|
|||||||
|
|
||||||
$table->width = '70%';
|
$table->width = '70%';
|
||||||
$table->data = array ();
|
$table->data = array ();
|
||||||
$table->data[0][0] = __('Name:'). print_help_tip (__("Use [ or ( as first character, for example '[*] Map name', to render this map name in main menu"), true);
|
$table->data[0][0] = __('Name:'). ui_print_help_tip (__("Use [ or ( as first character, for example '[*] Map name', to render this map name in main menu"), true);
|
||||||
|
|
||||||
$table->data[0][1] = print_input_text ('name', $visualConsoleName, '', 21, 30, true);
|
$table->data[0][1] = print_input_text ('name', $visualConsoleName, '', 21, 30, true);
|
||||||
$table->data[1][0] = __('Group:');
|
$table->data[1][0] = __('Group:');
|
||||||
|
@ -290,18 +290,18 @@ echo '<span style="display: none" id="message_alert_no_label_no_image">' . __('N
|
|||||||
echo '<span style="display: none" id="message_alert_no_label">' . __('No label defined.') .'</span>';
|
echo '<span style="display: none" id="message_alert_no_label">' . __('No label defined.') .'</span>';
|
||||||
echo '<span style="display: none" id="message_alert_no_image">' . __('No image defined.') .'</span>';
|
echo '<span style="display: none" id="message_alert_no_image">' . __('No image defined.') .'</span>';
|
||||||
|
|
||||||
require_css_file ('color-picker');
|
ui_require_css_file ('color-picker');
|
||||||
|
|
||||||
require_jquery_file('ui.core');
|
ui_require_jquery_file('ui.core');
|
||||||
require_jquery_file('ui.resizable');
|
ui_require_jquery_file('ui.resizable');
|
||||||
require_jquery_file('colorpicker');
|
ui_require_jquery_file('colorpicker');
|
||||||
require_jquery_file('ui.draggable');
|
ui_require_jquery_file('ui.draggable');
|
||||||
require_javascript_file('wz_jsgraphics');
|
ui_require_javascript_file('wz_jsgraphics');
|
||||||
require_javascript_file('pandora_visual_console');
|
ui_require_javascript_file('pandora_visual_console');
|
||||||
require_jquery_file ('autocomplete');
|
ui_require_jquery_file ('autocomplete');
|
||||||
require_javascript_file('visual_console_builder.editor', 'godmode/reporting/');
|
ui_require_javascript_file('visual_console_builder.editor', 'godmode/reporting/');
|
||||||
// Javascript file for base 64 encoding of label parameter
|
// Javascript file for base 64 encoding of label parameter
|
||||||
require_javascript_file ('encode_decode_base64');
|
ui_require_javascript_file ('encode_decode_base64');
|
||||||
?>
|
?>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
.ui-resizable-handle {
|
.ui-resizable-handle {
|
||||||
|
@ -237,18 +237,18 @@ echo '</form>';
|
|||||||
//Trick for it have a traduct text for javascript.
|
//Trick for it have a traduct text for javascript.
|
||||||
echo '<span id="ip_text" style="display: none;">' . __('IP') . '</span>';
|
echo '<span id="ip_text" style="display: none;">' . __('IP') . '</span>';
|
||||||
|
|
||||||
require_css_file ('color-picker');
|
ui_require_css_file ('color-picker');
|
||||||
|
|
||||||
require_jquery_file ('ui.core');
|
ui_require_jquery_file ('ui.core');
|
||||||
require_jquery_file ('ui.draggable');
|
ui_require_jquery_file ('ui.draggable');
|
||||||
require_jquery_file ('ui.droppable');
|
ui_require_jquery_file ('ui.droppable');
|
||||||
require_jquery_file ('colorpicker');
|
ui_require_jquery_file ('colorpicker');
|
||||||
require_jquery_file ('pandora.controls');
|
ui_require_jquery_file ('pandora.controls');
|
||||||
require_javascript_file ('wz_jsgraphics');
|
ui_require_javascript_file ('wz_jsgraphics');
|
||||||
require_javascript_file ('pandora_visual_console');
|
ui_require_javascript_file ('pandora_visual_console');
|
||||||
require_jquery_file('ajaxqueue');
|
ui_require_jquery_file('ajaxqueue');
|
||||||
require_jquery_file('bgiframe');
|
ui_require_jquery_file('bgiframe');
|
||||||
require_jquery_file('autocomplete');
|
ui_require_jquery_file('autocomplete');
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready (function () {
|
$(document).ready (function () {
|
||||||
|
@ -161,7 +161,7 @@ switch ($activeTab) {
|
|||||||
$message = '';
|
$message = '';
|
||||||
|
|
||||||
if (empty($name_modules)) {
|
if (empty($name_modules)) {
|
||||||
$statusProcessInDB = array('flag' => true, 'message' => print_error_message (__('No modules selected'), '', true));
|
$statusProcessInDB = array('flag' => true, 'message' => ui_print_error_message (__('No modules selected'), '', true));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if ($name_modules[0] == '0')
|
if ($name_modules[0] == '0')
|
||||||
@ -233,7 +233,7 @@ if ($action == 'new' || $idVisualConsole === false){
|
|||||||
|
|
||||||
$buttons[$activeTab]['active'] = true;
|
$buttons[$activeTab]['active'] = true;
|
||||||
|
|
||||||
print_page_header(__('Visual console builder') . " " . $visualConsoleName, "", false, "visual_console_editor_" . $activeTab . "_tab", true, $buttons);
|
ui_print_page_header(__('Visual console builder') . " " . $visualConsoleName, "", false, "visual_console_editor_" . $activeTab . "_tab", true, $buttons);
|
||||||
|
|
||||||
//The source code for PAINT THE PAGE
|
//The source code for PAINT THE PAGE
|
||||||
if ($statusProcessInDB !== null) {
|
if ($statusProcessInDB !== null) {
|
||||||
|
@ -28,8 +28,8 @@ require_once ('include/functions_visual_map.php');
|
|||||||
|
|
||||||
print_pandora_visual_map ($visualConsole['id']);
|
print_pandora_visual_map ($visualConsole['id']);
|
||||||
|
|
||||||
require_javascript_file ('wz_jsgraphics');
|
ui_require_javascript_file ('wz_jsgraphics');
|
||||||
require_javascript_file ('pandora_visual_console');
|
ui_require_javascript_file ('pandora_visual_console');
|
||||||
?>
|
?>
|
||||||
<script language="javascript" type="text/javascript">
|
<script language="javascript" type="text/javascript">
|
||||||
/* <![CDATA[ */
|
/* <![CDATA[ */
|
||||||
|
@ -27,7 +27,7 @@ if (! check_acl ($config['id_user'], 0, "PM")) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Headers
|
// Headers
|
||||||
print_page_header (__('Manage recontask'), "", false, "", true);
|
ui_print_page_header (__('Manage recontask'), "", false, "", true);
|
||||||
|
|
||||||
// --------------------------------
|
// --------------------------------
|
||||||
// DELETE A RECON TASKs
|
// DELETE A RECON TASKs
|
||||||
@ -204,7 +204,7 @@ if ($result !== false) {
|
|||||||
|
|
||||||
// GROUP
|
// GROUP
|
||||||
if ($row["id_recon_script"] == 0){
|
if ($row["id_recon_script"] == 0){
|
||||||
$data[3] = print_group_icon ($row["id_group"], true);
|
$data[3] = ui_print_group_icon ($row["id_group"], true);
|
||||||
} else {
|
} else {
|
||||||
$data[3] = "-";
|
$data[3] = "-";
|
||||||
}
|
}
|
||||||
@ -214,7 +214,7 @@ if ($result !== false) {
|
|||||||
|
|
||||||
// OS
|
// OS
|
||||||
if ($row["id_recon_script"] == 0){
|
if ($row["id_recon_script"] == 0){
|
||||||
$data[5] =(($row["id_os"] > 0) ? print_os_icon ($row["id_os"], false, true) : __('Any'));
|
$data[5] =(($row["id_os"] > 0) ? ui_print_os_icon ($row["id_os"], false, true) : __('Any'));
|
||||||
} else {
|
} else {
|
||||||
$data[5] = "-";
|
$data[5] = "-";
|
||||||
}
|
}
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user