<?php
$config_path_type = PathToParams('path_type', 'other');
$upload_path = str_replace('-', '/', $config_path_type);
return [
'imageActionName' => 'uploadimage',
'imageFieldName' => 'upfile',
'imageMaxSize' => MyFileConfig('home_max_limit_image', '', 2048000, true),
'imageAllowFiles' => ['.png', '.jpg', '.jpeg', '.gif', '.bmp', '.ico'],
'imageCompressEnable' => true,
'imageCompressBorder' => 5000,
'imageInsertAlign' => 'none',
'imageUrlPrefix' => '',
'imagePathFormat' => __MY_ROOT_PUBLIC__.'static/upload/images/'.$upload_path.'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
'scrawlActionName' => 'uploadscrawl',
'scrawlFieldName' => 'upfile',
'scrawlPathFormat' => __MY_ROOT_PUBLIC__.'static/upload/images/'.$upload_path.'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
'scrawlMaxSize' => MyFileConfig('home_max_limit_image', '', 2048000, true),
'scrawlAllowFiles' => ['.png', '.jpg', '.jpeg', '.gif', '.bmp', '.ico'],
'scrawlUrlPrefix' => '',
'scrawlInsertAlign' => 'none',
'snapscreenActionName' => 'uploadimage',
'snapscreenPathFormat' => __MY_ROOT_PUBLIC__.'static/upload/images/'.$upload_path.'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
'snapscreenUrlPrefix' => '',
'snapscreenInsertAlign' => 'none',
'catcherLocalDomain' => ['127.0.0.1', 'localhost', 'img.baidu.com'],
'catcherActionName' => 'catchimage',
'catcherFieldName' => 'source',
'catcherPathFormat' => __MY_ROOT_PUBLIC__.'static/upload/images/'.$upload_path.'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
'catcherUrlPrefix' => '',
'catcherMaxSize' => MyFileConfig('home_max_limit_image', '', 2048000, true),
'catcherAllowFiles' => ['.png', '.jpg', '.jpeg', '.gif', '.bmp', '.ico'],
'videoActionName' => 'uploadvideo',
'videoFieldName' => 'upfile',
'videoPathFormat' => __MY_ROOT_PUBLIC__.'static/upload/video/'.$upload_path.'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
'videoUrlPrefix' => '',
'videoMaxSize' => MyFileConfig('home_max_limit_video', '', 102400000, true),
'videoAllowFiles' => ['.swf', '.ogg', '.ogv', '.mp4', '.mov', '.webm', '.mp3'],
'fileActionName' => 'uploadfile',
'fileFieldName' => 'upfile',
'filePathFormat' => __MY_ROOT_PUBLIC__.'static/upload/file/'.$upload_path.'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
'fileUrlPrefix' => '',
'fileMaxSize' => MyFileConfig('home_max_limit_file', '', 51200000, true),
'fileAllowFiles' => ['.png', '.jpg', '.jpeg', '.gif', '.bmp', '.ico', '.flv', '.swf', '.mkv', '.avi', '.rm', '.rmvb', '.mpeg', '.mpg', '.ogg', '.ogv', '.mov', '.wmv', '.mp4', '.webm', '.mp3', '.wav', '.mid','.rar', '.zip', '.tar', '.gz', '.7z', '.bz2', '.cab', '.iso', '.doc', '.docx', '.xls', '.xlsx', '.csv', '.ppt', '.pptx', '.pdf', '.txt', '.md', '.xml', '.ofd', '.sql'],
'imageManagerActionName'=> 'listimage',
'imageManagerListPath' => __MY_ROOT_PUBLIC__.'static/upload/images/'.$config_path_type.'/',
'imageManagerListSize' => 30,
'imageManagerUrlPrefix' => '',
'imageManagerInsertAlign'=> 'none',
'imageManagerAllowFiles'=> ['.png', '.jpg', '.jpeg', '.gif', '.bmp', '.ico'],
'fileManagerActionName' => 'listfile',
'fileManagerListPath' => __MY_ROOT_PUBLIC__.'static/upload/file/'.$config_path_type.'/',
'fileManagerUrlPrefix' => '',
'fileManagerListSize' => 30,
'fileManagerAllowFiles' => ['.png', '.jpg', '.jpeg', '.gif', '.bmp', '.ico', '.flv', '.swf', '.mkv', '.avi', '.rm', '.rmvb', '.mpeg', '.mpg', '.ogg', '.ogv', '.mov', '.wmv', '.mp4', '.mov', '.webm', '.mp3', '.wav', '.mid','.rar', '.zip', '.tar', '.gz', '.7z', '.bz2', '.cab', '.iso', '.doc', '.docx', '.xls', '.xlsx', '.csv', '.ppt', '.pptx', '.pdf', '.txt', '.md', '.xml', '.ofd', '.sql'],
'videoManagerActionName' => 'listvideo',
'videoManagerListPath' => __MY_ROOT_PUBLIC__.'static/upload/video/'.$config_path_type.'/',
'videoManagerUrlPrefix' => '',
'videoManagerListSize' => 30,
'videoManagerAllowFiles' => ['.swf', '.ogg', '.ogv', '.mp4', '.mov', '.webm', '.mp3'],
];
?>