hi there, hope you can help me.
i am a noob in php, so my questions maybe a bit stupid. i want to use ckfinder in fckeditor. i setup everething yet.
when i try to browse in ckfinder, theres a message, the tool is disabled. i read a lot about the CheckAuthentication
but i dont know whats that all about...
so, i got a htacces file one folder above. i enabled
return isset($_SESSION['IsAuthorized']) && $_SESSION['IsAuthorized'];
Re: ckfinder autorisation and htaccess
How does your .htaccess look like? Do you have there lines responsible for authentication?
Here's an example how to restrict access to a site/directory: http://www.apacheweek.com/features/userauth
Basically, if you already have a HTTP authentication enabled, you may return true in CheckAuthentication - but only, if you have to login first to access any of the CKFinder files (even when you point browser directly to that file), which is exactly what HTTP authentication does.
Do you authenticate in any way users that access FCKeditor?
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: ckfinder autorisation and htaccess
for everyone whos interested: the picture upload folder (mostly "userfiles") has to be outside the FCK folder, because of the htaccess. when its in that folder, everytime when you show pictures on frontend, it will ask for login.
so thanks for your help!
Re: ckfinder autorisation and htaccess
If FCKeditor is secured with .htaccess and CKFinder is inside of FCKeditor folder, then everything is ok.
If CKFinder is outside of FCKeditor folder, you must put there a similar .htaccess file that will restrict access to CKFinder directory.
To be more secure, you may change the body of CheckAuthentication() to something like:
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: ckfinder autorisation and htaccess
thanks for your help. i dont who created that tool, but its brilliant. thanks for such a tool!
regards