Config CKFinder to Permission for User in Codeigniter System |
In: ckfinder/config.php
Default is: $baseUrl = 'static_url'; I want $baseUrl is dynamic by $user? For Example: $baseUrl = 'data/'.$user.'/images/';
It think you have to use sessions and read the user id from that. I found an article maybe this can help you:
http://realmofwriting.com/integrating-ck...ework-php/
$session_id = $_COOKIE['ci_session'];
$content = file_get_contents(dirname(__FILE__) . '/../../application/cache/ci_session/ci_session' . $session_id); session_start(); session_decode($content); |
Welcome Guest, Not a member yet? Register Sign In |