publishCategories("com_docman", $id, $cid, 0); break; case "orderup": orderCategory($cid[0], -1); break; case "orderdown": orderCategory($cid[0], 1); break; case "accesspublic": accessCategory($cid[0], 0); break; case "accessregistered": accessCategory($cid[0], 1); break; case "accessspecial": accessCategory($cid[0], 2); break; case "show": default: showCategories(); } function showCategories() { global $option, $menutype; $database = JFactory::getDBO(); $my = JFactory::getUser(); $mainframe = JFactory::getApplication(); $limit = $mainframe->getCfg('list_limit'); $section = "com_docman"; $sectionid = $mainframe->getUserStateFromRequest("sectionid{$section}{$section}", 'sectionid', 0); $limit = $mainframe->getUserStateFromRequest("viewlistlimit", 'limit', $limit);
publishCategories("com_booklibrary", $id, $bid, 0); break; case "orderup": orderCategory($bid[0], -1); break; case "orderdown": orderCategory($bid[0], 1); break; case "accesspublic": accessCategory($bid[0], 0); break; case "accessregistered": accessCategory($bid[0], 1); break; case "accessspecial": accessCategory($bid[0], 2); break; case "show": default: showCategories(); } } elseif (isset($section) && $section == 'language_manager') { switch ($task) { case "edit": editLanguageManager($option, $bid[0]); break; case "cancel": cancelLanguageManager(); break; case "save": saveLanguageManager();