您没有权限浏览服务器?

时间:2016-11-17 10:47:38

标签: php codeigniter ckeditor kcfinder

我正在使用kcfinder和ckeditor。在kcfinder的配置文件中更改disabled to false时,没有问题,但是用

覆盖它
$_SESSION['KCFINDER'] = array(
    'disabled' => false
);

我无法浏览&在那里上传文件。消息弹出显示您没有权限浏览服务器。 (框架使用CI 3.x。)

1 个答案:

答案 0 :(得分:7)

试试这个。对主index.php文件进行以下更改

//$system_path = 'system';
$system_path = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'system';
//$application_folder = 'application';
$application_folder = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'application';

将此代码放入kcfinder的browse.php

ob_start();
require_once('../index.php'); //path to main index file edited above
ob_end_clean();
$CI =& get_instance();
$CI->load->library('session');