CKFinder Quick Start Guide

This website contains links to software which is either no longer maintained or will be supported only until the end of 2019 (CKFinder 2). For the latest documentation about current CKSource projects, including software like CKEditor 4/CKEditor 5, CKFinder 3, Cloud Services, Letters, Accessibility Checker, please visit the new documentation website.

If you look for an information about very old versions of CKEditor, FCKeditor and CKFinder check also the CKEditor forum, which was closed in 2015. If not, please head to StackOverflow for support.

(code var removed)
(Missing </code> tag added)
 
Line 10: Line 10:
 
If the user is properly authenticated, the fuction should return <code>true</code>. We strongly recommend you to '''NOT''' simply return <code>true</code> from this function without implementing authentication checks. Without authentication support anonymous users would be able to use CKFinder on your website, including uploading and deleting files from your server.
 
If the user is properly authenticated, the fuction should return <code>true</code>. We strongly recommend you to '''NOT''' simply return <code>true</code> from this function without implementing authentication checks. Without authentication support anonymous users would be able to use CKFinder on your website, including uploading and deleting files from your server.
  
The following is a sample implementation of the <code>CheckAuthentication() function:
+
The following is a sample implementation of the <code>CheckAuthentication()</code> function:

Latest revision as of 12:53, 31 March 2011

This article describes how to get CKFinder up and running by adjusting some basic settings.

The CheckAuthentication() Function

By default, CKFinder will not work due to authentication restrictions. You must first make sure that you have configured it correctly, and then enable it.

Once you have completely configured CKFinder, you are ready to enable it for use. The CheckAuthentication() function is used for that. In this function you must implement the code ensuring that the requests are coming from an authenticated user. This is usually done by assigning a session variable when the user logs into your system.

If the user is properly authenticated, the fuction should return true. We strongly recommend you to NOT simply return true from this function without implementing authentication checks. Without authentication support anonymous users would be able to use CKFinder on your website, including uploading and deleting files from your server.

The following is a sample implementation of the CheckAuthentication() function:

This page was last edited on 31 March 2011, at 12:53.