<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[虫虫的blog  SINCE2004]]></title> 
<link>http://www.zhenghe.biz/index.php</link> 
<description><![CDATA[人生幻灯片  -   前半生(身)，不要怕；后半生(身)，不要悔！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[虫虫的blog  SINCE2004]]></copyright>
<item>
<link>http://www.zhenghe.biz/read.php/.htm</link>
<title><![CDATA[允许校内IP访问]]></title> 
<author>网络毛毛虫 &lt;admin@yourname.com&gt;</author>
<category><![CDATA[技术文章]]></category>
<pubDate>Tue, 08 Nov 2005 05:54:05 +0000</pubDate> 
<guid>http://www.zhenghe.biz/read.php/.htm</guid> 
<description>
<![CDATA[ 
	<p>&lt;?<br />$ip=$_SERVER[REMOTE_ADDR];<br />echo&quot;$ip&lt;br&gt;&quot;;<br />$ip = str_replace(&quot;.&quot;,&quot;&quot;,$ip);<br />//echo $ip;<br />$ipstart_1=&quot;202.202.149.1&quot;;//IP地址段1起始<br />$ipend_1=&quot;202.202.159.9&quot;;//IP地址段1结束<br />$ipstart_2=&quot;218.194.149.1&quot;;//IP地址段2起始<br />$ipend_2=&quot;218.194.159.9&quot;;//IP地址段2结束<br />$ipstart_3=&quot;222.198.30.1&quot;;//IP地址段3起始<br />$ipend_3=&quot;222.198.59.9&quot;;//IP地址段3结束<br />$ipstart_4=&quot;222.198.30.10&quot;;//IP地址段3起始<br />$ipend_4=&quot;222.198.59.99&quot;;//IP地址段3结束<br />$ipstart_5=&quot;222.198.30.100&quot;;//IP地址段3起始<br />$ipend_5=&quot;222.198.59.255&quot;;//IP地址段3结束<br />$ipstart_6=&quot;218.194.149.10&quot;;//IP地址段2起始<br />$ipend_6=&quot;218.194.159.99&quot;;//IP地址段2结束<br />$ipstart_7=&quot;218.194.149.100&quot;;//IP地址段2起始<br />$ipend_7=&quot;218.194.159.255&quot;;//IP地址段2结束<br />$ipstart_8=&quot;202.202.149.10&quot;;//IP地址段1起始<br />$ipend_8=&quot;202.202.159.99&quot;;//IP地址段1结束<br />$ipstart_9=&quot;202.202.149.100&quot;;//IP地址段1起始<br />$ipend_9=&quot;202.202.159.255&quot;;//IP地址段1结束<br />function ip_zh($ip_d)<br />&#123;<br />$ip_z=str_replace(&quot;.&quot;,&quot;&quot;,$ip_d);<br />return $ip_z;<br />&#125;<br />if((($ip&gt;ip_zh($ipstart_1)) &amp;&amp; ($ip&lt;ip_zh($ipend_1)))||(($ip&gt;ip_zh($ipstart_2)) &amp;&amp; ($ip&lt;ip_zh($ipend_2)))||(($ip&gt;ip_zh($ipstart_3)) &amp;&amp; ($ip&lt;ip_zh($ipend_3)))<br />||(($ip&gt;ip_zh($ipstart_4)) &amp;&amp; ($ip&lt;ip_zh($ipend_4)))<br />||(($ip&gt;ip_zh($ipstart_5)) &amp;&amp; ($ip&lt;ip_zh($ipend_5)))<br />||(($ip&gt;ip_zh($ipstart_6)) &amp;&amp; ($ip&lt;ip_zh($ipend_6)))<br />||(($ip&gt;ip_zh($ipstart_7)) &amp;&amp; ($ip&lt;ip_zh($ipend_7)))<br />||(($ip&gt;ip_zh($ipstart_8)) &amp;&amp; ($ip&lt;ip_zh($ipend_8)))<br />||(($ip&gt;ip_zh($ipstart_9)) &amp;&amp; ($ip&lt;ip_zh($ipend_9))))<br />&#123;<br />echo&quot;祝贺你，通过验证，校内IP。&quot;;<br />&#125;<br />else<br />&#123;<br />echo&quot;&lt;center&gt;&lt;font color=red&gt;对不起，请见谅！你的IP不符合规范，5秒后载入计算机学办网站&lt;/font&gt;&lt;meta http-equiv='Refresh'<br />content='5; url=http://jsjxb.cqit.edu.cn'&gt;&lt;NOSCRIPT&gt;&quot;;<br />&#125;<br />?&gt;</p>
]]>
</description>
</item><item>
<link>http://www.zhenghe.biz/read.php/.htm#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.zhenghe.biz/read.php/.htm#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>