app.php 8.6 KB
Newer Older
D
v1.2.0  
devil_gong 已提交
1 2 3 4
<?php
// +----------------------------------------------------------------------
// | ShopXO 国内领先企业级B2C免费开源电商系统
// +----------------------------------------------------------------------
D
devil_gong 已提交
5
// | Copyright (c) 2011~2019 http://shopxo.net All rights reserved.
D
v1.2.0  
devil_gong 已提交
6 7 8 9 10 11 12 13 14 15 16 17 18 19
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Devil
// +----------------------------------------------------------------------

/**
 * 模块配置信息
 * @author   Devil
 * @blog     http://gong.gg/
 * @version  0.0.1
 * @datetime 2016-12-01T21:51:08+0800
 */

D
devil_gong 已提交
20
return [
D
v1.2.0  
devil_gong 已提交
21 22 23 24 25 26 27 28 29 30 31 32 33 34
    // 缓存key列表
    // 权限缓存存储key
    'cache_admin_power_key'         =>  'cache_admin_power_',

    // 菜单列表
    'cache_admin_left_menu_key'     =>  'cache_admin_left_menu_',

    // URL模式
    'URL_MODEL'                     =>  0,

    // 设置默认的模板主题
    'DEFAULT_THEME'                 =>  'Default',

    // 百度编辑器配置信息 ueditor
D
devil_gong 已提交
35
    'ueditor_config'                =>  [
D
v1.2.0  
devil_gong 已提交
36 37 38 39 40 41 42 43 44 45 46
            // 上传图片配置项
            // 执行上传图片的action名称
            'imageActionName'           =>  'uploadimage',

            // 提交的图片表单名称
            'imageFieldName'            =>  'upfile',

            // 上传大小限制,单位B
            'imageMaxSize'              =>  MyC('home_max_limit_image', 2048000, true),

            // 上传图片格式显示
D
devil_gong 已提交
47
            'imageAllowFiles'           =>  ['.png', '.jpg', '.jpeg', '.gif', '.bmp'],
D
v1.2.0  
devil_gong 已提交
48 49 50 51 52 53 54 55 56 57 58 59 60 61

            // 是否压缩图片,默认是true
            'imageCompressEnable'       =>  true,

            // 图片压缩最长边限制
            'imageCompressBorder'       =>  1600,

            // 插入的图片浮动方式
            'imageInsertAlign'          =>  'none',

            // 图片访问路径前缀
            'imageUrlPrefix'            =>  '',

            // 上传保存路径,可以自定义保存路径和文件名格式 
D
devil_gong 已提交
62
            'imagePathFormat'           =>  __MY_ROOT_PUBLIC__.'static/upload/images/'.input('path_type', 'other').'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
D
v1.2.0  
devil_gong 已提交
63 64 65 66 67 68 69 70 71 72


            // 涂鸦图片上传配置项
            // 执行上传涂鸦的action名称
            'scrawlActionName'      =>  'uploadscrawl',

            // 提交的图片表单名称
            'scrawlFieldName'       =>  'upfile',

            // 上传保存路径,可以自定义保存路径和文件名格式
D
devil_gong 已提交
73
            'scrawlPathFormat'      =>  __MY_ROOT_PUBLIC__.'static/upload/images/'.input('path_type', 'other').'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
D
v1.2.0  
devil_gong 已提交
74 75 76 77

            // 上传大小限制,单位B
            'scrawlMaxSize'         =>  MyC('home_max_limit_image', 2048000, true),

D
devil_gong 已提交
78 79 80
            // 上传图片格式显示
            'scrawlAllowFiles'           =>  ['.png', '.jpg', '.jpeg', '.gif', '.bmp'],

D
v1.2.0  
devil_gong 已提交
81 82 83 84 85 86 87 88 89 90 91 92
            // 图片访问路径前缀
            'scrawlUrlPrefix'       =>  '',

            // 插入的图片浮动方式
            'scrawlInsertAlign'     =>  'none',


            // 截图工具上传
            // 执行上传截图的action名称
            'snapscreenActionName'  =>  'uploadimage',

            // 上传保存路径,可以自定义保存路径和文件名格式
D
devil_gong 已提交
93
            'snapscreenPathFormat'  =>  __MY_ROOT_PUBLIC__.'static/upload/images/'.input('path_type', 'other').'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
D
v1.2.0  
devil_gong 已提交
94 95 96 97 98 99 100 101 102 103

            // 图片访问路径前缀
            'snapscreenUrlPrefix'   =>  '',

            // 插入的图片浮动方式
            'snapscreenInsertAlign' =>  'none',


            // 抓取远程图片配置
            // 执行抓取远程图片的action名称
D
devil_gong 已提交
104
            'catcherLocalDomain'    =>  ['127.0.0.1', 'localhost', 'img.baidu.com'],
D
v1.2.0  
devil_gong 已提交
105 106 107 108 109 110 111 112

            // 执行抓取远程图片的action名称
            'catcherActionName'     =>  'catchimage',

            // 提交的图片列表表单名称
            'catcherFieldName'      =>  'source',

            // 上传保存路径,可以自定义保存路径和文件名格式
D
devil_gong 已提交
113
            'catcherPathFormat'     =>  __MY_ROOT_PUBLIC__.'static/upload/images/'.input('path_type', 'other').'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
D
v1.2.0  
devil_gong 已提交
114 115 116 117 118 119 120 121

            // 图片访问路径前缀
            'catcherUrlPrefix'      =>  '',

            // 上传大小限制,单位B
            'catcherMaxSize'        =>  MyC('home_max_limit_image', 2048000, true),

            // 抓取图片格式显示
D
devil_gong 已提交
122
            'catcherAllowFiles'     =>  ['.png', '.jpg', '.jpeg', '.gif', '.bmp'],
D
v1.2.0  
devil_gong 已提交
123 124 125 126 127 128 129 130 131 132


            // 上传视频配置
            // 执行上传视频的action名称
            'videoActionName'       =>  'uploadvideo',

            // 提交的视频表单名称
            'videoFieldName'        =>  'upfile',

            // 上传保存路径,可以自定义保存路径和文件名格式
D
devil_gong 已提交
133
            'videoPathFormat'       =>  __MY_ROOT_PUBLIC__.'static/upload/video/'.input('path_type', 'other').'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
D
v1.2.0  
devil_gong 已提交
134 135 136 137 138 139 140 141

            // 视频访问路径前缀
            'videoUrlPrefix'        =>  '',

            // 上传大小限制,单位B,默认100MB
            'videoMaxSize'          =>  MyC('home_max_limit_video', 102400000, true),

            // 上传视频格式显示
D
devil_gong 已提交
142
            'videoAllowFiles'       =>  ['.swf', '.ogg', '.ogv', '.mp4', '.webm', '.mp3'], 
D
v1.2.0  
devil_gong 已提交
143 144 145 146 147 148 149 150 151 152

            
            // 上传文件配置
            // controller里,执行上传视频的action名称
            'fileActionName'        =>  'uploadfile',

            // 提交的文件表单名称
            'fileFieldName'         =>  'upfile',

            // 上传保存路径,可以自定义保存路径和文件名格式
D
devil_gong 已提交
153
            'filePathFormat'        =>  __MY_ROOT_PUBLIC__.'static/upload/file/'.input('path_type', 'other').'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
D
v1.2.0  
devil_gong 已提交
154 155 156 157 158 159 160 161

            // 文件访问路径前缀
            'fileUrlPrefix'         =>  '',

            // 上传大小限制,单位B,默认50MB
            'fileMaxSize'           =>  MyC('home_max_limit_file', 51200000, true),

            // 上传文件格式显示
D
devil_gong 已提交
162
            'fileAllowFiles'        =>  ['.png', '.jpg', '.jpeg', '.gif', '.bmp', '.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', '.ppt', '.pptx', '.pdf', '.txt', '.md', '.xml'],
D
v1.2.0  
devil_gong 已提交
163 164 165 166 167 168 169


            // 列出指定目录下的图片
            // 执行图片管理的action名称
            'imageManagerActionName'=>  'listimage',

            // 指定要列出图片的目录
D
devil_gong 已提交
170
            'imageManagerListPath'  =>  __MY_ROOT_PUBLIC__.'static/upload/images/'.input('path_type', 'other').'/',
D
v1.2.0  
devil_gong 已提交
171 172 173 174 175 176 177 178 179 180 181

            // 每次列出文件数量
            'imageManagerListSize'  =>  20,

            // 图片访问路径前缀
            'imageManagerUrlPrefix' =>  '',

            // 插入的图片浮动方式
            'imageManagerInsertAlign'=> 'none',

            // 列出的文件类型
D
devil_gong 已提交
182
            'imageManagerAllowFiles'=>  ['.png', '.jpg', '.jpeg', '.gif', '.bmp'],
D
v1.2.0  
devil_gong 已提交
183 184 185 186 187 188 189


            // 列出指定目录下的文件
            // 执行文件管理的action名称
            'fileManagerActionName' =>  'listfile',

            // 指定要列出文件的目录
D
devil_gong 已提交
190
            'fileManagerListPath'   =>  __MY_ROOT_PUBLIC__.'static/upload/file/'.input('path_type', 'other').'/',
D
v1.2.0  
devil_gong 已提交
191 192 193 194 195 196 197 198

            // 文件访问路径前缀
            'fileManagerUrlPrefix'  =>  '',

            // 每次列出文件数量
            'fileManagerListSize'   =>  20,

            // 列出的文件类型
D
devil_gong 已提交
199
            'fileManagerAllowFiles' =>  ['.png', '.jpg', '.jpeg', '.gif', '.bmp', '.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', '.ppt', '.pptx', '.pdf', '.txt', '.md', '.xml'],
D
v1.2.0  
devil_gong 已提交
200 201 202 203 204

            // 执行视频管理的action名称
            'videoManagerActionName' =>  'listvideo',

            // 指定要列出文件的目录
D
devil_gong 已提交
205
            'videoManagerListPath'   =>  __MY_ROOT_PUBLIC__.'static/upload/video/'.input('path_type', 'other').'/',
D
v1.2.0  
devil_gong 已提交
206 207 208 209 210 211 212 213

            // 文件访问路径前缀
            'videoManagerUrlPrefix'  =>  '',

            // 每次列出文件数量
            'videoManagerListSize'   =>  20,

            // 列出的文件类型
D
devil_gong 已提交
214 215 216 217
            'videoManagerAllowFiles' =>  ['.swf', '.ogg', '.ogv', '.mp4', '.webm', '.mp3'], 
      ],
];
?>