source: spip-zone/_plugins_/_dev_/fckeditor/spip_fck/filemanager/upload/spip/config.php @ 25397

Last change on this file since 25397 was 25397, checked in by prigent.yohann@…, 12 years ago

Réimportation de fckeditor en _dev_ suite à [25353]...

File size: 1.9 KB
Line 
1<?php 
2/*
3 * FCKeditor - The text editor for internet
4 * Copyright (C) 2003-2006 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 * "Support Open Source software. What about a donation today?"
13 *
14 * File Name: config.php
15 *      Configuration file for the PHP File Uploader.
16 *
17 * File Authors:
18 *              Frederico Caldeira Knabben (fredck@fckeditor.net)
19 */
20
21global $Config ;
22
23// SECURITY: You must explicitelly enable this "uploader".
24$Config['Enabled'] = true ;
25
26// détermination du chemin de base par rapport à la racine du serveur
27  $p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\',/*'*/'/',realpath(dirname(__FILE__))));
28  define('_DIR_RELATIF_PLUGIN_FCKEDITOR',str_replace('../','',(_DIR_PLUGINS.end($p))));
29   
30  $dir_relatif_array = split('/', $_SERVER["PHP_SELF"]);
31  $i = 0;
32  while($dir_relatif_array[$i] != 'plugins') 
33    {
34         $chemin_final .= $dir_relatif_array[$i]."/";
35         $i++;
36    }
37    $chemin_final .="IMG/";
38   
39$Config['UserFilesPath'] = $chemin_final ;
40
41$Config['AllowedExtensions']['File']    = array() ;
42$Config['DeniedExtensions']['File']     = array('php','php2','php3','php4','php5','phtml','pwml','inc','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','com','dll','vbs','js','reg','cgi') ;
43
44$Config['AllowedExtensions']['Image']   = array('jpg','gif','jpeg','png') ;
45$Config['DeniedExtensions']['Image']    = array() ;
46
47$Config['AllowedExtensions']['Flash']   = array('swf','fla') ;
48$Config['DeniedExtensions']['Flash']    = array() ;
49
50$Config['AllowedExtensions']['']        = array() ;
51$Config['DeniedExtensions']['']         = array('php','php2','php3','php4','php5','phtml','pwml','inc','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','com','dll','vbs','js','reg','cgi') ;
52
53?>
Note: See TracBrowser for help on using the repository browser.