FluxBB论坛

FluxBB是什么?需要您用心体会。

您尚未登录。

#1 测试版块 » 发帖错误修复 » 2025-12-22 03:32:44

admin
回复: 1

找到文件/include/functions.php

将如下函数:

admin 说:

function generate_stopwords_cache_id()

替换为:

admin 说:

function generate_stopwords_cache_id()
{
    $base = PUN_ROOT.'lang/';
    $hash = array();

    if (!is_dir($base))
        return 'cache_id_error';

    $langs = scandir($base);
    if ($langs === false)
        return 'cache_id_error';

    foreach ($langs as $lang) {
        if ($lang == '.' || $lang == '..')
            continue;

        $file = $base.$lang.'/stopwords.txt';
        if (is_file($file)) {
            $hash[] = $file;
            $hash[] = filemtime($file);
        }
    }

    if (empty($hash))
        return 'cache_id_error';

    return sha1(implode('|', $hash));
}

#3 测试版块 » 示例帖子 » 2025-12-20 05:59:47

admin
回复: 0

如果您在阅读这个帖子(我猜正是如此),安装的 FluxBB 已经开始工作!现在您可以登录,并进入顶部的管理设置面板来配置您的论坛。

页脚

Powered by FluxBB