{"id":48,"date":"2002-06-20T02:26:16","date_gmt":"2002-06-20T02:26:16","guid":{"rendered":"http:\/\/dev.jblove.net\/?p=48"},"modified":"2002-06-20T02:26:16","modified_gmt":"2002-06-20T02:26:16","slug":"%eb%b8%8c%eb%9d%bc%ec%9a%b0%ec%a0%80-%ec%9e%90%eb%8f%99-%ec%b2%b4%ed%81%ac%ed%95%98%ec%97%ac-%ed%95%9c%ea%b8%80%ec%9d%b4%eb%a6%84-%ed%8c%8c%ec%9d%bc-%eb%8b%a4%ec%9a%b4%eb%a1%9c%eb%93%9c-%ec%8b%9c","status":"publish","type":"post","link":"https:\/\/jblove.net\/?p=48","title":{"rendered":"\ube0c\ub77c\uc6b0\uc800 \uc790\ub3d9 \uccb4\ud06c\ud558\uc5ec, \ud55c\uae00\uc774\ub984 \ud30c\uc77c \ub2e4\uc6b4\ub85c\ub4dc \uc2dc\ud0a4\uae30"},"content":{"rendered":"<p>\nphplove@phplove.co.kr <br \/>\nhttp:\/\/phplove.co.kr <\/p>\n<p>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- <\/p>\n<p>\n$filename = &#8220;$row[filename]&#8221;; \/\/\uc2e4\uc81c \ud30c\uc77c \uc774\ub984 <br \/>\n$filename_o = &#8220;$home_dir\/tmp\/&#8221;.$filename; \/\/\uc784\uc2dc \ud30c\uc77c\uc774\ub984 <br \/>\n$down_filename = &#8220;$home_dir\/upfiles\/$row[rfilename]&#8221;; \/\/\uc2e4\uc81c\ub85c \uc800\uc7a5\ub41c \ub514\ub809\ud1a0\ub9ac <\/p>\n<p>\/* <br \/>\n\ud30c\uc77c \uc5c5\ub85c\ub4dc\uc2dc \uc911\ubcf5\ud30c\uc77c\uc744 \uc5c6\uc560\uae30 \uc704\ud574\uc11c&#8230;.. <br \/>\n\ud30c\uc77c\uba85\uc744 \ubc14\uafb8\uc5b4 \uc800\uc7a5\ud569\ub2c8\ub2e4&#8230;. <br \/>\n\uc608\ub97c\ub4e4\uba74 <br \/>\n\ucd5c\ucd08 \uc6d0\ubcf8\ud30c\uc77c next.gif\ub780 \ud30c\uc77c\uc744 \uc5c5\ub85c\ub4dc\ud558\uba74 next.gif.0\uc73c\ub85c \uc800\uc7a5\uc774 \ub429\ub2c8\ub2e4 <br \/>\n\uadf8\ub2e4\uc74c \uc0ac\ub78c\uc774 \ub2e4\uc2dc next.gif\ud30c\uc77c\uc744 \uc5c5\ub85c\ub4dc\ud558\uba74 next.gif.1\ub85c \uc800\uc7a5 <br \/>\n\uadf8\ub807\uae30 \ub54c\ubb38\uc5d0 \uc911\ubcf5\ub418\ub294 \ud30c\uc77c\uc774 \uc5c6\uc2b5\ub2c8\ub2e4. <br \/>\n*\/ <\/p>\n<p>if(file_exists($down_filename)) { <br \/>\n\/* \ub9cc\uc57d \ub9c1\ud06c\ub41c \uc6d0\ubcf8\ud30c\uc77c\uc774 \uc788\uc744\uacbd\uc6b0 \uc0ad\uc81c\ub97c \ud574\uc90d\ub2c8\ub2e4..^^; \uc65c\uadf8\ub7f0\uc9c0\ub294 \uc544\uc2dc\uc8e0? *\/ <br \/>\nif(file_exists($filename_o)) { <br \/>\n@unlink(filename_o); <br \/>\n} <\/p>\n<p>@exec(&#8220;ln -sf $down_filename $filename_o&#8221;); <br \/>\n\/* next.gif.0\uc73c\ub85c\ub41c \ud30c\uc77c\uba85\uc744 \ub2e4\uc2dc \uc6d0\ub798\uc774\ub984\uc73c\ub85c \ub9c1\ud06c\ub97c \uc2dc\ucf1c\uc90d\ub2c8\ub2e4 *\/ <\/p>\n<p>$filename = trim($filename); <br \/>\n$file = &#8220;$home_dir\/tmp\/$filename&#8221;; \/\/ \ud654\uc77c\uc774 \uc2e4\uc81c\ub85c \uc788\ub294 \uc704\uce58\ub97c.. <br \/>\n$file_size=filesize($file); <\/p>\n<p>\n\/\/ \ube0c\ub77c\uc6b0\uc800 \uace8\ub77c\uc11c \ud5e4\ub354\ub97c \ub530\ub85c \ub530\ub85c \uc804\uc1a1 \ud574 \uc900\ub2e4.(5.5 \uc77c\ub54c\ub294 \ub2e4\ub974\uac8c \ud574\uc918\uc57c \ud568) <br \/>\nif( strstr($HTTP_USER_AGENT,&#8221;MSIE 5.5&#8243;)){ <br \/>\nheader(&#8220;Content-Type: doesn\/matter&#8221;); <br \/>\nheader(&#8220;Content-Disposition: filename=$filename&#8221;); <br \/>\nheader(&#8220;Content-Transfer-Encoding: binary&#8221;); <br \/>\nheader(&#8220;Pragma: no-cache&#8221;); <br \/>\nheader(&#8220;Expires: 0&#8221;); <br \/>\n}else{ <br \/>\nHeader(&#8220;Content-type: file\/unknown&#8221;); <br \/>\nHeader(&#8220;Content-Disposition: attachment; filename=$filename&#8221;); <br \/>\nHeader(&#8220;Content-Description: PHP3 Generated Data&#8221;); <br \/>\nheader(&#8220;Pragma: no-cache&#8221;); <br \/>\nheader(&#8220;Expires: 0&#8221;); <br \/>\n} <\/p>\n<p>if(is_file(&#8220;$file&#8221;)){ <br \/>\n$fp = fopen(&#8220;$file&#8221;,&#8221;r&#8221;); <br \/>\nif(!fpassthru($fp)) { <br \/>\nfclose($fp); <br \/>\n} <br \/>\n} <br \/>\n@unlink($file); <br \/>\n\/* \uc694\uae30 \uc704\uc5d0 \ub9c1\ud06c\uc2dc\ucf1c\uc8fc\uc5c8\ub358\uac78 \ub2e4\uc2dc \uc0ad\uc81c \ud574\uc57c\uc8e0&#8230;.^^; *\/ <\/p>\n<p>} else { \/\/ \ub9cc\uc57d \ud30c\uc77c\uc774 \uc5c6\uc73c\uba74 \uc5c6\ub2e4\uace0 \uba54\uc2dc\uc9c0\ub97c \ubcf4\uc5ec\uc918\uc57c\uc8e0&#8230; <br \/>\necho(&#8221; <br \/>\n<body onClick='self.close();'> <\/p>\n<table border='0' width='100%' height='100%'><\/p>\n<tr><\/p>\n<td align='center' valign='middle' width='100%'><b>$row[filename]<\/b> \ud30c\uc77c\uc774 \uc5c6\uc2b5\ub2c8\ub2e4!<\/td>\n<p>\n<\/tr>\n<p>\n<\/table>\n<p>\n&#8220;); <br \/>\n} <\/p>\n","protected":false},"excerpt":{"rendered":"<p>phplove@phplove.co.kr http:\/\/phplove.co.kr &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- $filename = &#8220;$row[filename]&#8221;; \/\/\uc2e4\uc81c \ud30c\uc77c \uc774\ub984 $filename_o = &#8220;$home_dir\/tmp\/&#8221;.$filename; \/\/\uc784\uc2dc \ud30c\uc77c\uc774\ub984 $down_filename = &#8220;$home_dir\/upfiles\/$row[rfilename]&#8221;; \/\/\uc2e4\uc81c\ub85c \uc800\uc7a5\ub41c \ub514\ub809\ud1a0\ub9ac \/* \ud30c\uc77c \uc5c5\ub85c\ub4dc\uc2dc \uc911\ubcf5\ud30c\uc77c\uc744 \uc5c6\uc560\uae30 \uc704\ud574\uc11c&#8230;.. \ud30c\uc77c\uba85\uc744 \ubc14\uafb8\uc5b4 \uc800\uc7a5\ud569\ub2c8\ub2e4&#8230;. \uc608\ub97c\ub4e4\uba74 \ucd5c\ucd08 \uc6d0\ubcf8\ud30c\uc77c next.gif\ub780 \ud30c\uc77c\uc744 \uc5c5\ub85c\ub4dc\ud558\uba74 next.gif.0\uc73c\ub85c \uc800\uc7a5\uc774 \ub429\ub2c8\ub2e4 \uadf8\ub2e4\uc74c \uc0ac\ub78c\uc774 \ub2e4\uc2dc next.gif\ud30c\uc77c\uc744 \uc5c5\ub85c\ub4dc\ud558\uba74 next.gif.1\ub85c \uc800\uc7a5 \uadf8\ub807\uae30 \ub54c\ubb38\uc5d0 \uc911\ubcf5\ub418\ub294 \ud30c\uc77c\uc774 \uc5c6\uc2b5\ub2c8\ub2e4. *\/ if(file_exists($down_filename)) { \/* \ub9cc\uc57d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[51],"tags":[],"class_list":["post-48","post","type-post","status-publish","format-standard","hentry","category-papa-php"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts\/48","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=48"}],"version-history":[{"count":0,"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts\/48\/revisions"}],"wp:attachment":[{"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}