FluxBB论坛

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

您尚未登录。

#1 2025-12-22 03:32:44

admin
管理员
注册时间: 2025-12-20
帖子: 10

发帖错误修复

找到文件/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));
}

离线

#2 2025-12-22 05:00:05

TMD
会员
注册时间: 2025-12-20
帖子: 3

Re: 发帖错误修复

牛逼克拉斯!

离线

页脚