/** * @see wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array( 'availableUpdates' => $this->availableUpdates )); }
/** * @see wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array( 'applicationList' => $this->applicationList )); }
/** * @see \wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); // get phpinfo() output ob_start(); phpinfo(); $info = ob_get_contents(); ob_end_clean(); // parse output $info = preg_replace('%^.*<body>(.*)</body>.*$%s', '$1', $info); // style fixes // remove first table $info = preg_replace('%<table.*?</table>(<br />)?%s', '', $info, 1); // float logos $info = preg_replace('%<img([^>]*)>%s', '<img style="float:right" \\1>', $info, 1); // fix tables $info = preg_replace('%<h2>(.*?)</h2>\\s*<table( border="0" cellpadding="3" width="600")?>%', '<div class="tabularBox tabularBoxTitle marginTop"><header><h2>\\1</h2></header><table class="table" style="table-layout:fixed;">', $info); $info = preg_replace('%<table( border="0" cellpadding="3" width="600")?>%', '<div class="tabularBox marginTop"><table class="table" style="table-layout:fixed;">', $info); $info = preg_replace('%<tr><td class="e">(\\w+ )<\\/td><\\/tr>%', '<tr><td class="e">\\1</td><td></td></tr>', $info); $info = str_replace('</table>', '</table></div>', $info); // fix display of disable_functions & disable_classes $info = preg_replace_callback('%<td class="e">disable_(?P<t>functions|classes)</td><td class="v">(?P<l>.*?)</td><td class="v">(?P<m>.*?)</td>%s', function ($match) { $ret = '<td class="e">disable_' . $match['t'] . '</td>'; $ret .= '<td class="v">' . str_replace(' ', ', ', rtrim(wordwrap(str_replace(',', ' ', $match['l'])))) . '</td>'; $ret .= '<td class="v">' . str_replace(' ', ', ', rtrim(wordwrap(str_replace(',', ' ', $match['m'])))) . '</td>'; return $ret; }, $info); WCF::getTPL()->assign(array('phpInfo' => $info)); }
/** * @see wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array( 'footerItems' => $this->footerItems, 'headerItems' => $this->headerItems )); }
/** * @see \wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); $lastEventTime = $this->eventList->getLastEventTime(); // removes orphaned and non-accessable events UserActivityEventHandler::validateEvents($this->eventList); DashboardHandler::getInstance()->loadBoxes('com.woltlab.wcf.user.MembersListPage', $this); WCF::getTPL()->assign(array('eventList' => $this->eventList, 'lastEventTime' => $lastEventTime, 'sidebarCollapsed' => UserCollapsibleContentHandler::getInstance()->isCollapsed('com.woltlab.wcf.collapsibleSidebar', 'com.woltlab.wcf.user.MembersListPage'), 'sidebarName' => 'com.woltlab.wcf.user.MembersListPage', 'allowSpidersToIndexThisPage' => true)); }
/** * @see wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); $periodform = $this->buildFilterHtml(); $results = ''; if (isset($_POST) && !empty($_POST)) { $url = 'http://api.schloebe.de/brunzenbaer/api.php?action=get&year=' . $_POST['yearPeriod'] . '&month=' . $_POST['monthPeriod'] . ''; $json = file_get_contents($url); $json = json_decode($json); $results = $this->buildResultsHtml($json); } WCF::getTPL()->assign(array('periodform' => $periodform, 'results' => $results)); }
/** * @see \wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); $usersAwaitingApproval = 0; if (REGISTER_ACTIVATION_METHOD == 2) { $sql = "SELECT\tCOUNT(*) AS count\n\t\t\t\tFROM\twcf" . WCF_N . "_user\n\t\t\t\tWHERE\tactivationCode <> 0"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(); $row = $statement->fetchArray(); $usersAwaitingApproval = $row['count']; } WCF::getTPL()->assign(array('inRescueMode' => RequestHandler::getInstance()->inRescueMode(), 'server' => $this->server, 'usersAwaitingApproval' => $usersAwaitingApproval)); }
/** * @see wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); $health = 'success'; if (!empty($this->healthDetails['error'])) $health = 'error'; else if (!empty($this->healthDetails['warning'])) $health = 'warning'; else if (!empty($this->healthDetails['info'])) $health = 'info'; WCF::getTPL()->assign(array( 'didYouKnow' => $this->didYouKnow, 'health' => $health, 'healthDetails' => $this->healthDetails )); }
/** * @see \wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('entry' => $this->entry, 'entryID' => $this->entryID, 'hasMarkedItems' => ClipboardHandler::getInstance()->hasMarkedItems(ClipboardHandler::getInstance()->getObjectTypeID('de.incenduium.filebase.file')), 'userProfile' => $this->userProfile, 'commentCanAdd' => WCF::getUser()->userID && WCF::getSession()->getPermission('user.filebase.canAddComment'), 'commentList' => $this->commentList, 'commentObjectTypeID' => $this->commentObjectTypeID, 'fileList' => $this->fileList, 'lastCommentTime' => $this->commentList ? $this->commentList->getMinCommentTime() : 0, 'likeData' => MODULE_LIKE && $this->commentList ? $this->commentList->getLikeData() : array(), 'userEntryList' => $this->userEntryList, 'tags' => $this->tags, 'entryLikeData' => $this->entryLikeData, 'attachmentList' => $this->entry->getAttachments(), 'allowSpidersToIndexThisPage' => true)); }
/** * @see \wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); \wcf\system\WCF::getTPL()->assign('availableLocales', $this->availableLocales); }
/** * @see \wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); // assign page parameters WCF::getTPL()->assign(array('pageNo' => $this->pageNo, 'pages' => $this->pages, 'items' => $this->items, 'itemsPerPage' => $this->itemsPerPage, 'startIndex' => $this->startIndex, 'endIndex' => $this->endIndex, 'objects' => $this->objectList)); }
/** * @see \wcf\page\AbstractPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('subscriptions' => $this->subscriptions, 'userSubscriptions' => $this->userSubscriptionList)); }
public function assignVariables() { parent::assignVariables(); DashboardHandler::getInstance()->loadBoxes('de.codequake.cms.news.news', $this); WCF::getTPL()->assign(array('newsID' => $this->newsID, 'news' => $this->news, 'likeData' => MODULE_LIKE && $this->commentList ? $this->commentList->getLikeData() : array(), 'newsLikeData' => $this->likeData, 'commentCanAdd' => WCF::getUser()->userID && WCF::getSession()->getPermission('user.cms.news.canAddComment'), 'commentList' => $this->commentList, 'commentObjectTypeID' => $this->commentObjectTypeID, 'tags' => $this->tags, 'lastCommentTime' => $this->commentList ? $this->commentList->getMinCommentTime() : 0, 'attachmentList' => $this->news->getAttachments(), 'allowSpidersToIndexThisPage' => true, 'sidebarCollapsed' => UserCollapsibleContentHandler::getInstance()->isCollapsed('com.woltlab.wcf.collapsibleSidebar', 'de.codequake.cms.news.news'), 'sidebarName' => 'de.codequake.cms.news.news')); }
/** * @see \wcf\page\AbstractPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); MessageQuoteManager::getInstance()->assignVariables(); WCF::getTPL()->assign(array('allowSpidersToIndexThisPage' => true, 'attachmentList' => $this->entry->getAttachments(), 'commentCanAdd' => WCF::getSession()->getPermission('user.news.canWriteComment'), 'commentList' => $this->commentList, 'commentObjectTypeID' => $this->objectTypeID, 'lastCommentTime' => $this->commentList->getMinCommentTime(), 'likeData' => MODULE_LIKE ? $this->commentList->getLikeData() : array(), 'entry' => $this->entry, 'entryLikeData' => $this->entryLikeData, 'sidebarCollapsed' => UserCollapsibleContentHandler::getInstance()->isCollapsed('com.woltlab.wcf.collapsibleSidebar', 'de.incendium.cms.NewsEntryPage'), 'sidebarName' => 'de.incendium.cms.NewsPage', 'tags' => $this->tags, 'moreEntryList' => $this->moreEntryList)); }
/** * @see \wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('categoryList' => $this->categoryList, 'stats' => $this->stats, 'featuredEntryList' => $this->featuredEntryList, 'allowSpidersToIndexThisPage' => true)); }
/** * @see \wcf\page\AbstractPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('endDate' => $this->endDate, 'startDate' => $this->startDate, 'availableObjectTypes' => $this->availableObjectTypes)); }
/** * @see wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array( 'addController' => $this->addController, 'categoryNodeList' => $this->categoryNodeList, 'collapsedCategoryIDs' => $this->collapsedCategoryIDs, 'collapsibleObjectTypeID' => $this->collapsibleObjectTypeID, 'editController' => $this->editController, 'objectType' => $this->objectType )); if ($this->pageTitle) { WCF::getTPL()->assign('pageTitle', $this->pageTitle); } }
/** * @see \wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('objects' => $this->languageItemList, 'count' => $this->count, 'pageNo' => $this->pageNo, 'languageID' => $this->languageID, 'languageCategoryID' => $this->languageCategoryID, 'languageItem' => $this->languageItem, 'languageItemValue' => $this->languageItemValue, 'hasCustomValue' => $this->hasCustomValue, 'availableLanguages' => $this->availableLanguages, 'availableLanguageCategories' => $this->availableLanguageCategories)); }
/** * @see \wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('productData' => $this->productData, 'updateServers' => $this->updateServers, 'wcfMajorReleases' => $this->wcfMajorReleases)); }
/** * @see wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('applications' => $this->applicationList, 'plugins' => $this->pluginList, 'pluginsCount' => $this->pluginCount)); }
/** * @see wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array( 'archive' => $this->packageInstallationDispatcher->getArchive(), 'requiredPackages' => $this->requirements, 'missingPackages' => $this->missingPackages, 'excludingPackages' => $this->packageInstallationDispatcher->getArchive()->getConflictedExcludingPackages(), 'excludedPackages' => $this->packageInstallationDispatcher->getArchive()->getConflictedExcludedPackages(), 'queueID' => $this->queue->queueID )); }
/** * @see \wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('entry' => $this->entry, 'entryID' => $this->entryID, 'userProfile' => $this->userProfile, 'commentCanAdd' => WCF::getUser()->userID && WCF::getSession()->getPermission('user.linklist.canAddComment'), 'commentList' => $this->commentList, 'commentObjectTypeID' => $this->commentObjectTypeID, 'lastCommentTime' => $this->commentList ? $this->commentList->getMinCommentTime() : 0, 'likeData' => MODULE_LIKE && $this->commentList ? $this->commentList->getLikeData() : array(), 'userEntryList' => $this->userEntryList, 'tags' => $this->tags, 'entryLikeData' => $this->entryLikeData, 'attachmentList' => $this->entry->getAttachments(), 'allowSpidersToIndexThisPage' => true)); }
/** * @see \wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('hasMarkedItems' => ClipboardHandler::getInstance()->hasMarkedItems(ClipboardHandler::getInstance()->getObjectTypeID('de.codequake.cms.page')), 'objectTypeList' => $this->objectTypeList, 'pageList' => $this->pageList)); }
/** * @see \wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign('items', $this->items); }
/** * @see \wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); // assign default variables WCF::getTPL()->assign(array('activeTabMenuItem' => $this->activeTabMenuItem, 'errorField' => $this->errorField, 'errorType' => $this->errorType)); }
/** * @see \wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('objectTypes' => $this->objectTypes)); }
/** * @see wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign('package', $this->package); }
/** * @see \wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('objectTypes' => $this->objectTypes, 'showInnoDBWarning' => $this->showInnoDBWarning)); }
/** * @see \wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('editOnInit' => $this->editOnInit, 'overviewObjectType' => $this->objectType, 'profileContent' => $this->profileContent, 'userID' => $this->userID, 'user' => $this->user, 'followers' => $this->followerList->getObjects(), 'followerCount' => $this->followerList->countObjects(), 'following' => $this->followingList->getObjects(), 'followingCount' => $this->followingList->countObjects(), 'visitors' => $this->visitorList !== null ? $this->visitorList->getObjects() : array(), 'visitorCount' => $this->visitorList !== null ? $this->visitorList->countObjects() : 0, 'allowSpidersToIndexThisPage' => true, 'isAccessible' => UserGroup::isAccessibleGroup($this->user->getGroupIDs()))); }
/** * @see \wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('categoryID' => $this->categoryID, 'categoryList' => $this->categoryList, 'pictures' => $this->categoryID ? $this->pictureList->getObjects() : array())); }