Server IP : 103.119.228.120 / Your IP : 3.144.101.75 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/softaculous/dada/ |
Upload File : |
<?php /** * RichFilemanager configuration file for Local storage. * * @license MIT License * @author Pavel Solomienko <https://github.com/servocoder/> * @copyright Authors */ $config = [ /** * Configure Logger class */ "logger" => [ "enabled" => false, /** * Default value "null". * Full path to log file, e.g. "/var/log/filemanager/logfile". * By default the application writes logs to "filemanager.log" file that located at sys_get_temp_dir() */ "file" => null, ], /** * General options section */ "options" => [ /** * Default value "true". * By default the application will search `fileRoot` folder under server root folder. * Set value to "false" in case the `fileRoot` folder located outside server root folder. * If `fileRoot` options is set to "false", `serverRoot` value is ignored - always "true". */ "serverRoot" => false, /** * Default value "false". Path to the user storage folder. * By default the application will determine the path itself based on $_SERVER['DOCUMENT_ROOT']. * You can set specific path to user storage folder with the following rules: * - absolute path in case `serverRoot` set to "false", e.g. "/var/www/html/filemanager/userfiles/" * - relative path in case `serverRoot` set to "true", e.g. "/filemanager/userfiles/" */ "fileRoot" => "[[wwwdir]]/dada_mail_support_files/file_uploads", /** * Format of the date to display. See http://www.php.net/manual/en/function.date.php */ "dateFormat" => "d M Y H:i", /** * The maximum allowed root folder total size (in Bytes). If set to "false", no size limitations applied. */ "fileRootSizeLimit" => false, /** * Default value "false". Deny non-latin characters in file/folder names. * PHP requires INTL extension installed, otherwise all non-latin characters will be stripped. */ "charsLatinOnly" => false, ], /** * Security section */ "security" => [ /** * Default value "false". Allow write operations. * Set value to "true" to disable all modifications to the filesystem, including thumbnail generation. */ "readOnly" => false, /** * Default value "true". * Sanitize file/folder name, replaces gaps and some other special chars. */ "normalizeFilename" => true, /** * Filename extensions are compared against this list, after the right-most dot '.' * Matched files will be filtered from listing results, and will be restricted from all file operations (both read and write). */ "extensions" => [ /** * Default value "ALLOW_LIST". Takes value "ALLOW_LIST" / "DISALLOW_LIST". * If is set to "ALLOW_LIST", only files with extensions that match `restrictions` list will be allowed, all other files are forbidden. * If is set to "DISALLOW_LIST", all files are allowed except of files with extensions that match `restrictions` list. */ "policy" => "ALLOW_LIST", /** * Default value "true". * Whether extension comparison should be case sensitive. */ "ignoreCase" => true, /** * List of allowed / disallowed extensions, depending on the `policy` value. * To allow / disallow files without extension, add / remove the empty string "" to / from this list. */ "restrictions" => [ "", "jpg", "jpe", "jpeg", "gif", "png", "svg", "txt", "pdf", "odp", "ods", "odt", "rtf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "csv", "ogv", "avi", "mkv", "mp4", "webm", "m4v", "ogg", "mp3", "wav", "zip", "md", ], ], /** * Files and folders paths relative to the user storage folder (see `fileRoot`) are compared against this list. * Matched items will be filtered from listing results, and will be restricted from all file operations (both read and write). */ "patterns" => [ /** * Default value "ALLOW_LIST". Takes value "ALLOW_LIST" / "DISALLOW_LIST". * If is set to "ALLOW_LIST", only files and folders that match `restrictions` list will be allowed, all other files are forbidden. * If is set to "DISALLOW_LIST", all files and folders are allowed except of ones that match `restrictions` list. */ "policy" => "DISALLOW_LIST", /** * Default value "true". * Whether patterns comparison should be case sensitive. */ "ignoreCase" => true, /** * List of allowed / disallowed patterns, depending on the `policy` value. */ "restrictions" => [ // files "*/.htaccess", "*/web.config", // folders "*/_thumbs/*", "*/.CDN_ACCESS_LOGS/*", ], ], /** * Rules for symbolic links that point to files/folders OUTSIDE the `fileroot` folder. * Targets of symbolic links INSIDE the `fileroot` folder are allowed by default. */ "symlinks" => [ /** * Default value "false". * Allow to link ANY path when set to "true" - quite unsecure. * Target path will be restricted only by OS permissions. */ "allowAll" => false, /** * List of files/folders that can be linked with symlinks. * All contents of listed folder are allowed to be linked as well. * Use absolute server paths. */ "allowPaths" => [], ], ], /** * Upload section */ "upload" => [ /** * Default value "16000000" (16 MB). * The maximum allowed file size (in Bytes). If set to "false", no size limitations applied. * See https://github.com/blueimp/jQuery-File-Upload/wiki/Options#maxfilesize. */ "fileSizeLimit" => 16000000, /** * Default value "false". * If set to "true" files will be overwritten on uploads if they have same names, otherwise an index will be added. */ "overwrite" => false, /** * Upload parameter name, that is expected to contains uploaded file data - $_FILES[paramName]. * Good usecase example is CKEditor image upload plugin, that sends files within "upload" name. */ "paramName" => "upload", ], /** * Images section */ "images" => [ /** * Uploaded image settings. * To disable resize set both `maxWidth` and `maxHeight` to "false". */ "main" => [ /** * Default value "true". * Automatically rotate images based on EXIF meta data. */ "autoOrient" => true, /** * Default value "1280". * Resize maximum width in pixels. Takes integer values or "false". */ "maxWidth" => 1280, /** * Default value "1024". * Resize maximum height in pixels. Takes integer values or "false". */ "maxHeight" => 1024, ], /** * Thumbnail creation settings of uploaded image. */ "thumbnail" => [ /** * Default value "true". * Generate thumbnails using PHP to increase performance on listing directory. */ "enabled" => true, /** * Default value "true". * If set to "false", it will generate thumbnail each time the image is requested. Decreased performance. */ "cache" => true, /** * Default value "_thumbs/". * Folder to store thumbnails, invisible via filemanager. * If you want to make it visible, just remove it from `excluded_dirs` configuration option. */ "dir" => "_thumbs/", /** * Default value "true". * Crop thumbnails. Set dimensions below to create square thumbnails of a particular size. */ "crop" => true, /** * Default value "64". * Maximum crop width in pixels. */ "maxWidth" => 64, /** * Default value "64". * Maximum crop height in pixels. */ "maxHeight" => 64, ] ], /** * Default mode while creating new folder. */ "mkdir_mode" => 0755, ]; return $config;