OSDN Git Service

初回コミット(v2.6.17.1)
[magic3/magic3.git] / scripts / kcfinder-2.51 / config.php
1 <?php
2
3 /** This file is part of KCFinder project
4   *
5   *      @desc Base configuration file
6   *   @package KCFinder
7   *   @version 2.51
8   *    @author Pavel Tzonkov <pavelc@users.sourceforge.net>
9   * @copyright 2010, 2011 KCFinder Project
10   *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
11   *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
12   *      @link http://kcfinder.sunhater.com
13   */
14
15 // IMPORTANT!!! Do not remove uncommented settings in this file even if
16 // you are using session configuration.
17 // See http://kcfinder.sunhater.com/install for setting descriptions
18 global $gEnvManager;
19
20 $_CONFIG = array(
21
22     'disabled' => false,
23     'denyZipDownload' => false,
24     'denyUpdateCheck' => true,          // 新規バージョンチェックなし
25     'denyExtensionRename' => false,
26
27     'theme' => "oxygen",
28
29     //'uploadURL' => "upload",
30         'uploadURL' => $gEnvManager->getRelativeResourcePathToDocumentRootForUser(),    // リソースディレクトリを設定
31     'uploadDir' => "",
32
33     'dirPerms'  => M3_SYSTEM_DIR_PERMISSION,
34     'filePerms' => M3_SYSTEM_FILE_PERMISSION,
35
36     'access' => array(
37
38         'files' => array(
39             'upload' => true,
40             'delete' => true,
41             'copy' => true,
42             'move' => true,
43             'rename' => true
44         ),
45
46         'dirs' => array(
47             'create' => true,
48             'delete' => true,
49             'rename' => true
50         )
51     ),
52
53     'deniedExts' => "exe com msi bat php phps phtml php3 php4 cgi pl",
54
55         // 作成するディレクトリとファイルタイプ
56     'types' => array(
57 //              'files'   =>  "",
58 //              'images'  =>  "*img",
59                 'file'    =>  "",
60                 'image'   =>  "*img",
61                 'flash'   =>  "swf",
62                 'media'   =>  "swf flv avi mpg mpeg qt mov wmv asf rm",
63     ),
64
65         // ファイル名、ディレクトリ名自動変換
66         'filenameChangeChars' => array(
67                 ' ' => "_",
68                 /*':' => "."*/
69         ),
70         'dirnameChangeChars' => array(
71                 ' ' => "_",
72                 /*':' => "."*/
73         ),
74
75     'mime_magic' => "",
76
77     'maxImageWidth' => 0,
78     'maxImageHeight' => 0,
79
80     'thumbWidth' => 100,
81     'thumbHeight' => 100,
82
83     'thumbsDir' => ".thumbs",
84
85     'jpegQuality' => 90,
86
87     'cookieDomain' => "",
88     'cookiePath' => "",
89     'cookiePrefix' => 'KCFINDER_',
90
91     // THE FOLLOWING SETTINGS CANNOT BE OVERRIDED WITH SESSION CONFIGURATION
92     '_check4htaccess' => true,
93     //'_tinyMCEPath' => "/tiny_mce",
94
95     '_sessionVar' => &$_SESSION['KCFINDER'],
96     //'_sessionLifetime' => 30,
97     //'_sessionDir' => "/full/directory/path",
98
99     //'_sessionDomain' => ".mysite.com",
100     //'_sessionPath' => "/my/path",
101 );
102
103 ?>