7

I am using kcfinder with ckeditor. While changing disabled to false in config file of kcfinder there is no problem but on overriding it with

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

i am unable to browse & upload files there.Message pop up's showing you don't have permission to browse the server. (framework used CI 3.x.)

4

1 に答える 1

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');
于 2016-11-23T10:20:03.610 に答える