/** * @see Page::readData() */ public function readData() { // read variables $this->availableLanguages = WCF::getLanguage()->getAvailableLanguageCodes(); $this->languageID = WCF::getLanguage()->getLanguageID(); // call parent parent::readData(); }
/** * @see Page::readData() */ public function readData() { parent::readData(); // get installation stack if ($this->packageInstallationStack !== null && $this->packageUpdate !== null) { $this->packageInstallationStack = $this->packageUpdate->getPackageInstallationStack(); } }
/** * @see Page::readData() */ public function readData() { parent::readData(); // get available groups $this->groups = Group::getAccessibleGroups(array(), array(Group::GUESTS, Group::EVERYONE)); if (!count($_POST)) { // default value $this->groupID = Group::getGroupIdByType(Group::USERS); } }
/** * @see Page::readData() */ public function readData() { ACPForm::readData(); $this->availableTemplatePacks = TemplatePack::getSelectList(array($this->templatePackID)); // default values if (!count($_POST)) { $this->templatePackName = $this->templatePack->templatePackName; $this->templatePackFolderName = $this->templatePack->templatePackFolderName; $this->parentTemplatePackID = $this->templatePack->parentTemplatePackID; } }
/** * @see Page::readData() */ public function readData() { parent::readData(); if ($this->style->templatePackID) { require_once WCF_DIR . 'lib/data/template/TemplatePack.class.php'; $templatePack = new TemplatePack($this->style->templatePackID); if ($templatePack->templatePackID) { $this->canExportTemplates = true; } } $variables = $this->style->getVariables(); if (!empty($variables['global.icons.location']) && $variables['global.icons.location'] != 'icons/') { $this->canExportIcons = true; } $this->imagesLocation = $variables['global.images.location']; $this->iconsLocation = $variables['global.icons.location']; require_once WCF_DIR . 'lib/data/template/TemplatePack.class.php'; $templatePack = new TemplatePack($this->style->templatePackID); $this->templatePackName = $templatePack->templatePackName; }
/** * @see Page::readData() */ public function readData() { parent::readData(); // get default values if (!count($_POST)) { if ($this->userSuspension->expires != 0) { $expires = DateUtil::getLocalTimestamp($this->userSuspension->expires); $this->expiresDay = gmdate('j', $expires); $this->expiresMonth = gmdate('n', $expires); $this->expiresYear = gmdate('Y', $expires); $this->expiresHour = gmdate('G', $expires); $this->expiresMinute = gmdate('i', $expires); $this->expiresMinute -= $this->expiresMinute % 5; } } }
/** * @see Page::readData() */ public function readData() { parent::readData(); $this->availableTemplatePacks = TemplatePack::getSelectList(); }
/** * @see Page::readData() */ public function readData() { parent::readData(); // extract realm if (preg_match('/realm="(.*?)"/i', $this->header, $match)) { $this->realm = $match[1]; } // get existing auth data if ($this->packageUpdateServerID) { require_once WCF_DIR . 'lib/acp/package/update/UpdateServer.class.php'; $updateServer = new UpdateServer($this->packageUpdateServerID); $authData = $updateServer->getAuthData(); if (isset($authData['htUsername'])) { $this->htUsername = $authData['htUsername']; } if (isset($authData['htPassword'])) { $this->htPassword = $authData['htPassword']; } if (isset($authData['htUsername']) || isset($authData['htPassword'])) { $this->errorField = 'htPassword'; $this->errorType = 'invalid'; } } $this->buildPostParameters(); $this->buildGetParameters(); }
/** * @see Page::assignVariables() */ public function readData() { parent::readData(); if (!count($_POST)) { // get marked user ids if (empty($this->action)) { $markedUsers = WCF::getSession()->getVar('markedUsers'); if (is_array($markedUsers)) { $this->userIDs = implode(',', $markedUsers); } if (empty($this->userIDs)) { throw new IllegalLinkException(); } } } if (!empty($this->userIDs)) { $this->users = User::getUsers($this->userIDs); } $this->groups = Group::getAccessibleGroups(array(), array(Group::GUESTS, Group::EVERYONE)); }
/** * @see Page::readData() */ public function readData() { parent::readData(); // get available groups $this->groups = Group::getAccessibleGroups(array(), array(Group::GUESTS, Group::EVERYONE)); if (!count($_POST)) { // default value $this->groupID = $this->avatar->groupID; $this->neededPoints = $this->avatar->neededPoints; $this->avatarCategoryID = $this->avatar->avatarCategoryID; } }
/** * @see Page::readData() */ public function readData() { parent::readData(); // get categories $this->classes = ContestClass::getClasses(); }
/** * @see Page::readData() */ public function readData() { parent::readData(); $attachmentList = new AttachmentList(); // get available container types $this->availableContainerTypes = $attachmentList->getAvailableContainerTypes(); // get available file types $this->availableFileTypes = $attachmentList->getAvailableFileTypes(); }
/** * @see Page::readData() */ public function readData() { parent::readData(); // get tables $this->readTables(); }
/** * @see Page::readData() */ public function readData() { parent::readData(); if (!count($_POST)) { $this->url = WCF::getSession()->requestURI; } }
/** * @see Page::readData() */ public function readData() { parent::readData(); // get logged tables $this->readLoggedTables(); }
/** * @see Page::readData() */ public function readData() { parent::readData(); $this->languages = Language::getLanguages(); }
/** * @see Page::readData() */ public function readData() { parent::readData(); if (!count($_POST)) { // default values $contentLanguages = 0; foreach ($this->languages as $languageID => $language) { if ($language['hasContent']) { $contentLanguages++; $this->languageIDs[] = $languageID; } } // add default language if (!in_array(Language::getDefaultLanguageID(), $this->languageIDs)) { $this->languageIDs[] = Language::getDefaultLanguageID(); } if ($contentLanguages > 1) { $this->enable = 1; } } $this->languageList = Language::getLanguages(); }
/** * @see Page::readData() */ public function readData() { parent::readData(); $this->readTemplates(); }
/** * @see Page::readData() */ public function readData() { parent::readData(); if (!count($_POST)) { // get marked user ids $markedUsers = WCF::getSession()->getVar('markedUsers'); if (is_array($markedUsers)) { $this->userIDs = $markedUsers; } if (!count($this->userIDs)) { throw new IllegalLinkException(); } } $this->users = User::getUsers(implode(',', $this->userIDs)); }
/** * @see Page::readData() */ public function readData() { parent::readData(); $this->availableStyles = StyleManager::getAvailableStyles(); }
/** * @see Page::readData() */ public function readData() { parent::readData(); if (!count($_POST)) { $this->untilDay = gmdate('j'); $this->untilMonth = gmdate('n'); $this->untilYear = gmdate('Y'); $timestamp = TIME_NOW - 24 * 3600 * 30; $this->fromDay = gmdate('j', $timestamp); $this->fromMonth = gmdate('n', $timestamp); $this->fromYear = gmdate('Y', $timestamp); } }
/** * @see Page::readData() */ public function readData() { parent::readData(); $this->availableSCM = SCMHelper::getSCM(); }
/** * @see Page::readData() */ public function readData() { parent::readData(); }
/** * @see Page::readData() */ public function readData() { parent::readData(); // boards $this->boardOptions = Board::getBoardSelect(array(), true, true); // language $this->languages = Language::getAvailableContentLanguages(); foreach ($this->languages as $languageID => $language) { $this->languages[$languageID] = WCF::getLanguage()->get('wcf.global.language.' . $language['languageCode']); } StringUtil::sort($this->languages); }
/** * @see Page::readData() */ public function readData() { parent::readData(); // get default values if (!count($_POST)) { $sql = "SELECT\t*\n\t\t\t\tFROM\twcf" . WCF_N . "_style_to_package"; $result = WCF::getDB()->sendQuery($sql); while ($row = WCF::getDB()->fetchArray($result)) { if ($row['isDefault']) { $this->defaultStyleIDArray[$row['packageID']] = $row['styleID']; } if ($row['disabled']) { if (!isset($this->disabledStyleIDArray[$row['packageID']])) { $this->disabledStyleIDArray[$row['packageID']] = array(); } $this->disabledStyleIDArray[$row['packageID']][] = $row['styleID']; } } } // get standalone packages $sql = "SELECT\tpackage.*,\n\t\t\t\tCASE WHEN package.instanceName <> '' THEN package.instanceName ELSE package.packageName END AS packageName\n\t\t\tFROM\twcf" . WCF_N . "_package package\n\t\t\tWHERE\tpackage.packageID IN (\n\t\t\t\t\tSELECT\tpackageID\n\t\t\t\t\tFROM\twcf" . WCF_N . "_package_dependency\n\t\t\t\t\tWHERE\tdependency IN (\n\t\t\t\t\t\t\tSELECT\tpackageID\n\t\t\t\t\t\t\tFROM\twcf" . WCF_N . "_package\n\t\t\t\t\t\t\tWHERE\tpackage = 'com.woltlab.wcf.system.style'\n\t\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\tAND standalone = 1"; $result = WCF::getDB()->sendQuery($sql); while ($row = WCF::getDB()->fetchArray($result)) { $this->packages[] = $row; } // get available styles $this->styles = Style::getStyles(); }
/** * @see Page::readData() */ public function readData() { parent::readData(); // get available styles $this->styles = Style::getStyles(); }
/** * @see Page::readData() */ public function readData() { parent::readData(); $this->readCategories(); }
/** * @see Page::readData() */ public function readData() { parent::readData(); $this->readHelpItems(); $this->makeHelpItemList(); }
/** * @see Page::readData() */ public function readData() { parent::readData(); $this->readClosedCategories(); $this->groups = Group::getAllGroups(); $this->readBoardPermissions(); $this->loadGlobalPermissions(); }
/** * @see Page::readData() */ public function readData() { parent::readData(); $this->users = User::getUsers(implode(',', $this->userIDArray)); }