/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); $boards = AdminTools::cronThreadArchiveGetBoards(); if (isset($_POST['cronThreadArchiveSrc']) && is_array($_POST['cronThreadArchiveSrc'])) { foreach ($boards as $k => $v) { if (in_array($boards[$k]['boardID'], $_POST['cronThreadArchiveSrc'])) { $boards[$k]['SRC'] = true; } else { $boards[$k]['SRC'] = false; } } } WCF::getTPL()->assign(array('wbbExists' => AdminTools::wbbExists(), 'cronDelLogDays' => $this->cronDelLogDays, 'cronDelMovedThreadDays' => $this->cronDelMovedThreadDays, 'cronDelPmDays' => $this->cronDelPmDays, 'cronDbAnalyze' => $this->cronDbAnalyze, 'cronDbOptimize' => $this->cronDbOptimize, 'cronDbBackup' => $this->cronDbBackup, 'cronDelPmDaysExclUgrps' => $this->cronDelPmDaysExclUgrps, 'cronDelPmDaysExclUser' => $this->cronDelPmDaysExclUser, 'cronDelPmDaysExclFolder' => $this->cronDelPmDaysExclFolder, 'cronDelPmDaysShowInfo' => $this->cronDelPmDaysShowInfo, 'cronDelPmDaysShowExclInfo' => $this->cronDelPmDaysShowExclInfo, 'cronLogEnabled' => $this->cronLogEnabled, 'cronStatEnabled' => $this->cronStatEnabled, 'cronActive' => AdminTools::cronIsEnabled(), 'cronLogUseAdminEmail' => $this->cronLogUseAdminEmail, 'cronDelInactiveUserDays' => $this->cronDelInactiveUserDays, 'cronDelInactiveUserExclUgrps' => $this->cronDelInactiveUserExclUgrps, 'cronDelInactiveUserExcl' => $this->cronDelInactiveUserExcl, 'cronThreadArchiveDays' => $this->cronThreadArchiveDays, 'cronThreadArchiveBoards' => $boards, 'cronThreadArchiveTgt' => $this->cronThreadArchiveTgt, 'cronThreadArchiveExclPolls' => $this->cronThreadArchiveExclPolls, 'cronThreadArchiveExclAnnouncement' => $this->cronThreadArchiveExclAnnouncement, 'cronThreadArchiveExclSticky' => $this->cronThreadArchiveExclSticky, 'cronThreadArchiveExclClosed' => $this->cronThreadArchiveExclClosed, 'cronThreadArchiveExclDeleted' => $this->cronThreadArchiveExclDeleted, 'cronCleanUpSubscriptions' => $this->cronCleanUpSubscriptions, 'subscriptionsMsg' => $this->subscriptionsMsg)); }