{"id":41,"date":"2002-06-20T02:18:22","date_gmt":"2002-06-20T02:18:22","guid":{"rendered":"http:\/\/dev.jblove.net\/?p=41"},"modified":"2002-06-20T02:18:22","modified_gmt":"2002-06-20T02:18:22","slug":"%ec%82%ac%ec%97%85%ec%9e%90-%eb%93%b1%eb%a1%9d%eb%b2%88%ed%98%b8-%ec%b2%b4%ed%81%ac-%ec%95%8c%ea%b3%a0%eb%a6%ac%ec%a6%98","status":"publish","type":"post","link":"https:\/\/jblove.net\/?p=41","title":{"rendered":"\uc0ac\uc5c5\uc790 \ub4f1\ub85d\ubc88\ud638 \uccb4\ud06c \uc54c\uace0\ub9ac\uc998"},"content":{"rendered":"<p>\n\uc0ac\uc5c5\uc790\ubc88\ud638 \uccab\ubc88\uc9f8\ub294 co_serial_1, \ub458\uc9f8\ub294 co_serial_2, \uc138\ubc88\uc9f8 \uc790\ub9ac\ub294 co_serial_3 \uc785\ub2c8\ub2e4&#8230; <br \/>\nEx) aaa-bb-ccccc <br \/>\nco_serial_1 = aaa <br \/>\nco_serial_2 = bb <br \/>\nco_serial_3 = ccccc <\/p>\n<p>form \uc5d0\uc11c post\ubc29\uc2dd\uc73c\ub85c \ubc1b\uc558\uc744\ub54c\uc785\ub2c8\ub2e4.^^ <\/p>\n<p>\uc911\uac04\uc5d0 \uc5f0\uc0b0\ud558\ub294\uacf3\uc5d0 substr\ub85c \uac78\ub7ec\ub0b4\uc11c intval\ub85c \uc548\uc815\ud574 \uc918\ub3c4 \uc5f0\uc0b0\uc774 \uc798 \ub418\ub124\uc694^^ \uc5d0\ub7ec\ub098\ub294\ubd84\uc740 \uace0\uccd0\uc11c \uc4f0\uc2dc\ub358\uc9c0\uc694~~~^^ <\/p>\n<p><? \n\n\nfunction error_msg($message) <br \/>\n{ <br \/>\necho(&#8221; <br \/>\n<script language=\"javascript\"> <br \/>\nalert(\"\".$message.\"\"); <br \/>\nhistory.go(-1); <br \/>\n<\/script> <br \/>\n&#8220;); <br \/>\nexit; <br \/>\n} <\/p>\n<p>$co_serial_1 = $HTTP_POST_VARS[co_serial_1]; <br \/>\n$co_serial_2 = $HTTP_POST_VARS[co_serial_2]; <br \/>\n$co_serial_3 = $HTTP_POST_VARS[co_serial_3]; <\/p>\n<p>if (!isset($co_serial_1) || !isset($co_serial_2) || !isset($co_serial_3)) <br \/>\n{ <br \/>\nerror_msg(&#8220;\uc0ac\uc5c5\uc790\ub4f1\ub85d\ubc88\ud638\ub97c \uc785\ub825\ud574 \uc8fc\uc138\uc694.&#8221;); <br \/>\n} <br \/>\nelseif (ereg(&#8220;[^0-9]+&#8221;,$co_serial_1) || ereg(&#8220;[^0-9]+&#8221;,$co_serial_2) || ereg(&#8220;[^0-9]+&#8221;,$co_serial_3)) <br \/>\n{ <br \/>\nerror_msg(&#8220;\uc0ac\uc5c5\uc790\ub4f1\ub85d\ubc88\ud638\ub97c \uc815\ud655\ud788 \uc785\ub825\ud574 \uc8fc\uc138\uc694.&#8221;); <br \/>\n} <br \/>\nelse <br \/>\n{ <br \/>\n$co_serial = $co_serial_1.$co_serial_2.$co_serial_3; <br \/>\n$IDtot = 0; <br \/>\n$IDAdd = &#8220;137137135&#8221;; <br \/>\nfor ($i=0;$i < 9 ; $i++) <br \/>\n{ <br \/>\n$IDtot = $IDtot + (substr($co_serial,$i,1) * substr($IDAdd,$i,1)); <br \/>\n} <\/p>\n<p>$IDtot = $IDtot + ((substr($co_serial,8,1)*5)\/10); <br \/>\n$IDtot = 10 &#8211; ($IDtot % 10); <\/p>\n<p>if (substr($co_serial_3,-1) != substr($IDtot,-1)) <br \/>\n{ <br \/>\nerror_msg(&#8220;\uc0ac\uc5c5\uc790\ub4f1\ub85d\ubc88\ud638\ub97c \uc815\ud655\ud788 \uc785\ub825\ud574 \uc8fc\uc138\uc694.&#8221;); <br \/>\n} <br \/>\n} <br \/>\n?> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc0ac\uc5c5\uc790\ubc88\ud638 \uccab\ubc88\uc9f8\ub294 co_serial_1, \ub458\uc9f8\ub294 co_serial_2, \uc138\ubc88\uc9f8 \uc790\ub9ac\ub294 co_serial_3 \uc785\ub2c8\ub2e4&#8230; Ex) aaa-bb-ccccc co_serial_1 = aaa co_serial_2 = bb co_serial_3 = ccccc form \uc5d0\uc11c post\ubc29\uc2dd\uc73c\ub85c \ubc1b\uc558\uc744\ub54c\uc785\ub2c8\ub2e4.^^ \uc911\uac04\uc5d0 \uc5f0\uc0b0\ud558\ub294\uacf3\uc5d0 substr\ub85c \uac78\ub7ec\ub0b4\uc11c intval\ub85c \uc548\uc815\ud574 \uc918\ub3c4 \uc5f0\uc0b0\uc774 \uc798 \ub418\ub124\uc694^^ \uc5d0\ub7ec\ub098\ub294\ubd84\uc740 \uace0\uccd0\uc11c \uc4f0\uc2dc\ub358\uc9c0\uc694~~~^^<\/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-41","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\/41","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=41"}],"version-history":[{"count":0,"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts\/41\/revisions"}],"wp:attachment":[{"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}