-
Notifications
You must be signed in to change notification settings - Fork 18
/
default.config.php
103 lines (86 loc) · 2.15 KB
/
default.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
100
101
102
103
<?php
/**
* Do not modify the default.config.php file, instead, override the settings in the config.php file
*/
$config = [
'datetimeFormat' => 'm/d/Y g:i A',
'quality' => 90,
'defaultPermission' => 0775,
'sources' => [
'default' => [],
],
'createThumb' => true,
'thumbFolderName' => '_thumbs',
'excludeDirectoryNames' => ['.tmb', '.quarantine'],
'maxFileSize' => '8mb',
'allowCrossOrigin' => false,
'allowReplaceSourceFile' => true,
'baseurl' => ((isset($_SERVER['HTTPS']) and $_SERVER['HTTPS']) ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . '/',
'root' => __DIR__,
'extensions' => [
'jpg',
'png',
'gif',
'jpeg',
'ico',
'jpeg',
'svg',
'ttf',
'tif',
'txt',
'zip',
'rar',
'7z',
'gz',
'tar',
'pps',
'ppt',
'pptx',
'odp',
'xls',
'xlsx',
'csv',
'doc',
'docx',
'pdf',
'rtf'
],
'imageExtensions' => ['jpg', 'png', 'gif', 'jpeg'],
'debug' => JODIT_DEBUG,
'accessControl' => [],
"pdf" => [
"defaultFont" => "serif",
"isRemoteEnabled" => true,
"paper" => [
'format' => 'A4',
'page_orientation' => 'portrait',
]
]
];
$config['roleSessionVar'] = 'JoditUserRole';
$config['accessControl'][] = array(
'role' => '*',
'extensions' => '*',
'path' => '/',
'FILES' => true,
'FILE_MOVE' => true,
'FILE_UPLOAD' => true,
'FILE_UPLOAD_REMOTE' => true,
'FILE_REMOVE' => true,
'FILE_RENAME' => true,
'FOLDERS' => true,
'FOLDER_MOVE' => true,
'FOLDER_REMOVE' => true,
'FOLDER_RENAME' => true,
'IMAGE_RESIZE' => true,
'IMAGE_CROP' => true,
);
$config['accessControl'][] = array(
'role' => '*',
'extensions' => 'exe,bat,com,sh,swf',
'FILE_MOVE' => false,
'FILE_UPLOAD' => false,
'FILE_UPLOAD_REMOTE' => false,
'FILE_RENAME' => false,
);
return $config;