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

 * 2. Modify the properties.inc file to fit your customs.
 *    Note: if you are running Drupal under a directory you need to set the
 *    'context_path' property to the ditectory's name
 *    
 *    
 *    
 *    
 * @version 1.0
 * @author  LatPro Inc (George)
 *    
 */

include_once 'core.inc';
include_once 'properties.inc';

_fck_connector_execute();

?>