<br />
<b>Warning</b>:  Undefined array key "HTTP_ACCEPT_LANGUAGE" in <b>/www/wwwroot/01xj.net/wp-content/plugins/wp-ue/main.php</b> on line <b>13</b><br />
{"id":479,"date":"2014-05-24T21:26:04","date_gmt":"2014-05-24T13:26:04","guid":{"rendered":"http:\/\/www.01xj.net\/?p=479"},"modified":"2014-05-24T21:26:04","modified_gmt":"2014-05-24T13:26:04","slug":"%e4%bd%bf%e7%94%a8asp%e8%8e%b7%e5%8f%96%e6%9d%a5%e8%ae%bf%e8%80%85ip%e5%9c%b0%e5%9d%80%e4%bb%a5%e5%8f%8a%e6%9d%a5%e8%ae%bf%e8%80%85%e6%b5%8f%e8%a7%88%e5%99%a8%e7%89%88%e6%9c%ac%ef%bc%8c%e6%93%8d","status":"publish","type":"post","link":"https:\/\/www.01xj.net\/?p=479","title":{"rendered":"\u4f7f\u7528ASP\u83b7\u53d6\u6765\u8bbf\u8005IP\u5730\u5740\u4ee5\u53ca\u6765\u8bbf\u8005\u6d4f\u89c8\u5668\u7248\u672c\uff0c\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c"},"content":{"rendered":"<p>\u4e00\uff0c\u83b7\u5f97\u7f51\u9875\u6765\u8bbf\u8005IP\u5730\u5740\u7684\u4ee3\u7801\u662f\uff1a<br \/>\n\u60a8\u7684IP\u662f: &lt;% =Request.ServerVariables(&#8220;REMOTE_ADDR&#8221;) %&gt;<br \/>\n&lt;%<br \/>\n&#8216;\u83b7\u53d6\u6765\u8bbf\u8005\u771f\u5b9eIP\u5730\u5740<br \/>\n&#8216;\u51fd\u6570\u540d GetUserTrueIP<br \/>\nFunction GetUserTrueIP()<br \/>\ndim strIPAddr<br \/>\nIf Request.ServerVariables(&#8220;HTTP_X_FORWARDED_FOR&#8221;) = &#8220;&#8221; OR InStr(Request.ServerVariables(&#8220;HTTP_X_FORWARDED_FOR&#8221;), &#8220;unknown&#8221;) &gt; 0 Then<br \/>\nstrIPAddr = Request.ServerVariables(&#8220;REMOTE_ADDR&#8221;)<br \/>\nElseIf InStr(Request.ServerVariables(&#8220;HTTP_X_FORWARDED_FOR&#8221;), &#8220;,&#8221;) &gt; 0 Then<br \/>\nstrIPAddr = Mid(Request.ServerVariables(&#8220;HTTP_X_FORWARDED_FOR&#8221;), 1, InStr(Request.ServerVariables(&#8220;HTTP_X_FORWARDED_FOR&#8221;), &#8220;,&#8221;)-1)<br \/>\nElseIf InStr(Request.ServerVariables(&#8220;HTTP_X_FORWARDED_FOR&#8221;), &#8220;;&#8221;) &gt; 0 Then<br \/>\nstrIPAddr = Mid(Request.ServerVariables(&#8220;HTTP_X_FORWARDED_FOR&#8221;), 1, InStr(Request.ServerVariables(&#8220;HTTP_X_FORWARDED_FOR&#8221;), &#8220;;&#8221;)-1)<br \/>\nElse<br \/>\nstrIPAddr = Request.ServerVariables(&#8220;HTTP_X_FORWARDED_FOR&#8221;)<br \/>\nEnd If<br \/>\nGetUserTrueIP = Trim(Mid(strIPAddr, 1, 30))<br \/>\nEnd Function<br \/>\n%&gt;<br \/>\n&lt;!&#8211;\u8c03\u7528\u65b9\u6cd5&#8211;&gt;<br \/>\n&lt;%= GetUserTrueIP()%&gt;<\/p>\n<p>\u4e8c\uff0c\u83b7\u5f97\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u7684\u4ee3\u7801\u662f\uff1a<br \/>\n&lt;%<br \/>\nresponse.Write operationsystem &amp; &#8220;&lt;br&gt;&#8221; &amp; browser<br \/>\nfunction operationsystem() &#8216;\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c<br \/>\nagent = Request.ServerVariables(&#8220;HTTP_USER_AGENT&#8221;)<br \/>\nif Instr(agent,&#8221;NT 5.2&#8243;)&gt;0 then<br \/>\nSystemVer=&#8221;Windows Server 2003&#8243;<br \/>\nelseif Instr(agent,&#8221;NT 5.1&#8243;)&gt;0 then<br \/>\nSystemVer=&#8221;Windows XP&#8221;<br \/>\nelseif Instr(agent,&#8221;NT 5&#8243;)&gt;0 then<br \/>\nSystemVer=&#8221;Windows 2000&#8243;<br \/>\nelseif Instr(agent,&#8221;NT 4&#8243;)&gt;0 then<br \/>\nSystemVer=&#8221;Windows NT4&#8243;<br \/>\nelseif Instr(agent,&#8221;4.9&#8243;)&gt;0 then<br \/>\nSystemVer=&#8221;Windows ME&#8221;<br \/>\nelseif Instr(agent,&#8221;98&#8243;)&gt;0 then<br \/>\nSystemVer=&#8221;Windows 98&#8243;<br \/>\nelseif Instr(agent,&#8221;95&#8243;)&gt;0 then<br \/>\nSystemVer=&#8221;Windows 95&#8243;<br \/>\nelse<br \/>\nSystemVer=&#8221;\u672a\u77e5&#8221;<br \/>\nend if<br \/>\noperationsystem=&#8221;\u60a8\u7684\u64cd\u4f5c\u7cfb\u7edf\u662f: &#8221; &amp; SystemVer<br \/>\nend function<br \/>\n%&gt;<br \/>\n\u4e09\uff0c\u83b7\u5f97\u6d4f\u89c8\u5668\u7248\u672c\u7684\u4ee3\u7801\u662f\uff1a<br \/>\n&lt;%<br \/>\nfunction browser() &#8216;\u6d4f\u89c8\u5668\u7248\u672c<br \/>\nagent = Request.ServerVariables(&#8220;HTTP_USER_AGENT&#8221;)<br \/>\nif Instr(agent,&#8221;MSIE 6.0&#8243;)&gt;0 then<br \/>\nbrowserVer=&#8221;Internet Explorer 6.0&#8243;<br \/>\nelseif Instr(agent,&#8221;MSIE 5.5&#8243;)&gt;0 then<br \/>\nbrowserVer=&#8221;Internet Explorer 5.5&#8243;<br \/>\nelseif Instr(agent,&#8221;MSIE 5.01&#8243;)&gt;0 then<br \/>\nbrowserVer=&#8221;Internet Explorer 5.01&#8243;<br \/>\nelseif Instr(agent,&#8221;MSIE 5.0&#8243;)&gt;0 then<br \/>\nbrowserVer=&#8221;Internet Explorer 5.00&#8243;<br \/>\nelseif Instr(agent,&#8221;MSIE 4.0&#8243;)&gt;0 then<br \/>\nbrowserVer=&#8221;Internet Explorer 4.0&#8243;<br \/>\nelse<br \/>\nbrowserVer=&#8221;\u672a\u77e5&#8221;<br \/>\nend if<br \/>\nbrowser=&#8221;\u60a8\u7684\u6d4f\u89c8\u5668\u7248\u672c: &#8221; &amp; browserVer<br \/>\nif Instr(agent,&#8221;TencentTraveler&#8221;)&gt;0 then &#8216;\u68c0\u67e5\u662f\u5426\u6b63\u5728\u4f7f\u7528\u817e\u8bafTT<br \/>\nbrowser=browser&amp;&#8221; \uff5c\u76ee\u524d\u6b63\u4f7f\u7528TencentTraveler&#8221;<br \/>\nend if<br \/>\nend function<br \/>\n%&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\uff0c\u83b7\u5f97\u7f51\u9875\u6765\u8bbf\u8005IP\u5730\u5740\u7684\u4ee3\u7801\u662f\uff1a \u60a8\u7684IP\u662f: &lt;% =R&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[],"class_list":["post-479","post","type-post","status-publish","format-standard","hentry","category-asp"],"_links":{"self":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts\/479","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=479"}],"version-history":[{"count":1,"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts\/479\/revisions"}],"predecessor-version":[{"id":480,"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts\/479\/revisions\/480"}],"wp:attachment":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}