editMenu($option, $cid[0]); break; case "copyconfirm": copyConfirm($option, $cid); break; case "savemenu": saveMenu($option); break; case "deleteconfirm": deleteconfirm($option, $cid); break; case "deletemenu": deleteMenu($option, $cid, $type); break; case "copymenu": copyMenu($option, $cid, $menu_name, $type); break; case "cancel": cancelMenu($option); break; default: showMenu($option); break; } /** * Compiles a list of menumanager items */ function showMenu($option) { global $database, $mainframe, $mosConfig_list_limit; ## Main Query
accessMenu($cid[0], 0, $option, $menutype); break; case 'accessregistered': accessMenu($cid[0], 1, $option, $menutype); break; case 'accessspecial': accessMenu($cid[0], 2, $option, $menutype); break; case 'movemenu': moveMenu($option, $cid, $menutype); break; case 'movemenusave': moveMenuSave($option, $cid, $menu, $menutype); break; case 'copymenu': copyMenu($option, $cid, $menutype); break; case 'copymenusave': copyMenuSave($option, $cid, $menu, $menutype); break; case 'cancelcopymenu': case 'cancelmovemenu': viewMenuItems($menutype, $option); break; default: $type = trim(mosGetParam($_REQUEST, 'type', null)); if ($type) { // adding a new item - type selection form require $mosConfig_absolute_path . '/administrator/components/com_menus/' . $type . php; } else { viewMenuItems($menutype, $option);
editMenu($option, $menu); break; case 'savemenu': saveMenu(); break; case 'deleteconfirm': deleteconfirm($option, $cid[0]); break; case 'deletemenu': deleteMenu($option, $cid, $type); break; case 'copyconfirm': copyConfirm($option, $cid[0]); break; case 'copymenu': copyMenu($option, $cid, $type); break; case 'cancel': cancelMenu($option); break; default: showMenu($option); break; } /** * Compiles a list of menumanager items */ function showMenu($option) { global $database, $mainframe, $mosConfig_list_limit; $limit = intval($mainframe->getUserStateFromRequest("viewlistlimit", 'limit', $mosConfig_list_limit));