Is there anyone who can explain how to get CKFinder working easily as the auth section is driving me mad!
I don't understand what I need to put/change to made the auth area work.
Please please someone help me as it is driving me mad to get this working.
Error message:
I don't understand what I need to put/change to made the auth area work.
Please please someone help me as it is driving me mad to get this working.
function CheckAuthentication()
{
//WARNING : DO NOT simply return "true". By doing so, you are allowing
//"anyone" to upload and list the files in your server. You must implement
//some kind of session validation here. Even something very simple as...
// return isset($_SESSION['IsAuthorized']) && $_SESSION['IsAuthorized'];
//... where $_SESSION['IsAuthorized'] is set to "true" as soon as the
//user logs in your system.
((IS THIS RIGHT->)) return isset($_SESSION['CKFinder_UserRole']) && $_SESSION['admin'];
}
Error message:
The file browser is disabled for security reasons. Please contact your system administrator and check the CKFinder configuration file.
Re: CheckAuthentication() function (PHP) - PLEASE PLEASE HELP ME
Please note, that as written in comments in the configuration file, you should return "true" only for users that should have access to file uploads.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: CheckAuthentication() function (PHP) - PLEASE PLEASE HELP ME
Re: CheckAuthentication() function (PHP) - PLEASE PLEASE HELP ME
I have done this:
$_SESSION['auth'] is set to something (ie exists) when my user is authenticated and is not set when the user isn't logged in.
It seems to make sense to me but CKFinder keeps returning false and not giving me access.
Can somebody please point me in the right direction?
Re: CheckAuthentication() function (PHP) - PLEASE PLEASE HELP ME
in config.php
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: CheckAuthentication() function (PHP) - PLEASE PLEASE HELP ME
Re: CheckAuthentication() function (PHP) - PLEASE PLEASE HELP ME
In the case of CakePHP, that still doesn't work actually.
Cake has a unique session id and the name of the session must be set before session_start() is called on the top of config.php.
You may check out the tutorial I have posted here to get your authentication working.
http://blog.beamstyle.com.hk/?p=170