本帖最后由 xuanyuanhunl 于 2014-7-3 10:33 编辑
打开 source\function\function_attachment.php
下面以7z做例子
查找- static $attachicons = array(
- 1 => 'unknown.gif',
- 2 => 'binary.gif',
- 3 => 'zip.gif',
- 4 => 'rar.gif',
- 5 => 'msoffice.gif',
- 6 => 'text.gif',
- 7 => 'html.gif',
- 8 => 'real.gif',
- 9 => 'av.gif',
- 10 => 'flash.gif',
- 11 => 'image.gif',
- 12 => 'pdf.gif',
- 13 => 'torrent.gif'
复制代码 修改为- static $attachicons = array(
- 1 => 'unknown.gif',
- 2 => 'binary.gif',
- 3 => 'zip.gif',
- 4 => 'rar.gif',
- 5 => 'msoffice.gif',
- 6 => 'text.gif',
- 7 => 'html.gif',
- 8 => 'real.gif',
- 9 => 'av.gif',
- 10 => 'flash.gif',
- 11 => 'image.gif',
- 12 => 'pdf.gif',
- 13 => 'torrent.gif',
- 14 => '7z.gif'
复制代码 查找- if(preg_match("/bittorrent|^torrent\t/", $type)) {
- $typeid = 13;
- } elseif(preg_match("/pdf|^pdf\t/", $type)) {
- $typeid = 12;
复制代码 修改为- if(preg_match("/bittorrent|^torrent\t/", $type)) {
- $typeid = 13;
- } elseif(preg_match("/compressed2|^(7z)\t/", $type)) {
- $typeid = 14;
- } elseif(preg_match("/pdf|^pdf\t/", $type)) {
- $typeid = 12;
复制代码 把7z.gif传到 static\image\filetype
更新缓存
|