[ Index ]

PHP Cross Reference of Mambo 4.6.5

[ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/mambots/editors/mostlyce/jscripts/tiny_mce/imagemanager/ -> config.inc.php (source)

   1  <?php
   2  /**

   3   * Image Manager configuration file.

   4   * @author $Author$

   5   * @version $Id$

   6   * @package ImageManager

   7   */
   8  
   9  /* 

  10   File system path to the directory you want to manage the images

  11   for multiple user systems, set it dynamically.

  12  

  13   NOTE: This directory requires write access by PHP. That is, 

  14         PHP must be able to create files in this directory.

  15         Able to create directories is nice, but not necessary.

  16  */
  17  $IMConfig['base_dir'] = $_SERVER['DOCUMENT_ROOT'] . '/UserFiles/Image';
  18  
  19  /*

  20   The URL to the above path, the web browser needs to be able to see it.

  21   It can be protected via .htaccess on apache or directory permissions on IIS,

  22   check you web server documentation for futher information on directory protection

  23   If this directory needs to be publicly accessiable, remove scripting capabilities

  24   for this directory (i.e. disable PHP, Perl, CGI). We only want to store assets

  25   in this directory and its subdirectories.

  26  */
  27  $IMConfig['base_url'] = 'http://' . $_SERVER['SERVER_NAME']  . '/UserFiles/Image';
  28  
  29  /*

  30    Possible values: true, false

  31  

  32    TRUE - If PHP on the web server is in safe mode, set this to true.

  33           SAFE MODE restrictions: directory creation will not be possible,

  34           only the GD library can be used, other libraries require

  35           Safe Mode to be off.

  36  

  37    FALSE - Set to false if PHP on the web server is not in safe mode.

  38  */
  39  $IMConfig['safe_mode'] = false;
  40  
  41  /* 

  42   Possible values: 'GD', 'IM', or 'NetPBM'

  43  

  44   The image manipulation library to use, either GD or ImageMagick or NetPBM.

  45   If you have safe mode ON, or don't have the binaries to other packages, 

  46   your choice is 'GD' only. Other packages require Safe Mode to be off.

  47  */
  48  define('IMAGE_CLASS', 'GD');
  49  
  50  
  51  /*

  52   After defining which library to use, if it is NetPBM or IM, you need to

  53   specify where the binary for the selected library are. And of course

  54   your server and PHP must be able to execute them (i.e. safe mode is OFF).

  55   GD does not require the following definition.

  56  */
  57  define('IMAGE_TRANSFORM_LIB_PATH', 'h:\\jobber\\imagemagic\\');
  58  
  59  
  60  /* ==============  OPTIONAL SETTINGS ============== */

  61  
  62  
  63  /*

  64    The prefix for thumbnail files, something like .thumb will do. The

  65    thumbnails files will be named as "prefix_imagefile.ext", that is,

  66    prefix + orginal filename.

  67  */
  68  $IMConfig['thumbnail_prefix'] = '.';
  69  
  70  /*

  71    Thumbnail can also be stored in a directory, this directory

  72    will be created by PHP. If PHP is in safe mode, this parameter

  73    is ignored, you can not create directories. 

  74  

  75    If you do not want to store thumbnails in a directory, set this

  76    to false or empty string '';

  77  */
  78  $IMConfig['thumbnail_dir'] = '/.thumbs';
  79  
  80  /*

  81    Possible values: true, false

  82  

  83   TRUE -  Allow the user to create new sub-directories in the

  84           $IMConfig['base_dir'].

  85  

  86   FALSE - No directory creation.

  87  

  88   NOTE: If $IMConfig['safe_mode'] = true, this parameter

  89         is ignored, you can not create directories

  90  */
  91  $IMConfig['allow_new_dir'] = true;
  92  
  93  
  94  /*

  95    Possible values: true, false

  96  

  97    TRUE - Allow the user to upload files.

  98  

  99    FALSE - No uploading allowed.

 100  */
 101  $IMConfig['allow_upload'] = true;
 102  
 103  /*

 104   Possible values: true, false

 105  

 106   TRUE - If set to true, uploaded files will be validated based on the 

 107          function getImageSize, if we can get the image dimensions then 

 108          I guess this should be a valid image. Otherwise the file will be rejected.

 109  

 110   FALSE - All uploaded files will be processed.

 111  

 112   NOTE: If uploading is not allowed, this parameter is ignored.

 113  */
 114  $IMConfig['validate_images'] = true;
 115  
 116  /*

 117   The default thumbnail if the thumbnails can not be created, either

 118   due to error or bad image file.

 119  */
 120  $IMConfig['default_thumbnail'] = 'img/default.gif';
 121  
 122  /*

 123    Thumbnail dimensions.

 124  */
 125  $IMConfig['thumbnail_width'] = 96;
 126  $IMConfig['thumbnail_height'] = 96;
 127  
 128  /*

 129    Image Editor temporary filename prefix.

 130  */
 131  $IMConfig['tmp_prefix'] = '.editor_';
 132  ?>