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


PHP WCFACP::checkMasterPassword方法代码示例

本文整理汇总了PHP中WCFACP::checkMasterPassword方法的典型用法代码示例。如果您正苦于以下问题:PHP WCFACP::checkMasterPassword方法的具体用法?PHP WCFACP::checkMasterPassword怎么用?PHP WCFACP::checkMasterPassword使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在WCFACP的用法示例。


在下文中一共展示了WCFACP::checkMasterPassword方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: show

 /**
  * @see Page::show()
  */
 public function show()
 {
     // set active menu item
     WCFACP::getMenu()->setActiveMenuItem('wcf.acp.menu.link.autoupdate');
     // check permission
     WCF::getUser()->checkPermission('admin.system.package.canUpdatePackage');
     // check master password
     WCFACP::checkMasterPassword();
     parent::show();
 }
开发者ID:CaribeSoy,项目名称:contest-wcf,代码行数:13,代码来源:PackageAutoUpdateListPage.class.php

示例2: execute

 /**
  * @see Action::execute()
  */
 public function execute()
 {
     parent::execute();
     // check permission.
     WCF::getUser()->checkPermission('admin.system.package.canEditServer');
     // check master password
     WCFACP::checkMasterPassword();
     // delete server
     $this->updateServer->delete();
     $this->executed();
     // redirect to the view page.
     HeaderUtil::redirect('index.php?page=UpdateServerList&deletedPackageUpdateServerID=' . $this->packageUpdateServerID . "&packageID=" . PACKAGE_ID . SID_ARG_2ND_NOT_ENCODED);
 }
开发者ID:CaribeSoy,项目名称:contest-wcf,代码行数:16,代码来源:UpdateServerDeleteAction.class.php

示例3: execute

 /**
  * @see Action::execute()
  */
 public function execute()
 {
     parent::execute();
     // check permission
     WCF::getUser()->checkPermission('admin.user.canDeleteGroup');
     require_once WCF_DIR . 'lib/data/user/group/GroupEditor.class.php';
     if ($this->groupID !== 0) {
         $this->groupIDs[] = $this->groupID;
     }
     // check permission
     if (!Group::isAccessibleGroup($this->groupIDs)) {
         throw new PermissionDeniedException();
     }
     // check master password
     WCFACP::checkMasterPassword();
     $deletedGroups = GroupEditor::deleteGroups($this->groupIDs);
     $this->executed();
     HeaderUtil::redirect('index.php?page=GroupList&deletedGroups=' . $deletedGroups . '&packageID=' . PACKAGE_ID . SID_ARG_2ND_NOT_ENCODED);
     exit;
 }
开发者ID:CaribeSoy,项目名称:contest-wcf,代码行数:23,代码来源:GroupDeleteAction.class.php

示例4: show

 /**
  * @see Page::show()
  */
 public function show()
 {
     parent::show();
     // check master password
     WCFACP::checkMasterPassword();
     switch ($this->action) {
         case 'install':
         case 'update':
             if ($this->action == 'install') {
                 WCF::getUser()->checkPermission('admin.system.package.canInstallPackage');
             } else {
                 WCF::getUser()->checkPermission('admin.system.package.canUpdatePackage');
             }
             require_once WCF_DIR . 'lib/acp/package/PackageInstallation.class.php';
             new PackageInstallation($this->queueID);
             break;
         case 'rollback':
             WCF::getUser()->checkPermission('admin.system.package.canInstallPackage');
             require_once WCF_DIR . 'lib/acp/package/PackageInstallationRollback.class.php';
             new PackageInstallationRollback($this->queueID);
             break;
         case 'uninstall':
             WCF::getUser()->checkPermission('admin.system.package.canUninstallPackage');
             require_once WCF_DIR . 'lib/acp/package/PackageUninstallation.class.php';
             new PackageUninstallation($this->queueID);
             break;
         case 'openQueue':
             require_once WCF_DIR . 'lib/acp/package/PackageInstallationQueue.class.php';
             PackageInstallationQueue::openQueue($this->parentQueueID, $this->processNo);
             break;
         case 'startUninstall':
             WCF::getUser()->checkPermission('admin.system.package.canUninstallPackage');
             require_once WCF_DIR . 'lib/acp/package/PackageUninstallation.class.php';
             PackageUninstallation::checkDependencies();
             break;
     }
 }
开发者ID:CaribeSoy,项目名称:contest-wcf,代码行数:40,代码来源:PackagePage.class.php

示例5: show

 /**
  * @see Page::show()
  */
 public function show()
 {
     // check master password
     WCFACP::checkMasterPassword();
     parent::show();
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:9,代码来源:LanguageVariableAddForm.class.php

示例6: show

 /**
  * @see Form::show()
  */
 public function show()
 {
     // set active menu item
     WCFACP::getMenu()->setActiveMenuItem('wcf.acp.menu.link.user.massProcessing');
     // check permission
     WCF::getUser()->checkPermission(array('admin.user.canEditUser', 'admin.user.canDeleteUser', 'admin.user.canMailUser'));
     // check master password
     WCFACP::checkMasterPassword();
     // get user options and categories from cache
     $this->readCache();
     // show form
     parent::show();
 }
开发者ID:CaribeSoy,项目名称:contest-wcf,代码行数:16,代码来源:UsersMassProcessingForm.class.php

示例7: show

 /**
  * @see Page::show()
  */
 public function show()
 {
     if ($this->action == 'install') {
         WCF::getUser()->checkPermission('admin.system.package.canInstallPackage');
     } else {
         WCF::getUser()->checkPermission('admin.system.package.canUpdatePackage');
     }
     // check master password
     WCFACP::checkMasterPassword();
     parent::show();
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:14,代码来源:PackageStartInstallForm.class.php

示例8: show

 /**
  * @see Form::show()
  */
 public function show()
 {
     // set active menu item
     WCFACP::getMenu()->setActiveMenuItem($this->menuItemName);
     // check permission
     WCF::getUser()->checkPermission($this->permission);
     // check master password
     WCFACP::checkMasterPassword();
     // get user options and categories from cache
     $this->readCache();
     // show form
     parent::show();
 }
开发者ID:CaribeSoy,项目名称:contest-wcf,代码行数:16,代码来源:GroupAddForm.class.php

示例9: show

 /**
  * @see Form::show()
  */
 public function show()
 {
     // set active menu item
     WCFACP::getMenu()->setActiveMenuItem('wcf.acp.option.category.' . $this->category['categoryName']);
     // check permission
     WCF::getUser()->checkPermission('admin.system.canEditOption');
     if ($this->activeCategory == 'module') {
         // check master password
         WCFACP::checkMasterPassword();
     }
     // get options and categories from cache
     $this->readCache();
     // show form
     parent::show();
 }
开发者ID:CaribeSoy,项目名称:contest-wcf,代码行数:18,代码来源:OptionForm.class.php


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