Changed lateral menu, order options and eliminate options
|
@ -330,7 +330,7 @@ function print_alerts_summary_modal_window($id, $alerts) {
|
|||
echo '<div id="alerts_details_'.$id.'" title="'.__('Agent').': '.$agent.' / '.__('Template').': '.$template.'" style="display:none">'.$content.'</div>';
|
||||
}
|
||||
|
||||
extensions_add_operation_menu_option(__("Agents/Alerts view"), 'estado', null, "v1r1");
|
||||
extensions_add_operation_menu_option(__("Agents/Alerts view"), 'estado', null, "v1r1","view");
|
||||
extensions_add_main_function('mainAgentsAlerts');
|
||||
|
||||
ui_require_jquery_file('pandora');
|
||||
|
|
|
@ -392,7 +392,7 @@ function mainAgentsModules() {
|
|||
";
|
||||
}
|
||||
|
||||
extensions_add_operation_menu_option(__("Agents/Modules view"), 'estado', 'agents_modules/icon_menu.png', "v1r1");
|
||||
extensions_add_operation_menu_option(__("Agents/Modules view"), 'estado', 'agents_modules/icon_menu.png', "v1r1","view");
|
||||
extensions_add_main_function('mainAgentsModules');
|
||||
|
||||
?>
|
||||
|
|
|
@ -216,5 +216,5 @@ function extension_api_checker() {
|
|||
}
|
||||
|
||||
extensions_add_godmode_function('extension_api_checker');
|
||||
extensions_add_godmode_menu_option(__('API checker'), 'PM', 'gsetup', null, "v1r1");
|
||||
extensions_add_godmode_menu_option(__('API checker'), 'PM', 'gextensions', null, "v1r1");
|
||||
?>
|
|
@ -362,5 +362,5 @@ function extension_db_status_execute_sql_file($url, $connection) {
|
|||
}
|
||||
|
||||
extensions_add_godmode_function('extension_db_status');
|
||||
extensions_add_godmode_menu_option(__('DB Status'), 'PM', 'gdbman', null, "v1r1");
|
||||
extensions_add_godmode_menu_option(__('DB Status'), 'PM', 'gextensions', null, "v1r1", 'gdbman');
|
||||
?>
|
|
@ -158,7 +158,7 @@ function dbmgr_extension_main () {
|
|||
}
|
||||
|
||||
/* This adds a option in the operation menu */
|
||||
extensions_add_godmode_menu_option (__('DB interface'), 'PM','gdbman',"dbmanager/icon.png","v1r1");
|
||||
extensions_add_godmode_menu_option (__('DB interface'), 'PM','gextensions',"dbmanager/icon.png","v1r1", 'gdbman');
|
||||
|
||||
/* This sets the function to be called when the extension is selected in the operation menu */
|
||||
extensions_add_godmode_function ('dbmgr_extension_main');
|
||||
|
|
|
@ -320,6 +320,6 @@ function mainModuleGroups() {
|
|||
<?php
|
||||
}
|
||||
|
||||
extensions_add_operation_menu_option(__("Module groups"), 'estado', 'module_groups/brick.png', "v1r1");
|
||||
extensions_add_operation_menu_option(__("Module groups"), 'estado', 'module_groups/brick.png', "v1r1","view");
|
||||
extensions_add_main_function('mainModuleGroups');
|
||||
?>
|
||||
|
|
|
@ -80,7 +80,7 @@ function pandoralogs_extension_main () {
|
|||
view_logfile ($logs_directory."/pandora_server.error");
|
||||
}
|
||||
|
||||
extensions_add_godmode_menu_option (__('System logfiles'), 'PM','glog', null, "v1r1");
|
||||
extensions_add_godmode_menu_option (__('System logfiles'), 'PM','', null, "v1r1");
|
||||
extensions_add_godmode_function('pandoralogs_extension_main');
|
||||
|
||||
?>
|
|
@ -128,7 +128,7 @@ function pandora_realtime_graphs () {
|
|||
set_js_value('timezone_offset', date('Z', time()));
|
||||
}
|
||||
|
||||
extensions_add_operation_menu_option (__('Realtime graphs'), null, null, "v1r1");
|
||||
extensions_add_operation_menu_option (__('Realtime graphs'), "estado", null, "v1r1","view");
|
||||
extensions_add_main_function ('pandora_realtime_graphs');
|
||||
|
||||
$db = NULL;
|
||||
|
|
|
@ -52,7 +52,7 @@ if (isset($_GET['get_ptr'])) {
|
|||
}
|
||||
}
|
||||
else {
|
||||
extensions_add_godmode_menu_option (__('Resource exportation'), 'PM','gservers','', "v1r1");
|
||||
extensions_add_godmode_menu_option (__('Resource exportation'), 'PM','gagente','', "v1r1");
|
||||
extensions_add_godmode_function('resource_exportation_extension_main');
|
||||
}
|
||||
|
||||
|
|
|
@ -872,6 +872,6 @@ function resource_registration_extension_main() {
|
|||
process_upload_xml($xml);
|
||||
}
|
||||
|
||||
extensions_add_godmode_menu_option (__('Resource registration'), 'PM','gservers','', "v1r1");
|
||||
extensions_add_godmode_menu_option (__('Resource registration'), 'PM','gagente','', "v1r1");
|
||||
extensions_add_godmode_function('resource_registration_extension_main');
|
||||
?>
|
||||
|
|
|
@ -802,7 +802,7 @@ function consoleMode() {
|
|||
if (!isset($argv)) {
|
||||
//Execution across the browser
|
||||
extensions_add_godmode_function('mainSystemInfo');
|
||||
extensions_add_godmode_menu_option(__('System Info'), 'PM', 'gsetup', null, "v1r1");
|
||||
extensions_add_godmode_menu_option(__('System Info'), 'PM', 'gextensions', null, "v1r1");
|
||||
}
|
||||
else {
|
||||
$dir = dirname($_SERVER['PHP_SELF']);
|
||||
|
|
|
@ -27,9 +27,6 @@ if (isset ($config["autohidden_menu"]) && $config["autohidden_menu"]) {
|
|||
}
|
||||
|
||||
$menu_container_id = '';
|
||||
if ($autohidden_menu) {
|
||||
$menu_container_id = 'menu_container';
|
||||
}
|
||||
|
||||
// Menu container prepared to autohide menu
|
||||
echo '<div id="' . $menu_container_id . '">';
|
||||
|
@ -126,7 +123,7 @@ $(document).ready( function() {
|
|||
|
||||
$.cookie(cookie_name_encoded, JSON.stringify(menuState), {expires: 7});
|
||||
});
|
||||
//Cerrar aqui los comentarios cuando esté el menu terminado*/
|
||||
//Cerrar aqui los comentarios cuando esté el menu terminado
|
||||
if (fixed_menu) {
|
||||
$('div#menu')
|
||||
.css('position', 'fixed')
|
||||
|
@ -192,16 +189,16 @@ $(document).ready( function() {
|
|||
$('.bg3').css('color', $('.bg3').css('background-color'));
|
||||
$('.bg4').css('color', $('.bg4').css('background-color'));
|
||||
}
|
||||
|
||||
*/
|
||||
if (autohidden_menu) {
|
||||
|
||||
//handlerIn, handlerOut);
|
||||
openTime = 0;
|
||||
handsIn = 0;
|
||||
//openTime = 0;
|
||||
//handsIn = 0;
|
||||
|
||||
//$('#main').css('margin-left', '50px');
|
||||
//hide_menu_pretty();
|
||||
|
||||
/*
|
||||
$('#menu').hover(function() {
|
||||
handsIn = 1;
|
||||
if (openTime == 0) {
|
||||
|
@ -218,6 +215,24 @@ $(document).ready( function() {
|
|||
}
|
||||
}, 3500);
|
||||
});
|
||||
*/
|
||||
$('#menu').css('width', '115px');
|
||||
$('#main').css('margin', '0% 1.5% 0% 0%');
|
||||
$('li.menu_icon').addClass( " no_hidden_menu" );
|
||||
$('ul.submenu').css('left', '114px');
|
||||
$(window).resize( function() {
|
||||
if($(window).width() <= 1262){
|
||||
$('#main').css('width', '86%');
|
||||
}
|
||||
else{
|
||||
if($(window).width() >= 1300){
|
||||
$('#main').css('width', '90%');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
else{
|
||||
$('div#title_menu').hide();
|
||||
}
|
||||
});
|
||||
/* ]]> */
|
||||
|
|
|
@ -25,84 +25,97 @@ $menu_godmode = array ();
|
|||
$menu_godmode['class'] = 'godmode';
|
||||
|
||||
if (check_acl ($config['id_user'], 0, "AW") || check_acl ($config['id_user'], 0, "AD")) {
|
||||
$menu_godmode["gagente"]["text"] = __('Manage monitoring');
|
||||
$menu_godmode["gagente"]["text"] = __('Resource management');
|
||||
$menu_godmode["gagente"]["sec2"] = "godmode/agentes/modificar_agente";
|
||||
$menu_godmode["gagente"]["id"] = "god-agents";
|
||||
|
||||
|
||||
if (check_acl ($config['id_user'], 0, "AW")) {
|
||||
$sub = array ();
|
||||
$sub['godmode/agentes/modificar_agente']['text'] = __('Manage agents');
|
||||
$sub["godmode/agentes/modificar_agente"]["subsecs"] = array(
|
||||
"godmode/agentes/configurar_agente");
|
||||
|
||||
enterprise_hook("duplicate_confi_submenu");
|
||||
|
||||
$sub["godmode/groups/group_list"]["text"] = __('Manage groups');
|
||||
/*
|
||||
$sub["godmode/agentes/planned_downtime.list"]["text"] = __('Scheduled downtime');
|
||||
*/
|
||||
|
||||
|
||||
if (check_acl ($config["id_user"], 0, "PM")) {
|
||||
$sub["godmode/agentes/fields_manager"]["text"] = __('Manage custom fields');
|
||||
$sub["godmode/agentes/fields_manager"]["text"] = __('Custom fields');
|
||||
}
|
||||
enterprise_hook('agents_submenu');
|
||||
|
||||
|
||||
$sub["godmode/modules/manage_nc_groups"]["text"] = __('Component groups');
|
||||
// Category
|
||||
$sub["godmode/category/category"]["text"] = __('Module categories');
|
||||
$sub["godmode/category/category"]["subsecs"] = "godmode/category/edit_category";
|
||||
$sub["godmode/modules/module_list"]["text"] = __('Module types');
|
||||
|
||||
if (check_acl ($config["id_user"], 0, "PM")) {
|
||||
$sub["godmode/groups/modu_group_list"]["text"] = __('Module groups');
|
||||
}
|
||||
// GIS
|
||||
if (check_acl ($config['id_user'], 0, "IW")) {
|
||||
if ($config['activate_gis']) {
|
||||
$sub["godmode/gis_maps/index"]["text"] = __('GIS Maps builder');
|
||||
$sub["godmode/gis_maps/index"]["refr"] = (int)get_parameter('refr', 60);
|
||||
}
|
||||
}
|
||||
|
||||
if ($config['activate_netflow']) {
|
||||
//Netflow
|
||||
$sub["godmode/netflow/nf_edit"]["text"] = __('Netflow filters');
|
||||
}
|
||||
|
||||
$menu_godmode["gagente"]["sub"] = $sub;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (check_acl ($config['id_user'], 0, "AW")) {
|
||||
$menu_godmode["gmassive"]["text"] = __('Massive operations');
|
||||
$menu_godmode["gmassive"]["sec2"] = "godmode/massive/massive_operations";
|
||||
$menu_godmode["gmassive"]["id"] = "god-massive";
|
||||
|
||||
if (check_acl ($config['id_user'], 0, "UM")) {
|
||||
$menu_godmode["gusuarios"]["text"] = __('Profile management');
|
||||
$menu_godmode["gusuarios"]["sec2"] = "godmode/users/user_list";
|
||||
$menu_godmode["gusuarios"]["id"] = "god-users";
|
||||
|
||||
$sub = array ();
|
||||
$sub["godmode/massive/massive_operations&tab=massive_agents"]["text"] = __('Agents operations');
|
||||
$sub["godmode/massive/massive_operations&tab=massive_modules"]["text"] = __('Modules operations');
|
||||
if (check_acl ($config['id_user'], 0, "PM")) {
|
||||
$sub["godmode/massive/massive_operations&tab=massive_users"]["text"] = __('Users operations');
|
||||
}
|
||||
$sub["godmode/massive/massive_operations&tab=massive_alerts"]["text"] = __('Alerts operations');
|
||||
enterprise_hook('massivepolicies_submenu');
|
||||
enterprise_hook('massivesnmp_submenu');
|
||||
enterprise_hook('massivesatellite_submenu');
|
||||
|
||||
$menu_godmode["gmassive"]["sub"] = $sub;
|
||||
}
|
||||
$sub['godmode/users/user_list']['text'] = __('Users management');
|
||||
$sub['godmode/users/profile_list']['text'] = __('Profile management');
|
||||
$sub["godmode/groups/group_list"]["text"] = __('Manage agents groups');
|
||||
// Tag
|
||||
$sub["godmode/tag/tag"]["text"] = __('Module tags');
|
||||
$sub["godmode/tag/tag"]["subsecs"] = "godmode/tag/edit_tag";
|
||||
|
||||
/*
|
||||
if (check_acl ($config['id_user'], 0, "AW")) {
|
||||
enterprise_hook ('services_godmenu');
|
||||
enterprise_hook ('enterprise_acl_submenu');
|
||||
$menu_godmode["gusuarios"]["sub"] = $sub;
|
||||
}
|
||||
*/
|
||||
|
||||
if (check_acl ($config['id_user'], 0, "PM")) {
|
||||
$menu_godmode["gmodules"]["text"] = __('Manage modules');
|
||||
$menu_godmode["gmodules"]["text"] = __('Configuration management');
|
||||
$menu_godmode["gmodules"]["sec2"] = "godmode/modules/manage_network_templates";
|
||||
$menu_godmode["gmodules"]["id"] = "god-modules";
|
||||
|
||||
|
||||
$sub = array ();
|
||||
$sub["godmode/modules/manage_nc_groups"]["text"] = __('Component groups');
|
||||
|
||||
$sub["godmode/modules/manage_network_components"]["text"] = __('Network components');
|
||||
enterprise_hook ('components_submenu');
|
||||
$sub["godmode/modules/manage_network_templates"]["text"] = __('Module templates');
|
||||
enterprise_hook ('inventory_submenu');
|
||||
|
||||
// Tag
|
||||
$sub["godmode/tag/tag"]["text"] = __('Manage tags');
|
||||
$sub["godmode/tag/tag"]["subsecs"] = "godmode/tag/edit_tag";
|
||||
|
||||
// Category
|
||||
$sub["godmode/category/category"]["text"] = __('Manage categories');
|
||||
$sub["godmode/category/category"]["subsecs"] = "godmode/category/edit_category";
|
||||
|
||||
$sub["godmode/modules/module_list"]["text"] = __('Module types');
|
||||
|
||||
if (check_acl ($config["id_user"], 0, "PM")) {
|
||||
$sub["godmode/groups/modu_group_list"]["text"] = __('Module groups');
|
||||
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"] = __('Massive operations');
|
||||
|
||||
$sub2 = array ();
|
||||
$sub2["godmode/massive/massive_operations&tab=massive_agents"]["text"] = __('Agents operations');
|
||||
$sub2["godmode/massive/massive_operations&tab=massive_modules"]["text"] = __('Modules operations');
|
||||
if (check_acl ($config['id_user'], 0, "PM")) {
|
||||
$sub2["godmode/massive/massive_operations&tab=massive_users"]["text"] = __('Users operations');
|
||||
}
|
||||
$sub2["godmode/massive/massive_operations&tab=massive_alerts"]["text"] = __('Alerts operations');
|
||||
enterprise_hook('massivepolicies_submenu');
|
||||
enterprise_hook('massivesnmp_submenu');
|
||||
enterprise_hook('massivesatellite_submenu');
|
||||
|
||||
$sub["gmassive"]["sub2"] = $sub2;
|
||||
}
|
||||
|
||||
|
||||
$menu_godmode["gmodules"]["sub"] = $sub;
|
||||
}
|
||||
|
||||
|
@ -110,198 +123,158 @@ if (check_acl ($config['id_user'], 0, "LM") || check_acl ($config['id_user'], 0,
|
|||
$menu_godmode["galertas"]["text"] = __('Manage alerts');
|
||||
$menu_godmode["galertas"]["sec2"] = "godmode/alerts/alert_list";
|
||||
$menu_godmode["galertas"]["id"] = "god-alerts";
|
||||
|
||||
|
||||
if (check_acl ($config['id_user'], 0, "LM")) {
|
||||
$sub = array ();
|
||||
$sub["godmode/alerts/alert_templates"]["text"] = __('Templates');
|
||||
$sub["godmode/alerts/alert_actions"]["text"] = __('Actions');
|
||||
|
||||
|
||||
if (check_acl ($config['id_user'], 0, "PM")) {
|
||||
$sub["godmode/alerts/alert_commands"]["text"] = __('Commands');
|
||||
}
|
||||
$sub["godmode/alerts/alert_special_days"]["text"] = __('Special days list');
|
||||
enterprise_hook('eventalerts_submenu');
|
||||
|
||||
$sub["godmode/snmpconsole/snmp_alert"]["text"] = __("SNMP alerts");
|
||||
|
||||
$menu_godmode["galertas"]["sub"] = $sub;
|
||||
}
|
||||
}
|
||||
|
||||
if (check_acl ($config['id_user'], 0, "AW")) {
|
||||
enterprise_hook ('policies_menu');
|
||||
}
|
||||
|
||||
if (check_acl ($config['id_user'], 0, "UM")) {
|
||||
$menu_godmode["gusuarios"]["text"] = __('Manage users');
|
||||
$menu_godmode["gusuarios"]["sec2"] = "godmode/users/user_list";
|
||||
$menu_godmode["gusuarios"]["id"] = "god-users";
|
||||
|
||||
$sub = array ();
|
||||
$sub['godmode/users/profile_list']['text'] = __('Manage profiles');
|
||||
|
||||
$menu_godmode["gusuarios"]["sub"] = $sub;
|
||||
}
|
||||
|
||||
// GIS
|
||||
if (check_acl ($config['id_user'], 0, "IW")) {
|
||||
|
||||
if ($config['activate_gis']) {
|
||||
$menu_godmode["godgismaps"]["text"] = __('GIS Maps builder');
|
||||
$menu_godmode["godgismaps"]["sec2"] = "godmode/gis_maps/index";
|
||||
$menu_godmode["godgismaps"]["refr"] = (int)get_parameter('refr', 60);
|
||||
$menu_godmode["godgismaps"]["id"] = "god-gismaps";
|
||||
}
|
||||
}
|
||||
|
||||
if (check_acl ($config['id_user'], 0, "EW")) {
|
||||
// Manage events
|
||||
$menu_godmode["geventos"]["text"] = __('Manage events');
|
||||
$menu_godmode["geventos"]["sec2"] = "godmode/events/events&section=filter";
|
||||
$menu_godmode["geventos"]["id"] = "god-events";
|
||||
|
||||
|
||||
// Custom event fields
|
||||
$sub = array ();
|
||||
$sub["godmode/events/events&section=filter"]["text"] = __('Event filters');
|
||||
|
||||
|
||||
if (check_acl ($config['id_user'], 0, "PM")) {
|
||||
$sub["godmode/events/events&section=fields"]["text"] = __('Custom events');
|
||||
$sub["godmode/events/events&section=responses"]["text"] = __('Event responses');
|
||||
}
|
||||
|
||||
|
||||
$menu_godmode["geventos"]["sub"] = $sub;
|
||||
}
|
||||
|
||||
if (check_acl ($config['id_user'], 0, "AW")) {
|
||||
|
||||
// Servers
|
||||
$menu_godmode["gservers"]["text"] = __('Manage servers');
|
||||
$menu_godmode["gservers"]["sec2"] = "godmode/servers/modificar_server";
|
||||
$menu_godmode["gservers"]["id"] = "god-servers";
|
||||
|
||||
|
||||
$sub = array ();
|
||||
$sub["godmode/servers/manage_recontask"]["text"] = __('Manage recontask');
|
||||
|
||||
$sub["godmode/servers/modificar_server"]["text"] = __('Manage servers');
|
||||
$sub["godmode/servers/manage_recontask"]["text"] = __('Recon task');
|
||||
|
||||
//This subtabs are only for Pandora Admin
|
||||
if (check_acl ($config['id_user'], 0, "PM")) {
|
||||
$sub["godmode/servers/plugin"]["text"] = __('Manage plugins');
|
||||
|
||||
$sub["godmode/servers/recon_script"]["text"] = __('Manage recon script');
|
||||
|
||||
$sub["godmode/servers/plugin"]["text"] = __('Plugins');
|
||||
|
||||
$sub["godmode/servers/recon_script"]["text"] = __('Recon script');
|
||||
|
||||
enterprise_hook('export_target_submenu');
|
||||
}
|
||||
|
||||
|
||||
$menu_godmode["gservers"]["sub"] = $sub;
|
||||
}
|
||||
|
||||
if (check_acl ($config['id_user'], 0, "LW")) {
|
||||
enterprise_hook ('snmpconsole_menu');
|
||||
}
|
||||
|
||||
if (check_acl ($config['id_user'], 0, "PM")) {
|
||||
// Audit
|
||||
$menu_godmode["glog"]["text"] = __('System audit log');
|
||||
$menu_godmode["glog"]["sec2"] = "godmode/admin_access_logs";
|
||||
$menu_godmode["glog"]["id"] = "god-audit";
|
||||
|
||||
// Setup
|
||||
$menu_godmode["gsetup"]["text"] = __('Setup');
|
||||
$menu_godmode["gsetup"]["sec2"] = "godmode/setup/setup§ion=general";
|
||||
$menu_godmode["gsetup"]["id"] = "god-setup";
|
||||
|
||||
|
||||
$sub = array ();
|
||||
|
||||
$sub["godmode/setup/setup§ion=general"]["text"] = __('Setup');
|
||||
$sub["godmode/setup/setup§ion=general"]["refr"] = 0;
|
||||
|
||||
$sub2 = array();
|
||||
|
||||
// Options Setup
|
||||
$sub2["godmode/setup/setup&section=general"]["text"] = __('General');
|
||||
$sub2["godmode/setup/setup&section=general"]["refr"] = 0;
|
||||
/*
|
||||
if (enterprise_installed()) {
|
||||
$buttons = setup_enterprise_add_Tabs($buttons);
|
||||
}
|
||||
*/
|
||||
$sub2["godmode/setup/setup&section=auth"]["text"] = __('Authentication');
|
||||
$sub2["godmode/setup/setup&section=auth"]["refr"] = 0;
|
||||
|
||||
$sub2["godmode/setup/setup&section=perf"]["text"] = __('Performance');
|
||||
$sub2["godmode/setup/setup&section=perf"]["refr"] = 0;
|
||||
|
||||
$sub2["godmode/setup/setup&section=vis"]["text"] = __('Visual styles');
|
||||
$sub2["godmode/setup/setup&section=vis"]["refr"] = 0;
|
||||
|
||||
|
||||
$sub["godmode/setup/file_manager"]["text"] = __('File manager');
|
||||
|
||||
|
||||
$sub["godmode/setup/setup&section=general"]["text"] = __('General Setup');
|
||||
$sub["godmode/setup/setup&section=general"]["refr"] = 0;
|
||||
|
||||
enterprise_hook ('password_submenu');
|
||||
enterprise_hook ('enterprise_submenu');
|
||||
enterprise_hook ('historydb_submenu');
|
||||
enterprise_hook ('log_collector_submenu');
|
||||
|
||||
$sub["godmode/setup/setup&section=auth"]["text"] = __('Authentication');
|
||||
$sub["godmode/setup/setup&section=auth"]["refr"] = 0;
|
||||
|
||||
$sub["godmode/setup/setup&section=perf"]["text"] = __('Performance');
|
||||
$sub["godmode/setup/setup&section=perf"]["refr"] = 0;
|
||||
|
||||
$sub["godmode/setup/setup&section=vis"]["text"] = __('Visual styles');
|
||||
$sub["godmode/setup/setup&section=vis"]["refr"] = 0;
|
||||
|
||||
if (check_acl ($config['id_user'], 0, "AW")) {
|
||||
if ($config['activate_netflow']) {
|
||||
$sub2["godmode/setup/setup&section=net"]["text"] = __('Netflow');
|
||||
$sub2["godmode/setup/setup&section=net"]["refr"] = 0;
|
||||
$sub["godmode/setup/setup&section=net"]["text"] = __('Netflow');
|
||||
$sub["godmode/setup/setup&section=net"]["refr"] = 0;
|
||||
}
|
||||
}
|
||||
$sub["godmode/setup/setup§ion=general"]["sub2"] = $sub2;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if ($config['activate_gis'])
|
||||
$sub["godmode/setup/gis"]["text"] = __('Map conections GIS');
|
||||
$sub["godmode/setup/links"]["text"] = __('Links');
|
||||
$sub["godmode/setup/news"]["text"] = __('Site news');
|
||||
|
||||
$sub["godmode/setup/os"]["text"] = __('Edit OS');
|
||||
$sub["godmode/setup/license"]["text"] = __('License');
|
||||
|
||||
$sub["godmode/update_manager/update_manager"]["text"] = __('Update manager');
|
||||
|
||||
enterprise_hook ('enterprise_acl_submenu');
|
||||
|
||||
enterprise_hook ('skins_submenu');
|
||||
$sub["extras/pandora_diag"]["text"] = __('Diagnostic info');
|
||||
|
||||
|
||||
$menu_godmode["gsetup"]["sub"] = $sub;
|
||||
}
|
||||
|
||||
if (check_acl ($config['id_user'], 0, "AW")) {
|
||||
if ($config['activate_netflow']) {
|
||||
//Netflow
|
||||
$menu_godmode["netf"]["text"] = __('Netflow filters');
|
||||
$menu_godmode["netf"]["sec2"] = "godmode/netflow/nf_edit";
|
||||
$menu_godmode["netf"]["id"] = "god-netflow";
|
||||
}
|
||||
}
|
||||
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";
|
||||
|
||||
if (check_acl ($config['id_user'], 0, "DM")) {
|
||||
$menu_godmode["gdbman"]["text"] = __('DB maintenance');
|
||||
$menu_godmode["gdbman"]["sec2"] = "godmode/db/db_main";
|
||||
$menu_godmode["gdbman"]["id"] = "god-dbmaint";
|
||||
|
||||
$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');
|
||||
$sub["godmode/db/db_event"]["text"] = __('Database event');
|
||||
|
||||
$menu_godmode["gdbman"]["sub"] = $sub;
|
||||
// Audit //meter en extensiones
|
||||
$sub["godmode/admin_access_logs"]["text"] = __('System audit log');
|
||||
$sub["godmode/setup/links"]["text"] = __('Links');
|
||||
$sub["godmode/update_manager/update_manager"]["text"] = __('Update manager');
|
||||
$sub["extras/pandora_diag"]["text"] = __('Diagnostic info');
|
||||
$sub["godmode/setup/news"]["text"] = __('Site news');
|
||||
$sub["godmode/setup/file_manager"]["text"] = __('File manager');
|
||||
$sub["gextmaneger"]["sub2"] = $sub2;
|
||||
if (check_acl ($config['id_user'], 0, "DM")) {//meter en extensiones
|
||||
$sub["gdbman"]["text"] = __('DB maintenance');
|
||||
|
||||
$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');
|
||||
|
||||
$sub["gdbman"]["sub2"] = $sub2;
|
||||
}
|
||||
$menu_godmode["gextensions"]["sub"] = $sub;
|
||||
}
|
||||
|
||||
if (check_acl ($config['id_user'], 0, "PM")) {
|
||||
|
||||
if (is_array ($config['extensions'])) {
|
||||
$menu_godmode["gextensions"]["text"] = __('Extensions');
|
||||
$menu_godmode["gextensions"]["sec2"] = "godmode/extensions";
|
||||
$menu_godmode["gextensions"]["id"] = "god-extensions";
|
||||
|
||||
$sub = array ();
|
||||
$sub["gextmaneger"]["text"] = __('Extension manager');
|
||||
$sub2 = array ();
|
||||
|
||||
foreach ($config['extensions'] as $extension) {
|
||||
//If no godmode_menu is a operation extension
|
||||
if ($extension['godmode_menu'] == '') {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
$extmenu = $extension['godmode_menu'];
|
||||
|
||||
if ($extmenu["name"] == 'DB interface' && !check_acl ($config['id_user'], 0, "DM")) {
|
||||
|
||||
if ($extmenu["name"] == 'DB interface' && !check_acl ($config['id_user'], 0, "DM")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
//Check the ACL for this user
|
||||
if (! check_acl ($config['id_user'], 0, $extmenu['acl'])) {
|
||||
continue;
|
||||
|
@ -309,37 +282,51 @@ if (check_acl ($config['id_user'], 0, "PM")) {
|
|||
|
||||
//Check if was displayed inside other menu
|
||||
if ($extension['godmode_menu']["fatherId"] == '') {
|
||||
$sub[$extmenu["sec2"]]["text"] = $extmenu["name"];
|
||||
$sub[$extmenu["sec2"]]["refr"] = 0;
|
||||
$sub2[$extmenu["sec2"]]["text"] = __($extmenu["name"]);
|
||||
$sub2[$extmenu["sec2"]]["refr"] = 0;
|
||||
}
|
||||
else {
|
||||
if (array_key_exists('fatherId',$extmenu)) {
|
||||
if (strlen($extmenu['fatherId']) > 0) {
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["text"] = __($extmenu['name']);
|
||||
if ($extmenu["name"] != 'DB interface') {
|
||||
if (!empty($config['refr'])) {
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["refr"] = $config['refr'];
|
||||
if (array_key_exists('subfatherId',$extmenu)) {
|
||||
if (strlen($extmenu['subfatherId']) > 0) {
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['subfatherId']]['sub2'][$extmenu['sec2']]["text"] = __($extmenu['name']);
|
||||
$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;
|
||||
}
|
||||
else {
|
||||
else{
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["text"] = __($extmenu['name']);
|
||||
$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;
|
||||
}
|
||||
}
|
||||
$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;
|
||||
else{
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["text"] = __($extmenu['name']);
|
||||
$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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$menu_godmode["gextensions"]["sub"] = $sub;
|
||||
$sub["gextmaneger"]["sub2"] = $sub2;
|
||||
$submenu = array_merge($menu_godmode["gextensions"]["sub"],$sub);
|
||||
$menu_godmode["gextensions"]["sub"] = $submenu;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!$config['pure']) {
|
||||
menu_print_menu ($menu_godmode);
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 466 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 475 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 475 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 417 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 417 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 489 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 301 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 304 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 490 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 489 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 562 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 562 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 497 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 472 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 303 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 303 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 459 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 444 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 458 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 458 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 484 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 465 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 465 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 474 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 474 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 502 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 451 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 451 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 357 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 345 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 354 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 394 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 602 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 593 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 408 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 368 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 379 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 379 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 314 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 349 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 365 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 324 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 401 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 401 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 497 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 314 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 415 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 404 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 517 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 440 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 450 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 488 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 477 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 433 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 468 B |
After Width: | Height: | Size: 432 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 505 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 559 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 555 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 631 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 456 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 555 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 575 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 524 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 518 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 365 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 417 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 404 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 365 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 349 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 365 B |
Before Width: | Height: | Size: 325 B After Width: | Height: | Size: 349 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 447 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 529 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 408 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 430 B |
Before Width: | Height: | Size: 744 B After Width: | Height: | Size: 411 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 411 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 563 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 426 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 514 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 376 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 454 B |
Before Width: | Height: | Size: 331 B After Width: | Height: | Size: 401 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 574 B |
After Width: | Height: | Size: 2.0 KiB |