2006-03-27 05:37:27 +02:00
|
|
|
<?php
|
2006-07-17 10:17:58 +02:00
|
|
|
|
2008-07-30 20:39:40 +02:00
|
|
|
// Pandora FMS - the Flexible Monitoring System
|
|
|
|
// ============================================
|
|
|
|
// Copyright (c) 2008 Artica Soluciones Tecnológicas, http://www.artica.es
|
|
|
|
// Please see http://pandora.sourceforge.net for full contribution list
|
2007-03-12 18:58:52 +01:00
|
|
|
//
|
2006-07-17 10:17:58 +02:00
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License
|
2007-03-12 18:58:52 +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
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2007-06-08 17:55:53 +02:00
|
|
|
|
2008-10-22 11:08:03 +02:00
|
|
|
enterprise_include ('godmode/menu.php');
|
|
|
|
|
2008-12-19 22:45:20 +01:00
|
|
|
check_login ();
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
if ((! give_acl ($config['id_user'], 0, "LM")) && (! give_acl ($config['id_user'], 0, "AW")) && (! give_acl ($config['id_user'], 0, "PM")) && (! give_acl ($config['id_user'], 0, "DM")) && (! give_acl ($config['id_user'], 0, "UM"))) {
|
|
|
|
return;
|
|
|
|
}
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
if (give_acl ($config['id_user'], 0, "AW")) {
|
2008-12-19 22:45:20 +01:00
|
|
|
$menu["gagente"]["text"] = __('Manage agents');
|
|
|
|
$menu["gagente"]["sec2"] = "godmode/agentes/modificar_agente";
|
|
|
|
$menu["gagente"]["id"] = "god-agents";
|
2008-08-04 10:15:16 +02:00
|
|
|
|
2008-12-19 22:45:20 +01:00
|
|
|
$sub = array ();
|
|
|
|
$sub["godmode/agentes/manage_config"]["text"] = __('Manage config');
|
|
|
|
|
|
|
|
$sub["godmode/agentes/manage_config_remote"]["text"] = __('Duplicate config');
|
|
|
|
|
|
|
|
if (give_acl ($config["id_user"], 0, "PM")) {
|
|
|
|
$sub["godmode/groups/group_list"]["text"] = __('Manage groups');
|
2008-08-04 10:15:16 +02:00
|
|
|
}
|
2008-12-19 22:45:20 +01:00
|
|
|
|
|
|
|
$sub["godmode/agentes/planned_downtime"]["text"] = __('Scheduled downtime');
|
2008-07-25 20:37:32 +02:00
|
|
|
|
2008-12-19 22:45:20 +01:00
|
|
|
$menu["gagente"]["sub"] = $sub;
|
|
|
|
}
|
|
|
|
if (give_acl ($config['id_user'], 0, "PM")) {
|
|
|
|
$menu["gmodules"]["text"] = __('Manage modules');
|
|
|
|
$menu["gmodules"]["sec2"] = "godmode/agentes/modificar_agente";
|
|
|
|
$menu["gmodules"]["id"] = "god-modules";
|
2008-08-04 10:15:16 +02:00
|
|
|
|
2008-12-19 22:45:20 +01:00
|
|
|
$sub = array ();
|
|
|
|
$sub["godmode/modules/manage_nc_groups"]["text"] = __('Component groups');
|
|
|
|
|
|
|
|
$sub["godmode/modules/manage_network_components"]["text"] = __('Module components');
|
|
|
|
|
|
|
|
$sub["godmode/modules/manage_network_templates"]["text"] = __('Module templates');
|
2009-01-12 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/alert_manager.php: Complete rewritten of the alert
system when assigned alerts to an agent.
* pandoradb.sql: New tables for alert system. These are:
talert_commands, talert_actions, talert_templates,
talert_template_modules, talert_template_module_actions. No migration
tool is available yet.
* godmode/alerts/configure_alert_template.php,
godmode/alerts/configure_alert_action.php,
godmode/alerts/alert_templates.php,
godmode/alerts/configure_alert_command.php,
godmode/alerts/alert_actions.php: Added to repository. Administration
interface to new alert system.
* godmode/alerts/modify_alert.php: Deleted from repository.
* godmode/setup/setup.php: Added an example of the date format. Main
table has now percentage width.
* godmode/menu.php, operation/menu.php: Added new alert options.
Removed refr value when it's not neccesary.
* include/styles/pandora.css: Added width to textarea elements. Style
correction and cleanup. Tables doesn't have a odd-even pattern, but
the hovered row now changes its colour. New styles for alert pages.
* include/functions_custom_graphs.php: Added to repository. custom
graphs functions moved here.
* include/functions_incidents.php, include/functions_events.php: Moved
to LGPL. Style comment corrections.
* include/functions_html.php: Documentation style correction. Added
print_input_file() and print_label().
* include/functions_ui.php: Doc style correction.
* operation/reporting/graph_viewer.php: Include new function file with
custom graphs. Use generic functions.
* index.php: Unset pass from POST and REQUEST arrays.
* include/functions_db.php: Some documentation updated to new format.
Added format_array_to_update_sql() to generate SQL sentences for
updates. Style correction.
* godmode/agentes/configurar_agente.php: Variables renamed to have a
meaning.
* extensions/update_manager/main.php: Mark an string translatable.
* extensions/update_manager/lib/libupdate_manager_client.php,
godmode/alerts/configure_alert.php, include/functions.php,
godmode/agentes/module_manager.php, operation/agentes/networkmap.php,
operation/reporting/reporting_viewer.php,
godmode/agentes/manage_config.php: Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 15:31:01 +01:00
|
|
|
|
2008-10-22 11:08:03 +02:00
|
|
|
enterprise_hook ('inventory_submenu');
|
2009-01-12 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/alert_manager.php: Complete rewritten of the alert
system when assigned alerts to an agent.
* pandoradb.sql: New tables for alert system. These are:
talert_commands, talert_actions, talert_templates,
talert_template_modules, talert_template_module_actions. No migration
tool is available yet.
* godmode/alerts/configure_alert_template.php,
godmode/alerts/configure_alert_action.php,
godmode/alerts/alert_templates.php,
godmode/alerts/configure_alert_command.php,
godmode/alerts/alert_actions.php: Added to repository. Administration
interface to new alert system.
* godmode/alerts/modify_alert.php: Deleted from repository.
* godmode/setup/setup.php: Added an example of the date format. Main
table has now percentage width.
* godmode/menu.php, operation/menu.php: Added new alert options.
Removed refr value when it's not neccesary.
* include/styles/pandora.css: Added width to textarea elements. Style
correction and cleanup. Tables doesn't have a odd-even pattern, but
the hovered row now changes its colour. New styles for alert pages.
* include/functions_custom_graphs.php: Added to repository. custom
graphs functions moved here.
* include/functions_incidents.php, include/functions_events.php: Moved
to LGPL. Style comment corrections.
* include/functions_html.php: Documentation style correction. Added
print_input_file() and print_label().
* include/functions_ui.php: Doc style correction.
* operation/reporting/graph_viewer.php: Include new function file with
custom graphs. Use generic functions.
* index.php: Unset pass from POST and REQUEST arrays.
* include/functions_db.php: Some documentation updated to new format.
Added format_array_to_update_sql() to generate SQL sentences for
updates. Style correction.
* godmode/agentes/configurar_agente.php: Variables renamed to have a
meaning.
* extensions/update_manager/main.php: Mark an string translatable.
* extensions/update_manager/lib/libupdate_manager_client.php,
godmode/alerts/configure_alert.php, include/functions.php,
godmode/agentes/module_manager.php, operation/agentes/networkmap.php,
operation/reporting/reporting_viewer.php,
godmode/agentes/manage_config.php: Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 15:31:01 +01:00
|
|
|
|
2008-12-19 22:45:20 +01:00
|
|
|
$menu["gmodules"]["sub"] = $sub;
|
2008-08-04 10:15:16 +02:00
|
|
|
}
|
2008-07-25 20:37:32 +02:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
if (give_acl ($config['id_user'], 0, "LM")) {
|
2008-12-19 22:45:20 +01:00
|
|
|
$menu["galertas"]["text"] = __('Manage alerts');
|
|
|
|
$menu["galertas"]["sec2"] = "godmode/alerts/modify_alert";
|
|
|
|
$menu["galertas"]["id"] = "god-alerts";
|
2009-01-12 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/alert_manager.php: Complete rewritten of the alert
system when assigned alerts to an agent.
* pandoradb.sql: New tables for alert system. These are:
talert_commands, talert_actions, talert_templates,
talert_template_modules, talert_template_module_actions. No migration
tool is available yet.
* godmode/alerts/configure_alert_template.php,
godmode/alerts/configure_alert_action.php,
godmode/alerts/alert_templates.php,
godmode/alerts/configure_alert_command.php,
godmode/alerts/alert_actions.php: Added to repository. Administration
interface to new alert system.
* godmode/alerts/modify_alert.php: Deleted from repository.
* godmode/setup/setup.php: Added an example of the date format. Main
table has now percentage width.
* godmode/menu.php, operation/menu.php: Added new alert options.
Removed refr value when it's not neccesary.
* include/styles/pandora.css: Added width to textarea elements. Style
correction and cleanup. Tables doesn't have a odd-even pattern, but
the hovered row now changes its colour. New styles for alert pages.
* include/functions_custom_graphs.php: Added to repository. custom
graphs functions moved here.
* include/functions_incidents.php, include/functions_events.php: Moved
to LGPL. Style comment corrections.
* include/functions_html.php: Documentation style correction. Added
print_input_file() and print_label().
* include/functions_ui.php: Doc style correction.
* operation/reporting/graph_viewer.php: Include new function file with
custom graphs. Use generic functions.
* index.php: Unset pass from POST and REQUEST arrays.
* include/functions_db.php: Some documentation updated to new format.
Added format_array_to_update_sql() to generate SQL sentences for
updates. Style correction.
* godmode/agentes/configurar_agente.php: Variables renamed to have a
meaning.
* extensions/update_manager/main.php: Mark an string translatable.
* extensions/update_manager/lib/libupdate_manager_client.php,
godmode/alerts/configure_alert.php, include/functions.php,
godmode/agentes/module_manager.php, operation/agentes/networkmap.php,
operation/reporting/reporting_viewer.php,
godmode/agentes/manage_config.php: Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 15:31:01 +01:00
|
|
|
|
|
|
|
$sub = array ();
|
|
|
|
$sub["godmode/alerts/alert_templates"]["text"] = __('Templates');
|
|
|
|
|
|
|
|
$sub["godmode/alerts/alert_actions"]["text"] = __('Actions');
|
|
|
|
|
|
|
|
$sub["godmode/alerts/alert_commands"]["text"] = __('Commands');
|
|
|
|
|
|
|
|
$menu["galertas"]["sub"] = $sub;
|
2008-08-04 10:15:16 +02:00
|
|
|
}
|
2008-06-13 Sancho Lerena <slerena@gmail.com>
* index.php: Added pure (Fullscreen). HTML code cleanup and user session.
* pandoradb.sql: talert_snmp: Added priority field.
* pandoradb_data.sql: Changes default values in talerta. tconfig_os, tgrupo
and some links.
* header.php: Fixed some user session management.
* logon_ok.php: New design for welcome screen, odometer is over.
* menu.php, godmode/menu.php: Some ACL improvements.
* agent_disk_conf_editor.php: Minor fix in view link.
* configurar_agente.php, agent_manager.php: Added parent combo and better
ACL checks. New remote configuration control for get timestamp info of
config file.
* modify_alert.php: Changes to use new internal Mail alert.
* config.php: Some items moved to config_process. (font, attachment and
default style).
* functions.php: Added form_agent_combo(), form_event_type_combo(),
form_priority() and return_priority() functions.
* functions_db.php: Added smal_event_table() to render a variable table
with latest events (filtered).
* pandora.css. Added pure and priority colors.
* estado_alertas.php: Fixed ACL problems.
* stado_generalagente.php: Graph of modules now represents modules that
has generated events. Old graph is not used anymore. Also display parent.
* estado_grupo.php: Border of boxes is now thicker.
* tactical.php: New screen, almost all code changed. Odometer is not used
anymore, added some new items, like module LAG meter, module sanity, and
other general metrics.
* ver_agente.php: Now renders also event for each agent view. Alert manual
validation generate a new event.
* events.php: New event system. 90% new code. A LOT of new features,
including full screen, coloured (by priority) and filters by six fields.
* snmp_alert.php: Added support for alert priority.
* operation/users/user.php: No longer a user with UM privileges could
see any other user.
* render_view.php: Added fullscreen support for visual maps.
* fgraph.php: Added support for session checking in graphs (at least!).
New graphics for events (some changed it's function like events by group),
and feature added to progress GD implementation.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@860 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-13 18:59:54 +02:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
if (give_acl ($config['id_user'], 0, "UM")) {
|
2008-12-19 22:45:20 +01:00
|
|
|
$menu["gusuarios"]["text"] = __('Manage users');
|
|
|
|
$menu["gusuarios"]["sec2"] = "godmode/users/user_list";
|
|
|
|
$menu["gusuarios"]["id"] = "god-users";
|
2008-08-04 10:15:16 +02:00
|
|
|
}
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2008-10-31 18:40:43 +01:00
|
|
|
// SNMP console
|
|
|
|
if (give_acl($config['id_user'], 0, "AW")) {
|
2008-12-19 22:45:20 +01:00
|
|
|
$menu["gsnmpconsole"]["text"] = __('Manage SNMP console');
|
|
|
|
$menu["gsnmpconsole"]["sec2"] = "godmode/snmpconsole/snmp_alert";
|
|
|
|
$menu["gsnmpconsole"]["id"] = "god-snmpc";
|
|
|
|
|
|
|
|
//SNMP Console alert
|
|
|
|
$sub = array ();
|
|
|
|
$sub["godmode/snmpconsole/snmp_alert"]["text"] = __('Component groups');
|
2008-10-31 18:40:43 +01:00
|
|
|
|
|
|
|
enterprise_hook ('snmpconsole_submenu');
|
|
|
|
|
2008-12-19 22:45:20 +01:00
|
|
|
$menu["gsnmpconsole"]["sub"] = $sub;
|
|
|
|
}
|
2008-10-31 18:40:43 +01:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
// Reporting
|
|
|
|
if (give_acl ($config['id_user'], 0, "PM")) {
|
2008-12-19 22:45:20 +01:00
|
|
|
$menu["greporting"]["text"] = __('Manage reports');
|
|
|
|
$menu["greporting"]["sec2"] = "godmode/reporting/reporting_builder";
|
|
|
|
$menu["greporting"]["id"] = "god-reporting";
|
2008-08-04 10:15:16 +02:00
|
|
|
|
|
|
|
// Custom report builder
|
2008-12-19 22:45:20 +01:00
|
|
|
$sub = array ();
|
|
|
|
$sub["godmode/reporting/reporting_builder"]["text"] = __('Report builder');
|
2008-08-04 10:15:16 +02:00
|
|
|
|
2008-12-19 22:45:20 +01:00
|
|
|
// Custom graph builder
|
|
|
|
$sub["godmode/reporting/graph_builder"]["text"] = __('Graph builder');
|
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
// Custom map builder
|
2008-12-19 22:45:20 +01:00
|
|
|
$sub["godmode/reporting/map_builder"]["text"] = __('Map builder');
|
|
|
|
|
|
|
|
$menu["greporting"]["sub"] = $sub;
|
|
|
|
|
|
|
|
// Manage profiles
|
|
|
|
$menu["gperfiles"]["text"] = __('Manage profiles');
|
|
|
|
$menu["gperfiles"]["sec2"] = "godmode/profiles/profile_list";
|
|
|
|
$menu["gperfiles"]["id"] = "god-profiles";
|
|
|
|
|
|
|
|
// Servers
|
|
|
|
$menu["gservers"]["text"] = __('Manage servers');
|
|
|
|
$menu["gservers"]["sec2"] = "godmode/servers/modificar_server";
|
|
|
|
$menu["gservers"]["id"] = "god-servers";
|
|
|
|
|
|
|
|
$sub = array ();
|
|
|
|
$sub["godmode/servers/manage_recontask"]["text"] = __('Manage recontask');
|
|
|
|
|
|
|
|
$sub["godmode/servers/plugin"]["text"] = __('Manage plugins');
|
|
|
|
|
|
|
|
$sub["godmode/servers/manage_export_form"]["text"] = __('Export targets');
|
|
|
|
|
|
|
|
$menu["gservers"]["sub"] = $sub;
|
2007-06-07 19:46:38 +02:00
|
|
|
|
2008-10-31 18:08:52 +01:00
|
|
|
enterprise_hook ('snmpconsole_menu');
|
|
|
|
|
2008-12-19 22:45:20 +01:00
|
|
|
// Audit
|
|
|
|
$menu["glog"]["text"] = __('System audit log');
|
|
|
|
$menu["glog"]["sec2"] = "godmode/admin_access_logs";
|
|
|
|
$menu["glog"]["id"] = "god-audit";
|
2008-08-04 10:15:16 +02:00
|
|
|
|
2008-12-19 22:45:20 +01:00
|
|
|
// Setup
|
|
|
|
$menu["gsetup"]["text"] = __('Pandora setup');
|
|
|
|
$menu["gsetup"]["sec2"] = "godmode/setup/setup";
|
|
|
|
$menu["gsetup"]["id"] = "god-setup";
|
2008-08-04 10:15:16 +02:00
|
|
|
|
2008-12-19 22:45:20 +01:00
|
|
|
$sub = array ();
|
|
|
|
$sub["godmode/setup/links"]["text"] = __('Links');
|
2008-08-04 10:15:16 +02:00
|
|
|
|
2008-12-19 22:45:20 +01:00
|
|
|
$sub["godmode/setup/news"]["text"] = __('Site news');
|
|
|
|
|
|
|
|
$menu["gsetup"]["sub"] = $sub;
|
2008-08-04 10:15:16 +02:00
|
|
|
}
|
2008-12-19 22:45:20 +01:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
if (give_acl ($config['id_user'], 0, "DM")) {
|
2008-12-19 22:45:20 +01:00
|
|
|
$menu["gdbman"]["text"] = __('DB Maintenance');
|
|
|
|
$menu["gdbman"]["sec2"] = "godmode/db/db_main";
|
|
|
|
$menu["gdbman"]["id"] = "god-dbmaint";
|
2008-08-04 10:15:16 +02:00
|
|
|
|
2008-12-19 22:45:20 +01:00
|
|
|
$sub = array ();
|
|
|
|
$sub["godmode/db/db_info"]["text"] = __('DB Information');
|
|
|
|
|
|
|
|
$sub["godmode/db/db_purge"]["text"] = __('Database purge');
|
|
|
|
|
|
|
|
$sub["godmode/db/db_refine"]["text"] = __('Database debug');
|
|
|
|
|
|
|
|
$sub["godmode/db/db_audit"]["text"] = __('Database audit');
|
2008-06-19 02:24:05 +02:00
|
|
|
|
2008-12-19 22:45:20 +01:00
|
|
|
$sub["godmode/db/db_event"]["text"] = __('Database event');
|
|
|
|
|
|
|
|
$sub["godmode/db/db_sanity"]["text"] = __('Database sanity');
|
|
|
|
|
|
|
|
$menu["gdbman"]["sub"] = $sub;
|
2008-08-04 10:15:16 +02:00
|
|
|
}
|
|
|
|
|
2008-08-12 Esteban Sanchez <estebans@artica.es>
* pandoradb_data.sql: Added default languages.
* include/streams.php, include/gettext.php: Added to repository. New
files to add gettext support of mo files.
* include/functions_db.php: Function lang_string() functionallity
changed to use gettext library.
* include/languages/language_es_es.php,
include/languages/language_gl.php, include/languages/language_en.php,
include/languages/language_pt_br.php,
include/languages/language_it.php,
include/languages/language_ast_es.php,
include/languages/language_es_la.php,
include/languages/language_de.php, include/languages/language_fr.php,
include/languages/language_ca.php: Files deleted, they are
deprecated since we have moved to gettext.
* lude/languages/pt_br.mo, include/languages/es.mo,
include/languages/fr.po, include/languages/it.po,
include/languages/ca.po, include/languages/ast.po,
include/languages/de.po, include/languages/gl.mo: Gettext translations
of the previous languages we have in language_*.php files.
* include/languages/Makefile: Added to repository to generate
index.pot and mo files of each translation.
* include/functions_reporting_pdf.php,
include/functions_reporting.php, include/config_process.php,
include/functions.php, include/functions_visual_map.php, index.php,
operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/incidents/incident_note.php,
operation/incidents/incident_search.php,
operation/incidents/incident_statistics.php,
operation/snmpconsole/snmp_alert.php,
operation/snmpconsole/snmp_view.php, operation/users/user.php,
operation/users/user_edit.php, operation/users/user_statistics.php,
operation/events/event_statistics.php, operation/events/events.php,
operation/visual_console/render_view.php,
operation/visual_console/index.php,
operation/agentes/estado_alertas.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_grupo.php,
operation/agentes/datos_agente.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/estado_generalagente.php,
operation/agentes/estado_agente.php, operation/agentes/bulbs.php,
operation/agentes/sla_view.php, operation/agentes/exportdata.php,
operation/agentes/estado_monitores.php,
operation/agentes/ver_agente.php, operation/agentes/estadisticas.php,
operation/agentes/tactical.php, operation/agentes/networkmap.php,
operation/messages/message.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php,
operation/reporting/custom_reporting.php,
operation/servers/view_server.php,
operation/servers/view_server_detail.php, operation/menu.php,
reporting/fgraph.php, reporting/stat_win.php, general/logoff.php,
general/pandora_help.php, general/footer.php, general/noaccess.php,
general/logon_failed.php, general/links_menu.php,
general/login_page.php, general/logon_ok.php, general/header.php,
general/main_menu.php, godmode/groups/configure_group.php,
godmode/groups/group_list.php, godmode/setup/news.php,
godmode/setup/links.php, godmode/setup/setup.php,
godmode/users/user_list.php, godmode/users/configure_user.php,
godmode/profiles/profile_list.php, godmode/admin_access_logs.php,
godmode/db/db_info_data.php, godmode/db/db_main.php,
godmode/db/db_audit.php, godmode/db/db_refine.php,
godmode/db/db_info.php, godmode/db/db_event.php,
godmode/db/db_purge.php, godmode/agentes/agent_template.php,
godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/agentes/alert_manager.php,
godmode/agentes/module_manager_editor_plugin.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/agentes/alert_manager_editor.php,
godmode/agentes/manage_config.php,
godmode/agentes/module_manager_editor_data.php,
godmode/agentes/module_manager.php,
godmode/agentes/modificar_agente.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/agent_disk_conf_editor.php,
godmode/agentes/planned_downtime.php,
godmode/agentes/manage_config_remote.php,
godmode/agentes/agent_manager.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/module_list.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_network_components_form_network.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.php,
godmode/reporting/map_builder.php,
godmode/reporting/graph_builder.php, godmode/servers/plugin.php,
godmode/servers/manage_recontask.php,
godmode/servers/modificar_server.php,
godmode/servers/manage_recontask_form.php,
godmode/alerts/modify_alert.php, godmode/alerts/configure_alert.php,
godmode/menu.php: Replaced string parameters of __() callings to
plain english. Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1006 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-12 14:06:25 +02:00
|
|
|
if (is_array ($config['extensions'])) {
|
2008-12-19 22:45:20 +01:00
|
|
|
$menu["gextensions"]["text"] = __('Extensions');
|
|
|
|
$menu["gextensions"]["sec2"] = "godmode/extensions";
|
|
|
|
$menu["gextensions"]["id"] = "god-extensions";
|
|
|
|
|
|
|
|
$sub = array ();
|
|
|
|
foreach ($config['extensions'] as $extension) {
|
|
|
|
$extmenu = $extension['godmode_menu'];
|
|
|
|
if ($extension['godmode_menu'] == '' || ! give_acl ($config['id_user'], 0, $extmenu['acl'])) {
|
|
|
|
continue;
|
2006-03-27 05:37:27 +02:00
|
|
|
}
|
2008-12-19 22:45:20 +01:00
|
|
|
|
|
|
|
$sub[$extmenu["sec2"]]["text"] = $extmenu["name"];
|
|
|
|
$sub[$extmenu["sec2"]]["refr"] = 0;
|
2006-03-27 05:37:27 +02:00
|
|
|
}
|
2008-12-19 22:45:20 +01:00
|
|
|
|
|
|
|
$menu["gextensions"]["sub"] = $sub;
|
2006-03-27 05:37:27 +02:00
|
|
|
}
|
2007-04-21 18:14:11 +02:00
|
|
|
?>
|