예제 #1
0
    /**
     * Add pre-upgrade options: Form
     * 
     * @return	string	 HTML block
     */
    public function preInstallOptionsForm()
    {
        $_wrapper = "<ul>%s</ul>";
        $_html = '';
        $posts = $this->DB->buildAndFetch(array('select' => 'count(*) as total', 'from' => 'posts'));
        // Is 3.1?
        if (IPSSetUp::is300plus() && !IPSSetUp::is320plus()) {
            // Got more than 100K posts?
            if ($posts['total'] > 100000 && !$this->DB->checkForField('post_field_int', 'posts')) {
                $_html .= <<<EOF
\t\t<li>
\t\t\t<input type='checkbox' name='manualPostsTableQuery' value='1' checked='checked' />
\t\t\tВнести изменения в структуру таблицы Posts вручную?  На вашем форуме более 100,000 сообщений.  Мы <b>настоятельно рекомендуем</b> вам включить данную опцию и самостоятельно выполнить 
\t\t\tSQL запросы для обновления таблицы сообщений. Если вы отключите данную опцию существует большая вероятность того, что мастер обновления не сможет обновить форум.
\t\t</li>
EOF;
            }
        }
        $_html .= <<<EOF
\t\t<li>
\t\t\t<input type='checkbox' name='flagBanned' value='1' checked='checked' />
\t\t\t<strong>Отметить всех пользователей из группы "Забаненные", как забаненных</strong><br />
\t\t\tВ 3.3.0 удалена отдельная группа для заблокированных, теперь проверка осуществляется на основе метки для каждого пользователя. Возможно, что часть пользователей, отмеченных как
\t\t\tзабаненные, в результате такого переноса, не будут находится поиском в админ-центре при применении фильтра поиска по заблокированным.
\t\t\t<br />Мы рекомендуем воспользоваться этой опцией.
\t\t</li>
EOF;
        if ($_html) {
            return sprintf($_wrapper, $_html);
        } else {
            return '';
        }
    }
예제 #2
0
    /**
     * Add pre-upgrade options: Form
     * 
     * @return	string	 HTML block
     */
    public function preInstallOptionsForm()
    {
        $_wrapper = "<ul>%s</ul>";
        $_html = '';
        $posts = $this->DB->buildAndFetch(array('select' => 'count(*) as total', 'from' => 'posts'));
        // Is 3.1?
        if (IPSSetUp::is300plus() && !IPSSetUp::is320plus()) {
            // Got more than 100K posts?
            if ($posts['total'] > 100000 && !$this->DB->checkForField('post_field_int', 'posts')) {
                $_html .= <<<EOF
\t\t<li>
\t\t\t<input type='checkbox' name='manualPostsTableQuery' value='1' checked='checked' />
\t\t\tManually apply changes to the posts table?  Your site has more than 100,000 posts.  We <b>strongly recommend</b> that you enable this option and manually run the provided 
\t\t\tSQL query to alter your posts table in order to prevent timeouts in the web-based upgrader.  If you uncheck this option, it is very possible the upgrader will timeout attempting to
\t\t\tupdate your posts table.
\t\t</li>
EOF;
            }
        }
        $_html .= <<<EOF
\t\t<li>
\t\t\t<input type='checkbox' name='flagBanned' value='1' checked='checked' />
\t\t\t<strong>Flag all members in the Banned member group as banned</strong><br />
\t\t\t3.3.0 removes the need for a specific Banned Group and uses the built in 'flag' on a per-member basis. However, unless you choose to update all
\t\t\tmembers in the current Banned Group as 'banned' they may not appear when searching for banned members in the ACP.
\t\t\t<br />We recommend you keep this box ticked
\t\t</li>
EOF;
        if ($_html) {
            return sprintf($_wrapper, $_html);
        } else {
            return '';
        }
    }