예제 #1
0
파일: admin.menus.php 프로젝트: cwcw/cms
     }
     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);
     break;
 case 'orderup':
     orderMenu($cid[0], -1, $option);
     break;
 case 'orderdown':
     orderMenu($cid[0], 1, $option);
     break;
 case 'accesspublic':
예제 #2
0
         $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);
     break;
 case 'accessregistered':
     accessMenu(intval($cid[0]), 1, $option, $menutype);