Line 1: | Line 1: | ||
=== Enabling === | === Enabling === | ||
− | The first step you should take in order to configure your CKFinder is enabling it. This option is essential for the | + | The first step you should take in order to configure your CKFinder is enabling it. This option is essential for the program to work properly.<br>You should enable this option by setting it to '''true''': |
<pre>$config['Enabled'] = true;</pre> | <pre>$config['Enabled'] = true;</pre> | ||
=== License === | === License === | ||
− | If you | + | If you purchased CKFinder you should put your license key in the config.php file: |
<pre>$config['LicenseName'] = 'put your license name here'; | <pre>$config['LicenseName'] = 'put your license name here'; | ||
$config['LicenseKey'] = 'put your license key here';</pre> | $config['LicenseKey'] = 'put your license key here';</pre> | ||
− | If you leave this fields blank CKFinder will be fully functional bu it will be | + | If you leave this fields blank CKFinder will be fully functional bu it will be ruining in demo mode. |
=== baseUrl === | === baseUrl === | ||
Line 26: | Line 26: | ||
Or you may let CKFinder discover the path, based on $baseUrl: | Or you may let CKFinder discover the path, based on $baseUrl: | ||
<pre>$baseDir = resolveUrl($baseUrl);</pre> | <pre>$baseDir = resolveUrl($baseUrl);</pre> | ||
− | + | Remember that CKFinder will only discover the path when the base url is a local web path ( relative to document root ).<br>Example: | |
<pre>$baseUrl = '/userfiles/'</pre> | <pre>$baseUrl = '/userfiles/'</pre> | ||
− | If it is a full URL | + | If it is a full URL address.<br>Example: |
<pre>$baseUrl = 'http://example.com/ckfinder/files/'</pre> | <pre>$baseUrl = 'http://example.com/ckfinder/files/'</pre> | ||
the path won't be discovered. Notice that the trailing slash is required. | the path won't be discovered. Notice that the trailing slash is required. |
Revision as of 11:59, 21 December 2007
Contents
Enabling
The first step you should take in order to configure your CKFinder is enabling it. This option is essential for the program to work properly.
You should enable this option by setting it to true:
$config['Enabled'] = true;
License
If you purchased CKFinder you should put your license key in the config.php file:
$config['LicenseName'] = 'put your license name here'; $config['LicenseKey'] = 'put your license key here';
If you leave this fields blank CKFinder will be fully functional bu it will be ruining in demo mode.
baseUrl
The $baseUrl is the base path used to build the final URL for the resources handled in CKFinder. Examples:
$baseUrl = 'http://example.com/ckfinder/files/'; $baseUrl = '/userfiles/';
If you leave this field empty the default value (/userfiles/) will be used. Notice that the trailing slash is required.
baseDir
The $baseDir is the path to the local directory (in the server) which points to the above $baseUrl URL. This is the path used by CKFinder to handle the files in the server. Full write permissions must be granted to this directory. Examples:
You may point it to a directory directly:
$baseDir = '/home/login/public_html/ckfinder/files/'; $baseDir = 'C:/SiteDir/CKFinder/userfiles/';
Or you may let CKFinder discover the path, based on $baseUrl:
$baseDir = resolveUrl($baseUrl);
Remember that CKFinder will only discover the path when the base url is a local web path ( relative to document root ).
Example:
$baseUrl = '/userfiles/'
If it is a full URL address.
Example:
$baseUrl = 'http://example.com/ckfinder/files/'
the path won't be discovered. Notice that the trailing slash is required.