Projekt

Allgemein

Profil

GX-Bug #41387 » filemanager.config.js.php

Moritz Bunjes, 25.02.2015 17:12

 
1
<?php
2
/* contains Gambio-modifications */
3

    
4
$t_dir = getcwd();
5
define('SUPPRESS_REDIRECT', true);
6
chdir('../../../../../');
7
ob_start();
8
require_once('includes/application_top.php');
9
ob_end_clean();
10
chdir($t_dir);
11
if($_SESSION['customers_status']['customers_status_id'] !== '0')
12
{
13
	die('You are not allowed to upload files!');
14
}
15
?>
16
{
17
		"_comment": "IMPORTANT : go to the wiki page to know about options configuration https://github.com/simogeo/Filemanager/wiki/Filemanager-configuration-file",
18
    "options": {
19
        "culture": "<?php echo $_SESSION['language_code']; ?>",
20
        "lang": "php",
21
        "defaultViewMode": "grid",
22
        "autoload": true,
23
        "showFullPath": false,
24
        "showTitleAttr": false,
25
        "browseOnly": false,
26
        "showConfirmation": true,
27
        "showThumbs": false,
28
        "generateThumbnails": false,
29
        "searchBox": true,
30
        "listFiles": true,
31
        "fileSorting": "default",
32
        "chars_only_latin": true,
33
        "dateFormat": "d M Y H:i",
34
        "serverRoot": true,
35
        "fileRoot": "<?php echo DIR_WS_CATALOG . DIR_WS_IMAGES; ?>",
36
        "relPath": "<?php echo DIR_WS_IMAGES; ?>",
37
        "logger": false,
38
        "capabilities": ["select", "download", "rename", "move", "delete", "replace"],
39
        "plugins": []
40
    },
41
    "security": {
42
        "uploadPolicy": "DISALLOW_ALL",
43
        "uploadRestrictions": [
44
            "jpg",
45
            "jpeg",
46
            "gif",
47
            "png",
48
            "svg",
49
            "txt",
50
            "pdf",
51
            "odp",
52
            "ods",
53
            "odt",
54
            "rtf",
55
            "doc",
56
            "docx",
57
            "xls",
58
            "xlsx",
59
            "ppt",
60
            "pptx",
61
            "ogv",
62
            "mp4",
63
            "webm",
64
            "m4v",
65
            "ogg",
66
            "mp3",
67
            "wav"
68
        ]
69
    },
70
    "upload": {
71
        "overwrite": false,
72
        "imagesOnly": false,
73
        "fileSizeLimit": 16
74
    },
75
    "exclude": {
76
        "unallowed_files": [
77
            ".htaccess",
78
            "BarPay.jpg",
79
            "cv_amex_card.gif",
80
            "cv_card.gif",
81
            "de-btn-expresscheckout.gif",
82
            "einzug.gif",
83
            "index.html",
84
            "ladebalken.gif",
85
            "loading.gif",
86
            "pixel_black.gif",
87
            "pixel_silver.gif",
88
            "pixel_trans.gif",
89
            "trusted.gif",
90
            "trusted_bewerten_de.gif",
91
            "trusted_bewerten_en.gif",
92
            "trusted_siegel.gif"
93
        ],
94
        "unallowed_dirs": [
95
            "_thumbs",
96
            "banner",
97
            "categories",
98
			"gm",
99
			"icons",
100
			"login_admin",
101
			"logos",
102
			"logos",
103
			"manufacturers",
104
			"product_images",
105
			"slider_images",
106
            ".CDN_ACCESS_LOGS",
107
            "cloudservers"
108
        ],
109
        "unallowed_files_REGEXP": "/^\\./uis",
110
        "unallowed_dirs_REGEXP": "/^\\./uis"
111
    },
112
    "images": {
113
        "imagesExt": [
114
            "jpg",
115
            "jpeg",
116
            "gif",
117
            "png",
118
            "svg"
119
        ],
120
        "resize": {
121
        	"enabled":false
122
        }
123
    },
124
    "videos": {
125
        "showVideoPlayer": true,
126
        "videosExt": [
127
            "ogv",
128
            "mp4",
129
            "webm",
130
            "m4v"
131
        ],
132
        "videosPlayerWidth": 400,
133
        "videosPlayerHeight": 222
134
    },
135
    "audios": {
136
        "showAudioPlayer": true,
137
        "audiosExt": [
138
            "ogg",
139
            "mp3",
140
            "wav"
141
        ]
142
    },
143
    "extras": {
144
        "extra_js": [],
145
        "extra_js_async": true
146
    },
147
    "icons": {
148
        "path": "images/fileicons/",
149
        "directory": "_Open.png",
150
        "default": "default.png"
151
    }
152
}
    (1-1/1)