当前位置: 首页>>代码示例>>PHP>>正文


PHP accessMenu函数代码示例

本文整理汇总了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':
开发者ID:cwcw,项目名称:cms,代码行数:31,代码来源:admin.menus.php

示例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 {
开发者ID:cwcw,项目名称:cms,代码行数:31,代码来源:admin.mambots.php

示例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');
开发者ID:Fellah,项目名称:govnobaki,代码行数:31,代码来源:admin.frontpage.php

示例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);
开发者ID:jwest00724,项目名称:Joomla-1.0,代码行数:31,代码来源:admin.modules.php

示例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)
开发者ID:jicheng17,项目名称:comanova,代码行数:31,代码来源:admin.sections.php

示例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;
开发者ID:Fellah,项目名称:govnobaki,代码行数:31,代码来源:admin.categories.php

示例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;
开发者ID:rogatnev-nikita,项目名称:cloudinterpreter,代码行数:31,代码来源:controller.default.php

示例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)
开发者ID:jwest00724,项目名称:Joomla-1.0,代码行数:31,代码来源:admin.sections.php

示例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;
开发者ID:cwcw,项目名称:cms,代码行数:31,代码来源:admin.content.php

示例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));
开发者ID:jwest00724,项目名称:Joomla-1.0,代码行数:31,代码来源:admin.frontpage.php

示例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':
开发者ID:patricmutwiri,项目名称:joomlaclube,代码行数:31,代码来源:admin.menus.php

示例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;
开发者ID:jwest00724,项目名称:Joomla-1.0,代码行数:31,代码来源:admin.categories.php

示例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)
{
开发者ID:bizanto,项目名称:Hooked,代码行数:31,代码来源:admin.fpss.php


注:本文中的accessMenu函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。