{"id":224,"date":"2008-12-05T09:44:54","date_gmt":"2008-12-05T01:44:54","guid":{"rendered":""},"modified":"2014-02-27T23:00:24","modified_gmt":"2014-02-27T15:00:24","slug":"asp-%e7%94%9f%e6%88%90-xbm-%e5%9b%be%e5%8f%af%e7%94%a8%e4%bd%9c%e9%aa%8c%e8%af%81%e7%a0%81","status":"publish","type":"post","link":"http:\/\/www.xiaoyebailong.com\/index.php\/2008\/12\/05\/224.htm","title":{"rendered":"ASP \u751f\u6210 XBM \u56fe\u53ef\u7528\u4f5c\u9a8c\u8bc1\u7801"},"content":{"rendered":"<p>\u8fd9\u4e2a\u7a0b\u5e8f\u4e3b\u8981\u662f\u5148\u751f\u6210\u4e00\u4e2a\u968f\u673a\u6570\uff0c\u7136\u540e\u6839\u636e\u751f\u6210\u7684\u968f\u673a\u6570\u7ecf\u8fc7\u53d8\u6362\u540e\u4f5c\u4e3aXBM\u56fe\u7247\u7684\u5185\u5bb9\uff0c\u6700\u540e\u663e\u793a\u8fd9\u4e2a\u56fe\u7247. \u9a8c\u8bc1\u65f6\u4e2d\u8981\u83b7\u53d6\u8f93\u5165\u7684\u6570\u5b57\u548cSession(&quot;validatecode&quot;)\u6bd4\u8f83\uff0c\u5982\u679c\u76f8\u7b49\u5219\u901a\u8fc7\u9a8c\u8bc1\uff08\u8fd8\u8981\u6ce8\u610f\u4e00\u4e0b\u76f8\u6bd4\u8f83\u7684\u4e24\u6570\u636e\u7684\u7c7b\u578b\u4fdd\u6301\u4e00\u81f4\uff09\u3002<\/p>\n<p>\u5982\u4f55\u663e\u793a\u751f\u6210\u7684\u56fe\u7247\u5462\uff1f &lt;img src=&quot;xbm.asp&quot;&gt;&lt;\/img&gt; <\/p>\n<p>\u5173\u4e8eXBM\u56fe\u7684\u683c\u5f0f\u4fe1\u606f\uff0c\u770b\u8fd9\u91cc<br \/>\n<a rel=\"nofollow\" href=\"http:\/\/www.zdnet.com.cn\/developer\/tech\/story\/0,2000081602,39134972,00.htm\" target=\"_blank\">http:\/\/www.zdnet.com.cn\/developer\/tech\/story\/0,2000081602,39134972,00.htm<\/a> <\/p>\n<p>xbm.asp\u7684\u4ee3\u7801\u5982\u4e0b<\/p>\n<table cellspacing=\"0\" cellpadding=\"6\" width=\"95%\" align=\"center\" border=\"0\" style=\"border-right: #cccccc 1px dotted; table-layout: fixed; border-top: #cccccc 1px dotted; border-left: #cccccc 1px dotted; border-bottom: #cccccc 1px dotted\">\n<tbody>\n<tr>\n<td bgcolor=\"#f3f3f3\" style=\"word-wrap: break-word\"><font style=\"font-weight: bold; color: #990000\">\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/font><\/p>\n<p><font face=\"Verdana\">&lt;!&#8211;#include file=&quot;numcode.asp&quot;&#8211;&gt;<br \/>\n            &lt;%<br \/>\n            &nbsp; &#8216;\u5f00\u542f\u7f13\u51b2<br \/>\n            Response.Buffer = True<br \/>\n            With Response<br \/>\n            &nbsp;.Expires = -1<br \/>\n            &nbsp;.AddHeader &quot;Pragma&quot;,&quot;no-cache&quot;<br \/>\n            &nbsp;.AddHeader &quot;cache-ctrol&quot;,&quot;no-cache&quot;<br \/>\n            End With<\/font><\/p>\n<p><font face=\"Verdana\">Dim num<br \/>\n            Randomize<br \/>\n            num = Int(7999 * Rnd + 2000)<br \/>\n            Session(&quot;validateCode&quot;) = num<\/font><\/p>\n<p><font face=\"Verdana\">Dim Image<br \/>\n            Dim Width, Height<br \/>\n            Dim digtal<br \/>\n            Dim Length<br \/>\n            Dim sort<br \/>\n            Dim hc<br \/>\n            Length = 4&nbsp;<br \/>\n            hc = chr(13) &amp; chr(10)<\/font><\/p>\n<p><font face=\"Verdana\">Redim sort(Length)<\/font><\/p>\n<p><font face=\"Verdana\">digital = &quot;&quot;<br \/>\n            For I = 1 To Length &#8211; Len(num)<br \/>\n            &nbsp;digital = digital &amp; &quot;0&quot;<br \/>\n            Next<br \/>\n            For I = 1 To Len(num)<br \/>\n            &nbsp;digital = digital &amp; Mid(num, I, 1)<br \/>\n            Next<br \/>\n            For I = 1 To Len(digital)<br \/>\n            &nbsp;sort(I) = Mid(digital, I, 1)<br \/>\n            Next<br \/>\n            Width = 8 * Len(digital)<br \/>\n            Height = 10<\/font><\/p>\n<p><font face=\"Verdana\">Response.ContentType = &quot;image\/x-xbitmap&quot;<\/font><\/p>\n<p><font face=\"Verdana\">Image = &quot;#define counter_width &quot; &amp; Width &amp; hc<br \/>\n            Image = Image &amp; &quot;#define counter_height &quot; &amp; Height &amp; hc<br \/>\n            Image = Image &amp; &quot;static unsigned char counter_bits[] = {&quot; &amp; hc<\/font><\/p>\n<p><font face=\"Verdana\">For I = 1 To Height<br \/>\n            &nbsp;For J = 1 To Length<br \/>\n            &nbsp;&nbsp;Image = Image &amp; a(sort(J),I) &amp; &quot;,&quot;<br \/>\n            &nbsp;Next<br \/>\n            Next<\/font><\/p>\n<p><font face=\"Verdana\">Image = Left(Image, Len(Image) &#8211; 1)<br \/>\n            Image = Image &amp; &quot;};&quot; &amp; hc<\/font><\/p>\n<p><font face=\"Verdana\">Response.Write Image<br \/>\n            %&gt;<\/font><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Numcode.asp\u7684\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<table cellspacing=\"0\" cellpadding=\"6\" width=\"95%\" align=\"center\" border=\"0\" style=\"border-right: #cccccc 1px dotted; table-layout: fixed; border-top: #cccccc 1px dotted; border-left: #cccccc 1px dotted; border-bottom: #cccccc 1px dotted\">\n<tbody>\n<tr>\n<td bgcolor=\"#f3f3f3\" style=\"word-wrap: break-word\"><font style=\"font-weight: bold; color: #990000\">\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a<\/font><br \/>\n            <font face=\"Verdana\">&lt;%<br \/>\n            &nbsp; Dim a(10,10)<br \/>\n            &nbsp; a(0,1) = &quot;0x3c&quot; &#8216;\u6570\u5b570<br \/>\n            &nbsp; a(0,2) = &quot;0x66&quot;<br \/>\n            &nbsp; a(0,3) = &quot;0xc3&quot;<br \/>\n            &nbsp; a(0,4) = &quot;0xc3&quot;<br \/>\n            &nbsp; a(0,5) = &quot;0xc3&quot;<br \/>\n            &nbsp; a(0,6) = &quot;0xc3&quot;<br \/>\n            &nbsp; a(0,7) = &quot;0xc3&quot;<br \/>\n            &nbsp; a(0,8) = &quot;0xc3&quot;<br \/>\n            &nbsp; a(0,9) = &quot;0x66&quot;<br \/>\n            &nbsp; a(0,10)= &quot;0x3c&quot;<br \/>\n            &nbsp; a(1,1) = &quot;0x18&quot; &#8216;\u6570\u5b571<br \/>\n            &nbsp; a(1,2) = &quot;0x1c&quot;<br \/>\n            &nbsp; a(1,3) = &quot;0x18&quot;<br \/>\n            &nbsp; a(1,4) = &quot;0x18&quot;<br \/>\n            &nbsp; a(1,5) = &quot;0x18&quot;<br \/>\n            &nbsp; a(1,6) = &quot;0x18&quot;<br \/>\n            &nbsp; a(1,7) = &quot;0x18&quot;<br \/>\n            &nbsp; a(1,8) = &quot;0x18&quot;<br \/>\n            &nbsp; a(1,9) = &quot;0x18&quot;<br \/>\n            &nbsp; a(0,10)= &quot;0x7e&quot;<br \/>\n            &nbsp; a(2,1) = &quot;0x3c&quot; &#8216;\u6570\u5b572<br \/>\n            &nbsp; a(2,2) = &quot;0x66&quot;<br \/>\n            &nbsp; a(2,3) = &quot;0x60&quot;<br \/>\n            &nbsp; a(2,4) = &quot;0x60&quot;<br \/>\n            &nbsp; a(2,5) = &quot;0x30&quot;<br \/>\n            &nbsp; a(2,6) = &quot;0x18&quot;<br \/>\n            &nbsp; a(2,7) = &quot;0x0c&quot;<br \/>\n            &nbsp; a(2,8) = &quot;0x06&quot;<br \/>\n            &nbsp; a(2,9) = &quot;0x06&quot;<br \/>\n            &nbsp; a(2,10)= &quot;0x7e&quot;<br \/>\n            &nbsp; a(3,1) = &quot;0x3c&quot; &#8216;\u6570\u5b573<br \/>\n            &nbsp; a(3,2) = &quot;0x66&quot;<br \/>\n            &nbsp; a(3,3) = &quot;0xc0&quot;<br \/>\n            &nbsp; a(3,4) = &quot;0x60&quot;<br \/>\n            &nbsp; a(3,5) = &quot;0x1c&quot;<br \/>\n            &nbsp; a(3,6) = &quot;0x60&quot;<br \/>\n            &nbsp; a(3,7) = &quot;0xc0&quot;<br \/>\n            &nbsp; a(3,8) = &quot;0xc0&quot;<br \/>\n            &nbsp; a(3,9) = &quot;0x66&quot;<br \/>\n            &nbsp; a(3,10)= &quot;0x38&quot;<br \/>\n            &nbsp; a(4,1) = &quot;0x38&quot; &#8216;\u6570\u5b574<br \/>\n            &nbsp; a(4,2) = &quot;0x3c&quot;<br \/>\n            &nbsp; a(4,3) = &quot;0x36&quot;<br \/>\n            &nbsp; a(4,4) = &quot;0x33&quot;<br \/>\n            &nbsp; a(4,5) = &quot;0x33&quot;<br \/>\n            &nbsp; a(4,6) = &quot;0x33&quot;<br \/>\n            &nbsp; a(4,7) = &quot;0xff&quot;<br \/>\n            &nbsp; a(4,8) = &quot;0x30&quot;<br \/>\n            &nbsp; a(4,9) = &quot;0x30&quot;<br \/>\n            &nbsp; a(4,10)= &quot;0xfe&quot;<br \/>\n            &nbsp; a(5,1) = &quot;0xfe&quot; &#8216;\u6570\u5b575<br \/>\n            &nbsp; a(5,2) = &quot;0xfe&quot;<br \/>\n            &nbsp; a(5,3) = &quot;0x06&quot;<br \/>\n            &nbsp; a(5,4) = &quot;0x06&quot;<br \/>\n            &nbsp; a(5,5) = &quot;0x3e&quot;<br \/>\n            &nbsp; a(5,6) = &quot;0x60&quot;<br \/>\n            &nbsp; a(5,7) = &quot;0xc0&quot;<br \/>\n            &nbsp; a(5,8) = &quot;0xc3&quot;<br \/>\n            &nbsp; a(5,9) = &quot;0x66&quot;<br \/>\n            &nbsp; a(5,10)= &quot;0x3c&quot;<br \/>\n            &nbsp; a(6,1) = &quot;0x60&quot; &#8216;\u6570\u5b576<br \/>\n            &nbsp; a(6,2) = &quot;0x30&quot;<br \/>\n            &nbsp; a(6,3) = &quot;0x18&quot;<br \/>\n            &nbsp; a(6,4) = &quot;0x0c&quot;<br \/>\n            &nbsp; a(6,5) = &quot;0x3e&quot;<br \/>\n            &nbsp; a(6,6) = &quot;0x63&quot;<br \/>\n            &nbsp; a(6,7) = &quot;0xc3&quot;<br \/>\n            &nbsp; a(6,8) = &quot;0xc3&quot;<br \/>\n            &nbsp; a(6,9) = &quot;0x66&quot;<br \/>\n            &nbsp; a(6,10) =&quot;0x3c&quot;<br \/>\n            &nbsp; a(7,1) = &quot;0xff&quot; &#8216;\u6570\u5b577<br \/>\n            &nbsp; a(7,2) = &quot;0xc0&quot;<br \/>\n            &nbsp; a(7,3) = &quot;0x60&quot;<br \/>\n            &nbsp; a(7,4) = &quot;0x30&quot;<br \/>\n            &nbsp; a(7,5) = &quot;0x18&quot;<br \/>\n            &nbsp; a(7,6) = &quot;0x18&quot;<br \/>\n            &nbsp; a(7,7) = &quot;0x18&quot;<br \/>\n            &nbsp; a(7,8) = &quot;0x18&quot;<br \/>\n            &nbsp; a(7,9) = &quot;0x18&quot;<br \/>\n            &nbsp; a(7,10)= &quot;0x18&quot;<br \/>\n            &nbsp; a(8,1) = &quot;0x3c&quot; &#8216;\u6570\u5b578<br \/>\n            &nbsp; a(8,2) = &quot;0x66&quot;<br \/>\n            &nbsp; a(8,3) = &quot;0xc3&quot;<br \/>\n            &nbsp; a(8,4) = &quot;0x66&quot;<br \/>\n            &nbsp; a(8,5) = &quot;0x3c&quot;<br \/>\n            &nbsp; a(8,6) = &quot;0x66&quot;<br \/>\n            &nbsp; a(8,7) = &quot;0xc3&quot;<br \/>\n            &nbsp; a(8,8) = &quot;0xc3&quot;<br \/>\n            &nbsp; a(8,9) = &quot;0x66&quot;<br \/>\n            &nbsp; a(8,10)= &quot;0x3c&quot;<br \/>\n            &nbsp; a(9,1) = &quot;0x3c&quot; &#8216;\u6570\u5b579<br \/>\n            &nbsp; a(9,2) = &quot;0x66&quot;<br \/>\n            &nbsp; a(9,3) = &quot;0xc3&quot;<br \/>\n            &nbsp; a(9,4) = &quot;0xc3&quot;<br \/>\n            &nbsp; a(9,5) = &quot;0x66&quot;<br \/>\n            &nbsp; a(9,6) = &quot;0x3c&quot;<br \/>\n            &nbsp; a(9,7) = &quot;0x18&quot;<br \/>\n            &nbsp; a(9,8) = &quot;0x0c&quot;<br \/>\n            &nbsp; a(9,9) = &quot;0x06&quot;<br \/>\n            &nbsp; a(9,10)= &quot;0x03&quot;<br \/>\n            %&gt;<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u4e2a\u7a0b\u5e8f\u4e3b\u8981\u662f\u5148\u751f\u6210\u4e00\u4e2a\u968f\u673a\u6570\uff0c\u7136\u540e\u6839\u636e\u751f\u6210\u7684\u968f\u673a\u6570\u7ecf\u8fc7\u53d8\u6362\u540e\u4f5c\u4e3aXBM\u56fe\u7247\u7684\u5185\u5bb9\uff0c\u6700\u540e\u663e\u793a\u8fd9\u4e2a\u56fe\u7247. \u9a8c\u8bc1\u65f6\u4e2d\u8981\u83b7\u53d6\u8f93\u5165\u7684\u6570\u5b57\u548cSession(&quot;validatecode&quot;)\u6bd4\u8f83\uff0c\u5982\u679c\u76f8\u7b49\u5219\u901a\u8fc7\u9a8c\u8bc1\uff08\u8fd8\u8981\u6ce8\u610f\u4e00\u4e0b\u76f8\u6bd4\u8f83&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-224","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/224","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/comments?post=224"}],"version-history":[{"count":1,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/224\/revisions"}],"predecessor-version":[{"id":66079,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/224\/revisions\/66079"}],"wp:attachment":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/media?parent=224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/categories?post=224"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/tags?post=224"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/topic?post=224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}