$menu = new mosMenu($database); if ($cid[0]) { $menu->load($cid[0]); } else { $menu->type = $type; } if ($menu->type) { require $mosConfig_absolute_path . '/administrator/components/com_menus/' . $menu->type . '/' . $menu->type . '.menu.php'; } break; case 'save': require $mosConfig_absolute_path . '/administrator/components/com_menus/' . $type . '/' . $type . '.menu.php'; break; case 'publish': case 'unpublish': if ($msg = publishMenuSection($cid, $task == 'publish')) { // proceed no further if the menu item can't be published mosRedirect('index2.php?option=' . $option . '&menutype=' . $menutype . '&mosmsg= ' . $msg); } else { mosRedirect('index2.php?option=' . $option . '&menutype=' . $menutype); } break; case "remove": if ($msg = TrashMenusection($cid)) { mosRedirect('index2.php?option=' . $option . '&menutype=' . $menutype . '&mosmsg= ' . $msg); } else { mosRedirect('index2.php?option=' . $option . '&menutype=' . $menutype); } break; case 'cancel': cancelMenu($option);
$menu->type = $type; } if ($menu->type) { $type = $menu->type; require_once $path . $menu->type . '/' . $menu->type . '.menu.php'; } break; case 'save': case 'apply': // clean any existing cache files mosCache::cleanCache('com_content'); require_once $path . $type . '/' . $type . '.menu.php'; break; case 'publish': case 'unpublish': publishMenuSection($cid, $task == 'publish', $menutype); break; case 'remove': TrashMenusection($cid, $menutype); break; case 'cancel': cancelMenu($option); break; case 'orderup': orderMenu(intval($cid[0]), -1, $option); break; case 'orderdown': orderMenu(intval($cid[0]), 1, $option); break; case 'accesspublic': accessMenu(intval($cid[0]), 0, $option, $menutype);