2006-03-27 05:37:27 +02:00
|
|
|
<?php
|
2006-07-17 10:17:58 +02:00
|
|
|
|
2009-06-08 20:21:21 +02:00
|
|
|
// Pandora FMS - http://pandorafms.com
|
|
|
|
// ==================================================
|
2011-03-17 21:51:46 +01:00
|
|
|
// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
|
2009-06-08 20:21:21 +02:00
|
|
|
// Please see http://pandorafms.org for full contribution list
|
|
|
|
|
2006-07-17 10:17:58 +02:00
|
|
|
// This program is free software; you can redistribute it and/or
|
2011-03-23 Raul Mateos <raulofpandora@gmail.com>
* extensions/ssh_console.php, extensions/vnc_view.php,
extensions/update_manager.php, extensions/users_connected.php,
extensions/extension_uploader.php, extensions/insert_data.php,
extensions/module_groups.php, extensions/plugin_registration.php,
extensions/agent_modules.php, extensions/resource_registration.php,
extensions/resource_exportation.php, extensions/dbmanager.php,
extensions/pandora_logs.php, general/*.php, ajax.php,
operation/search_*.php, operation/menu.php, operation/extensions.php,
godmode/menu.php, godmode/extensions.php, godmode/admin_access_logs.php:
CReverted unwanted license changes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4126 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-23 17:13:28 +01:00
|
|
|
// modify it under the terms of the GNU General Public License
|
2011-03-17 Raul Mateos <raulofpandora@gmail.com>
* extensions/dbmanager.php, extensions/pandora_logs.php, general/*.php,
index.php, ajax.php, operation/search_*.php, operation/menu.php,
operation/extensions.php, godmode/menu.php, godmode/extensions.php,
admin_access_logs.php: Cleaned code and updated page disclaimers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-17 23:01:01 +01:00
|
|
|
// as published by the Free Software Foundation; version 2
|
|
|
|
|
2006-07-17 10:17:58 +02:00
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2011-03-17 Raul Mateos <raulofpandora@gmail.com>
* extensions/dbmanager.php, extensions/pandora_logs.php, general/*.php,
index.php, ajax.php, operation/search_*.php, operation/menu.php,
operation/extensions.php, godmode/menu.php, godmode/extensions.php,
admin_access_logs.php: Cleaned code and updated page disclaimers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-17 23:01:01 +01:00
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2006-07-17 10:17:58 +02:00
|
|
|
// GNU General Public License for more details.
|
2007-06-08 17:55:53 +02:00
|
|
|
|
2009-03-03 16:21:13 +01:00
|
|
|
require_once ('include/config.php');
|
2008-10-22 11:08:03 +02:00
|
|
|
|
2008-12-19 22:45:20 +01:00
|
|
|
check_login ();
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2009-03-03 16:21:13 +01:00
|
|
|
enterprise_include ('godmode/menu.php');
|
|
|
|
require_once ('include/functions_menu.php');
|
|
|
|
|
2012-06-18 17:16:17 +02:00
|
|
|
$menu_godmode = array ();
|
|
|
|
$menu_godmode['class'] = 'godmode';
|
2009-03-02 Esteban Sanchez <estebans@artica.es>
* include/functions_menu.php: Added to repository. Functions for menu.
* operation/menu.php, godmode/menu.php: Added class to menu due to
changes in print_menu().
* general/main_menu.php: temp_print_menu() moved to functions_menu.php
* include/functions_themes.php: Added to repository. Implement
functions relative to themes (only CSS themes list at this moment).
* include/styles/pandora.css, include/styles/pandora_black.css,
include/styles/pandora_minimal.css, include/styles/pandora_red.css:
Added author, name and description comments to adopt to new
get_themes() interface.
* include/styles/pandora_width.css: Improved and make lighter by
simply rewrite some classes.
* include/functions.php: Added is_ajax().
* godmode/agentes/module_manager_editor.php,
godmode/alerts/alert_actions.php, godmode/alerts/alert_commands.php,
godmode/alerts/alert_compounds.php, godmode/alerts/alert_list.php,
godmode/alerts/alert_templates.php, godmode/groups/group_list.php,
godmode/reporting/map_builder.php,
godmode/reporting/reporting_builder.php,
operation/agentes/estado_agente.php, operation/agentes/ver_agente.php,
operation/events/events.php, operation/messages/message.php: Use
is_ajax()
* godmode/setup/setup.php: Use enterprise_include() instead of manual
checking. Use get_css_themes() to show the theme list.
* include/styles/common.css: Added to repository. Minimal styles to
make pandora works and common with all the CSS themes.
* include/functions_ui.php: Added common.css file.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1496 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-02 14:43:15 +01:00
|
|
|
|
2013-01-14 16:11:07 +01:00
|
|
|
if (check_acl ($config['id_user'], 0, "AW") || check_acl ($config['id_user'], 0, "AD")) {
|
2015-04-13 13:44:29 +02:00
|
|
|
$menu_godmode["gagente"]["text"] = __('Resources');
|
2012-06-18 17:16:17 +02:00
|
|
|
$menu_godmode["gagente"]["sec2"] = "godmode/agentes/modificar_agente";
|
2015-04-15 17:35:36 +02:00
|
|
|
$menu_godmode["gagente"]["id"] = "god-resources";
|
2015-10-02 10:39:05 +02:00
|
|
|
|
|
|
|
$sub = array ();
|
|
|
|
$sub['godmode/agentes/modificar_agente']['text'] = __('Manage agents');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub['godmode/agentes/modificar_agente']['id'] = 'Manage agents';
|
2015-10-02 10:39:05 +02:00
|
|
|
$sub["godmode/agentes/modificar_agente"]["subsecs"] = array(
|
|
|
|
"godmode/agentes/configurar_agente");
|
2016-01-19 13:16:38 +01:00
|
|
|
|
2013-08-06 14:53:39 +02:00
|
|
|
if (check_acl ($config['id_user'], 0, "AW")) {
|
2013-06-04 18:06:58 +02:00
|
|
|
if (check_acl ($config["id_user"], 0, "PM")) {
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub["godmode/agentes/fields_manager"]["text"] = __('Custom fields');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/agentes/fields_manager"]["id"] = 'Custom fields';
|
2016-01-19 13:16:38 +01:00
|
|
|
|
2015-12-14 14:21:13 +01:00
|
|
|
$sub["godmode/modules/manage_nc_groups"]["text"] = __('Component groups');
|
|
|
|
$sub["godmode/modules/manage_nc_groups"]["id"] = 'Component groups';
|
|
|
|
// Category
|
|
|
|
$sub["godmode/category/category"]["text"] = __('Module categories');
|
|
|
|
$sub["godmode/category/category"]["id"] = 'Module categories';
|
|
|
|
$sub["godmode/category/category"]["subsecs"] = "godmode/category/edit_category";
|
|
|
|
|
|
|
|
$sub["godmode/modules/module_list"]["text"] = __('Module types');
|
|
|
|
$sub["godmode/modules/module_list"]["id"] = 'Module types';
|
2016-01-19 13:16:38 +01:00
|
|
|
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub["godmode/groups/modu_group_list"]["text"] = __('Module groups');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/groups/modu_group_list"]["id"] = 'Module groups';
|
2015-04-09 15:04:23 +02:00
|
|
|
}
|
2016-01-19 13:16:38 +01:00
|
|
|
|
2015-04-09 15:04:23 +02:00
|
|
|
if ($config['activate_netflow']) {
|
|
|
|
//Netflow
|
|
|
|
$sub["godmode/netflow/nf_edit"]["text"] = __('Netflow filters');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/netflow/nf_edit"]["id"] = 'Netflow filters';
|
2015-04-09 15:04:23 +02:00
|
|
|
}
|
2008-08-04 10:15:16 +02:00
|
|
|
}
|
2015-10-02 10:39:05 +02:00
|
|
|
$menu_godmode["gagente"]["sub"] = $sub;
|
2008-12-19 22:45:20 +01:00
|
|
|
}
|
2009-04-20 16:00:27 +02:00
|
|
|
|
2015-04-09 15:04:23 +02:00
|
|
|
if (check_acl ($config['id_user'], 0, "UM")) {
|
2015-04-13 13:44:29 +02:00
|
|
|
$menu_godmode["gusuarios"]["text"] = __('Profiles');
|
2015-04-09 15:04:23 +02:00
|
|
|
$menu_godmode["gusuarios"]["sec2"] = "godmode/users/user_list";
|
|
|
|
$menu_godmode["gusuarios"]["id"] = "god-users";
|
2016-01-19 13:16:38 +01:00
|
|
|
|
2010-08-20 12:30:36 +02:00
|
|
|
$sub = array ();
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub['godmode/users/user_list']['text'] = __('Users management');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub['godmode/users/user_list']['id'] = 'Users management';
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub['godmode/users/profile_list']['text'] = __('Profile management');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub['godmode/users/profile_list']['id'] = 'Profile management';
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub["godmode/groups/group_list"]["text"] = __('Manage agents groups');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/groups/group_list"]["id"] = 'Manage agents groups';
|
2015-12-14 14:21:13 +01:00
|
|
|
|
|
|
|
if (check_acl ($config['id_user'], 0, "PM")) {
|
|
|
|
// Tag
|
|
|
|
$sub["godmode/tag/tag"]["text"] = __('Module tags');
|
|
|
|
$sub["godmode/tag/tag"]["id"] = 'Module tags';
|
|
|
|
$sub["godmode/tag/tag"]["subsecs"] = "godmode/tag/edit_tag";
|
|
|
|
|
|
|
|
enterprise_hook ('enterprise_acl_submenu');
|
|
|
|
}
|
|
|
|
|
2015-04-09 15:04:23 +02:00
|
|
|
$menu_godmode["gusuarios"]["sub"] = $sub;
|
2010-04-06 18:24:54 +02:00
|
|
|
}
|
|
|
|
|
2015-04-09 15:04:23 +02:00
|
|
|
|
2015-12-14 14:21:13 +01:00
|
|
|
$menu_godmode["gmodules"]["text"] = __('Configuration');
|
|
|
|
$menu_godmode["gmodules"]["sec2"] = "godmode/modules/manage_network_templates";
|
|
|
|
$menu_godmode["gmodules"]["id"] = "god-configuration";
|
2015-04-09 15:04:23 +02:00
|
|
|
|
2015-12-14 14:21:13 +01:00
|
|
|
$sub = array ();
|
|
|
|
if (check_acl ($config['id_user'], 0, "PM")) {
|
2009-04-13 Esteban Sanchez <estebans@artica.es>
* general/footer.php: Removed Firefox icon. Style correction.
* godmode/agentes/agent_manager.php: Replaced > with ». Style
correction when setting bold attributes.
* godmode/agentes/manage_config_remote.php,
godmode/agentes/modificar_agente.php, godmode/agentes/module_manager.php,
godmode/alerts/alert_list.php, godmode/db/db_audit.php,
godmode/db/db_event.php, godmode/db/db_info.php, godmode/db/db_main.php,
godmode/db/db_purge.php, godmode/db/db_refine.php,
godmode/groups/configure_group.php, godmode/groups/group_list.php,
godmode/modules/manage_nc_groups.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_network_templates.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/module_list.php, godmode/profiles/profile_list.php,
godmode/reporting/graph_builder.php, godmode/reporting/map_builder.php,
godmode/reporting/reporting_builder.php, godmode/servers/manage_export.php,
godmode/servers/manage_export_form.php,
godmode/servers/manage_recontask.php,
godmode/servers/manage_recontask_form.php,
godmode/servers/modificar_server.php, godmode/setup/setup_visuals.php,
godmode/setup/links.php, godmode/setup/news.php,
godmode/snmpconsole/snmp_alert.php, godmode/users/configure_user.php,
godmode/users/user_list.php, operation/agentes/alerts_status.php,
operation/agentes/estado_generalagente.php,
operation/agentes/estado_agente.php, operation/agentes/estado_grupo.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/exportdata.php, operation/agentes/networkmap.php,
operation/agentes/status_monitor.php, operation/agentes/tactical.php,
operation/events/events.php, operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/incidents/incident_statistics.php,
operation/messages/message.php, operation/reporting/custom_reporting.php,
operation/reporting/graph_viewer.php,
operation/reporting/reporting_viewer.php, operation/servers/view_server.php,
operation/users/user.php, operation/users/user_edit.php,
operation/users/user_statistics.php, operation/visual_console/index.php,
godmode/agentes/agent_template.php: Replaced > with »
* operation/agentes/datos_agente.php: Return instead of exit
* include/javascript/jquery.pandora.controls.js: Added pandoraSelectOS
control to preview the OS icon on a select.
* include/functions_reports.php: Fixed a bug on delete_report() that
returns error when the report has no content.
* include/functions_ui.php: Removed border attribute on print_os_icon().
Some fixes to meta refresh element on process_page_head(). Fixed
format_filesize() when length is zero.
* godmode/menu.php: Replaced link to file manager. Added enterprise hook.
* godmode/setup/file_manager.php: Renamed from obfuscated name filemgr.php
* include/styles/pandora.css: Textarea width reduced to 99%
* godmode/setup/setup.php: Added get_os_icon AJAX operation.
* images/mimetypes/, images/mimetypes/zip.png, images/mimetypes/image.png,
images/mimetypes/unknown.png, images/mimetypes/directory.png: Added to
repository. Mime type icons.
* extras/pandoradb_migrate_v2.x_to_v3.0.sql: Removed date comments.
* include/functions_filemanager.php: Added to repository. Minimal API for
file manager system.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1608 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-13 11:50:56 +02:00
|
|
|
$sub["godmode/modules/manage_network_components"]["text"] = __('Network components');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/modules/manage_network_components"]["id"] = 'Network components';
|
2009-04-13 Esteban Sanchez <estebans@artica.es>
* general/footer.php: Removed Firefox icon. Style correction.
* godmode/agentes/agent_manager.php: Replaced > with ». Style
correction when setting bold attributes.
* godmode/agentes/manage_config_remote.php,
godmode/agentes/modificar_agente.php, godmode/agentes/module_manager.php,
godmode/alerts/alert_list.php, godmode/db/db_audit.php,
godmode/db/db_event.php, godmode/db/db_info.php, godmode/db/db_main.php,
godmode/db/db_purge.php, godmode/db/db_refine.php,
godmode/groups/configure_group.php, godmode/groups/group_list.php,
godmode/modules/manage_nc_groups.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_network_templates.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/module_list.php, godmode/profiles/profile_list.php,
godmode/reporting/graph_builder.php, godmode/reporting/map_builder.php,
godmode/reporting/reporting_builder.php, godmode/servers/manage_export.php,
godmode/servers/manage_export_form.php,
godmode/servers/manage_recontask.php,
godmode/servers/manage_recontask_form.php,
godmode/servers/modificar_server.php, godmode/setup/setup_visuals.php,
godmode/setup/links.php, godmode/setup/news.php,
godmode/snmpconsole/snmp_alert.php, godmode/users/configure_user.php,
godmode/users/user_list.php, operation/agentes/alerts_status.php,
operation/agentes/estado_generalagente.php,
operation/agentes/estado_agente.php, operation/agentes/estado_grupo.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/exportdata.php, operation/agentes/networkmap.php,
operation/agentes/status_monitor.php, operation/agentes/tactical.php,
operation/events/events.php, operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/incidents/incident_statistics.php,
operation/messages/message.php, operation/reporting/custom_reporting.php,
operation/reporting/graph_viewer.php,
operation/reporting/reporting_viewer.php, operation/servers/view_server.php,
operation/users/user.php, operation/users/user_edit.php,
operation/users/user_statistics.php, operation/visual_console/index.php,
godmode/agentes/agent_template.php: Replaced > with »
* operation/agentes/datos_agente.php: Return instead of exit
* include/javascript/jquery.pandora.controls.js: Added pandoraSelectOS
control to preview the OS icon on a select.
* include/functions_reports.php: Fixed a bug on delete_report() that
returns error when the report has no content.
* include/functions_ui.php: Removed border attribute on print_os_icon().
Some fixes to meta refresh element on process_page_head(). Fixed
format_filesize() when length is zero.
* godmode/menu.php: Replaced link to file manager. Added enterprise hook.
* godmode/setup/file_manager.php: Renamed from obfuscated name filemgr.php
* include/styles/pandora.css: Textarea width reduced to 99%
* godmode/setup/setup.php: Added get_os_icon AJAX operation.
* images/mimetypes/, images/mimetypes/zip.png, images/mimetypes/image.png,
images/mimetypes/unknown.png, images/mimetypes/directory.png: Added to
repository. Mime type icons.
* extras/pandoradb_migrate_v2.x_to_v3.0.sql: Removed date comments.
* include/functions_filemanager.php: Added to repository. Minimal API for
file manager system.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1608 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-13 11:50:56 +02:00
|
|
|
enterprise_hook ('components_submenu');
|
2008-12-19 22:45:20 +01:00
|
|
|
$sub["godmode/modules/manage_network_templates"]["text"] = __('Module templates');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/modules/manage_network_templates"]["id"] = 'Module templates';
|
2008-10-22 11:08:03 +02:00
|
|
|
enterprise_hook ('inventory_submenu');
|
2015-12-14 14:21:13 +01:00
|
|
|
}
|
|
|
|
if (check_acl ($config['id_user'], 0, "AW")) {
|
|
|
|
enterprise_hook ('policies_menu');
|
|
|
|
}
|
|
|
|
enterprise_hook('agents_submenu');
|
|
|
|
if (check_acl ($config['id_user'], 0, "AW")) {
|
|
|
|
$sub["gmassive"]["text"] = __('Bulk operations');
|
|
|
|
$sub["gmassive"]["id"] = 'Bulk operations';
|
|
|
|
$sub["gmassive"]["type"] = "direct";
|
|
|
|
$sub["gmassive"]["subtype"] = "nolink";
|
|
|
|
$sub2 = array ();
|
|
|
|
$sub2["godmode/massive/massive_operations&tab=massive_agents"]["text"] = __('Agents operations');
|
|
|
|
$sub2["godmode/massive/massive_operations&tab=massive_modules"]["text"] = __('Modules operations');
|
|
|
|
$sub2["godmode/massive/massive_operations&tab=massive_plugins"]["text"] = __('Plugins operations');
|
|
|
|
if (check_acl ($config['id_user'], 0, "PM")) {
|
|
|
|
$sub2["godmode/massive/massive_operations&tab=massive_users"]["text"] = __('Users operations');
|
2015-04-09 15:04:23 +02:00
|
|
|
}
|
2015-12-14 14:21:13 +01:00
|
|
|
$sub2["godmode/massive/massive_operations&tab=massive_alerts"]["text"] = __('Alerts operations');
|
|
|
|
enterprise_hook('massivepolicies_submenu');
|
|
|
|
enterprise_hook('massivesnmp_submenu');
|
|
|
|
enterprise_hook('massivesatellite_submenu');
|
2016-04-26 10:44:52 +02:00
|
|
|
|
2015-12-14 14:21:13 +01:00
|
|
|
$sub["gmassive"]["sub2"] = $sub2;
|
2008-08-04 10:15:16 +02:00
|
|
|
}
|
2008-07-25 20:37:32 +02:00
|
|
|
|
2015-12-14 14:21:13 +01:00
|
|
|
$menu_godmode["gmodules"]["sub"] = $sub;
|
|
|
|
|
2013-01-14 16:11:07 +01:00
|
|
|
if (check_acl ($config['id_user'], 0, "LM") || check_acl ($config['id_user'], 0, "AD")) {
|
2015-04-13 13:44:29 +02:00
|
|
|
$menu_godmode["galertas"]["text"] = __('Alerts');
|
2012-06-18 17:16:17 +02:00
|
|
|
$menu_godmode["galertas"]["sec2"] = "godmode/alerts/alert_list";
|
|
|
|
$menu_godmode["galertas"]["id"] = "god-alerts";
|
2016-04-26 10:44:52 +02:00
|
|
|
|
2015-10-02 10:39:05 +02:00
|
|
|
$sub = array ();
|
2016-01-18 14:50:42 +01:00
|
|
|
$sub["godmode/alerts/alert_list"]["text"] = __('List of Alerts');
|
|
|
|
$sub["godmode/alerts/alert_list"]["id"] = 'List of Alerts';
|
|
|
|
$sub["godmode/alerts/alert_list"]["pages"] =
|
|
|
|
array("godmode/alerts/alert_view");
|
|
|
|
|
2015-10-02 10:39:05 +02:00
|
|
|
if (check_acl ($config['id_user'], 0, "LM")) {
|
2013-01-14 16:11:07 +01:00
|
|
|
$sub["godmode/alerts/alert_templates"]["text"] = __('Templates');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/alerts/alert_templates"]["id"] = 'Templates';
|
2016-01-18 14:50:42 +01:00
|
|
|
$sub["godmode/alerts/alert_templates"]["pages"] =
|
|
|
|
array("godmode/alerts/configure_alert_template");
|
|
|
|
|
2013-01-14 16:11:07 +01:00
|
|
|
$sub["godmode/alerts/alert_actions"]["text"] = __('Actions');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/alerts/alert_actions"]["id"] = 'Actions';
|
2016-01-18 14:50:42 +01:00
|
|
|
$sub["godmode/alerts/alert_actions"]["pages"] =
|
|
|
|
array("godmode/alerts/configure_alert_action");
|
|
|
|
|
2013-01-14 16:11:07 +01:00
|
|
|
if (check_acl ($config['id_user'], 0, "PM")) {
|
|
|
|
$sub["godmode/alerts/alert_commands"]["text"] = __('Commands');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/alerts/alert_commands"]["id"] = 'Commands';
|
2016-01-18 14:50:42 +01:00
|
|
|
$sub["godmode/alerts/alert_commands"]["pages"] =
|
|
|
|
array("godmode/alerts/configure_alert_command");
|
2013-01-14 16:11:07 +01:00
|
|
|
}
|
|
|
|
$sub["godmode/alerts/alert_special_days"]["text"] = __('Special days list');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/alerts/alert_special_days"]["id"] = __('Special days list');
|
2016-01-18 14:50:42 +01:00
|
|
|
$sub["godmode/alerts/alert_special_days"]["pages"] =
|
|
|
|
array("godmode/alerts/configure_alert_special_days");
|
|
|
|
|
2013-01-14 16:11:07 +01:00
|
|
|
enterprise_hook('eventalerts_submenu');
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub["godmode/snmpconsole/snmp_alert"]["text"] = __("SNMP alerts");
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/snmpconsole/snmp_alert"]["id"] = "SNMP alerts";
|
2010-01-25 16:29:33 +01:00
|
|
|
}
|
2015-10-02 10:39:05 +02:00
|
|
|
$menu_godmode["galertas"]["sub"] = $sub;
|
2009-12-09 17:20:48 +01:00
|
|
|
}
|
2009-04-02 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: Final DB changes proposed for closing this month the DB
scheme. tagente-> new server_name field to assign server (old fields will
be removed). talert_templates has two new types (warning, critical).
tevento has "user_comment" new field. Tserver has three new fields,
server_type (so some old fields will be deleted), threads and queued_modules
this last two are for statistical options. Tusuario add language type to
override global language.
* update_manager/main.php: Minor changes for correct ACL usage. Non PM
users could see in what revision it the system, but only that.
* pandoradb_migrate_v2.x_to_v3.0.sql: Updated script for new DB changes.
* general/noaccess.php: Added footer and ending div. Page was very ugly
when showing noaccess errors, nobody see it ???.
* godmode/menu.php: A LOT of ACL fixes on several options.
* godmode/agentes/agent_manager.php: Fixed a crazy floating icon.
* godmode/agentes/manage_config_remote.php: A LOT of changes, rewriting
stuff, because was not working. This also adds a lot of ACL checks.
* godmode/agentes/massive_config.php, massive*: ACL changes.
* godmode/agentes/modificar_agente.php: Fixed ACL problems.
* godmode/agentes/module_manager_editor.php: Fixed bad module categories for
some types (data, plugin and prediction).
* godmode/alerts/alert_list.php: Fixed ACL problem.
* godmode/reporting/graph_builder.php: Added ACl restriction for
non-viewable agents for current user. Seems to be a problem with data
with more than 2 sources.
* godmode/reporting/map_builder.php: ACL checks improved.
* godmode/reporting/reporting_builder.php: ACL checks added (was missing),
some code ported from 2.1, other is new. New fields shown in list.
* include/functions.php: Fixed the annoying bug of "bad counters" in
function human_time_description_raw(). Function used,format_numeric() should
not be used never to calculate nothing, only to print formatted strings.
* include/functions_db.php: Added function user_access_to_agent() to know
if a given user has access to a given agent.
* include/functioins_report.php: get_report() should let admin to watch any
report. Fixed.
* agentes/alerts_status.php: Fixed ACL problem for view alert.
* operation/incidents/incident.php: Bad call for pagination() was giving
problems to pagination call. Somebody changes pagination() interface and
make this broken. Please if you change any interface, be sure that is compatible
with old code or make a post in the list about this !
* godmode/users/user_edit.php: Additional ACL check to do not let anybody
to watch non accesible users. Even for see the username or description.
* reporting/pchart_graph.php:Progress bar shown text in white when > 60%.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1594 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-02 21:16:59 +02:00
|
|
|
|
2012-12-28 18:06:17 +01:00
|
|
|
if (check_acl ($config['id_user'], 0, "EW")) {
|
2012-02-08 14:04:18 +01:00
|
|
|
// Manage events
|
2015-04-13 13:44:29 +02:00
|
|
|
$menu_godmode["geventos"]["text"] = __('Events');
|
2012-06-18 17:16:17 +02:00
|
|
|
$menu_godmode["geventos"]["sec2"] = "godmode/events/events&section=filter";
|
|
|
|
$menu_godmode["geventos"]["id"] = "god-events";
|
2016-04-26 10:44:52 +02:00
|
|
|
|
2012-02-08 14:04:18 +01:00
|
|
|
// Custom event fields
|
|
|
|
$sub = array ();
|
2012-12-28 18:06:17 +01:00
|
|
|
$sub["godmode/events/events&section=filter"]["text"] = __('Event filters');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/events/events&section=filter"]["id"] = 'Event filters';
|
2016-04-26 10:44:52 +02:00
|
|
|
|
2012-12-28 18:06:17 +01:00
|
|
|
if (check_acl ($config['id_user'], 0, "PM")) {
|
|
|
|
$sub["godmode/events/events&section=fields"]["text"] = __('Custom events');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/events/events&section=fields"]["id"] = 'Custom events';
|
2012-12-28 18:06:17 +01:00
|
|
|
$sub["godmode/events/events&section=responses"]["text"] = __('Event responses');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/events/events&section=responses"]["id"] = 'Event responses';
|
2012-12-28 18:06:17 +01:00
|
|
|
}
|
2016-04-26 10:44:52 +02:00
|
|
|
|
2012-06-18 17:16:17 +02:00
|
|
|
$menu_godmode["geventos"]["sub"] = $sub;
|
2012-02-08 14:04:18 +01:00
|
|
|
}
|
|
|
|
|
2012-07-09 17:51:32 +02:00
|
|
|
if (check_acl ($config['id_user'], 0, "AW")) {
|
2008-12-19 22:45:20 +01:00
|
|
|
// Servers
|
2015-04-13 13:44:29 +02:00
|
|
|
$menu_godmode["gservers"]["text"] = __('Servers');
|
2012-06-18 17:16:17 +02:00
|
|
|
$menu_godmode["gservers"]["sec2"] = "godmode/servers/modificar_server";
|
|
|
|
$menu_godmode["gservers"]["id"] = "god-servers";
|
2016-04-26 10:44:52 +02:00
|
|
|
|
2008-12-19 22:45:20 +01:00
|
|
|
$sub = array ();
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub["godmode/servers/modificar_server"]["text"] = __('Manage servers');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/servers/modificar_server"]["id"] = 'Manage servers';
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub["godmode/servers/manage_recontask"]["text"] = __('Recon task');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/servers/manage_recontask"]["id"] = 'Recon task';
|
2016-04-26 10:44:52 +02:00
|
|
|
|
2011-06-06 16:00:48 +02:00
|
|
|
//This subtabs are only for Pandora Admin
|
2011-06-06 16:15:03 +02:00
|
|
|
if (check_acl ($config['id_user'], 0, "PM")) {
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub["godmode/servers/plugin"]["text"] = __('Plugins');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/servers/plugin"]["id"] = 'Plugins';
|
2016-04-26 10:44:52 +02:00
|
|
|
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub["godmode/servers/recon_script"]["text"] = __('Recon script');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/servers/recon_script"]["id"] = 'Recon script';
|
2016-04-26 10:44:52 +02:00
|
|
|
|
2011-06-06 16:00:48 +02:00
|
|
|
enterprise_hook('export_target_submenu');
|
2016-04-26 10:44:52 +02:00
|
|
|
|
|
|
|
enterprise_hook('manage_satellite_submenu');
|
2011-06-06 16:00:48 +02:00
|
|
|
}
|
2016-04-26 10:44:52 +02:00
|
|
|
|
2015-04-09 15:04:23 +02:00
|
|
|
$menu_godmode["gservers"]["sub"] = $sub;
|
2009-04-02 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: Final DB changes proposed for closing this month the DB
scheme. tagente-> new server_name field to assign server (old fields will
be removed). talert_templates has two new types (warning, critical).
tevento has "user_comment" new field. Tserver has three new fields,
server_type (so some old fields will be deleted), threads and queued_modules
this last two are for statistical options. Tusuario add language type to
override global language.
* update_manager/main.php: Minor changes for correct ACL usage. Non PM
users could see in what revision it the system, but only that.
* pandoradb_migrate_v2.x_to_v3.0.sql: Updated script for new DB changes.
* general/noaccess.php: Added footer and ending div. Page was very ugly
when showing noaccess errors, nobody see it ???.
* godmode/menu.php: A LOT of ACL fixes on several options.
* godmode/agentes/agent_manager.php: Fixed a crazy floating icon.
* godmode/agentes/manage_config_remote.php: A LOT of changes, rewriting
stuff, because was not working. This also adds a lot of ACL checks.
* godmode/agentes/massive_config.php, massive*: ACL changes.
* godmode/agentes/modificar_agente.php: Fixed ACL problems.
* godmode/agentes/module_manager_editor.php: Fixed bad module categories for
some types (data, plugin and prediction).
* godmode/alerts/alert_list.php: Fixed ACL problem.
* godmode/reporting/graph_builder.php: Added ACl restriction for
non-viewable agents for current user. Seems to be a problem with data
with more than 2 sources.
* godmode/reporting/map_builder.php: ACL checks improved.
* godmode/reporting/reporting_builder.php: ACL checks added (was missing),
some code ported from 2.1, other is new. New fields shown in list.
* include/functions.php: Fixed the annoying bug of "bad counters" in
function human_time_description_raw(). Function used,format_numeric() should
not be used never to calculate nothing, only to print formatted strings.
* include/functions_db.php: Added function user_access_to_agent() to know
if a given user has access to a given agent.
* include/functioins_report.php: get_report() should let admin to watch any
report. Fixed.
* agentes/alerts_status.php: Fixed ACL problem for view alert.
* operation/incidents/incident.php: Bad call for pagination() was giving
problems to pagination call. Somebody changes pagination() interface and
make this broken. Please if you change any interface, be sure that is compatible
with old code or make a post in the list about this !
* godmode/users/user_edit.php: Additional ACL check to do not let anybody
to watch non accesible users. Even for see the username or description.
* reporting/pchart_graph.php:Progress bar shown text in white when > 60%.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1594 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-02 21:16:59 +02:00
|
|
|
}
|
2008-10-31 18:08:52 +01:00
|
|
|
|
2011-02-27 Miguel de Dios <miguel.dedios@artica.es>
* extensions/users_connected.php: fixed the double negation in the
check_acl.
* include/functions_events.php, include/functions_modules.php,
include/functions_reporting.php, include/functions_filemanager.php,
include/functions_config.php, include/ajax/reporting.ajax.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/alert_list.ajax.php, include/help/es/modu_group_list.php,
include/fgraph.php, include/functions.php, include/functions_db.php,
include/functions_alerts.php, include/functions_reports.php,
extensions/insert_data.php, extensions/system_info.php,
extensions/pandora_logs.php, extensions/agents_modules.php,
extensions/dbmanager.php, extensions/resource_registration.php,
extensions/update_manager/settings.php, extensions/update_manager/main.php,
extensions/plugin_registration.php, operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/incidents/incident_statistics.php, operation/extensions.php,
operation/visual_console/render_view.php,
operation/visual_console/index.php, operation/agentes/status_monitor.php,
operation/agentes/export_csv.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/datos_agente.php, operation/agentes/alerts_status.php,
operation/agentes/estado_generalagente.php,
operation/agentes/custom_fields.php, operation/agentes/estado_agente.php,
operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php, operation/agentes/sla_view.php,
operation/agentes/exportdata.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php, operation/agentes/ver_agente.php,
operation/agentes/graphs.php, operation/agentes/agent_fields.php,
operation/agentes/group_view.php, operation/agentes/networkmap.php,
operation/servers/view_server.php, operation/servers/view_server_detail.php,
operation/menu.php, operation/snmpconsole/snmp_view.php,
operation/users/user_edit.php, operation/events/event_statistics.php,
operation/events/export_csv.php, operation/events/sound_events.php,
operation/events/events_validate.php, operation/events/events_list.php,
operation/events/events_marquee.php, operation/events/events.php,
operation/search_reports.php, operation/reporting/reporting_xml.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php, operation/search_maps.php,
mobile/operation/agents/monitor_status.php,
mobile/operation/agents/view_agents.php, mobile/index.php,
general/ui/agents_list.php, godmode/groups/modu_group_list.php,
godmode/groups/configure_group.php, godmode/groups/configure_modu_group.php,
godmode/groups/group_list.php, godmode/admin_access_logs.php,
godmode/extensions.php, godmode/db/db_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/agentes/fields_manager.php, godmode/agentes/module_manager.php,
godmode/agentes/modificar_agente.php, godmode/agentes/configurar_agente.php,
godmode/agentes/configure_field.php, godmode/agentes/planned_downtime.php,
godmode/agentes/manage_config_remote.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/menu.php,
godmode/alerts/alert_list.list.php,
godmode/alerts/configure_alert_compound.php,
godmode/alerts/alert_compounds.php, godmode/alerts/alert_list.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_templates.php,
godmode/alerts/configure_alert_action.php,
godmode/alerts/configure_alert_command.php,
godmode/alerts/alert_actions.php, godmode/alerts/alert_list.builder.php,
godmode/alerts/alert_commands.php, godmode/snmpconsole/snmp_alert.php,
godmode/snmpconsole/snmp_filters.php, godmode/setup/file_manager.php,
godmode/setup/os.list.php, godmode/setup/news.php,
godmode/setup/gis_step_2.php, godmode/setup/links.php,
godmode/setup/setup.php, godmode/setup/os.php,
godmode/setup/performance.php, godmode/setup/setup_auth.php,
godmode/setup/gis.php, godmode/setup/os.builder.php,
godmode/setup/setup_visuals.php, godmode/users/user_list.php,
godmode/users/configure_user.php, godmode/users/configure_profile.php,
godmode/gis_maps/configure_gis_map.php, godmode/gis_maps/index.php,
godmode/massive/massive_add_alerts.php,
godmode/massive/massive_copy_modules.php,
godmode/massive/massive_delete_agents.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_edit_agents.php,
godmode/massive/massive_delete_action_alerts.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_delete_alerts.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_add_action_alerts.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/module_list.php,
godmode/modules/manage_network_components_form_common.php,
godmode/modules/manage_network_components_form_network.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_network_components_form_wmi.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/reporting_builder.list_items.php,
godmode/reporting/graph_builder.main.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/reporting_builder.preview.php,
godmode/reporting/reporting_builder.main.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/graph_builder.php,
godmode/reporting/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: replaced obsolete "give_acl" to
"check_acl" and erased the "give_acl".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4025 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-28 13:02:08 +01:00
|
|
|
if (check_acl ($config['id_user'], 0, "PM")) {
|
2008-12-19 22:45:20 +01:00
|
|
|
// Setup
|
2012-06-18 17:16:17 +02:00
|
|
|
$menu_godmode["gsetup"]["text"] = __('Setup');
|
2013-01-18 18:41:00 +01:00
|
|
|
$menu_godmode["gsetup"]["sec2"] = "godmode/setup/setup§ion=general";
|
2012-06-18 17:16:17 +02:00
|
|
|
$menu_godmode["gsetup"]["id"] = "god-setup";
|
2016-01-12 14:08:17 +01:00
|
|
|
|
2008-12-19 22:45:20 +01:00
|
|
|
$sub = array ();
|
2016-01-12 14:08:17 +01:00
|
|
|
|
2015-04-01 12:09:23 +02:00
|
|
|
// Options Setup
|
2015-07-15 13:00:22 +02:00
|
|
|
$sub["general"]["text"] = __('Setup');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["general"]["id"] = 'Setup';
|
2015-07-15 13:00:22 +02:00
|
|
|
$sub["general"]["type"] = "direct";
|
|
|
|
$sub["general"]["subtype"] = "nolink";
|
2015-04-13 09:07:52 +02:00
|
|
|
$sub2 = array ();
|
|
|
|
|
|
|
|
$sub2["godmode/setup/setup&section=general"]["text"] = __('General Setup');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub2["godmode/setup/setup&section=general"]["id"] = 'General Setup';
|
2015-04-13 09:07:52 +02:00
|
|
|
$sub2["godmode/setup/setup&section=general"]["refr"] = 0;
|
2016-01-12 14:08:17 +01:00
|
|
|
|
2015-04-09 15:04:23 +02:00
|
|
|
enterprise_hook ('password_submenu');
|
|
|
|
enterprise_hook ('enterprise_submenu');
|
|
|
|
enterprise_hook ('historydb_submenu');
|
|
|
|
enterprise_hook ('log_collector_submenu');
|
2016-01-12 14:08:17 +01:00
|
|
|
|
2015-04-13 09:07:52 +02:00
|
|
|
$sub2["godmode/setup/setup&section=auth"]["text"] = __('Authentication');
|
|
|
|
$sub2["godmode/setup/setup&section=auth"]["refr"] = 0;
|
2016-01-12 14:08:17 +01:00
|
|
|
|
2015-04-13 09:07:52 +02:00
|
|
|
$sub2["godmode/setup/setup&section=perf"]["text"] = __('Performance');
|
|
|
|
$sub2["godmode/setup/setup&section=perf"]["refr"] = 0;
|
2016-01-12 14:08:17 +01:00
|
|
|
|
2015-04-13 09:07:52 +02:00
|
|
|
$sub2["godmode/setup/setup&section=vis"]["text"] = __('Visual styles');
|
|
|
|
$sub2["godmode/setup/setup&section=vis"]["refr"] = 0;
|
2016-01-12 14:08:17 +01:00
|
|
|
|
2015-04-01 12:09:23 +02:00
|
|
|
if (check_acl ($config['id_user'], 0, "AW")) {
|
|
|
|
if ($config['activate_netflow']) {
|
2015-04-13 09:07:52 +02:00
|
|
|
$sub2["godmode/setup/setup&section=net"]["text"] = __('Netflow');
|
|
|
|
$sub2["godmode/setup/setup&section=net"]["refr"] = 0;
|
2015-04-01 12:09:23 +02:00
|
|
|
}
|
|
|
|
}
|
2016-01-12 14:08:17 +01:00
|
|
|
|
2016-05-09 17:08:25 +02:00
|
|
|
$sub2["godmode/setup/setup&section=ehorus"]["text"] = __('eHorus');
|
|
|
|
$sub2["godmode/setup/setup&section=ehorus"]["refr"] = 0;
|
2016-01-12 14:08:17 +01:00
|
|
|
|
2016-01-19 13:16:38 +01:00
|
|
|
if ($config['activate_gis']) {
|
2015-04-13 09:07:52 +02:00
|
|
|
$sub2["godmode/setup/gis"]["text"] = __('Map conections GIS');
|
2016-01-19 13:16:38 +01:00
|
|
|
}
|
2015-04-13 09:07:52 +02:00
|
|
|
|
|
|
|
$sub["general"]["sub2"] = $sub2;
|
2010-09-09 14:19:11 +02:00
|
|
|
$sub["godmode/setup/os"]["text"] = __('Edit OS');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/setup/os"]["id"] = 'Edit OS';
|
2014-06-02 18:00:44 +02:00
|
|
|
$sub["godmode/setup/license"]["text"] = __('License');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/setup/license"]["id"] = 'License';
|
2016-01-12 14:08:17 +01:00
|
|
|
|
2011-02-14 10:08:41 +01:00
|
|
|
enterprise_hook ('skins_submenu');
|
2016-01-12 14:08:17 +01:00
|
|
|
|
2012-06-18 17:16:17 +02:00
|
|
|
$menu_godmode["gsetup"]["sub"] = $sub;
|
2008-08-04 10:15:16 +02:00
|
|
|
}
|
2008-12-19 22:45:20 +01:00
|
|
|
|
2015-04-09 15:04:23 +02:00
|
|
|
if (check_acl ($config['id_user'], 0, "PM")) {
|
|
|
|
$menu_godmode["gextensions"]["text"] = __('Admin tools');
|
|
|
|
$menu_godmode["gextensions"]["sec2"] = "godmode/extensions";
|
|
|
|
$menu_godmode["gextensions"]["id"] = "god-extensions";
|
2016-01-12 14:08:17 +01:00
|
|
|
|
2008-12-19 22:45:20 +01:00
|
|
|
$sub = array ();
|
2015-04-09 15:04:23 +02:00
|
|
|
// Audit //meter en extensiones
|
|
|
|
$sub["godmode/admin_access_logs"]["text"] = __('System audit log');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/admin_access_logs"]["id"] = 'System audit log';
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub["godmode/setup/links"]["text"] = __('Links');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/setup/links"]["id"] = 'Links';
|
2016-01-12 14:08:17 +01:00
|
|
|
|
|
|
|
|
|
|
|
$sub["godmode/extensions"]["sub2"] = $sub2;
|
|
|
|
|
|
|
|
|
2015-04-13 13:44:29 +02:00
|
|
|
if (check_acl ($config['id_user'], 0, "DM")) {
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub["gdbman"]["text"] = __('DB maintenance');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["gdbman"]["id"] = 'DB maintenance';
|
2015-04-10 09:29:33 +02:00
|
|
|
$sub["gdbman"]["type"] = "direct";
|
|
|
|
$sub["gdbman"]["subtype"] = "nolink";
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub2 = array ();
|
|
|
|
$sub2["godmode/db/db_info"]["text"] = __('DB information');
|
|
|
|
$sub2["godmode/db/db_purge"]["text"] = __('Database purge');
|
|
|
|
$sub2["godmode/db/db_refine"]["text"] = __('Database debug');
|
|
|
|
$sub2["godmode/db/db_audit"]["text"] = __('Database audit');
|
|
|
|
$sub2["godmode/db/db_event"]["text"] = __('Database event');
|
2016-01-12 14:08:17 +01:00
|
|
|
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub["gdbman"]["sub2"] = $sub2;
|
|
|
|
}
|
2015-04-13 13:44:29 +02:00
|
|
|
$sub["extras/pandora_diag"]["text"] = __('Diagnostic info');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["extras/pandora_diag"]["id"] = 'Diagnostic info';
|
2016-01-25 16:31:02 +01:00
|
|
|
|
2015-04-13 13:44:29 +02:00
|
|
|
$sub["godmode/setup/news"]["text"] = __('Site news');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/setup/news"]["id"] = 'Site news';
|
2016-01-25 16:31:02 +01:00
|
|
|
|
2015-04-13 13:44:29 +02:00
|
|
|
$sub["godmode/setup/file_manager"]["text"] = __('File manager');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/setup/file_manager"]["id"] = 'File manager';
|
2016-01-25 16:31:02 +01:00
|
|
|
|
|
|
|
$sub["godmode/setup/snmp_wizard"]["text"] = __('SNMP Wizard');
|
|
|
|
$sub["godmode/setup/snmp_wizard"]["id"] = 'SNMP Wizard';
|
|
|
|
|
2015-04-09 15:04:23 +02:00
|
|
|
$menu_godmode["gextensions"]["sub"] = $sub;
|
2008-08-04 10:15:16 +02:00
|
|
|
}
|
|
|
|
|
2011-02-27 Miguel de Dios <miguel.dedios@artica.es>
* extensions/users_connected.php: fixed the double negation in the
check_acl.
* include/functions_events.php, include/functions_modules.php,
include/functions_reporting.php, include/functions_filemanager.php,
include/functions_config.php, include/ajax/reporting.ajax.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/alert_list.ajax.php, include/help/es/modu_group_list.php,
include/fgraph.php, include/functions.php, include/functions_db.php,
include/functions_alerts.php, include/functions_reports.php,
extensions/insert_data.php, extensions/system_info.php,
extensions/pandora_logs.php, extensions/agents_modules.php,
extensions/dbmanager.php, extensions/resource_registration.php,
extensions/update_manager/settings.php, extensions/update_manager/main.php,
extensions/plugin_registration.php, operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/incidents/incident_statistics.php, operation/extensions.php,
operation/visual_console/render_view.php,
operation/visual_console/index.php, operation/agentes/status_monitor.php,
operation/agentes/export_csv.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/datos_agente.php, operation/agentes/alerts_status.php,
operation/agentes/estado_generalagente.php,
operation/agentes/custom_fields.php, operation/agentes/estado_agente.php,
operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php, operation/agentes/sla_view.php,
operation/agentes/exportdata.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php, operation/agentes/ver_agente.php,
operation/agentes/graphs.php, operation/agentes/agent_fields.php,
operation/agentes/group_view.php, operation/agentes/networkmap.php,
operation/servers/view_server.php, operation/servers/view_server_detail.php,
operation/menu.php, operation/snmpconsole/snmp_view.php,
operation/users/user_edit.php, operation/events/event_statistics.php,
operation/events/export_csv.php, operation/events/sound_events.php,
operation/events/events_validate.php, operation/events/events_list.php,
operation/events/events_marquee.php, operation/events/events.php,
operation/search_reports.php, operation/reporting/reporting_xml.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php, operation/search_maps.php,
mobile/operation/agents/monitor_status.php,
mobile/operation/agents/view_agents.php, mobile/index.php,
general/ui/agents_list.php, godmode/groups/modu_group_list.php,
godmode/groups/configure_group.php, godmode/groups/configure_modu_group.php,
godmode/groups/group_list.php, godmode/admin_access_logs.php,
godmode/extensions.php, godmode/db/db_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/agentes/fields_manager.php, godmode/agentes/module_manager.php,
godmode/agentes/modificar_agente.php, godmode/agentes/configurar_agente.php,
godmode/agentes/configure_field.php, godmode/agentes/planned_downtime.php,
godmode/agentes/manage_config_remote.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/menu.php,
godmode/alerts/alert_list.list.php,
godmode/alerts/configure_alert_compound.php,
godmode/alerts/alert_compounds.php, godmode/alerts/alert_list.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_templates.php,
godmode/alerts/configure_alert_action.php,
godmode/alerts/configure_alert_command.php,
godmode/alerts/alert_actions.php, godmode/alerts/alert_list.builder.php,
godmode/alerts/alert_commands.php, godmode/snmpconsole/snmp_alert.php,
godmode/snmpconsole/snmp_filters.php, godmode/setup/file_manager.php,
godmode/setup/os.list.php, godmode/setup/news.php,
godmode/setup/gis_step_2.php, godmode/setup/links.php,
godmode/setup/setup.php, godmode/setup/os.php,
godmode/setup/performance.php, godmode/setup/setup_auth.php,
godmode/setup/gis.php, godmode/setup/os.builder.php,
godmode/setup/setup_visuals.php, godmode/users/user_list.php,
godmode/users/configure_user.php, godmode/users/configure_profile.php,
godmode/gis_maps/configure_gis_map.php, godmode/gis_maps/index.php,
godmode/massive/massive_add_alerts.php,
godmode/massive/massive_copy_modules.php,
godmode/massive/massive_delete_agents.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_edit_agents.php,
godmode/massive/massive_delete_action_alerts.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_delete_alerts.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_add_action_alerts.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/module_list.php,
godmode/modules/manage_network_components_form_common.php,
godmode/modules/manage_network_components_form_network.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_network_components_form_wmi.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/reporting_builder.list_items.php,
godmode/reporting/graph_builder.main.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/reporting_builder.preview.php,
godmode/reporting/reporting_builder.main.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/graph_builder.php,
godmode/reporting/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: replaced obsolete "give_acl" to
"check_acl" and erased the "give_acl".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4025 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-28 13:02:08 +01:00
|
|
|
if (check_acl ($config['id_user'], 0, "PM")) {
|
2015-04-09 15:04:23 +02:00
|
|
|
|
2009-04-02 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: Final DB changes proposed for closing this month the DB
scheme. tagente-> new server_name field to assign server (old fields will
be removed). talert_templates has two new types (warning, critical).
tevento has "user_comment" new field. Tserver has three new fields,
server_type (so some old fields will be deleted), threads and queued_modules
this last two are for statistical options. Tusuario add language type to
override global language.
* update_manager/main.php: Minor changes for correct ACL usage. Non PM
users could see in what revision it the system, but only that.
* pandoradb_migrate_v2.x_to_v3.0.sql: Updated script for new DB changes.
* general/noaccess.php: Added footer and ending div. Page was very ugly
when showing noaccess errors, nobody see it ???.
* godmode/menu.php: A LOT of ACL fixes on several options.
* godmode/agentes/agent_manager.php: Fixed a crazy floating icon.
* godmode/agentes/manage_config_remote.php: A LOT of changes, rewriting
stuff, because was not working. This also adds a lot of ACL checks.
* godmode/agentes/massive_config.php, massive*: ACL changes.
* godmode/agentes/modificar_agente.php: Fixed ACL problems.
* godmode/agentes/module_manager_editor.php: Fixed bad module categories for
some types (data, plugin and prediction).
* godmode/alerts/alert_list.php: Fixed ACL problem.
* godmode/reporting/graph_builder.php: Added ACl restriction for
non-viewable agents for current user. Seems to be a problem with data
with more than 2 sources.
* godmode/reporting/map_builder.php: ACL checks improved.
* godmode/reporting/reporting_builder.php: ACL checks added (was missing),
some code ported from 2.1, other is new. New fields shown in list.
* include/functions.php: Fixed the annoying bug of "bad counters" in
function human_time_description_raw(). Function used,format_numeric() should
not be used never to calculate nothing, only to print formatted strings.
* include/functions_db.php: Added function user_access_to_agent() to know
if a given user has access to a given agent.
* include/functioins_report.php: get_report() should let admin to watch any
report. Fixed.
* agentes/alerts_status.php: Fixed ACL problem for view alert.
* operation/incidents/incident.php: Bad call for pagination() was giving
problems to pagination call. Somebody changes pagination() interface and
make this broken. Please if you change any interface, be sure that is compatible
with old code or make a post in the list about this !
* godmode/users/user_edit.php: Additional ACL check to do not let anybody
to watch non accesible users. Even for see the username or description.
* reporting/pchart_graph.php:Progress bar shown text in white when > 60%.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1594 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-02 21:16:59 +02:00
|
|
|
if (is_array ($config['extensions'])) {
|
2013-01-29 Miguel de Dios <miguel.dedios@artica.es>
* godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/reporting_builder.php,
godmode/agentes/configurar_agente.php, godmode/menu.php,
include/functions_ui.php, include/functions_agents.php,
include/functions_alerts.php, include/functions_menu.php,
include/functions_networkmap.php,
include/help/en/help_alert_type.php,
include/help/es/help_alert_type.php,
include/functions_reporting.php,
operation/agentes/alerts_status.functions.php,
operation/agentes/alerts_status.php: erased the ocurrences about
the deprecated alert compounds.
Fixes: #3602487
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7543 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-29 15:42:55 +01:00
|
|
|
|
2009-04-02 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: Final DB changes proposed for closing this month the DB
scheme. tagente-> new server_name field to assign server (old fields will
be removed). talert_templates has two new types (warning, critical).
tevento has "user_comment" new field. Tserver has three new fields,
server_type (so some old fields will be deleted), threads and queued_modules
this last two are for statistical options. Tusuario add language type to
override global language.
* update_manager/main.php: Minor changes for correct ACL usage. Non PM
users could see in what revision it the system, but only that.
* pandoradb_migrate_v2.x_to_v3.0.sql: Updated script for new DB changes.
* general/noaccess.php: Added footer and ending div. Page was very ugly
when showing noaccess errors, nobody see it ???.
* godmode/menu.php: A LOT of ACL fixes on several options.
* godmode/agentes/agent_manager.php: Fixed a crazy floating icon.
* godmode/agentes/manage_config_remote.php: A LOT of changes, rewriting
stuff, because was not working. This also adds a lot of ACL checks.
* godmode/agentes/massive_config.php, massive*: ACL changes.
* godmode/agentes/modificar_agente.php: Fixed ACL problems.
* godmode/agentes/module_manager_editor.php: Fixed bad module categories for
some types (data, plugin and prediction).
* godmode/alerts/alert_list.php: Fixed ACL problem.
* godmode/reporting/graph_builder.php: Added ACl restriction for
non-viewable agents for current user. Seems to be a problem with data
with more than 2 sources.
* godmode/reporting/map_builder.php: ACL checks improved.
* godmode/reporting/reporting_builder.php: ACL checks added (was missing),
some code ported from 2.1, other is new. New fields shown in list.
* include/functions.php: Fixed the annoying bug of "bad counters" in
function human_time_description_raw(). Function used,format_numeric() should
not be used never to calculate nothing, only to print formatted strings.
* include/functions_db.php: Added function user_access_to_agent() to know
if a given user has access to a given agent.
* include/functioins_report.php: get_report() should let admin to watch any
report. Fixed.
* agentes/alerts_status.php: Fixed ACL problem for view alert.
* operation/incidents/incident.php: Bad call for pagination() was giving
problems to pagination call. Somebody changes pagination() interface and
make this broken. Please if you change any interface, be sure that is compatible
with old code or make a post in the list about this !
* godmode/users/user_edit.php: Additional ACL check to do not let anybody
to watch non accesible users. Even for see the username or description.
* reporting/pchart_graph.php:Progress bar shown text in white when > 60%.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1594 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-02 21:16:59 +02:00
|
|
|
$sub = array ();
|
2016-01-12 14:08:17 +01:00
|
|
|
$sub["godmode/extensions"]["text"] = __('Extension manager');
|
|
|
|
$sub["godmode/extensions"]["id"] = 'Extension manager';
|
|
|
|
|
|
|
|
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub2 = array ();
|
2016-01-12 14:08:17 +01:00
|
|
|
|
2009-04-02 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: Final DB changes proposed for closing this month the DB
scheme. tagente-> new server_name field to assign server (old fields will
be removed). talert_templates has two new types (warning, critical).
tevento has "user_comment" new field. Tserver has three new fields,
server_type (so some old fields will be deleted), threads and queued_modules
this last two are for statistical options. Tusuario add language type to
override global language.
* update_manager/main.php: Minor changes for correct ACL usage. Non PM
users could see in what revision it the system, but only that.
* pandoradb_migrate_v2.x_to_v3.0.sql: Updated script for new DB changes.
* general/noaccess.php: Added footer and ending div. Page was very ugly
when showing noaccess errors, nobody see it ???.
* godmode/menu.php: A LOT of ACL fixes on several options.
* godmode/agentes/agent_manager.php: Fixed a crazy floating icon.
* godmode/agentes/manage_config_remote.php: A LOT of changes, rewriting
stuff, because was not working. This also adds a lot of ACL checks.
* godmode/agentes/massive_config.php, massive*: ACL changes.
* godmode/agentes/modificar_agente.php: Fixed ACL problems.
* godmode/agentes/module_manager_editor.php: Fixed bad module categories for
some types (data, plugin and prediction).
* godmode/alerts/alert_list.php: Fixed ACL problem.
* godmode/reporting/graph_builder.php: Added ACl restriction for
non-viewable agents for current user. Seems to be a problem with data
with more than 2 sources.
* godmode/reporting/map_builder.php: ACL checks improved.
* godmode/reporting/reporting_builder.php: ACL checks added (was missing),
some code ported from 2.1, other is new. New fields shown in list.
* include/functions.php: Fixed the annoying bug of "bad counters" in
function human_time_description_raw(). Function used,format_numeric() should
not be used never to calculate nothing, only to print formatted strings.
* include/functions_db.php: Added function user_access_to_agent() to know
if a given user has access to a given agent.
* include/functioins_report.php: get_report() should let admin to watch any
report. Fixed.
* agentes/alerts_status.php: Fixed ACL problem for view alert.
* operation/incidents/incident.php: Bad call for pagination() was giving
problems to pagination call. Somebody changes pagination() interface and
make this broken. Please if you change any interface, be sure that is compatible
with old code or make a post in the list about this !
* godmode/users/user_edit.php: Additional ACL check to do not let anybody
to watch non accesible users. Even for see the username or description.
* reporting/pchart_graph.php:Progress bar shown text in white when > 60%.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1594 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-02 21:16:59 +02:00
|
|
|
foreach ($config['extensions'] as $extension) {
|
2012-04-03 15:26:22 +02:00
|
|
|
//If no godmode_menu is a operation extension
|
|
|
|
if ($extension['godmode_menu'] == '') {
|
|
|
|
continue;
|
|
|
|
}
|
2016-01-12 14:08:17 +01:00
|
|
|
|
2009-04-02 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: Final DB changes proposed for closing this month the DB
scheme. tagente-> new server_name field to assign server (old fields will
be removed). talert_templates has two new types (warning, critical).
tevento has "user_comment" new field. Tserver has three new fields,
server_type (so some old fields will be deleted), threads and queued_modules
this last two are for statistical options. Tusuario add language type to
override global language.
* update_manager/main.php: Minor changes for correct ACL usage. Non PM
users could see in what revision it the system, but only that.
* pandoradb_migrate_v2.x_to_v3.0.sql: Updated script for new DB changes.
* general/noaccess.php: Added footer and ending div. Page was very ugly
when showing noaccess errors, nobody see it ???.
* godmode/menu.php: A LOT of ACL fixes on several options.
* godmode/agentes/agent_manager.php: Fixed a crazy floating icon.
* godmode/agentes/manage_config_remote.php: A LOT of changes, rewriting
stuff, because was not working. This also adds a lot of ACL checks.
* godmode/agentes/massive_config.php, massive*: ACL changes.
* godmode/agentes/modificar_agente.php: Fixed ACL problems.
* godmode/agentes/module_manager_editor.php: Fixed bad module categories for
some types (data, plugin and prediction).
* godmode/alerts/alert_list.php: Fixed ACL problem.
* godmode/reporting/graph_builder.php: Added ACl restriction for
non-viewable agents for current user. Seems to be a problem with data
with more than 2 sources.
* godmode/reporting/map_builder.php: ACL checks improved.
* godmode/reporting/reporting_builder.php: ACL checks added (was missing),
some code ported from 2.1, other is new. New fields shown in list.
* include/functions.php: Fixed the annoying bug of "bad counters" in
function human_time_description_raw(). Function used,format_numeric() should
not be used never to calculate nothing, only to print formatted strings.
* include/functions_db.php: Added function user_access_to_agent() to know
if a given user has access to a given agent.
* include/functioins_report.php: get_report() should let admin to watch any
report. Fixed.
* agentes/alerts_status.php: Fixed ACL problem for view alert.
* operation/incidents/incident.php: Bad call for pagination() was giving
problems to pagination call. Somebody changes pagination() interface and
make this broken. Please if you change any interface, be sure that is compatible
with old code or make a post in the list about this !
* godmode/users/user_edit.php: Additional ACL check to do not let anybody
to watch non accesible users. Even for see the username or description.
* reporting/pchart_graph.php:Progress bar shown text in white when > 60%.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1594 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-02 21:16:59 +02:00
|
|
|
$extmenu = $extension['godmode_menu'];
|
2016-01-12 14:08:17 +01:00
|
|
|
|
2015-04-09 15:04:23 +02:00
|
|
|
if ($extmenu["name"] == 'DB interface' && !check_acl ($config['id_user'], 0, "DM")) {
|
2014-06-02 13:19:14 +02:00
|
|
|
continue;
|
|
|
|
}
|
2016-01-12 14:08:17 +01:00
|
|
|
|
2012-04-10 17:35:13 +02:00
|
|
|
//Check the ACL for this user
|
|
|
|
if (! check_acl ($config['id_user'], 0, $extmenu['acl'])) {
|
2009-04-02 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: Final DB changes proposed for closing this month the DB
scheme. tagente-> new server_name field to assign server (old fields will
be removed). talert_templates has two new types (warning, critical).
tevento has "user_comment" new field. Tserver has three new fields,
server_type (so some old fields will be deleted), threads and queued_modules
this last two are for statistical options. Tusuario add language type to
override global language.
* update_manager/main.php: Minor changes for correct ACL usage. Non PM
users could see in what revision it the system, but only that.
* pandoradb_migrate_v2.x_to_v3.0.sql: Updated script for new DB changes.
* general/noaccess.php: Added footer and ending div. Page was very ugly
when showing noaccess errors, nobody see it ???.
* godmode/menu.php: A LOT of ACL fixes on several options.
* godmode/agentes/agent_manager.php: Fixed a crazy floating icon.
* godmode/agentes/manage_config_remote.php: A LOT of changes, rewriting
stuff, because was not working. This also adds a lot of ACL checks.
* godmode/agentes/massive_config.php, massive*: ACL changes.
* godmode/agentes/modificar_agente.php: Fixed ACL problems.
* godmode/agentes/module_manager_editor.php: Fixed bad module categories for
some types (data, plugin and prediction).
* godmode/alerts/alert_list.php: Fixed ACL problem.
* godmode/reporting/graph_builder.php: Added ACl restriction for
non-viewable agents for current user. Seems to be a problem with data
with more than 2 sources.
* godmode/reporting/map_builder.php: ACL checks improved.
* godmode/reporting/reporting_builder.php: ACL checks added (was missing),
some code ported from 2.1, other is new. New fields shown in list.
* include/functions.php: Fixed the annoying bug of "bad counters" in
function human_time_description_raw(). Function used,format_numeric() should
not be used never to calculate nothing, only to print formatted strings.
* include/functions_db.php: Added function user_access_to_agent() to know
if a given user has access to a given agent.
* include/functioins_report.php: get_report() should let admin to watch any
report. Fixed.
* agentes/alerts_status.php: Fixed ACL problem for view alert.
* operation/incidents/incident.php: Bad call for pagination() was giving
problems to pagination call. Somebody changes pagination() interface and
make this broken. Please if you change any interface, be sure that is compatible
with old code or make a post in the list about this !
* godmode/users/user_edit.php: Additional ACL check to do not let anybody
to watch non accesible users. Even for see the username or description.
* reporting/pchart_graph.php:Progress bar shown text in white when > 60%.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1594 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-02 21:16:59 +02:00
|
|
|
continue;
|
|
|
|
}
|
2012-04-03 15:26:22 +02:00
|
|
|
|
2012-04-10 17:35:13 +02:00
|
|
|
//Check if was displayed inside other menu
|
2013-01-29 16:50:45 +01:00
|
|
|
if ($extension['godmode_menu']["fatherId"] == '') {
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub2[$extmenu["sec2"]]["text"] = __($extmenu["name"]);
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub2[$extmenu["sec2"]]["id"] = $extmenu["name"];
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub2[$extmenu["sec2"]]["refr"] = 0;
|
2012-07-30 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/module_manager_editor_plugin.php,
godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/alerts/alert_list.php, godmode/menu.php,
godmode/snmpconsole/snmp_filters.php, godmode/tag/edit_tag.php,
include/functions_alerts.php, include/functions_html.php,
pandoradb.sql, index.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6828 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-30 10:45:40 +02:00
|
|
|
}
|
|
|
|
else {
|
2012-04-10 17:35:13 +02:00
|
|
|
if (array_key_exists('fatherId',$extmenu)) {
|
2012-07-09 17:51:32 +02:00
|
|
|
if (strlen($extmenu['fatherId']) > 0) {
|
2015-04-09 15:04:23 +02:00
|
|
|
if (array_key_exists('subfatherId',$extmenu)) {
|
|
|
|
if (strlen($extmenu['subfatherId']) > 0) {
|
|
|
|
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['subfatherId']]['sub2'][$extmenu['sec2']]["text"] = __($extmenu['name']);
|
2015-11-17 11:20:45 +01:00
|
|
|
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['subfatherId']]['sub2'][$extmenu['sec2']]["id"] = $extmenu['name'];
|
2015-04-09 15:04:23 +02:00
|
|
|
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['subfatherId']]['sub2'][$extmenu['sec2']]["refr"] = 0;
|
|
|
|
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['subfatherId']]['sub2'][$extmenu['sec2']]["icon"] = $extmenu['icon'];
|
|
|
|
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['subfatherId']]['sub2'][$extmenu['sec2']]["sec"] = 'extensions';
|
|
|
|
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['subfatherId']]['sub2'][$extmenu['sec2']]["extension"] = true;
|
|
|
|
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['subfatherId']]['sub2'][$extmenu['sec2']]["enterprise"] = $extension['enterprise'];
|
|
|
|
$menu_godmode[$extmenu['fatherId']]['hasExtensions'] = true;
|
2012-04-10 17:35:13 +02:00
|
|
|
}
|
2015-06-08 09:18:00 +02:00
|
|
|
else {
|
2015-04-09 15:04:23 +02:00
|
|
|
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["text"] = __($extmenu['name']);
|
2015-11-17 11:20:45 +01:00
|
|
|
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["id"] = $extmenu['name'];
|
2013-06-25 15:30:13 +02:00
|
|
|
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["refr"] = 0;
|
2015-04-09 15:04:23 +02:00
|
|
|
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["icon"] = $extmenu['icon'];
|
2015-07-03 11:12:35 +02:00
|
|
|
if ($extmenu["name"] == 'Cron jobs')
|
|
|
|
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["sec"] = 'extensions';
|
|
|
|
else
|
|
|
|
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["sec"] = 'gextensions';
|
2015-04-09 15:04:23 +02:00
|
|
|
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["extension"] = true;
|
|
|
|
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["enterprise"] = $extension['enterprise'];
|
|
|
|
$menu_godmode[$extmenu['fatherId']]['hasExtensions'] = true;
|
2012-04-10 17:35:13 +02:00
|
|
|
}
|
2012-07-30 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/module_manager_editor_plugin.php,
godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/alerts/alert_list.php, godmode/menu.php,
godmode/snmpconsole/snmp_filters.php, godmode/tag/edit_tag.php,
include/functions_alerts.php, include/functions_html.php,
pandoradb.sql, index.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6828 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-30 10:45:40 +02:00
|
|
|
}
|
2015-06-08 09:18:00 +02:00
|
|
|
else {
|
2015-04-09 15:04:23 +02:00
|
|
|
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["text"] = __($extmenu['name']);
|
2015-11-17 11:20:45 +01:00
|
|
|
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["id"] = $extmenu['name'];
|
2015-04-09 15:04:23 +02:00
|
|
|
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["refr"] = 0;
|
|
|
|
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["icon"] = $extmenu['icon'];
|
|
|
|
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["sec"] = 'gextensions';
|
|
|
|
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["extension"] = true;
|
|
|
|
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["enterprise"] = $extension['enterprise'];
|
|
|
|
$menu_godmode[$extmenu['fatherId']]['hasExtensions'] = true;
|
|
|
|
}
|
2012-04-10 17:35:13 +02:00
|
|
|
}
|
2009-08-27 18:57:19 +02:00
|
|
|
}
|
|
|
|
}
|
2006-03-27 05:37:27 +02:00
|
|
|
}
|
2016-01-12 14:08:17 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$sub["godmode/extensions"]["sub2"] = $sub2;
|
|
|
|
|
|
|
|
|
2015-04-09 15:04:23 +02:00
|
|
|
$submenu = array_merge($menu_godmode["gextensions"]["sub"],$sub);
|
|
|
|
$menu_godmode["gextensions"]["sub"] = $submenu;
|
2009-04-02 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: Final DB changes proposed for closing this month the DB
scheme. tagente-> new server_name field to assign server (old fields will
be removed). talert_templates has two new types (warning, critical).
tevento has "user_comment" new field. Tserver has three new fields,
server_type (so some old fields will be deleted), threads and queued_modules
this last two are for statistical options. Tusuario add language type to
override global language.
* update_manager/main.php: Minor changes for correct ACL usage. Non PM
users could see in what revision it the system, but only that.
* pandoradb_migrate_v2.x_to_v3.0.sql: Updated script for new DB changes.
* general/noaccess.php: Added footer and ending div. Page was very ugly
when showing noaccess errors, nobody see it ???.
* godmode/menu.php: A LOT of ACL fixes on several options.
* godmode/agentes/agent_manager.php: Fixed a crazy floating icon.
* godmode/agentes/manage_config_remote.php: A LOT of changes, rewriting
stuff, because was not working. This also adds a lot of ACL checks.
* godmode/agentes/massive_config.php, massive*: ACL changes.
* godmode/agentes/modificar_agente.php: Fixed ACL problems.
* godmode/agentes/module_manager_editor.php: Fixed bad module categories for
some types (data, plugin and prediction).
* godmode/alerts/alert_list.php: Fixed ACL problem.
* godmode/reporting/graph_builder.php: Added ACl restriction for
non-viewable agents for current user. Seems to be a problem with data
with more than 2 sources.
* godmode/reporting/map_builder.php: ACL checks improved.
* godmode/reporting/reporting_builder.php: ACL checks added (was missing),
some code ported from 2.1, other is new. New fields shown in list.
* include/functions.php: Fixed the annoying bug of "bad counters" in
function human_time_description_raw(). Function used,format_numeric() should
not be used never to calculate nothing, only to print formatted strings.
* include/functions_db.php: Added function user_access_to_agent() to know
if a given user has access to a given agent.
* include/functioins_report.php: get_report() should let admin to watch any
report. Fixed.
* agentes/alerts_status.php: Fixed ACL problem for view alert.
* operation/incidents/incident.php: Bad call for pagination() was giving
problems to pagination call. Somebody changes pagination() interface and
make this broken. Please if you change any interface, be sure that is compatible
with old code or make a post in the list about this !
* godmode/users/user_edit.php: Additional ACL check to do not let anybody
to watch non accesible users. Even for see the username or description.
* reporting/pchart_graph.php:Progress bar shown text in white when > 60%.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1594 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-02 21:16:59 +02:00
|
|
|
}
|
2006-03-27 05:37:27 +02:00
|
|
|
}
|
2009-03-03 16:21:13 +01:00
|
|
|
|
2015-11-17 12:20:34 +01:00
|
|
|
$menu_godmode["links"]["text"] = __('Links');
|
|
|
|
$menu_godmode["links"]["sec2"] = "";
|
|
|
|
$menu_godmode["links"]["id"] = "god-links";
|
|
|
|
|
|
|
|
$sub = array ();
|
|
|
|
$rows = db_get_all_rows_in_table('tlink', 'name');
|
|
|
|
foreach ($rows as $row) {
|
|
|
|
// Audit //meter en extensiones
|
|
|
|
|
|
|
|
$sub[$row['link']]["text"] = $row['name'];
|
|
|
|
$sub[$row['link']]["id"] = $row['name'];
|
|
|
|
$sub[$row['link']]["type"] = 'direct';
|
|
|
|
$sub[$row['link']]["subtype"] = 'new_blank';
|
|
|
|
}
|
|
|
|
|
|
|
|
$menu_godmode["links"]["sub"] = $sub;
|
|
|
|
|
2016-06-13 16:30:54 +02:00
|
|
|
// Update Manager
|
2016-06-15 17:56:53 +02:00
|
|
|
if (check_acl ($config['id_user'], 0, "PM")) {
|
|
|
|
$menu_godmode["messages"]["text"] = __('Update manager');
|
|
|
|
$menu_godmode["messages"]["sec2"] = "";
|
|
|
|
$menu_godmode["messages"]["id"] = "god-um_messages";
|
2016-06-13 16:30:54 +02:00
|
|
|
|
2016-06-15 17:56:53 +02:00
|
|
|
$sub = array ();
|
|
|
|
$sub["godmode/update_manager/update_manager&tab=offline"]["text"] = __('Offline');
|
|
|
|
$sub["godmode/update_manager/update_manager&tab=offline"]["id"] = 'Offline';
|
|
|
|
$sub["godmode/update_manager/update_manager&tab=online"]["text"] = __('Online');
|
|
|
|
$sub["godmode/update_manager/update_manager&tab=online"]["id"] = 'Online';
|
|
|
|
$sub["godmode/update_manager/update_manager&tab=setup"]["text"] = __('Options');
|
|
|
|
$sub["godmode/update_manager/update_manager&tab=setup"]["id"] = 'Options';
|
|
|
|
|
|
|
|
if (license_free() && is_user_admin ($config['id_user'])) {
|
|
|
|
|
|
|
|
include_once ("include/functions_update_manager.php");
|
|
|
|
//If there are unread messages, display the notification icon
|
|
|
|
$number_total_messages;
|
|
|
|
$number_unread_messages = update_manager_get_unread_messages ();
|
|
|
|
if ($number_unread_messages > 0) {
|
|
|
|
$menu_godmode["messages"]["notification"] = $number_unread_messages;
|
|
|
|
}
|
|
|
|
|
|
|
|
$sub["godmode/update_manager/update_manager&tab=messages"]["text"] = __('Messages');
|
|
|
|
$sub["godmode/update_manager/update_manager&tab=messages"]["id"] = 'Messages';
|
2016-06-13 16:30:54 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-06-15 17:56:53 +02:00
|
|
|
$menu_godmode["messages"]["sub"] = $sub;
|
2016-06-09 18:54:59 +02:00
|
|
|
}
|
|
|
|
|
2016-06-13 16:30:54 +02:00
|
|
|
|
2013-07-01 13:01:20 +02:00
|
|
|
if (!$config['pure']) {
|
2012-09-27 15:02:16 +02:00
|
|
|
menu_print_menu ($menu_godmode);
|
|
|
|
}
|
2012-10-09 18:05:32 +02:00
|
|
|
?>
|