CKFinder 3 - 出于安全原因禁用文件浏览器

Ric*_*mse 4 php ckfinder

我对 CKFIder 很陌生,我收到了错误

出于安全原因,文件浏览器被禁用。请联系您的系统管理员并检查 CKFinder 配置文件。

我在网站上看了一下,如下所示:

http://ckeditor.com/forums/Support/file-browser-disabled-for-security-reasons

http://ckeditor.com/forums/Support/File-browser-disabled

http://ckeditor.com/forums/Support/file-browser-disabled-for-security-reasons

他们都在 config.php 文件中提到了一个名为 的函数checkAuthentication(),但我搜索了所有文件,但无法确定该函数。

论坛上所有其他出现相同错误的人都使用 CKFinder 2,而我找不到另一个使用 v3 出现错误的人

我确实相信它只是我忽略的一些小东西。

提前谢谢

小智 6

返回trueauthentication显然是不安全的。请查看此处以查看一些展示如何使用此选项的示例。

  • 在配置设置部分开始之前,我通过在页面顶部的 config.php 文件中将 CodeIgniter 会话的值定义为正确的变量来获得所有正确的变量 (2认同)

Kha*_*dra 5

转到 ckfinder/config.php

找到以下行

$config['authentication'] = function () {
return false;
Run Code Online (Sandbox Code Playgroud)

};

在这里将 false 变为 true。

$config['authentication'] = function () {
return true;
Run Code Online (Sandbox Code Playgroud)

};