This repository has been archived by the owner on Mar 8, 2021. It is now read-only.
/
config.php
executable file
·99 lines (82 loc) · 3.82 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
/** This file is part of KCFinder project
*
* @desc Base configuration file
* @package KCFinder
* @version 2.54
* @author Pavel Tzonkov <sunhater@sunhater.com>
* @copyright 2010-2014 KCFinder Project
* @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
* @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
* @link http://kcfinder.sunhater.com
*/
// IMPORTANT!!! Do not remove uncommented settings in this file even if
// you are using session configuration.
// See http://kcfinder.sunhater.com/install for setting descriptions
$modx = evolutionCMS();
$_CONFIG = array(
'disabled' => false,
'denyZipDownload' => $modx->getConfig('denyZipDownload'),
'denyExtensionRename' => $modx->getConfig('denyExtensionRename'),
'showHiddenFiles' => $modx->getConfig('showHiddenFiles'),
'theme' => "evo",
'uploadURL' => rtrim($modx->getConfig('rb_base_url'), '/'),
'uploadDir' => rtrim($modx->getConfig('rb_base_dir'), '/'),
'siteURL' => MODX_SITE_URL,
'assetsURL' => rtrim($modx->getConfig('rb_base_url'), '/'),
'dirPerms' => intval($modx->getConfig('new_folder_permissions'), 8),
'filePerms' => intval($modx->getConfig('new_file_permissions'), 8),
'maxfilesize' => (int)$modx->getConfig('upload_maxsize'),
'noThumbnailsRecreation' => $modx->getConfig('noThumbnailsRecreation'),
'access' => array(
'files' => array(
'upload' => true,
'delete' => true,
'copy' => true,
'move' => true,
'rename' => true
),
'dirs' => array(
'create' => true,
'delete' => true,
'rename' => true
)
),
'deniedExts' => "exe com msi bat php phps phtml php3 php4 cgi pl",
'types' => array(
// CKEditor & FCKEditor types
'files' => str_replace(',', ' ', $modx->getConfig('upload_files')),
'flash' => str_replace(',', ' ', $modx->getConfig('upload_flash')),
'images' => str_replace(',', ' ', $modx->getConfig('upload_images')),
// TinyMCE types
'file' => str_replace(',', ' ', $modx->getConfig('upload_files')),
'media' => str_replace(',', ' ', $modx->getConfig('upload_media')),
'image' => str_replace(',', ' ', $modx->getConfig('upload_images')),
),
'dirnameChangeChars' => array(
' ' => "_",
':' => "."
),
'mime_magic' => "",
'maxImageWidth' => $modx->getConfig('maxImageWidth'),
'maxImageHeight' => $modx->getConfig('maxImageHeight'),
'clientResize' => $modx->getConfig('clientResize') && $modx->getConfig('maxImageWidth') && $modx->getConfig('maxImageHeight') ? array('maxWidth' => $modx->getConfig('maxImageWidth'),
'maxHeight' => $modx->getConfig('maxImageHeight'),
'quality' => $modx->getConfig('jpegQuality') / 100
) : array(),
'thumbWidth' => $modx->getConfig('thumbWidth'),
'thumbHeight' => $modx->getConfig('thumbHeight'),
'thumbsDir' => $modx->getConfig('thumbsDir'),
'jpegQuality' => $modx->getConfig('jpegQuality'),
'cookieDomain' => "",
'cookiePath' => "",
'cookiePrefix' => 'KCFINDER_',
// THE FOLLOWING SETTINGS CANNOT BE OVERRIDED WITH SESSION CONFIGURATION
'_check4htaccess' => false,
'_tinyMCEPath' => MODX_BASE_URL . "assets/plugins/tinymce/tiny_mce",
'_sessionVar' => &$_SESSION['KCFINDER'],
//'_sessionLifetime' => 30,
//'_sessionDir' => "/full/directory/path",
//'_sessionDomain' => ".mysite.com",
//'_sessionPath' => "/my/path",
);