diff --git a/pandora_console/godmode/menu.php b/pandora_console/godmode/menu.php index 3dc3c5efe2..1875e38fe9 100644 --- a/pandora_console/godmode/menu.php +++ b/pandora_console/godmode/menu.php @@ -384,6 +384,23 @@ if (check_acl ($config['id_user'], 0, "PM")) { } } +$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; + if (!$config['pure']) { menu_print_menu ($menu_godmode); } diff --git a/pandora_console/images/links.menu.png b/pandora_console/images/links.menu.png new file mode 100644 index 0000000000..465e350ec4 Binary files /dev/null and b/pandora_console/images/links.menu.png differ diff --git a/pandora_console/include/styles/menu.css b/pandora_console/include/styles/menu.css index fec2475022..cf020dc8a1 100644 --- a/pandora_console/include/styles/menu.css +++ b/pandora_console/include/styles/menu.css @@ -190,7 +190,11 @@ li:hover ul { display: block; } } #icon_god-extensions { background: url(../../images/builder.menu.png) no-repeat 50% 50%; - +} +#icon_god-links { + border-top: 4px solid !important; + border-color: #777; + background: #333 url(../../images/links.menu.png) no-repeat 50% 50%; } #subicon_god-setup { @@ -207,6 +211,10 @@ li:hover ul { display: block; } top: -72px; } +#subicon_god-links { + top: -130px; +} + #menu_container { z-index: 3; position: absolute; diff --git a/pandora_console/operation/menu.php b/pandora_console/operation/menu.php index c304781f77..a4f0ea26a9 100644 --- a/pandora_console/operation/menu.php +++ b/pandora_console/operation/menu.php @@ -410,18 +410,6 @@ if (check_acl ($config['id_user'], 0, "AR")) { $sub["operation/servers/recon_view"]["refr"] = 0; } - $sub['link']["text"] = __("Links"); - $sub['link']["id"] = "Links"; - $rows = db_get_all_rows_in_table('tlink', 'name'); - foreach ($rows as $row) { - // Audit //meter en extensiones - - $sub2[$row['link']]["text"] = $row['name']; - $sub2[$row['link']]["type"] = 'direct'; - $sub2[$row['link']]["subtype"] = 'new_blank'; - } - $sub["link"]["sub2"] = $sub2; - foreach ($config["extensions"] as $extension) { //If no operation_menu is a godmode extension if ($extension["operation_menu"] == '') { @@ -488,7 +476,6 @@ if (check_acl ($config['id_user'], 0, "AR")) { $operation_menu_array = $menu_operation; - if(!$config['pure']) { menu_print_menu ($menu_operation, true); }