server side integration pack
[project/fckeditor.git] / ssip / connector.php
1 <?php
2 /**
3 * FCKeditor for Drupal
4 *
5 * Server Side Intregation Pack
6 *
7 * This pack implements a Connector between Drupal and FCKeditor File browser.
8 * The "Connector" is the responsible for handling requests made by the
9 * File Browser. The following tasks are done by the Connector:
10 * - Receive the File Manager requests.
11 * - Execute operations in the File System, like folder and files creations
12 * and listings.
13 * - Build the XML response in the right format and syntax.
14 * - Receive and handle file uploads from the File Browser.
15 *
16 * All requests are simply made by the File Browser using the normal HTTP
17 * channel. The request info is always passed by QueryString in the URL that
18 * reflects the following format:
19 *
20 * connector.php?Command=CommandName&Type=ResourceType&CurrentFolder=FolderPath&ServerPath=ServerPath
21 *
22 *
23 *
24 * Configuration
25 * -------------
26 * 1. Edit the fckconfig.js file and set the FCKConfig.LinkBrowserURL and
27 * FCKConfig.ImageBrowserURL properties to:
28 *
29 * FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=[context_path]/modules/fckeditor/ssip/connector.php"
30 * FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=[context_path]/modules/fckeditor/ssip/connector.php"
31 *
32 * Note: If you are running Drupal under a directory replace [context_path]
33 * with yours directory's name (ie. /drupal ), otherwise simply remove it
34 *
35 * FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=/modules/fckeditor/ssip/connector.php"
36 * FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=/modules/fckeditor/ssip/connector.php"
37
38 * 2. Modify the properties.inc file to fit your customs.
39 * Note: if you are running Drupal under a directory you need to set the
40 * 'context_path' property to the ditectory's name
41 *
42 *
43 *
44 *
45 * @version 1.0
46 * @author LatPro Inc (George)
47 *
48 */
49
50 include_once 'core.inc';
51 include_once 'properties.inc';
52
53 _fck_connector_execute();
54
55 ?>