config.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?php
  2. /** This file is part of KCFinder project
  3. *
  4. * @desc Base configuration file
  5. * @package KCFinder
  6. * @version 3.12
  7. * @author Pavel Tzonkov <sunhater@sunhater.com>
  8. * @copyright 2010-2014 KCFinder Project
  9. * @license http://opensource.org/licenses/GPL-3.0 GPLv3
  10. * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3
  11. * @link http://kcfinder.sunhater.com
  12. */
  13. /* IMPORTANT!!! Do not comment or remove uncommented settings in this file
  14. even if you are using session configuration.
  15. See http://kcfinder.sunhater.com/install for setting descriptions */
  16. //include_once "plugins/cropresize/plugin.php";
  17. $_CONFIG = array(
  18. // GENERAL SETTINGS
  19. 'disabled' => false,
  20. 'uploadURL' =>"/images/upload/images_".date("m-Y"),
  21. 'uploadDir' =>$_SERVER['DOCUMENT_ROOT']."/images/upload/images_".date("m-Y"),
  22. 'theme' => "default",
  23. 'types' => array(
  24. // (F)CKEditor types
  25. 'files' => "pdf doc xsl mp3 wav ogv docx m4a wma ogg oga wav",
  26. 'flash' => "swf",
  27. 'images' => "*img",
  28. 'audio' => "mp3 wav ogv m4a wma ogg oga",
  29. // TinyMCE types
  30. 'file' => "",
  31. 'media' => "swf flv avi mpg mpeg qt mov wmv asf rm",
  32. 'image' => "*img",
  33. ),
  34. // IMAGE SETTINGS
  35. 'imageDriversPriority' => "imagick gmagick gd",
  36. 'jpegQuality' => 90,
  37. 'thumbsDir' => ".thumbs",
  38. 'maxImageWidth' => 1800,
  39. 'maxImageHeight' => 2200,
  40. 'thumbWidth' => 178,
  41. 'thumbHeight' => 100,
  42. // 'watermark' => array('file' => 'http://www.amic.ru/design/logo_amic.png','left'=>30,'top'=>30),
  43. // DISABLE / ENABLE SETTINGS
  44. 'denyZipDownload' => false,
  45. 'denyUpdateCheck' => false,
  46. 'denyExtensionRename' => false,
  47. // PERMISSION SETTINGS
  48. 'dirPerms' => 0755,
  49. 'filePerms' => 0644,
  50. 'access' => array(
  51. 'files' => array(
  52. 'upload' => true,
  53. 'delete' => false,
  54. 'copy' => true,
  55. 'move' => true,
  56. 'rename' => true
  57. ),
  58. 'dirs' => array(
  59. 'create' => false,
  60. 'delete' => false,
  61. 'rename' => true
  62. )
  63. ),
  64. 'deniedExts' => "exe com msi bat cgi pl php phps phtml php3 php4 php5 php6 py pyc pyo pcgi pcgi3 pcgi4 pcgi5 pchi6",
  65. // MISC SETTINGS
  66. 'filenameChangeChars' => array(/*
  67. ' ' => "_",
  68. ':' => "."
  69. */),
  70. 'dirnameChangeChars' => array(/*
  71. ' ' => "_",
  72. ':' => "."
  73. */),
  74. 'mime_magic' => "",
  75. 'cookieDomain' => "",
  76. 'cookiePath' => "",
  77. 'cookiePrefix' => 'KCFINDER_',
  78. // THE FOLLOWING SETTINGS CANNOT BE OVERRIDED WITH SESSION SETTINGS
  79. '_normalizeFilenames' => true,
  80. '_check4htaccess' => true,
  81. //'_tinyMCEPath' => "/tiny_mce",
  82. '_sessionVar' => "KCFINDER",
  83. //'_sessionLifetime' => 30,
  84. //'_sessionDir' => "/full/directory/path",
  85. //'_sessionDomain' => ".mysite.com",
  86. //'_sessionPath' => "/my/path",
  87. //'_cssMinCmd' => "java -jar /path/to/yuicompressor.jar --type css {file}",
  88. //'_jsMinCmd' => "java -jar /path/to/yuicompressor.jar --type js {file}",
  89. );