config.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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. if( isset($_GET['uid']) ){
  18. $uploadurl = "/images/upload/".$_GET['uid'];
  19. }else{
  20. $uploadurl = "/images/upload/images_".date("m-Y");
  21. }
  22. //echo $_SERVER['DOCUMENT_ROOT'].$uploadurl;
  23. $_CONFIG = array(
  24. // GENERAL SETTINGS
  25. 'disabled' => false,
  26. 'uploadURL' =>$uploadurl,
  27. 'uploadDir' =>$_SERVER['DOCUMENT_ROOT'].$uploadurl,
  28. 'theme' => "default",
  29. 'types' => array(
  30. // (F)CKEditor types
  31. 'files' => "pdf doc xsl mp3 wav ogv docx m4a wma ogg oga wav",
  32. 'flash' => "swf",
  33. 'images' => "*img",
  34. 'audio' => "mp3 wav ogv m4a wma ogg oga",
  35. // TinyMCE types
  36. 'file' => "",
  37. 'media' => "swf flv avi mpg mpeg qt mov wmv asf rm",
  38. 'image' => "*img",
  39. ),
  40. // IMAGE SETTINGS
  41. 'imageDriversPriority' => "imagick gmagick gd",
  42. 'jpegQuality' => 90,
  43. 'thumbsDir' => ".thumbs",
  44. 'maxImageWidth' => 1920,
  45. 'maxImageHeight' => 2200,
  46. 'thumbWidth' => 178,
  47. 'thumbHeight' => 100,
  48. // 'watermark' => array('file' => 'http://www.amic.ru/design/logo_amic.png','left'=>30,'top'=>30),
  49. // DISABLE / ENABLE SETTINGS
  50. 'denyZipDownload' => false,
  51. 'denyUpdateCheck' => false,
  52. 'denyExtensionRename' => false,
  53. // PERMISSION SETTINGS
  54. 'dirPerms' => 0755,
  55. 'filePerms' => 0644,
  56. 'access' => array(
  57. 'files' => array(
  58. 'upload' => true,
  59. 'delete' => false,
  60. 'copy' => true,
  61. 'move' => true,
  62. 'rename' => true
  63. ),
  64. 'dirs' => array(
  65. 'create' => false,
  66. 'delete' => false,
  67. 'rename' => true
  68. )
  69. ),
  70. 'deniedExts' => "exe com msi bat cgi pl php phps phtml php3 php4 php5 php6 py pyc pyo pcgi pcgi3 pcgi4 pcgi5 pchi6",
  71. // MISC SETTINGS
  72. 'filenameChangeChars' => array(/*
  73. ' ' => "_",
  74. ':' => "."
  75. */),
  76. 'dirnameChangeChars' => array(/*
  77. ' ' => "_",
  78. ':' => "."
  79. */),
  80. 'mime_magic' => "",
  81. 'cookieDomain' => "",
  82. 'cookiePath' => "",
  83. 'cookiePrefix' => 'KCFINDER_',
  84. // THE FOLLOWING SETTINGS CANNOT BE OVERRIDED WITH SESSION SETTINGS
  85. '_normalizeFilenames' => true,
  86. '_check4htaccess' => false,
  87. //'_tinyMCEPath' => "/tiny_mce",
  88. 'denyUpdateCheck' => true,
  89. '_sessionVar' => "KCFINDER",
  90. //'_sessionLifetime' => 30,
  91. //'_sessionDir' => "/full/directory/path",
  92. //'_sessionDomain' => ".mysite.com",
  93. //'_sessionPath' => "/my/path",
  94. //'_cssMinCmd' => "java -jar /path/to/yuicompressor.jar --type css {file}",
  95. //'_jsMinCmd' => "java -jar /path/to/yuicompressor.jar --type js {file}",
  96. );