0) { 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']]["id"] = $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"] = $extmenu['name']; $menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["refr"] = 0; $menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["icon"] = $extmenu['icon']; if ($extmenu["name"] == 'Cron jobs') $menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["sec"] = 'extensions'; else $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']]["id"] = $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; } } } } } if (!empty($sub2)) { $sub["godmode/extensions"]["sub2"] = $sub2; $sub["godmode/extensions"]["text"] = __('Extension manager'); $sub["godmode/extensions"]["id"] = 'Extension manager'; $submenu = array_merge($menu_godmode["gextensions"]["sub"],$sub); $menu_godmode["gextensions"]["sub"] = $submenu; } } $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; // Update Manager 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"; $sub = array (); $sub["godmode/update_manager/update_manager&tab=offline"]["text"] = __('Update Manager offline'); $sub["godmode/update_manager/update_manager&tab=offline"]["id"] = 'Offline'; $sub["godmode/update_manager/update_manager&tab=online"]["text"] = __('Update Manager online'); $sub["godmode/update_manager/update_manager&tab=online"]["id"] = 'Online'; $sub["godmode/update_manager/update_manager&tab=setup"]["text"] = __('Update Manager 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'; } $menu_godmode["messages"]["sub"] = $sub; } if (!$config['pure']) { menu_print_menu ($menu_godmode); } ?>