| [ Index ] | PHP Cross Reference of Mambo 4.6.5 |
|
| [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 * FCKeditor - The text editor for internet 4 * Copyright (C) 2003-2005 Frederico Caldeira Knabben 5 * 6 * Licensed under the terms of the GNU Lesser General Public License: 7 * http://www.opensource.org/licenses/lgpl-license.php 8 * 9 * For further information visit: 10 * http://www.fckeditor.net/ 11 * 12 * File Name: config.php 13 * Configuration file 14 * 15 * File Authors: 16 * Grant French (grant@mcpuk.net) 17 */ 18 @session_start(); 19 20 /*------------------------------------------------------------------------------*/ 21 /* HTTP over SSL Detection (shouldnt require changing) */ 22 /*------------------------------------------------------------------------------*/ 23 $fckphp_config['prot']="http"; 24 $fckphp_config['prot'].=((isset($_SERVER['HTTPS'])&&$_SERVER['HTTPS']=='on')?"s":""); 25 $fckphp_config['prot'].="://"; 26 /*==============================================================================*/ 27 28 29 /*------------------------------------------------------------------------------*/ 30 /* The physical path to the document root, Set manually if not using apache */ 31 /*------------------------------------------------------------------------------*/ 32 $fckphp_config['basedir']=$_SERVER['DOCUMENT_ROOT']; 33 //$fckphp_config['basedir'] = 'D:\Work\FCKEditor\www\FCKeditor.V2\editor\filemanager\browser\mcpuk' ; 34 /*==============================================================================*/ 35 36 37 /*------------------------------------------------------------------------------*/ 38 /* Prefix added to image path before sending back to editor */ 39 /*------------------------------------------------------------------------------*/ 40 $fckphp_config['urlprefix']=$fckphp_config['prot'].$_SERVER['SERVER_NAME']; 41 /*==============================================================================*/ 42 43 44 /*------------------------------------------------------------------------------*/ 45 /* Path to user files relative to the document root (no trailing slash) */ 46 /*------------------------------------------------------------------------------*/ 47 $fckphp_config['UserFilesPath'] = "/UserFiles" ; 48 49 /*==============================================================================*/ 50 51 52 /*------------------------------------------------------------------------------*/ 53 /* Progressbar handler (script that monitors upload progress) (''=none) 54 /*------------------------------------------------------------------------------*/ 55 // $fckphp_config['uploadProgressHandler']=''; //No upload progress handler 56 $fckphp_config['uploadProgressHandler']=$fckphp_config['prot'].$_SERVER['SERVER_NAME']."/cgi-bin/progress.cgi"; //Perl upload progress handler 57 /*==============================================================================*/ 58 59 60 /*------------------------------------------------------------------------------*/ 61 /* Authentication (auth) :- */ 62 /* - Req :: Boolean, whether authentication is required */ 63 /* - HandlerClass :: Name of class to handle authentication in connector */ 64 /*------------------------------------------------------------------------------*/ 65 $fckphp_config['auth']['Req']=false; 66 $fckphp_config['auth']['HandlerClass']='Default'; 67 /*==============================================================================*/ 68 69 70 /*------------------------------------------------------------------------------*/ 71 /* Settings for authentication handler :- */ 72 /* - SharedKey :: Shared encryption key (as set in test.php in example) */ 73 /*------------------------------------------------------------------------------*/ 74 $fckphp_config['auth']['Handler']['SharedKey']="->Shared_K3y-F0R*5enD1NG^auth3nt1caT10n'Info/To\FILE,Brow5er--!"; 75 /*==============================================================================*/ 76 77 78 /*------------------------------------------------------------------------------*/ 79 /* Per resource area settings:- */ 80 /* - AllowedExtensions :: Array, allowed file extensions (in lowercase) */ 81 /* - AllowedMIME :: Array, allowed mime types (in lowercase) */ 82 /* - MaxSize :: Number, Maximum size of file uploads in KBytes */ 83 /* - DiskQuota :: Number, Maximum size allowed for the resource area */ 84 /* - HideFolders :: Array, RegExp, matching folder names will be hidden */ 85 /* - HideFiles :: Array, RegExp, matching file names will be hidden */ 86 /* - AllowImageEditing :: Boolean, whether images in this area may be edited */ 87 /*------------------------------------------------------------------------------*/ 88 //First area options are commented 89 90 //File Area 91 $fckphp_config['ResourceAreas']['File'] =array( 92 93 //Files(identified by extension) that may be uploaded to this area 94 'AllowedExtensions' => array("zip","doc","xls","pdf","rtf","csv","jpg","gif","jpeg","png","avi","mpg","mpeg","swf","fla"), 95 96 //Not implemented yet 97 'AllowedMIME' => array(), 98 99 //Set the maximum single upload to this area to 2MB (2048Kb) 100 'MaxSize' => 2048, 101 102 //Set disk quota for this resource area to 20MB 103 'DiskQuota' => -1, 104 105 //By Default hide all folders starting with a . (Unix standard) 106 'HideFolders' => array("^\."), 107 108 //By Default hide all files starting with a . (Unix standard) 109 'HideFiles' => array("^\."), 110 111 //Do not allow images to be edited in this resource area 112 'AllowImageEditing' => false 113 ); 114 115 //Image area 116 $fckphp_config['ResourceAreas']['Image'] =array( 117 'AllowedExtensions' => array("jpg","gif","jpeg","png","tiff","tif",), 118 'AllowedMIME' => array(), 119 'MaxSize' => 1024, 120 'DiskQuota' => -1, 121 'HideFolders' => array("^\."), 122 'HideFiles' => array("^\."), 123 'AllowImageEditing' => false //Not yet complete, but you can take a look and see 124 ); 125 126 //Flash area 127 $fckphp_config['ResourceAreas']['Flash'] =array( 128 'AllowedExtensions' => array("swf","fla"), 129 'AllowedMIME' => array(), 130 'MaxSize' => 1024, 131 'DiskQuota' => -1, 132 'HideFolders' => array("^\."), 133 'HideFiles' => array("^\."), 134 'AllowImageEditing' => false 135 ); 136 137 //Media area 138 $fckphp_config['ResourceAreas']['Media'] =array( 139 'AllowedExtensions' => array("swf","fla","jpg","gif","jpeg","png","avi","mpg","mpeg"), 140 'AllowedMIME' => array(), 141 'MaxSize' => 5120, 142 'DiskQuota' => -1, 143 'HideFolders' => array("^\."), 144 'HideFiles' => array("^\."), 145 'AllowImageEditing' => false 146 ); 147 148 /*==============================================================================*/ 149 150 151 /*------------------------------------------------------------------------------*/ 152 /* Global Disk Quota - Max size of all resource areas */ 153 /*------------------------------------------------------------------------------*/ 154 $fckphp_config['DiskQuota']['Global']=-1; //In MBytes (default: 50mb) 155 /*==============================================================================*/ 156 157 158 /*------------------------------------------------------------------------------*/ 159 /* Directory and File Naming :- */ 160 /* -MaxDirNameLength :: Maximum allowed length of a directory name */ 161 /* -DirNameAllowedChars :: Array of characters allowed in a directory name */ 162 /* -FileNameAllowedChars :: Array of characters allowed in a file name */ 163 /*------------------------------------------------------------------------------*/ 164 165 $fckphp_config['MaxDirNameLength']=25; 166 167 $fckphp_config['DirNameAllowedChars']=array(); 168 169 //Allow numbers 170 for($i=48;$i<58;$i++) array_push($fckphp_config['DirNameAllowedChars'],chr($i)); 171 172 //Allow lowercase letters 173 for($i=97;$i<123;$i++) array_push($fckphp_config['DirNameAllowedChars'],chr($i)); 174 175 //Allow uppercase letters 176 for($i=65;$i<91;$i++) array_push($fckphp_config['DirNameAllowedChars'],chr($i)); 177 178 //Allow space,dash,underscore,dot 179 array_push($fckphp_config['DirNameAllowedChars']," ","-","_","."); 180 181 $fckphp_config['FileNameAllowedChars']=$fckphp_config['DirNameAllowedChars']; 182 array_push($fckphp_config['FileNameAllowedChars'],')','(','[',']','~'); 183 /*==============================================================================*/ 184 185 186 /*------------------------------------------------------------------------------*/ 187 /* Debugging :- */ 188 /* - Debug :: Boolean, if set to true a copy of the connector output is */ 189 /* sent to a file as well as to the client. */ 190 /* - DebugOutput :: File to send debug output to (absolute path) */ 191 /*------------------------------------------------------------------------------*/ 192 193 $fckphp_config['Debug']=false; 194 $fckphp_config['DebugOutput']="C:\Programmi\EasyPHP1-8\www\debug.txt"; 195 196 #Log PHP errors 197 $fckphp_config['Debug_Errors']=false; 198 $fckphp_config['Debug_Trace']=false; 199 200 #Log Connector output 201 $fckphp_config['Debug_Output']=false; 202 203 #With each logged event display contents of 204 /* $_GET */ $fckphp_config['Debug_GET']=false; 205 /* $_POST */ $fckphp_config['Debug_POST']=false; 206 /* $_SERVER */ $fckphp_config['Debug_SERVER']=false; 207 /* $_SESSIONS */ $fckphp_config['Debug_SESSIONS']=false; 208 209 /*==============================================================================*/ 210 211 212 /*------------------------------------------------------------------------------*/ 213 /* Internals :- */ 214 /* ResourceTypes :: Array of valid resource areas */ 215 /* Commands :: Array of valid commands accepted by the connector */ 216 /*------------------------------------------------------------------------------*/ 217 $fckphp_config['ResourceTypes'] = array('File','Image','Flash','Media'); 218 $fckphp_config['Commands'] = array( 219 "CreateFolder", 220 "GetFolders", 221 "GetFoldersAndFiles", 222 "FileUpload", 223 "Thumbnail", 224 "DeleteFile", 225 "DeleteFolder", 226 "GetUploadProgress", 227 "RenameFile", 228 "RenameFolder" 229 ); 230 /*==============================================================================*/ 231 232 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed May 23 00:05:01 2012 | Cross-referenced by PHPXref 0.7 |
| Mambo API: Mambo is Free software released under the GNU/General Public License, Version 2 |