/** * @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(); }
/** * @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); }
/** * @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; }
/** * @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; } }
/** * @see Page::show() */ public function show() { // check master password WCFACP::checkMasterPassword(); parent::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(); }
/** * @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(); }
/** * @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(); }
/** * @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(); }