diff --git a/e107_plugins/tree_menu/config.php b/e107_plugins/tree_menu/config.php deleted file mode 100644 index 7375aa85f..000000000 --- a/e107_plugins/tree_menu/config.php +++ /dev/null @@ -1,87 +0,0 @@ -getPref(''); - -if (isset($_POST['update_menu'])) -{ - $temp = array(); - foreach($_POST as $key => $value) - { - if ($value != TREE_L2) - { - $temp[$key] = $value; - } - } - - if ($admin_log->logArrayDiffs($temp,$menu_pref,'MISC_01')) - { - $menuPref = e107::getConfig('menu'); - foreach ($temp as $k => $v) - { - $menuPref->setPref($k, $v); - } - $menuPref->save(false, true, false); - } - $ns->tablerender($caption, $mes->render() . $text); -} - -$text = " -
"; - -$ns->tablerender(TREE_L1, $text); - -require_once(e_ADMIN."footer.php"); - -?> \ No newline at end of file diff --git a/e107_plugins/tree_menu/languages/English.php b/e107_plugins/tree_menu/languages/English.php deleted file mode 100644 index 5877b5151..000000000 --- a/e107_plugins/tree_menu/languages/English.php +++ /dev/null @@ -1,24 +0,0 @@ - \ No newline at end of file diff --git a/e107_plugins/tree_menu/tree_menu.php b/e107_plugins/tree_menu/tree_menu.php deleted file mode 100644 index 1f4873e60..000000000 --- a/e107_plugins/tree_menu/tree_menu.php +++ /dev/null @@ -1,193 +0,0 @@ - db_Select_gen($query); -$linkArray = $sql->db_getList(); - -// all main links now held in array, we now need to loop through them and assign the sublinks to the correct parent links ... - -$mainLinkArray = array(); -foreach($linkArray as $links) -{ -// Updated to stop using the deprecated method of splitting the link-name in 3. -// Now uses uses the link parent to determine the 'tree'. - - extract ($links); - if ($link_parent == 0) - { - // main link - add to main array ... - $mainLinkArray[$link_id]['id'] = $link_id; - $mainLinkArray[$link_id]['name'] = $tp->toHtml(strip_tags($link_name),"","defs"); - $mainLinkArray[$link_id]['url'] = $link_url; - $mainLinkArray[$link_id]['description'] = $link_description; - $mainLinkArray[$link_id]['image'] = $link_button; - $mainLinkArray[$link_id]['openMethod'] = $link_open; - $mainLinkArray[$link_id]['class'] = $link_class; - } - else - { - // submenu - add to parent's array entry ... - $tmp = explode(".", $link_name); - $submenu_name = ($tmp[2]) ? $tmp[2] : $link_name; - - $mainLinkArray[$link_parent]['sublink'][$link_id]['parent_name'] = $link_parent; - $mainLinkArray[$link_parent]['sublink'][$link_id]['id'] = $link_id; - $mainLinkArray[$link_parent]['sublink'][$link_id]['name'] = $tp->toHtml(strip_tags($submenu_name),"","defs"); - $mainLinkArray[$link_parent]['sublink'][$link_id]['url'] = $link_url; - $mainLinkArray[$link_parent]['sublink'][$link_id]['description'] = $links['link_description']; - $mainLinkArray[$link_parent]['sublink'][$link_id]['image'] = $link_button; - $mainLinkArray[$link_parent]['sublink'][$link_id]['openMethod'] = $link_open; - $mainLinkArray[$link_parent]['sublink'][$link_id]['class'] = $link_class; - } - -} - -// ok, now all mainlinks and sublinks are held in the array, now we have to loop through and build the text to send to screen ... - -$text = ""; -foreach($mainLinkArray as $links) { - extract ($links); - if (array_key_exists("sublink", $links) && $links['name'] != "") { - // sublinks found ... - - $url = "javascript:void(0);"; - $spanName = $id; - $image = ($image ? "