2016-11-17 45 views
6

我正在用ckeditor和ckeditor一起使用。虽然kcfinder的配置文件改变disabled to false是没有问题的,但与您没有浏览服务器的权限?

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

覆盖它,我无法浏览&上传文件there.Message弹出您显示没有权限浏览服务器。 (框架使用CI 3.x.)

+0

的browse.php看看[这个答案](http://stackoverflow.com/questions/13760367/kcfinder-you-do-no-have-permission-to-list-the-files?rq = 1) –

+0

可能的重复: http://stackoverflow.com/questions/13760367/kcfinder-you-do -not-have-permission-to-list-the-files?rq = 1 – Ronald

回答

7

试试这个。做以下修改主index.php文件

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

,并把这个代码在kcfinder

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

这对我有用。感谢使它browse.php –

相关问题