Hi all,
Getting lost here as I beleive my config is all correct.
I have ckfinder working stand alone perfectly but when I integrate with ckeditor, it doesn't show the folders!?
Here is my standalone ckfinder:
http://bluebell.danielprocter.com/ckfinder.php
Here is my ckeditor integrated with ckeditor:
http://bluebell.danielprocter.com/ckeditor.php
Both are pointing to the same codebase of ckfinder
I have read the docs and feel my config is right but i feel i have missed something.
Any help would be greatly appreciated
Fri, 01/20/2012 - 15:22
#1
Re: ckfinder works stand alone but not as part of ckeditor!
function CheckAuthentication()
{
return true;
}
From false to true.
Walter
Re: ckfinder works stand alone but not as part of ckeditor!
Re: ckfinder works stand alone but not as part of ckeditor!
You have to segure the file using sessions, let me show...
<?php
//initialize the session
if (!isset($_SESSION)) {
session_start();
}
/*
* ### CKFinder : Configuration File - Basic Instructions
*
* In a generic usage case, the following tasks must be done to configure
* CKFinder:
* 1. Check the $baseUrl and $baseDir variables;
* 2. If available, paste your license key in the "LicenseKey" setting;
* 3. Create the CheckAuthentication() function that enables CKFinder for authenticated users;
*
* Other settings may be left with their default values, or used to control
* advanced features of CKFinder.
*/
/**
* This function must check the user session to be sure that he/she is
* authorized to upload and access files in the File Browser.
*
* @return boolean
*/
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. To be able to use session variables don't
// forget to add session_start() at the top of this file.
if (isset($_SESSION['MM_Username'])) {
return true;
}
}
Re: ckfinder works stand alone but not as part of ckeditor!
But if it works for stand alone and not as part of ckeditor, surely its something other than CHeckAUthentication as surely the standalone also runs that function?
Cheers,
DAn
Re: ckfinder works stand alone but not as part of ckeditor!
My apologies! I provided bad links...
My working stand alone implementation:
http://bluebell.danielprocter.com/ckfinder.php
My NOT working integrated finder into ckeditor:
http://bluebell.danielprocter.com/ckeditor.php
Both above URLs point to the SAME ckfinder codebase...
As you can see, the standalone works perfectly but the integrated one shows no list of folders?
Re: ckfinder works stand alone but not as part of ckeditor!
Use this command for the integration:
Re: ckfinder works stand alone but not as part of ckeditor!
Thank you! SPot on