# HG changeset patch # User HIROSE Yuuji # Date 1554194071 -32400 # Node ID 3fcaea2892a817027e98e17f2fbc0e8dea46160c # Parent 24a5010a131b774f745f0706d4c439430b197c8f File accept warnings added diff -r 24a5010a131b -r 3fcaea2892a8 s4-blog.sh --- a/s4-blog.sh Thu Mar 14 16:23:50 2019 +0900 +++ b/s4-blog.sh Tue Apr 02 17:34:31 2019 +0900 @@ -397,14 +397,16 @@ ' *語群* ' で強調(両側の空白必要、** でもっと強調。*の代わりに _ でも可) - [ ] と - [x] でチェックボックス" touchhelp="${touchpanel:+

$help

}" + filehelp="《添付の注意》 +$file_accept_help" textform='
-"' +'"$touchhelp +"'
'"$touchhelp"'
添付ファイル: -
添付ファイル(${filesize_max_MB}以下):"' +
diff -r 24a5010a131b -r 3fcaea2892a8 s4-funcs.sh --- a/s4-funcs.sh Thu Mar 14 16:23:50 2019 +0900 +++ b/s4-funcs.sh Tue Apr 02 17:34:31 2019 +0900 @@ -30,11 +30,14 @@ maximagexy=1600x1600 ### maximagexy=400x400 filesize_max=$((5*1024*1024)) +filesize_max_MB="$((filesize_max/1024/1024))MB" file_accept='accept="image/*,text/*,audio/*,application/vnd.oasis.*,application/pdf,application/x-*"' file_accept_egrep='^(text/|message/|image/|audio/|video/|application/(vnd.oasis|pdf|epub|xml|zip||[xz]-))' -file_warn=" -添付可能ファイル: 5MB以内のテキスト、画像、音声、動画、ODT、PDF、 +file_accept_help="添付可能ファイル: テキスト、画像、音声、動画、ODT、PDF、 圧縮ファイル、データベースファイル +(いずれも ${filesize_max_MB} 以内) +" +file_warn="$file_accept_help [編集]リンクから修正してください。" blogreadflagrowid=0 blogcutoffflagrowid=-1