You do not have permission to view the server?

I am using kcfinder with ckeditor. When changing disabled to false , there is no problem in the kcfinder configuration file, but when overriding it with

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

I can not view and upload files there. A message appears stating that you do not have permission to view the server. (CI 3.x framework is used.)

+6
source share
1 answer

Try it. Make the following changes to the main index.php file

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

And put this code in browse.php from kcfinder

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

Source: https://habr.com/ru/post/1012404/


All Articles