From: Yves K. <yku...@us...> - 2004-11-05 23:35:41
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/plugins/ImageManager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2491/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/plugins/ImageManager Modified Files: config.inc.php Log Message: unix saving Index: config.inc.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/plugins/ImageManager/config.inc.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** config.inc.php 25 Oct 2004 18:16:02 -0000 1.1.1.1 --- config.inc.php 5 Nov 2004 23:35:25 -0000 1.2 *************** *** 1,134 **** ! <? ! /** ! * Image Manager configuration file. ! * @author $Author$ ! * @version $Id$ ! * @package ImageManager ! */ ! ! ! /* ! File system path to the directory you want to manage the images ! for multiple user systems, set it dynamically. ! ! NOTE: This directory requires write access by PHP. That is, ! PHP must be able to create files in this directory. ! Able to create directories is nice, but not necessary. ! */ ! // $IMConfig['base_dir'] = '/home/barc/www/training/images'; ! $IMConfig['base_dir'] = $_COOKIE['pws_source_dir'].'images/photoalbum'; ! ! /* ! The URL to the above path, the web browser needs to be able to see it. ! It can be protected via .htaccess on apache or directory permissions on IIS, ! check you web server documentation for futher information on directory protection ! If this directory needs to be publicly accessiable, remove scripting capabilities ! for this directory (i.e. disable PHP, Perl, CGI). We only want to store assets ! in this directory and its subdirectories. ! */ ! //$IMConfig['base_url'] = 'http://www.barc.org.au/training/images'; ! $IMConfig['base_url'] = 'http://'.$_COOKIE['pws_source_http'].'images/photoalbum'; ! ! /* ! Possible values: true, false ! ! TRUE - If PHP on the web server is in safe mode, set this to true. ! SAFE MODE restrictions: directory creation will not be possible, ! only the GD library can be used, other libraries require ! Safe Mode to be off. ! ! FALSE - Set to false if PHP on the web server is not in safe mode. ! */ ! $IMConfig['safe_mode'] = false; ! ! /* ! Possible values: 'GD', 'IM', or 'NetPBM' ! ! The image manipulation library to use, either GD or ImageMagick or NetPBM. ! If you have safe mode ON, or don't have the binaries to other packages, ! your choice is 'GD' only. Other packages require Safe Mode to be off. ! */ ! define('IMAGE_CLASS', 'GD'); ! ! ! /* ! After defining which library to use, if it is NetPBM or IM, you need to ! specify where the binary for the selected library are. And of course ! your server and PHP must be able to execute them (i.e. safe mode is OFF). ! GD does not require the following definition. ! */ ! define('IMAGE_TRANSFORM_LIB_PATH', 'C:/"Program Files"/ImageMagick-5.5.7-Q16/'); ! ! ! /* ============== OPTIONAL SETTINGS ============== */ ! ! ! /* ! The prefix for thumbnail files, something like .thumb will do. The ! thumbnails files will be named as "prefix_imagefile.ext", that is, ! prefix + orginal filename. ! */ ! $IMConfig['thumbnail_prefix'] = '.'; ! ! /* ! Thumbnail can also be stored in a directory, this directory ! will be created by PHP. If PHP is in safe mode, this parameter ! is ignored, you can not create directories. ! ! If you do not want to store thumbnails in a directory, set this ! to false or empty string ''; ! */ ! $IMConfig['thumbnail_dir'] = '.thumbs'; ! ! /* ! Possible values: true, false ! ! TRUE - Allow the user to create new sub-directories in the ! $IMConfig['base_dir']. ! ! FALSE - No directory creation. ! ! NOTE: If $IMConfig['safe_mode'] = true, this parameter ! is ignored, you can not create directories ! */ ! $IMConfig['allow_new_dir'] = true; ! ! /* ! Possible values: true, false ! ! TRUE - Allow the user to upload files. ! ! FALSE - No uploading allowed. ! */ ! $IMConfig['allow_upload'] = true; ! ! /* ! Possible values: true, false ! ! TRUE - If set to true, uploaded files will be validated based on the ! function getImageSize, if we can get the image dimensions then ! I guess this should be a valid image. Otherwise the file will be rejected. ! ! FALSE - All uploaded files will be processed. ! ! NOTE: If uploading is not allowed, this parameter is ignored. ! */ ! $IMConfig['validate_images'] = true; ! ! /* ! The default thumbnail if the thumbnails can not be created, either ! due to error or bad image file. ! */ ! $IMConfig['default_thumbnail'] = 'photo.png'; ! ! /* ! Thumbnail dimensions. ! */ ! $IMConfig['thumbnail_width'] = 150; ! $IMConfig['thumbnail_height'] = 113; ! ! /* ! Image Editor temporary filename prefix. ! */ ! $IMConfig['tmp_prefix'] = '.editor_'; ! ?> --- 1,130 ---- ! <? ! /** ! * Image Manager configuration file. ! * @author $Author$ ! * @version $Id$ ! * @package ImageManager ! */ ! ! /* ! File system path to the directory you want to manage the images ! for multiple user systems, set it dynamically. ! ! NOTE: This directory requires write access by PHP. That is, ! PHP must be able to create files in this directory. ! Able to create directories is nice, but not necessary. ! */ ! // $IMConfig['base_dir'] = '/home/barc/www/training/images'; ! $IMConfig['base_dir'] = $_COOKIE['pws_source_dir'].'images/photoalbum'; ! ! /* ! The URL to the above path, the web browser needs to be able to see it. ! It can be protected via .htaccess on apache or directory permissions on IIS, ! check you web server documentation for futher information on directory protection ! If this directory needs to be publicly accessiable, remove scripting capabilities ! for this directory (i.e. disable PHP, Perl, CGI). We only want to store assets ! in this directory and its subdirectories. ! */ ! //$IMConfig['base_url'] = 'http://www.barc.org.au/training/images'; ! $IMConfig['base_url'] = 'http://'.$_COOKIE['pws_source_http'].'images/photoalbum'; ! ! /* ! Possible values: true, false ! ! TRUE - If PHP on the web server is in safe mode, set this to true. ! SAFE MODE restrictions: directory creation will not be possible, ! only the GD library can be used, other libraries require ! Safe Mode to be off. ! FALSE - Set to false if PHP on the web server is not in safe mode. ! */ ! $IMConfig['safe_mode'] = false; ! ! /* ! Possible values: 'GD', 'IM', or 'NetPBM' ! ! The image manipulation library to use, either GD or ImageMagick or NetPBM. ! If you have safe mode ON, or don't have the binaries to other packages, ! your choice is 'GD' only. Other packages require Safe Mode to be off. ! */ ! define('IMAGE_CLASS', 'GD'); ! ! ! /* ! After defining which library to use, if it is NetPBM or IM, you need to ! specify where the binary for the selected library are. And of course ! your server and PHP must be able to execute them (i.e. safe mode is OFF). ! GD does not require the following definition. ! */ ! define('IMAGE_TRANSFORM_LIB_PATH', 'C:/"Program Files"/ImageMagick-5.5.7-Q16/'); ! ! ! /* ============== OPTIONAL SETTINGS ============== */ ! ! ! /* ! The prefix for thumbnail files, something like .thumb will do. The ! thumbnails files will be named as "prefix_imagefile.ext", that is, ! prefix + orginal filename. ! */ ! $IMConfig['thumbnail_prefix'] = '.'; ! ! /* ! Thumbnail can also be stored in a directory, this directory ! will be created by PHP. If PHP is in safe mode, this parameter ! is ignored, you can not create directories. ! ! If you do not want to store thumbnails in a directory, set this ! to false or empty string ''; ! */ ! $IMConfig['thumbnail_dir'] = '.thumbs'; ! ! /* ! Possible values: true, false ! ! TRUE - Allow the user to create new sub-directories in the ! $IMConfig['base_dir']. ! FALSE - No directory creation. ! ! NOTE: If $IMConfig['safe_mode'] = true, this parameter ! is ignored, you can not create directories ! */ ! $IMConfig['allow_new_dir'] = true; ! ! /* ! Possible values: true, false ! ! TRUE - Allow the user to upload files. ! FALSE - No uploading allowed. ! */ ! $IMConfig['allow_upload'] = true; ! ! /* ! Possible values: true, false ! ! TRUE - If set to true, uploaded files will be validated based on the ! function getImageSize, if we can get the image dimensions then ! I guess this should be a valid image. Otherwise the file will be rejected. ! FALSE - All uploaded files will be processed. ! ! NOTE: If uploading is not allowed, this parameter is ignored. ! */ ! $IMConfig['validate_images'] = true; ! ! /* ! The default thumbnail if the thumbnails can not be created, either ! due to error or bad image file. ! */ ! $IMConfig['default_thumbnail'] = 'photo.png'; ! ! /* ! Thumbnail dimensions. ! */ ! $IMConfig['thumbnail_width'] = 150; ! $IMConfig['thumbnail_height'] = 113; ! ! /* ! Image Editor temporary filename prefix. ! */ ! $IMConfig['tmp_prefix'] = '.editor_'; ! ! ?> \ No newline at end of file |