<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[沧海一粟]]></title> 
<link>http://www.dzhope.com/index.php</link> 
<description><![CDATA[Web系统架构与服务器运维,php开发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[沧海一粟]]></copyright>
<item>
<link>http://www.dzhope.com/post//</link>
<title><![CDATA[网通电信IP选择跳转程序]]></title> 
<author>jed &lt;jed521@163.com&gt;</author>
<category><![CDATA[代码编程]]></category>
<pubDate>Mon, 23 Oct 2006 06:37:08 +0000</pubDate> 
<guid>http://www.dzhope.com/post//</guid> 
<description>
<![CDATA[ 
	&lt;%<br/>&#039;16z.com<br/>On Error Resume next<br/>dim conn,dbpath,UserIP<br/>set conn=server.createobject(&quot;adodb.connection&quot;)<br/>DBPath = Server.MapPath(&quot;IP.mdb&quot;)<br/>conn.Open &quot;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=&quot; &amp; DBPath<br/>If Err Then<br/> &nbsp; &nbsp; &nbsp; err.Clear<br/> &nbsp; &nbsp; &nbsp; Set Conn = Nothing<br/> &nbsp; &nbsp; &nbsp; Response.Write &quot;数据库正在更新中，请稍后再试！&quot;&#039;注释，<br/><br/>需要把这几个字翻译成英文。<br/> &nbsp; &nbsp; &nbsp; Response.End<br/>End If<br/>myip = Request.ServerVariables(&quot;HTTP_X_FORWARDED_FOR&quot;) <br/>If myip = &quot;&quot; Then myip = Request.ServerVariables(&quot;REMOTE_ADDR&quot;)<br/>tempip=myip<br/>myip = Split(myip,&quot;.&quot;) <br/>if Ubound(myip)=3 then<br/>For i=0 To Ubound(myip) <br/>myip(i)=left(myip(i),3)<br/>if isnumeric(myip(i)) then<br/> &nbsp; myip(i)=cint(myip(i))<br/>else<br/> &nbsp; myip(i)=0<br/>end if<br/>next<br/>myipnumeber=myip(0)*256*256*256+myip(1)*256*256+myip(2)*256+myip(3)<br/>sql=&quot;select city from IP where startip&lt;=&quot;&amp;myipnumeber&amp;&quot; and <br/><br/>endip&gt;=&quot;&amp;myipnumeber<br/>set rs1=conn.execute(sql)<br/>if not rs1.eof then<br/>response.redirect &quot;http://bbs.16z.com&quot; &#039;是网通的话则跳转到网通的网<br/><br/>址去，自己修改为自己的网站<br/>Else<br/>response.redirect &quot;http://www.16z.com&quot; &#039;不是网通的则跳转到的网址，<br/><br/>自己修改<br/>end if<br/>rs1.close<br/>set rs1=nothing<br/>conn.close<br/>set conn=nothing<br/>end if%&gt;
]]>
</description>
</item><item>
<link>http://www.dzhope.com/post//#blogcomment</link>
<title><![CDATA[[评论] 网通电信IP选择跳转程序]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.dzhope.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>