質問編集履歴

1

config 追加

2018/08/01 07:44

投稿

sakura-shi
sakura-shi

スコア93

test CHANGED
File without changes
test CHANGED
@@ -31,3 +31,199 @@
31
31
  /project/image/**.jpg
32
32
 
33
33
  としたい場合は、どこを見たらいいでしょうか?
34
+
35
+
36
+
37
+ ##kcfinder config.php
38
+
39
+ ```php
40
+
41
+ <?php
42
+
43
+
44
+
45
+ /** This file is part of KCFinder project
46
+
47
+ *
48
+
49
+ * @desc Base configuration file
50
+
51
+ * @package KCFinder
52
+
53
+ * @version 2.51
54
+
55
+ * @author Pavel Tzonkov <pavelc@users.sourceforge.net>
56
+
57
+ * @copyright 2010, 2011 KCFinder Project
58
+
59
+ * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
60
+
61
+ * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
62
+
63
+ * @link http://kcfinder.sunhater.com
64
+
65
+ */
66
+
67
+
68
+
69
+ // IMPORTANT!!! Do not remove uncommented settings in this file even if
70
+
71
+ // you are using session configuration.
72
+
73
+ // See http://kcfinder.sunhater.com/install for setting descriptions
74
+
75
+
76
+
77
+ $_CONFIG = array(
78
+
79
+
80
+
81
+ 'disabled' => false,
82
+
83
+ 'denyZipDownload' => false,
84
+
85
+ 'denyUpdateCheck' => false,
86
+
87
+ 'denyExtensionRename' => false,
88
+
89
+ 'theme' => "oxygen",
90
+
91
+ 'uploadURL' => "upload",
92
+
93
+ 'uploadDir' => "",
94
+
95
+ 'dirPerms' => 0755,
96
+
97
+ 'filePerms' => 0644,
98
+
99
+ 'access' => array(
100
+
101
+ 'files' => array(
102
+
103
+ 'upload' => true,
104
+
105
+ 'delete' => true,
106
+
107
+ 'copy' => true,
108
+
109
+ 'move' => true,
110
+
111
+ 'rename' => true
112
+
113
+ ),
114
+
115
+ 'dirs' => array(
116
+
117
+ 'create' => true,
118
+
119
+ 'delete' => true,
120
+
121
+ 'rename' => true
122
+
123
+ )
124
+
125
+ ),
126
+
127
+
128
+
129
+ 'deniedExts' => "exe com msi bat php phps phtml php3 php4 cgi pl",
130
+
131
+
132
+
133
+ 'types' => array(
134
+
135
+
136
+
137
+ // CKEditor & FCKEditor types
138
+
139
+ 'files' => "",
140
+
141
+ 'flash' => "swf",
142
+
143
+ 'images' => "*img",
144
+
145
+
146
+
147
+ // TinyMCE types
148
+
149
+ 'file' => "",
150
+
151
+ 'media' => "swf flv avi mpg mpeg qt mov wmv asf rm",
152
+
153
+ 'image' => "*img",
154
+
155
+ ),
156
+
157
+
158
+
159
+ 'filenameChangeChars' => array(/*
160
+
161
+ ' ' => "_",
162
+
163
+ ':' => "."
164
+
165
+ */),
166
+
167
+
168
+
169
+ 'dirnameChangeChars' => array(/*
170
+
171
+ ' ' => "_",
172
+
173
+ ':' => "."
174
+
175
+ */),
176
+
177
+
178
+
179
+ 'mime_magic' => "",
180
+
181
+ 'maxImageWidth' => 0,
182
+
183
+ 'maxImageHeight' => 0,
184
+
185
+ 'thumbWidth' => 100,
186
+
187
+ 'thumbHeight' => 100,
188
+
189
+ 'thumbsDir' => ".thumbs",
190
+
191
+ 'jpegQuality' => 90,
192
+
193
+ 'cookieDomain' => "",
194
+
195
+ 'cookiePath' => "",
196
+
197
+ 'cookiePrefix' => 'KCFINDER_',
198
+
199
+
200
+
201
+ // THE FOLLOWING SETTINGS CANNOT BE OVERRIDED WITH SESSION CONFIGURATION
202
+
203
+ '_check4htaccess' => true,
204
+
205
+ //'_tinyMCEPath' => "/tiny_mce",
206
+
207
+
208
+
209
+ '_sessionVar' => &$_SESSION['KCFINDER'],
210
+
211
+ //'_sessionLifetime' => 30,
212
+
213
+ //'_sessionDir' => "/full/directory/path",
214
+
215
+ //'_sessionDomain' => ".mysite.com",
216
+
217
+ //'_sessionPath' => "/my/path",
218
+
219
+ );
220
+
221
+
222
+
223
+ $_CONFIG['uploadURL'] = '/project/images';
224
+
225
+
226
+
227
+ ?>
228
+
229
+ ```