[ Index ]
 

Code source de FCKeditor 2.4

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/editor/filemanager/upload/php/ -> config.php (source)

   1  <?php 
   2  /*
   3   * FCKeditor - The text editor for Internet - http://www.fckeditor.net
   4   * Copyright (C) 2003-2007 Frederico Caldeira Knabben
   5   * 
   6   * == BEGIN LICENSE ==
   7   * 
   8   * Licensed under the terms of any of the following licenses at your
   9   * choice:
  10   * 
  11   *  - GNU General Public License Version 2 or later (the "GPL")
  12   *    http://www.gnu.org/licenses/gpl.html
  13   * 
  14   *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
  15   *    http://www.gnu.org/licenses/lgpl.html
  16   * 
  17   *  - Mozilla Public License Version 1.1 or later (the "MPL")
  18   *    http://www.mozilla.org/MPL/MPL-1.1.html
  19   * 
  20   * == END LICENSE ==
  21   * 
  22   * File Name: config.php
  23   *     Configuration file for the PHP File Uploader.
  24   * 
  25   * File Authors:
  26   *         Frederico Caldeira Knabben (www.fckeditor.net)
  27   */
  28  
  29  global $Config ;
  30  
  31  // SECURITY: You must explicitelly enable this "uploader". 
  32  $Config['Enabled'] = false ;
  33  
  34  // Set if the file type must be considere in the target path. 
  35  // Ex: /userfiles/image/ or /userfiles/file/
  36  $Config['UseFileType'] = false ;
  37  
  38  // Path to uploaded files relative to the document root.
  39  $Config['UserFilesPath'] = '/userfiles/' ;
  40  
  41  // Fill the following value it you prefer to specify the absolute path for the
  42  // user files directory. Usefull if you are using a virtual directory, symbolic
  43  // link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
  44  // Attention: The above 'UserFilesPath' must point to the same directory.
  45  $Config['UserFilesAbsolutePath'] = '' ;
  46  
  47  // Due to security issues with Apache modules, it is reccomended to leave the
  48  // following setting enabled.
  49  $Config['ForceSingleExtension'] = true ;
  50  
  51  $Config['AllowedExtensions']['File']    = array() ;
  52  $Config['DeniedExtensions']['File']        = array('html','htm','php','php2','php3','php4','php5','phtml','pwml','inc','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','com','dll','vbs','js','reg','cgi','htaccess','asis') ;
  53  
  54  $Config['AllowedExtensions']['Image']    = array('jpg','gif','jpeg','png') ;
  55  $Config['DeniedExtensions']['Image']    = array() ;
  56  
  57  $Config['AllowedExtensions']['Flash']    = array('swf','fla') ;
  58  $Config['DeniedExtensions']['Flash']    = array() ;
  59  
  60  ?>


Généré le : Sun Feb 25 15:28:05 2007 par Balluche grâce à PHPXref 0.7