Browse Source

上传支持webp格式图片

tags/6.1.8
tianya 3 years ago
parent
commit
43079184ed
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      src/admin/dialog/select_images_post.php
  2. +1
    -1
      src/install/sql-dfdata.txt
  3. +1
    -1
      src/static/ckeditor/config.js

+ 1
- 1
src/admin/dialog/select_images_post.php View File

@@ -33,7 +33,7 @@ if (!preg_match("#\.(".$cfg_imgtype.")#i", $imgfile_name)) {
exit(); exit();
} }
$nowtme = time(); $nowtme = time();
$sparr = array("image/pjpeg", "image/jpeg", "image/gif", "image/png", "image/xpng", "image/wbmp"); $sparr = array("image/pjpeg", "image/jpeg", "image/gif", "image/png", "image/xpng", "image/wbmp", "image/webp");
$imgfile_type = strtolower(trim($imgfile_type)); $imgfile_type = strtolower(trim($imgfile_type));
if (!in_array($imgfile_type, $sparr)) { if (!in_array($imgfile_type, $sparr)) {
ShowMsg("上传的图片格式错误,请使用JPEG、GIF、PNG、WBMP格式的其中一种", "-1"); ShowMsg("上传的图片格式错误,请使用JPEG、GIF、PNG、WBMP格式的其中一种", "-1");


+ 1
- 1
src/install/sql-dfdata.txt View File

@@ -3956,7 +3956,7 @@ INSERT INTO `#@__sysconfig` VALUES
('12','cfg_ddimg_width','缩略图默认宽度','3','number','400'), ('12','cfg_ddimg_width','缩略图默认宽度','3','number','400'),
('13','cfg_ddimg_height','缩略图默认高度','3','number','300'), ('13','cfg_ddimg_height','缩略图默认高度','3','number','300'),
('14','cfg_album_width','图集默认显示图片的大小','3','number','800'), ('14','cfg_album_width','图集默认显示图片的大小','3','number','800'),
('15','cfg_imgtype','图片浏览器文件类型','3','string','jpg|gif|png'), ('15','cfg_imgtype','图片浏览器文件类型','3','string','jpg|gif|png|webp|bmp'),
('16','cfg_softtype','允许上传的软件类型','3','bstring','zip|gz|rar|iso|doc|xsl|ppt|wps'), ('16','cfg_softtype','允许上传的软件类型','3','bstring','zip|gz|rar|iso|doc|xsl|ppt|wps'),
('17','cfg_mediatype','允许的多媒体文件类型','3','bstring','swf|rm|rmvb|mpg|mp3|mp4|wmv|wma|wav|mid|mov'), ('17','cfg_mediatype','允许的多媒体文件类型','3','bstring','swf|rm|rmvb|mpg|mp3|mp4|wmv|wma|wav|mid|mov'),
('18','cfg_specnote','专题的最大节点数','2','number','10'), ('18','cfg_specnote','专题的最大节点数','2','number','10'),


+ 1
- 1
src/static/ckeditor/config.js View File

@@ -21,6 +21,6 @@ CKEDITOR.editorConfig = function (config) {
config.height = 450; config.height = 450;
config.removePlugins = 'exportpdf'; config.removePlugins = 'exportpdf';
config.extraPlugins = 'html5video,dedepagebreak,textindent'; config.extraPlugins = 'html5video,dedepagebreak,textindent';
config.removeButtons = 'About,ShowBlocks,Iframe,Flash,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField'; config.removeButtons = 'Save,NewPage,Print,Preview,Templates,Smiley,About,ShowBlocks,Iframe,Flash,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField';
config.font_names='宋体/SimSun;楷体/KaiTi;黑体/SimHei;微软雅黑/Microsoft YaHei;微软正黑/Microsoft JhengHei'+ config.font_names; config.font_names='宋体/SimSun;楷体/KaiTi;黑体/SimHei;微软雅黑/Microsoft YaHei;微软正黑/Microsoft JhengHei'+ config.font_names;
}; };

Loading…
Cancel
Save