By thelanyard on
Hello all. I'm trying to get CKFinder 1.1 up and running with the newest FCKeditor module and am running into a snag. It has an authoriation check function that returns whether the user is allowed to use ckfinder and I can't figure out what to put in the function to make it work. I can just return 'true' and that works but they warn against unconditional use like that. user_access() and $_SESSION seem to return nothing here. Any ideas?
Comments
Try this
Replace the empty function with the following, in the config.php:
Please note that you have to call it once in the config.php straight after declaration, because in CKFinder CheckAuthentication() is called after sending initial XML data and there are some problems with initializing session at the later stage. It doesn't affect on performance, because the $authenticated variable is calculated only once.
Wiktor Walc
http://www.fckeditor.net
"Support Open Source Software"
Wiktor Walc
http://ckeditor.com
"Support Open Source Software"
Thanks for the help Wiktor,
Thanks for the help Wiktor, but adding that code gives an XML error of OK(200):
Server response:
Status: 200
Response text:
I've tried this on two different installations on two different servers (Apache) and am accessing it with Firefox 2.0.0.12 and using Drupal 5.6.
In the above code, right
In the above code, right under
$authenticated = user_access("allow fckeditor file uploads");
Please add a line
chdir($cwd);
Then your problem will be fixed.
After that, please make sure you have set $cookie_domain value in your settings.php file. It took me a couple of hours to figure all these out and put them together. So I gathered all I had to do in my blog Add ckfinder to Drupal FCKeditor module.
--------
www.imminentweb.com
Read this thread at the
Read this thread at the FCKeditor forums. I posted a followup with some instructions to get it working!