本文整理汇总了PHP中accessMenu函数的典型用法代码示例。如果您正苦于以下问题:PHP accessMenu函数的具体用法?PHP accessMenu怎么用?PHP accessMenu使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了accessMenu函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: cancelMenu
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':
示例2: cancelMambot
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 {
示例3: orderFrontPage
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');
示例4: cancelModule
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);
示例5: cancelSection
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)
示例6: cancelCategory
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;
示例7: cbSpoofCheck
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;
示例8: cancelSection
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)
示例9: copyItem
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;
示例10: orderFrontPage
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));
示例11: cancelMenu
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':
示例12: cancelCategory
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;
示例13: publishImages
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)
{