本文整理汇总了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();
}
示例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);
}
示例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;
}
示例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;
}
}
示例5: show
/**
* @see Page::show()
*/
public function show()
{
// check master password
WCFACP::checkMasterPassword();
parent::show();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}