Welcome Guest, Not a member yet? Register   Sign In
Config CKFinder to Permission for User in Codeigniter System
#1
Thumbs Up 

In: ckfinder/config.php

Default is:
$baseUrl = 'static_url';

I want $baseUrl is dynamic by $user?

For Example:
$baseUrl = 'data/'.$user.'/images/';
Reply
#2

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/

Reply
#3

$session_id = $_COOKIE['ci_session'];
$content = file_get_contents(dirname(__FILE__) . '/../../application/cache/ci_session/ci_session' . $session_id);
session_start();
session_decode($content);
Reply




Theme © iAndrew 2016 - Forum software by © MyBB