From cdbc2d7a82e740af61856961de044d4aeccdf0b0 Mon Sep 17 00:00:00 2001 From: conory Date: Fri, 27 Sep 2019 00:34:19 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8F=99=EC=98=81=EC=83=81=20=EC=84=AC?= =?UTF-8?q?=EB=84=A4=EC=9D=BC,=20GIF=EB=A1=9C=20=EC=B7=A8=EA=B8=89=20?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80=20=EC=9D=B4=EB=AF=B8?= =?UTF-8?q?=EC=A7=80,=20=EB=8F=99=EC=98=81=EC=83=81=20=EC=B2=A8=EB=B6=80?= =?UTF-8?q?=EC=8B=9C=20=EA=B5=AC=EB=B6=84=ED=95=A0=20=EC=88=98=20=EC=9E=88?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EA=B7=B8=20=EC=84=AC=EB=84=A4=EC=9D=BC?= =?UTF-8?q?=EC=97=90=20play=20=EC=95=84=EC=9D=B4=EC=BD=98=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20=EB=AA=A8=EB=93=88=EB=B3=84=20=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=EC=8B=9C=20=ED=8C=8C=EC=9D=BC=20=EB=AA=A8?= =?UTF-8?q?=EB=93=88=EC=9D=98=20=EC=97=85=EB=A1=9C=EB=93=9C=20=EA=B8=B0?= =?UTF-8?q?=EB=B3=B8,=20=EC=9D=B4=EB=AF=B8=EC=A7=80,=20=EB=8F=99=EC=98=81?= =?UTF-8?q?=EC=83=81=20=EC=84=A4=EC=A0=95=EC=9D=84=20=EA=B0=81=EA=B0=81=20?= =?UTF-8?q?=EB=8B=AC=EB=A6=AC=20=EC=A0=81=EC=9A=A9=ED=95=A0=20=EC=88=98=20?= =?UTF-8?q?=EC=9E=88=EB=8F=84=EB=A1=9D=20=EA=B8=B0=EB=B3=B8=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=20=EC=A0=9C=EC=96=B4=20=EC=98=B5=EC=85=98=20=EB=B6=84?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/framework/image.php | 46 ++++ common/framework/video.php | 20 ++ .../plugins/jquery.fileupload/css/style.css | 20 +- .../js/plugins/jquery.fileupload/js/main.js | 15 +- common/lang/en.php | 5 + common/lang/ko.php | 5 + modules/file/file.admin.controller.php | 159 ++++++------- modules/file/file.controller.php | 189 +++++++++------ modules/file/file.model.php | 91 ++------ modules/file/lang/en.php | 46 ++-- modules/file/lang/ko.php | 48 ++-- modules/file/tpl/file_module_config.html | 218 +++++++++++------- modules/file/tpl/js/config.js | 15 +- modules/file/tpl/upload_config.html | 197 ++++++++++------ 14 files changed, 644 insertions(+), 430 deletions(-) create mode 100644 common/framework/image.php create mode 100644 common/framework/video.php diff --git a/common/framework/image.php b/common/framework/image.php new file mode 100644 index 000000000..1541207a2 --- /dev/null +++ b/common/framework/image.php @@ -0,0 +1,46 @@ + $image_info[0], + 'height' => $image_info[1], + 'type' => image_type_to_extension($image_info[2], false), + 'bits' => $image_info['bits'], + 'channels' => $image_info['channels'], + 'mime' => $image_info['mime'], + ]; + } +} diff --git a/common/framework/video.php b/common/framework/video.php new file mode 100644 index 000000000..f74d86439 --- /dev/null +++ b/common/framework/video.php @@ -0,0 +1,20 @@ +{{source_filename}}{{disp_file_size}} Select', - tmplXeUploaderFileitemImage: '
  • {{source_filename}}{{disp_file_size}}
  • ' + tmplXeUploaderFileitemImage: '
  • {{source_filename}}{{disp_file_size}}
  • ', + tmplXeUploaderFileitemVideo: '
  • {{source_filename}}{{disp_file_size}}
  • ' }; var _elements = [ @@ -156,7 +157,7 @@ else if(/\.(mp3)$/i.test(result.source_filename)) { temp_code += '