cancelMenu($option); break; case 'orderup': orderMenu($cid[0], -1, $option); break; case 'orderdown': orderMenu($cid[0], 1, $option); break; case 'accesspublic': 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':
break; case 'cancel': cancelMambot($option, $client); break; case 'publish': case 'unpublish': publishMambot($cid, $task == 'publish', $option, $client); break; case 'orderup': case 'orderdown': orderMambot($cid[0], $task == 'orderup' ? -1 : 1, $option, $client); break; case 'accesspublic': case 'accessregistered': case 'accessspecial': accessMenu($cid[0], $task, $option, $client); break; default: viewMambots($option, $client); break; } /** * Compiles a list of installed or defined modules */ function viewMambots($option, $client) { global $database, $mainframe, $mosConfig_list_limit; global $mosConfig_absolute_path; if ($client == 'admin') { $where = "client_id='1'"; } else {
orderFrontPage($cid[0], -1, $option); break; case 'orderdown': orderFrontPage($cid[0], 1, $option); break; case 'saveorder': saveOrder($cid); break; case 'accesspublic': accessMenu($cid[0], 0); break; case 'accessregistered': accessMenu($cid[0], 1); break; case 'accessspecial': accessMenu($cid[0], 2); break; default: viewFrontPage($option); break; } /** * Compiles a list of frontpage items */ function viewFrontPage($option) { global $mainframe; $db =& JFactory::getDBO(); $filter_order = $mainframe->getUserStateFromRequest($option . '.filter_order', 'filter_order', 'fpordering', 'cmd'); $filter_order_Dir = $mainframe->getUserStateFromRequest($option . '.filter_order_Dir', 'filter_order_Dir', '', 'word'); $filter_state = $mainframe->getUserStateFromRequest($option . '.filter_state', 'filter_state', '', 'word');
break; case 'cancel': cancelModule($option, $client); break; case 'publish': case 'unpublish': publishModule($cid, $task == 'publish', $option, $client); break; case 'orderup': case 'orderdown': orderModule(intval($cid[0]), $task == 'orderup' ? -1 : 1, $option); break; case 'accesspublic': case 'accessregistered': case 'accessspecial': accessMenu(intval($cid[0]), $task, $option, $client); break; case 'saveorder': saveOrder($cid, $client); break; default: viewModules($option, $client); break; } /** * Compiles a list of installed or defined modules */ function viewModules($option, $client) { global $database, $my, $mainframe, $mosConfig_list_limit, $mosConfig_absolute_path; $filter_position = $mainframe->getUserStateFromRequest("filter_position{$option}{$client}", 'filter_position', 0);
cancelSection($option, $scope); break; case 'orderup': orderSection($cid[0], -1, $option, $scope); break; case 'orderdown': orderSection($cid[0], 1, $option, $scope); break; case 'accesspublic': accessMenu($cid[0], 0, $option); break; case 'accessregistered': accessMenu($cid[0], 1, $option); break; case 'accessspecial': accessMenu($cid[0], 2, $option); break; case 'saveorder': saveOrder($cid); break; default: showSections($scope, $option); break; } /** * Compiles a list of categories for a section * @param database A database connector object * @param string The name of the category section * @param string The name of the current user */ function showSections($scope, $option)
cancelCategory(); break; case 'orderup': orderCategory($cid[0], -1); break; case 'orderdown': orderCategory($cid[0], 1); break; case 'accesspublic': accessMenu($cid[0], 0, $section); break; case 'accessregistered': accessMenu($cid[0], 1, $section); break; case 'accessspecial': accessMenu($cid[0], 2, $section); break; case 'saveorder': saveOrder($cid, $section); break; default: showCategories($section, $option); break; } /** * Compiles a list of categories for a section * @param string The name of the category section */ function showCategories($section, $option) { global $mainframe;
cbSpoofCheck('plugin'); checkCanAdminPlugins('core.edit.state', $cid); publishPlugin($cid, $task == 'publishPlugin', $option); break; case 'orderupPlugin': case 'orderdownPlugin': cbSpoofCheck('plugin'); checkCanAdminPlugins('core.edit.state', $cid[0]); orderPlugin($cid[0], $task == 'orderupPlugin' ? -1 : 1, $option); break; case 'accesspublic': case 'accessregistered': case 'accessspecial': cbSpoofCheck('plugin'); checkCanAdminPlugins('core.edit', $cid[0]); accessMenu($cid[0], $task, $option); break; case 'savepluginorder': cbSpoofCheck('plugin'); checkCanAdminPlugins('core.edit.state', $cid); savePluginOrder($cid, $option); break; case 'showPlugins': checkCanAdminPlugins(array('core.admin', 'core.edit', 'core.edit.state'), $cid); viewPlugins($option); break; case 'installPluginUpload': cbSpoofCheck('plugin'); checkCanAdminPlugins('core.admin'); installPluginUpload(); break;
cancelSection($option, $scope); break; case 'orderup': orderSection(intval($cid[0]), -1, $option, $scope); break; case 'orderdown': orderSection(intval($cid[0]), 1, $option, $scope); break; case 'accesspublic': accessMenu(intval($cid[0]), 0, $option); break; case 'accessregistered': accessMenu(intval($cid[0]), 1, $option); break; case 'accessspecial': accessMenu(intval($cid[0]), 2, $option); break; case 'saveorder': saveOrder($cid); break; default: showSections($scope, $option); break; } /** * Compiles a list of categories for a section * @param database A database connector object * @param string The name of the category section * @param string The name of the current user */ function showSections($scope, $option)
copyItem($cid, $sectionid, $option); break; case 'copysave': copyItemSave($cid, $sectionid, $option); break; case 'resethits': resetHits(); break; case 'accesspublic': accessMenu($cid[0], 0, $option, $client); break; case 'accessregistered': accessMenu($cid[0], 1, $option, $client); break; case 'accessspecial': accessMenu($cid[0], 2, $option, $client); break; case 'menulink': menuLink($option); break; default: viewContent($sectionid, $option); break; } /** * Compiles a list of installed or defined modules * @param database A database connector object */ function viewContent($sectionid, $option) { global $database, $mainframe, $mosConfig_list_limit, $adminLanguage;
orderFrontPage(intval($cid[0]), -1, $option); break; case 'orderdown': orderFrontPage(intval($cid[0]), 1, $option); break; case 'saveorder': saveOrder($cid); break; case 'accesspublic': accessMenu(intval($cid[0]), 0); break; case 'accessregistered': accessMenu(intval($cid[0]), 1); break; case 'accessspecial': accessMenu(intval($cid[0]), 2); break; default: viewFrontPage($option); break; } /** * Compiles a list of frontpage items */ function viewFrontPage($option) { global $database, $mainframe, $mosConfig_list_limit; $catid = intval($mainframe->getUserStateFromRequest("catid{$option}", 'catid', 0)); $filter_authorid = intval($mainframe->getUserStateFromRequest("filter_authorid{$option}", 'filter_authorid', 0)); $filter_sectionid = intval($mainframe->getUserStateFromRequest("filter_sectionid{$option}", 'filter_sectionid', 0)); $limit = intval($mainframe->getUserStateFromRequest("viewlistlimit", 'limit', $mosConfig_list_limit));
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); break; case 'accessspecial': accessMenu(intval($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':
cancelCategory(); break; case 'orderup': orderCategory(intval($cid[0]), -1); break; case 'orderdown': orderCategory(intval($cid[0]), 1); break; case 'accesspublic': accessMenu(intval($cid[0]), 0, $section); break; case 'accessregistered': accessMenu(intval($cid[0]), 1, $section); break; case 'accessspecial': accessMenu(intval($cid[0]), 2, $section); break; case 'saveorder': saveOrder($cid, $section); break; default: showCategories($section, $option); break; } /** * Compiles a list of categories for a section * @param string The name of the category section */ function showCategories($section, $option) { global $database, $mainframe, $mosConfig_list_limit, $mosConfig_absolute_path, $mosConfig_dbprefix;
publishImages($cid, 1, $option); break; case "unpublish": publishImages($cid, 0, $option); break; case "deleteslides": deleteSlides($option); break; case 'accesspublic': accessMenu(intval($cid[0]), 0, $option, $task); break; case 'accessregistered': accessMenu(intval($cid[0]), 1, $option, $task); break; case 'accessspecial': accessMenu(intval($cid[0]), 2, $option, $task); break; // CREDITS // CREDITS case "credits": viewCredits($option); break; // DEFAULT // DEFAULT default: showSlides($option); break; } HTML_FPSlideShow::showFooter(); function viewCredits($option) {