{"id":130,"date":"2010-02-17T02:17:12","date_gmt":"2010-02-16T17:17:12","guid":{"rendered":"https:\/\/hiro7216.mydns.jp\/blog\/?p=130"},"modified":"2024-01-30T23:18:33","modified_gmt":"2024-01-30T14:18:33","slug":"blognplus%e3%81%ae%e7%94%bb%e5%83%8f%e7%99%bb%e9%8c%b2%e6%99%82%e3%81%ab%e3%83%aa%e3%82%b5%e3%82%a4%e3%82%ba%e3%82%92%e8%a1%8c%e3%81%86","status":"publish","type":"post","link":"https:\/\/hiro7216.mydns.jp\/blog\/?p=130","title":{"rendered":"blognplus\u306e\u753b\u50cf\u767b\u9332\u6642\u306b\u30ea\u30b5\u30a4\u30ba\u3092\u884c\u3046"},"content":{"rendered":"\n<p><span style=\"color: red;\">\u3053\u306e\u8a18\u4e8b\u306fblognplus\u30d0\u30fc\u30b8\u30e7\u30f32.6.2\u30d9\u30fc\u30b9\u3067\u66f8\u3044\u3066\u3044\u307e\u3059\u3002<br>\u307e\u305f\u3001\u30b5\u30fc\u30d0\u30fc\u306bimagemagick\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br>imagemagick\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u306e\u306b\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u5834\u5408\u306f\u3001ImageMagicK\u306econvert\u306e\u30d1\u30b9\u4f4d\u7f6e\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>\uff08\/usr\/bin\/convert\u306e\u90e8\u5206\u3067\u3059\uff09<br>\u307e\u305fphp.ini\u306esafe_mode\u304cON\u306b\u306a\u3063\u3066\u3044\u308b\u3068shell_exec\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u306f\u51fa\u6765\u307e\u305b\u3093\u3002<\/span><\/p>\n\n\n\n<p>blognplus\u306e\u521d\u671f\u8a2d\u5b9a\u306b\u306f\u300c\u8868\u793a\u53ef\u80fd\u6700\u5927\u30b5\u30a4\u30ba\uff08\u6a2a\u00d7\u7e26\uff09\u300d\u3068\u3044\u3046\u9805\u76ee\u304c\u3042\u308a\u307e\u3059\u304c<br>\u3053\u308c\u306f\u753b\u50cf\u81ea\u4f53\u3092\u30ea\u30b5\u30a4\u30ba\u3059\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001\u8868\u793a\u4e0a\u306e\u307f\u306e\u30ea\u30b5\u30a4\u30ba\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c7\u30b8\u30ab\u30e1\u3067\u64ae\u3063\u305f\u3088\u3046\u306a\u753b\u50cf\u306f\u975e\u5e38\u306b\u5927\u304d\u304f\u3001\u753b\u50cf\u7de8\u96c6\u30bd\u30d5\u30c8\u3092\u5229\u7528\u3057\u3066\u30ea\u30b5\u30a4\u30ba\u5f8c\u306b<br>\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u3044\u308b\u65b9\u304c\u6b86\u3069\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br>\u79c1\u306f\u305d\u308c\u307b\u3069\u9762\u5012\u3060\u3068\u306f\u611f\u3058\u307e\u305b\u3093\u304c\u3001\u77e5\u4eba\u304b\u3089\u9762\u5012\u3060\u3068\u8a00\u308f\u308c<br>\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u6642\u306b\u81ea\u52d5\u3067\u30ea\u30b5\u30a4\u30ba\u3059\u308b\u5909\u66f4\u3092\u52a0\u3048\u307e\u3057\u305f\u3002<br><span style=\"color: red;\">\u203b\u30ea\u30b5\u30a4\u30ba\u3059\u308b\u57fa\u6e96\u306e\u30b5\u30a4\u30ba\u306f\u3001\u521d\u671f\u8a2d\u5b9a\u306e\u300c\u8868\u793a\u53ef\u80fd\u6700\u5927\u30b5\u30a4\u30ba\uff08\u6a2a\u00d7\u7e26\uff09\u300d\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n\n\n\n<p>\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u51e6\u7406\u3092\u3057\u3066\u3044\u308b\u7b87\u6240\u306f\uff12\u7b87\u6240\u3042\u308a\u3001\u305d\u306e\u4e21\u65b9\u306b\u4fee\u6b63\u3092\u5165\u308c\u307e\u3059\u3002<br>\u307e\u305a\u306f\u8a18\u4e8b\u306e\u7de8\u96c6\u6642\u306b\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u3067\u753b\u50cf\u633f\u5165\u3059\u308b\u753b\u9762\u306e\u4fee\u6b63\u3067\u3059\u3002<br>\u30d5\u30a1\u30a4\u30eb\u540d\u306fpict.php\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"77\" data-enlighter-title=\"\" data-enlighter-group=\"\">$error = blogn_mod_db_file_add($user_id, $file_name, $_POST[\"blogn_comment\"]);\n@chmod($dest,0666);\n\/\/ \u30d5\u30a1\u30a4\u30eb\u306e\u7a2e\u985e\u30c1\u30a7\u30c3\u30af\nif ($size = @getimagesize($dest)) {\n\/\/ \u6700\u5927\u30b5\u30a4\u30ba\u3092\u8d85\u3048\u308b\u753b\u50cf\u306e\u5834\u5408\u306f\u30ea\u30b5\u30a4\u30ba\u3092\u884c\u3046\nif ($size[0] > BLOGN_MAXWIDTH || $size[1] > BLOGN_MAXHEIGHT) {\n$ratio1 = BLOGN_MAXWIDTH \/ $size[0];\n$ratio2 = BLOGN_MAXHEIGHT \/ $size[1];\nif ($ratio1 &lt; $ratio2) {\n$ratio = $ratio1;\n}else{\n$ratio = $ratio2;\n}\n$rwidth = round($size[0] * $ratio);\n$rheight = round($size[1] * $ratio);\n\/\/ resize\nshell_exec('\/usr\/bin\/convert -geometry '.$rwidth.'x'.$rheight.' '.$dest.' '.$dest);\n}\n}\n<\/pre>\n\n\n\n<p>Imagick\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u3067\u3042\u308c\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u3082OK\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"77\" data-enlighter-title=\"\" data-enlighter-group=\"\">$error = blogn_mod_db_file_add($user_id, $file_name, $_POST[\"blogn_comment\"]);\n@chmod($dest,0666);\n\/\/ \u30d5\u30a1\u30a4\u30eb\u306e\u7a2e\u985e\u30c1\u30a7\u30c3\u30af\nif ($size = @getimagesize($dest)) {\n\/\/ \u6700\u5927\u30b5\u30a4\u30ba\u3092\u8d85\u3048\u308b\u753b\u50cf\u306e\u5834\u5408\u306f\u30ea\u30b5\u30a4\u30ba\u3092\u884c\u3046\nif ($size[0] > BLOGN_MAXWIDTH || $size[1] > BLOGN_MAXHEIGHT) {\n$ratio1 = BLOGN_MAXWIDTH \/ $size[0];\n$ratio2 = BLOGN_MAXHEIGHT \/ $size[1];\nif ($ratio1 &lt; $ratio2) { $ratio = $ratio1; }else{ $ratio = $ratio2; } $rwidth = round($size[0] * $ratio); $rheight = round($size[1] * $ratio); \/\/ resize $image = new Imagick($dest); $image->thumbnailImage($rwidth,$rheight);\n\/\/$image->setCompressionQuality(50);\n$image->writeImages($dest, TRUE);\n$image->clear();\n$image->destroy();\n}\n}\n<\/pre>\n\n\n\n<p>\u6b21\u306b\u7ba1\u7406\u753b\u9762\u306e\u300c\u30d5\u30a1\u30a4\u30eb\u7ba1\u7406\u300d\u3092\u884c\u3046\u753b\u9762\u306e\u4fee\u6b63\u3067\u3059\u3002<br>\u30d5\u30a1\u30a4\u30eb\u540d\u306fadmin.php\u306b\u306a\u308a\u307e\u3059\u3002<br>\u57fa\u672c\u7684\u306b\u5165\u308c\u308b\u51e6\u7406\u306f\u540c\u3058\u3082\u306e\u306b\u306a\u308a\u307e\u3059\u3002<br>\u5f53\u7136\u306a\u304c\u3089\u3001\u3053\u3061\u3089\u3082Imagick\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308c\u3070Imagick\u306e\u30ed\u30b8\u30c3\u30af\u3067\u3082OK\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"2056\" data-enlighter-title=\"\" data-enlighter-group=\"\">$error = blogn_mod_db_file_add($user_id, $file_name, $comment);\n@chmod($dest,0666);\n\/\/ \u30d5\u30a1\u30a4\u30eb\u306e\u7a2e\u985e\u30c1\u30a7\u30c3\u30af\nif ($size = @getimagesize($dest)) {\n\/\/ \u6700\u5927\u30b5\u30a4\u30ba\u3092\u8d85\u3048\u308b\u753b\u50cf\u306e\u5834\u5408\u306f\u30ea\u30b5\u30a4\u30ba\u3092\u884c\u3046\nif ($size[0] > BLOGN_MAXWIDTH || $size[1] > BLOGN_MAXHEIGHT) {\n$ratio1 = BLOGN_MAXWIDTH \/ $size[0];\n$ratio2 = BLOGN_MAXHEIGHT \/ $size[1];\nif ($ratio1 &lt; $ratio2) {\n$ratio = $ratio1;\n}else{\n$ratio = $ratio2;\n}\n$rwidth = round($size[0] * $ratio);\n$rheight = round($size[1] * $ratio);\n\/\/ resize\nshell_exec('\/usr\/bin\/convert -geometry '.$rwidth.'x'.$rheight.' '.$dest.' '.$dest);\n}\n}\n<\/pre>\n\n\n\n<p>\u3061\u306a\u307f\u306b\u643a\u5e2f\u306e\u753b\u9762\u304b\u3089\u898b\u308b\u3068\u3001\u66f4\u306b\u5404\u643a\u5e2f\u7aef\u672b\u306b\u5408\u308f\u305b\u3066<br>\u81ea\u52d5\u3067\u753b\u9762\u30b5\u30a4\u30ba\u3092\u8abf\u6574\u3059\u308b\u6a5f\u80fd\u304cblognplus\u306b\u306f\u3042\u308a\u307e\u3059\u3002<br>\u3057\u304b\u3057\u3001\u643a\u5e2f\u7aef\u672b\u306e\u30ea\u30b9\u30c8\u304c\u53e4\u304f\u3001\u6700\u8fd1\u306e\u6a5f\u7a2e\u3067\u306f\u753b\u50cf\u304c\u5c0f\u3055\u304f\u8868\u793a\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br>dat\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e2d\u306b\u3042\u308bmobilelist.cgi\u304c\u6a5f\u7a2e\u6bce\u306e\u753b\u50cf\u8868\u793a\u53ef\u80fd\u306e\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u306b\u306a\u308a\u307e\u3059\u3002<br>\u3064\u307e\u308amobilelist.cgi\u3092\u6700\u65b0\u306e\u3082\u306e\u306b\u66f4\u65b0\u3059\u308c\u3070\u3001\u6bd4\u8f03\u7684\u65b0\u3057\u3044\u6a5f\u7a2e\u3067\u3082\u5bfe\u5fdc\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<br>\u4ee5\u4e0b\u306eURL\u3088\u308a\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u53ef\u80fd\u3067\u3059\u3002<br><a href=\"http:\/\/i-njoy.net\/tips\/plus_mbl.shtml\" target=\"_blank\" rel=\"noopener noreferrer\">BlognPlus \u7528\u300cmobilelist.cgi\u300d<\/a><\/p>\n\n\n\n<p>\u307e\u305f\u643a\u5e2f\u3067blognplus\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u753b\u50cf\u306f\u76f4\u63a5\u8868\u793a\u3055\u308c\u305a<br>\u300cPIC\u300d\u3068\u3044\u3046\u30ea\u30f3\u30af\u3067\u8868\u793a\u3055\u308c\u307e\u3059\u304c\u3001\u3044\u3061\u3044\u3061\u30ea\u30f3\u30af\u5148\u3078\u98db\u3076\u306e\u3082\u9762\u5012\u306a\u306e\u3067<br>\u76f4\u63a5\u8868\u793a\u51fa\u6765\u308b\u3088\u3046\u306b\u4fee\u6b63\u3092\u52a0\u3048\u307e\u3057\u305f\u3002<br><span style=\"color: red;\">\uff08\u643a\u5e2f\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u53ef\u80fd\u306a\u30b5\u30a4\u30ba\u3092\u8d85\u3048\u308b\u3088\u3046\u306ablog\u3067\u3059\u3068\u53b3\u3057\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\uff09<\/span><br>\u4fee\u6b63\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u540d\u306findex.php\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"1537\" data-enlighter-title=\"\" data-enlighter-group=\"\">if ($fsize &lt; 0.4) {\n$result = '';\n}else{\n$result = '[PIC]';\n}\n<\/pre>\n\n\n\n<p>\u3068\u66f8\u304b\u308c\u3066\u3044\u308b\u884c\u3092\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30ea\u30f3\u30af\u304b\u3089\u76f4\u63a5\u8868\u793a\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"1537\" data-enlighter-title=\"\" data-enlighter-group=\"\">if ($fsize &lt; 0.4) {\n$result = '';\n}else{\n$result = '';\n}\n<\/pre>\n\n\n\n<p>\u3053\u308c\u3067\u643a\u5e2f\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3057\u305f\u5834\u5408\u3067\u3082\u3001\u6a5f\u7a2e\u6bce\u306b\u6700\u9069\u306a\u30b5\u30a4\u30ba\u3067\u76f4\u63a5\u753b\u50cf\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br><span style=\"color: red;\">\u203bmobilelist.cgi\u306f\u5b9a\u671f\u7684\u306b\u66f4\u65b0\u3057\u3066\u3042\u3052\u306a\u3044\u3068\u3001\u6700\u65b0\u306e\u643a\u5e2f\u3067\u306f\u5c0f\u3055\u3044\u8868\u793a\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/span><\/p>\n\n\n\n<p>\u3044\u3063\u305d\u30ea\u30b9\u30c8\u306b\u4e57\u3063\u3066\u3044\u306a\u3044\u6a5f\u7a2e\u306f\u3001\u6700\u65b0\u306e\u6a5f\u7a2e\u3068\u5272\u308a\u5207\u3063\u3066<br>im.php\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u66f8\u304d\u63db\u3048\u308b\u306e\u3082\u3042\u308a\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br>mobilelist.cgi\u306b\u6a5f\u7a2e\u60c5\u5831\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f\u3001im.php\u306e\u4ee5\u4e0b\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u304c\u9069\u5fdc\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"17\" data-enlighter-title=\"\" data-enlighter-group=\"\">$max_size = 5;\n$max_width = 96;\n$max_height = 72;\n$color_size = 256;\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u8a18\u4e8b\u306fblognplus\u30d0\u30fc\u30b8\u30e7\u30f32.6.2\u30d9\u30fc\u30b9\u3067\u66f8\u3044\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u30b5\u30fc\u30d0\u30fc\u306bimagemagick\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002imagemagick\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u306e\u306b\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u5834\u5408\u306f\u3001I &hellip; <a href=\"https:\/\/hiro7216.mydns.jp\/blog\/?p=130\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">blognplus\u306e\u753b\u50cf\u767b\u9332\u6642\u306b\u30ea\u30b5\u30a4\u30ba\u3092\u884c\u3046<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[63],"class_list":["post-130","post","type-post","status-publish","format-standard","hentry","category-et-cetera","tag-blognplus"],"_links":{"self":[{"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=130"}],"version-history":[{"count":0,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/130\/revisions"}],"wp:attachment":[{"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}