/** * @see wcf\page\IPage::show() */ public function show() { parent::show(); // check master password WCFACP::checkMasterPassword(); switch ($this->action) { case 'install': case 'update': if ($this->action == 'install') { WCF::getSession()->checkPermissions(array('admin.system.package.canInstallPackage')); } else { WCF::getSession()->checkPermissions(array('admin.system.package.canUpdatePackage')); } $queue = new PackageInstallationQueue($this->queueID); $dispatcher = new PackageInstallationDispatcher($queue); $dispatcher->beginInstallation(); break; case 'rollback': // TODO die('ROLLBACK'); //WCF::getSession()->checkPermissions(array('admin.system.package.canInstallPackage')); break; case 'openQueue': PackageInstallationDispatcher::openQueue($this->parentQueueID, $this->processNo); break; case 'startUninstall': WCF::getSession()->checkPermissions(array('admin.system.package.canUninstallPackage')); PackageUninstallationDispatcher::checkDependencies(); break; } }
/** * @see wcf\page\IPage::show() */ public function show() { // set active menu item ACPMenu::getInstance()->setActiveMenuItem('wcf.acp.menu.link.package.autoupdate'); // check master password WCFACP::checkMasterPassword(); parent::show(); }
/** * @see wcf\page\IPage::show() */ public function show() { // use detailed view if accessing WCF ACP directly if (PACKAGE_ID == 1) { // base tag is determined on runtime $host = RouteHandler::getHost(); $path = RouteHandler::getPath(); HeaderUtil::redirect($host . $path . 'index.php/PackageListDetailed/' . SID_ARG_1ST, false); exit; } // enable menu item ACPMenu::getInstance()->setActiveMenuItem('wcf.acp.menu.link.package.list'); parent::show(); }
/** * @see \wcf\page\IPage::show() */ public function show() { // check package installation queue if ($this->action == 'WCFSetup') { $queueID = PackageInstallationDispatcher::checkPackageInstallationQueue(); if ($queueID) { WCF::getTPL()->assign(array('queueID' => $queueID)); WCF::getTPL()->display('packageInstallationSetup'); exit; } } // show page parent::show(); }
/** * @see \wcf\page\IPage::show() */ public function show() { // update profile hits if ($this->user->userID != WCF::getUser()->userID && !WCF::getSession()->spiderID && !$this->user->isProtected()) { $editor = new UserEditor($this->user->getDecoratedObject()); $editor->updateCounters(array('profileHits' => 1)); // save visitor if (PROFILE_ENABLE_VISITORS && WCF::getUser()->userID && !WCF::getUser()->canViewOnlineStatus) { if (($visitor = UserProfileVisitor::getObject($this->user->userID, WCF::getUser()->userID)) !== null) { $editor = new UserProfileVisitorEditor($visitor); $editor->update(array('time' => TIME_NOW)); } else { UserProfileVisitorEditor::create(array('ownerID' => $this->user->userID, 'userID' => WCF::getUser()->userID, 'time' => TIME_NOW)); } } } parent::show(); }
/** * @see wcf\page\IPage::show() */ public function show() { // enable menu item ACPMenu::getInstance()->setActiveMenuItem('wcf.acp.menu.link.package'); parent::show(); }
/** * @see \wcf\page\IPage::show() */ public function show() { parent::show(); if (!$this->tiny && !$this->thumbnail) { // update download count $editor = new AttachmentEditor($this->attachment); $editor->update(array('downloads' => $this->attachment->downloads + 1, 'lastDownloadTime' => TIME_NOW)); } // send file to client $this->fileReader->send(); exit; }
/** * @see wcf\page\IPage::show() */ public function show() { // check master password WCFACP::checkMasterPassword(); if ($this->action == 'install') { WCF::getSession()->checkPermissions(array('admin.system.package.canInstallPackage')); } else { WCF::getSession()->checkPermissions(array('admin.system.package.canUpdatePackage')); } parent::show(); }
/** * @see \wcf\page\IPage::show() */ public function show() { parent::show(); // update download counter if (!WCF::getUser()->userID || WCF::getUser()->userID != $this->entry->userID) { $editor = new EntryEditor($this->entry); $editor->updateCounters(array('downloads' => 1)); $editor = new EntryFileEditor($this->file); $editor->updateCounters(array('downloads' => 1)); } // send file to client $this->fileReader->send(); exit; }
/** * @see \wcf\page\Page::show() */ public function show() { // set active tab UserMenu::getInstance()->setActiveMenuItem('wcf.user.menu.settings.paidSubscription'); parent::show(); }
/** * @see \wcf\page\IPage::assignVariables() */ public function show() { // check master password WCFACP::checkMasterPassword(); parent::show(); }
/** * @see \wcf\page\IPage::show() */ public function show() { parent::show(); // register visit VisitCountHandler::getInstance()->count(); // count click $pageEditor = new PageEditor($this->page); $pageEditor->updateCounters(array('clicks' => 1)); }
/** * @see \wcf\page\IPage::show() */ public function show() { parent::show(); $this->fileReader->send(); exit; }