Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../var/softacul.../dada
File: config.local.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* RichFilemanager configuration file for Local storage.
[2] Fix | Delete
*
[3] Fix | Delete
* @license MIT License
[4] Fix | Delete
* @author Pavel Solomienko <https://github.com/servocoder/>
[5] Fix | Delete
* @copyright Authors
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
$config = [
[9] Fix | Delete
/**
[10] Fix | Delete
* Configure Logger class
[11] Fix | Delete
*/
[12] Fix | Delete
"logger" => [
[13] Fix | Delete
"enabled" => false,
[14] Fix | Delete
/**
[15] Fix | Delete
* Default value "null".
[16] Fix | Delete
* Full path to log file, e.g. "/var/log/filemanager/logfile".
[17] Fix | Delete
* By default the application writes logs to "filemanager.log" file that located at sys_get_temp_dir()
[18] Fix | Delete
*/
[19] Fix | Delete
"file" => null,
[20] Fix | Delete
],
[21] Fix | Delete
/**
[22] Fix | Delete
* General options section
[23] Fix | Delete
*/
[24] Fix | Delete
"options" => [
[25] Fix | Delete
/**
[26] Fix | Delete
* Default value "true".
[27] Fix | Delete
* By default the application will search `fileRoot` folder under server root folder.
[28] Fix | Delete
* Set value to "false" in case the `fileRoot` folder located outside server root folder.
[29] Fix | Delete
* If `fileRoot` options is set to "false", `serverRoot` value is ignored - always "true".
[30] Fix | Delete
*/
[31] Fix | Delete
"serverRoot" => false,
[32] Fix | Delete
/**
[33] Fix | Delete
* Default value "false". Path to the user storage folder.
[34] Fix | Delete
* By default the application will determine the path itself based on $_SERVER['DOCUMENT_ROOT'].
[35] Fix | Delete
* You can set specific path to user storage folder with the following rules:
[36] Fix | Delete
* - absolute path in case `serverRoot` set to "false", e.g. "/var/www/html/filemanager/userfiles/"
[37] Fix | Delete
* - relative path in case `serverRoot` set to "true", e.g. "/filemanager/userfiles/"
[38] Fix | Delete
*/
[39] Fix | Delete
"fileRoot" => "[[wwwdir]]/dada_mail_support_files/file_uploads",
[40] Fix | Delete
/**
[41] Fix | Delete
* Format of the date to display. See http://www.php.net/manual/en/function.date.php
[42] Fix | Delete
*/
[43] Fix | Delete
"dateFormat" => "d M Y H:i",
[44] Fix | Delete
/**
[45] Fix | Delete
* The maximum allowed root folder total size (in Bytes). If set to "false", no size limitations applied.
[46] Fix | Delete
*/
[47] Fix | Delete
"fileRootSizeLimit" => false,
[48] Fix | Delete
/**
[49] Fix | Delete
* Default value "false". Deny non-latin characters in file/folder names.
[50] Fix | Delete
* PHP requires INTL extension installed, otherwise all non-latin characters will be stripped.
[51] Fix | Delete
*/
[52] Fix | Delete
"charsLatinOnly" => false,
[53] Fix | Delete
],
[54] Fix | Delete
/**
[55] Fix | Delete
* Security section
[56] Fix | Delete
*/
[57] Fix | Delete
"security" => [
[58] Fix | Delete
/**
[59] Fix | Delete
* Default value "false". Allow write operations.
[60] Fix | Delete
* Set value to "true" to disable all modifications to the filesystem, including thumbnail generation.
[61] Fix | Delete
*/
[62] Fix | Delete
"readOnly" => false,
[63] Fix | Delete
/**
[64] Fix | Delete
* Default value "true".
[65] Fix | Delete
* Sanitize file/folder name, replaces gaps and some other special chars.
[66] Fix | Delete
*/
[67] Fix | Delete
"normalizeFilename" => true,
[68] Fix | Delete
/**
[69] Fix | Delete
* Filename extensions are compared against this list, after the right-most dot '.'
[70] Fix | Delete
* Matched files will be filtered from listing results, and will be restricted from all file operations (both read and write).
[71] Fix | Delete
*/
[72] Fix | Delete
"extensions" => [
[73] Fix | Delete
/**
[74] Fix | Delete
* Default value "ALLOW_LIST". Takes value "ALLOW_LIST" / "DISALLOW_LIST".
[75] Fix | Delete
* If is set to "ALLOW_LIST", only files with extensions that match `restrictions` list will be allowed, all other files are forbidden.
[76] Fix | Delete
* If is set to "DISALLOW_LIST", all files are allowed except of files with extensions that match `restrictions` list.
[77] Fix | Delete
*/
[78] Fix | Delete
"policy" => "ALLOW_LIST",
[79] Fix | Delete
/**
[80] Fix | Delete
* Default value "true".
[81] Fix | Delete
* Whether extension comparison should be case sensitive.
[82] Fix | Delete
*/
[83] Fix | Delete
"ignoreCase" => true,
[84] Fix | Delete
/**
[85] Fix | Delete
* List of allowed / disallowed extensions, depending on the `policy` value.
[86] Fix | Delete
* To allow / disallow files without extension, add / remove the empty string "" to / from this list.
[87] Fix | Delete
*/
[88] Fix | Delete
"restrictions" => [
[89] Fix | Delete
"",
[90] Fix | Delete
"jpg",
[91] Fix | Delete
"jpe",
[92] Fix | Delete
"jpeg",
[93] Fix | Delete
"gif",
[94] Fix | Delete
"png",
[95] Fix | Delete
"svg",
[96] Fix | Delete
"txt",
[97] Fix | Delete
"pdf",
[98] Fix | Delete
"odp",
[99] Fix | Delete
"ods",
[100] Fix | Delete
"odt",
[101] Fix | Delete
"rtf",
[102] Fix | Delete
"doc",
[103] Fix | Delete
"docx",
[104] Fix | Delete
"xls",
[105] Fix | Delete
"xlsx",
[106] Fix | Delete
"ppt",
[107] Fix | Delete
"pptx",
[108] Fix | Delete
"csv",
[109] Fix | Delete
"ogv",
[110] Fix | Delete
"avi",
[111] Fix | Delete
"mkv",
[112] Fix | Delete
"mp4",
[113] Fix | Delete
"webm",
[114] Fix | Delete
"m4v",
[115] Fix | Delete
"ogg",
[116] Fix | Delete
"mp3",
[117] Fix | Delete
"wav",
[118] Fix | Delete
"zip",
[119] Fix | Delete
"md",
[120] Fix | Delete
],
[121] Fix | Delete
],
[122] Fix | Delete
/**
[123] Fix | Delete
* Files and folders paths relative to the user storage folder (see `fileRoot`) are compared against this list.
[124] Fix | Delete
* Matched items will be filtered from listing results, and will be restricted from all file operations (both read and write).
[125] Fix | Delete
*/
[126] Fix | Delete
"patterns" => [
[127] Fix | Delete
/**
[128] Fix | Delete
* Default value "ALLOW_LIST". Takes value "ALLOW_LIST" / "DISALLOW_LIST".
[129] Fix | Delete
* If is set to "ALLOW_LIST", only files and folders that match `restrictions` list will be allowed, all other files are forbidden.
[130] Fix | Delete
* If is set to "DISALLOW_LIST", all files and folders are allowed except of ones that match `restrictions` list.
[131] Fix | Delete
*/
[132] Fix | Delete
"policy" => "DISALLOW_LIST",
[133] Fix | Delete
/**
[134] Fix | Delete
* Default value "true".
[135] Fix | Delete
* Whether patterns comparison should be case sensitive.
[136] Fix | Delete
*/
[137] Fix | Delete
"ignoreCase" => true,
[138] Fix | Delete
/**
[139] Fix | Delete
* List of allowed / disallowed patterns, depending on the `policy` value.
[140] Fix | Delete
*/
[141] Fix | Delete
"restrictions" => [
[142] Fix | Delete
// files
[143] Fix | Delete
"*/.htaccess",
[144] Fix | Delete
"*/web.config",
[145] Fix | Delete
// folders
[146] Fix | Delete
"*/_thumbs/*",
[147] Fix | Delete
"*/.CDN_ACCESS_LOGS/*",
[148] Fix | Delete
],
[149] Fix | Delete
],
[150] Fix | Delete
/**
[151] Fix | Delete
* Rules for symbolic links that point to files/folders OUTSIDE the `fileroot` folder.
[152] Fix | Delete
* Targets of symbolic links INSIDE the `fileroot` folder are allowed by default.
[153] Fix | Delete
*/
[154] Fix | Delete
"symlinks" => [
[155] Fix | Delete
/**
[156] Fix | Delete
* Default value "false".
[157] Fix | Delete
* Allow to link ANY path when set to "true" - quite unsecure.
[158] Fix | Delete
* Target path will be restricted only by OS permissions.
[159] Fix | Delete
*/
[160] Fix | Delete
"allowAll" => false,
[161] Fix | Delete
/**
[162] Fix | Delete
* List of files/folders that can be linked with symlinks.
[163] Fix | Delete
* All contents of listed folder are allowed to be linked as well.
[164] Fix | Delete
* Use absolute server paths.
[165] Fix | Delete
*/
[166] Fix | Delete
"allowPaths" => [],
[167] Fix | Delete
],
[168] Fix | Delete
],
[169] Fix | Delete
/**
[170] Fix | Delete
* Upload section
[171] Fix | Delete
*/
[172] Fix | Delete
"upload" => [
[173] Fix | Delete
/**
[174] Fix | Delete
* Default value "16000000" (16 MB).
[175] Fix | Delete
* The maximum allowed file size (in Bytes). If set to "false", no size limitations applied.
[176] Fix | Delete
* See https://github.com/blueimp/jQuery-File-Upload/wiki/Options#maxfilesize.
[177] Fix | Delete
*/
[178] Fix | Delete
"fileSizeLimit" => 16000000,
[179] Fix | Delete
/**
[180] Fix | Delete
* Default value "false".
[181] Fix | Delete
* If set to "true" files will be overwritten on uploads if they have same names, otherwise an index will be added.
[182] Fix | Delete
*/
[183] Fix | Delete
"overwrite" => false,
[184] Fix | Delete
/**
[185] Fix | Delete
* Upload parameter name, that is expected to contains uploaded file data - $_FILES[paramName].
[186] Fix | Delete
* Good usecase example is CKEditor image upload plugin, that sends files within "upload" name.
[187] Fix | Delete
*/
[188] Fix | Delete
"paramName" => "upload",
[189] Fix | Delete
],
[190] Fix | Delete
/**
[191] Fix | Delete
* Images section
[192] Fix | Delete
*/
[193] Fix | Delete
"images" => [
[194] Fix | Delete
/**
[195] Fix | Delete
* Uploaded image settings.
[196] Fix | Delete
* To disable resize set both `maxWidth` and `maxHeight` to "false".
[197] Fix | Delete
*/
[198] Fix | Delete
"main" => [
[199] Fix | Delete
/**
[200] Fix | Delete
* Default value "true".
[201] Fix | Delete
* Automatically rotate images based on EXIF meta data.
[202] Fix | Delete
*/
[203] Fix | Delete
"autoOrient" => true,
[204] Fix | Delete
/**
[205] Fix | Delete
* Default value "1280".
[206] Fix | Delete
* Resize maximum width in pixels. Takes integer values or "false".
[207] Fix | Delete
*/
[208] Fix | Delete
"maxWidth" => 1280,
[209] Fix | Delete
/**
[210] Fix | Delete
* Default value "1024".
[211] Fix | Delete
* Resize maximum height in pixels. Takes integer values or "false".
[212] Fix | Delete
*/
[213] Fix | Delete
"maxHeight" => 1024,
[214] Fix | Delete
],
[215] Fix | Delete
/**
[216] Fix | Delete
* Thumbnail creation settings of uploaded image.
[217] Fix | Delete
*/
[218] Fix | Delete
"thumbnail" => [
[219] Fix | Delete
/**
[220] Fix | Delete
* Default value "true".
[221] Fix | Delete
* Generate thumbnails using PHP to increase performance on listing directory.
[222] Fix | Delete
*/
[223] Fix | Delete
"enabled" => true,
[224] Fix | Delete
/**
[225] Fix | Delete
* Default value "true".
[226] Fix | Delete
* If set to "false", it will generate thumbnail each time the image is requested. Decreased performance.
[227] Fix | Delete
*/
[228] Fix | Delete
"cache" => true,
[229] Fix | Delete
/**
[230] Fix | Delete
* Default value "_thumbs/".
[231] Fix | Delete
* Folder to store thumbnails, invisible via filemanager.
[232] Fix | Delete
* If you want to make it visible, just remove it from `excluded_dirs` configuration option.
[233] Fix | Delete
*/
[234] Fix | Delete
"dir" => "_thumbs/",
[235] Fix | Delete
/**
[236] Fix | Delete
* Default value "true".
[237] Fix | Delete
* Crop thumbnails. Set dimensions below to create square thumbnails of a particular size.
[238] Fix | Delete
*/
[239] Fix | Delete
"crop" => true,
[240] Fix | Delete
/**
[241] Fix | Delete
* Default value "64".
[242] Fix | Delete
* Maximum crop width in pixels.
[243] Fix | Delete
*/
[244] Fix | Delete
"maxWidth" => 64,
[245] Fix | Delete
/**
[246] Fix | Delete
* Default value "64".
[247] Fix | Delete
* Maximum crop height in pixels.
[248] Fix | Delete
*/
[249] Fix | Delete
"maxHeight" => 64,
[250] Fix | Delete
]
[251] Fix | Delete
],
[252] Fix | Delete
/**
[253] Fix | Delete
* Default mode while creating new folder.
[254] Fix | Delete
*/
[255] Fix | Delete
"mkdir_mode" => 0755,
[256] Fix | Delete
];
[257] Fix | Delete
[258] Fix | Delete
return $config;
[259] Fix | Delete
[260] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function