0) { if (array_key_exists('subfatherId', $extmenu) === true) { 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']]['id'] = str_replace(' ', '_', $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 { $menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]['text'] = __($extmenu['name']); $menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]['id'] = str_replace(' ', '_', $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'] = $extmenu['fatherId']; $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']]['id'] = str_replace(' ', '_', $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; } } } } } // Complete the submenu. $extension_view = []; $extension_view['godmode/extensions']['id'] = 'extension_manager_view'; $extension_view['godmode/extensions']['text'] = __('Extension manager view'); $extension_submenu = array_merge($extension_view, $sub2); $sub['godmode/extensions']['sub2'] = $extension_submenu; $sub['godmode/extensions']['text'] = __('Extension manager'); $sub['godmode/extensions']['id'] = 'extension_manager'; $sub['godmode/extensions']['type'] = 'direct'; $sub['godmode/extensions']['subtype'] = 'nolink'; if (is_array($menu_godmode['gextensions']['sub']) === true) { $submenu = array_merge($menu_godmode['gextensions']['sub'], $sub); if ($menu_godmode['gextensions']['sub'] != null) { $menu_godmode['gextensions']['sub'] = $submenu; } } } $menu_godmode['links']['text'] = __('Links'); $menu_godmode['links']['sec2'] = ''; $menu_godmode['links']['id'] = 'god-links'; $sub = []; $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; } // Warp Manager. if ((bool) check_acl($config['id_user'], 0, 'PM') === true && (bool) $config['enable_update_manager'] === true) { $menu_godmode['messages']['text'] = __('Warp Update'); $menu_godmode['messages']['id'] = 'god-um_messages'; $menu_godmode['messages']['sec2'] = ''; $sub = []; $sub['godmode/update_manager/update_manager&tab=offline']['text'] = __('Update offline'); $sub['godmode/update_manager/update_manager&tab=offline']['id'] = 'Offline'; $sub['godmode/update_manager/update_manager&tab=online']['text'] = __('Update 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'; $sub['godmode/update_manager/update_manager&tab=history']['text'] = __('Warp journal'); $sub['godmode/update_manager/update_manager&tab=history']['id'] = 'Journal'; $menu_godmode['messages']['sub'] = $sub; } if ($access_console_node === true) { // Module library. if ((bool) check_acl($config['id_user'], 0, 'AR') === true) { $menu_godmode['gmodule_library']['text'] = __('Module library'); $menu_godmode['gmodule_library']['id'] = 'god-module_library'; $sub = []; $sub['godmode/module_library/module_library_view']['text'] = __('View'); $sub['godmode/module_library/module_library_view']['id'] = 'View'; $sub['godmode/module_library/module_library_view&tab=categories']['text'] = __('Categories'); $sub['godmode/module_library/module_library_view&tab=categories']['id'] = 'categories'; $menu_godmode['gmodule_library']['sub'] = $sub; } } if ($access_console_node === true) { // About. $menu_godmode['about']['text'] = __('About'); $menu_godmode['about']['id'] = 'about'; } if ((bool) $config['pure'] === false) { menu_print_menu($menu_godmode); } echo '
';