<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>珂亦精品收藏 &#187; 网络应用</title>
	<atom:link href="http://www.koryi.net/category/net/feed" rel="self" type="application/rss+xml" />
	<link>http://www.koryi.net</link>
	<description>我的收藏我作主</description>
	<lastBuildDate>Sat, 21 Aug 2010 15:46:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Discuz版块设置只有版主和发贴人能回复</title>
		<link>http://www.koryi.net/net/691.html</link>
		<comments>http://www.koryi.net/net/691.html#comments</comments>
		<pubDate>Fri, 09 Oct 2009 00:10:00 +0000</pubDate>
		<dc:creator>ray1980</dc:creator>
				<category><![CDATA[网络应用]]></category>
		<category><![CDATA[discuz]]></category>
		<category><![CDATA[forum]]></category>
		<category><![CDATA[论坛]]></category>

		<guid isPermaLink="false">http://www.koryi.net/net/691.html</guid>
		<description><![CDATA[修改post.php 这个文件，在59行处

1
2
3
if&#40;$thread&#91;'readperm'&#93; &#38;&#38; $thread&#91;'readperm'&#93; &#62; $readaccess &#38;&#38; !$forum&#91;'ismoderator'&#93; &#38;&#38; $thread&#91;'authorid'&#93; != $discuz_uid&#41; &#123;
   sh... ]]></description>
			<content:encoded><![CDATA[<p>修改post.php 这个文件，在59行处</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$thread</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'readperm'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$thread</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'readperm'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">&gt;</span> <span style="color: #000088;">$readaccess</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><span style="color: #000088;">$forum</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'ismoderator'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$thread</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'authorid'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!=</span> <span style="color: #000088;">$discuz_uid</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   showmessage<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'thread_nopermission'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'NOPERM'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>的下面添加下面代码即可。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">  <span style="color: #666666; font-style: italic;">//只有版主和发贴人自己能回复</span>
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$forum</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'fid'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">42</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$thread</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'authorid'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">!=</span><span style="color: #000088;">$discuz_uid</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><span style="color: #000088;">$forum</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'ismoderator'</span><span style="color: #009900;">&#93;</span>  <span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
           showmessage<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'只有版主和发贴人才能回复'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'NOPERM'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.koryi.net/net/691.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>域名转入到godaddy</title>
		<link>http://www.koryi.net/net/649.html</link>
		<comments>http://www.koryi.net/net/649.html#comments</comments>
		<pubDate>Tue, 10 Mar 2009 07:10:55 +0000</pubDate>
		<dc:creator>ray1980</dc:creator>
				<category><![CDATA[网络应用]]></category>
		<category><![CDATA[godaddy]]></category>
		<category><![CDATA[域名]]></category>
		<category><![CDATA[转出]]></category>

		<guid isPermaLink="false">http://www.koryi.net/net/649.html</guid>
		<description><![CDATA[前几天把域名转入到了godaddy.com，大概用了七天，分享下过程。
1. 首先到你的原注册商索取域名转移码(EPP Key)，并将域名解锁。
2. 登录godaddy.com，点 Transfer Domains to Godaddy (如图)

 
输入要转入的... ]]></description>
			<content:encoded><![CDATA[<p><span style="color: #800000;">前几天把域名转入到了<a href="http://godaddy.com">godaddy.com</a>，大概用了七天，分享下过程。<br />
1. 首先到你的原注册商索取域名转移码(EPP Key)，并将域名解锁。<br />
2. 登录<a href="http://godaddy.com">godaddy.com</a>，点 Transfer Domains to Godaddy (如图)<br />
<a href="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-1.jpg"><img class="alignnone size-full wp-image-650" title="transfer-1" src="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-1.jpg" alt="transfer-1" width="203" height="270" /></a><br />
</span> <span style="color: #800000;"><br />
输入要转入的域名<br />
<a href="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-2.jpg"><img class="alignnone size-full wp-image-651" title="transfer-2" src="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-2.jpg" alt="transfer-2" width="335" height="74" /></a></span> <span style="color: #800000;"><br />
点CheckOut<br />
<a href="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-3.jpg"><img class="alignnone size-full wp-image-652" title="transfer-3" src="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-3.jpg" alt="transfer-3" width="234" height="93" /></a></span> <span style="color: #800000;"><br />
可能会提示你有更好的域名，不管它，点Continue to checkout进入付款界面<br />
<a href="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-4.jpg"><img class="alignnone size-full wp-image-653" title="transfer-4" src="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-4.jpg" alt="transfer-4" width="573" height="363" /></a></span> <span style="color: #800000;"><br />
然后进入配置界面<br />
<a href="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-5.jpg"><img class="alignnone size-full wp-image-654" title="transfer-5" src="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-5.jpg" alt="transfer-5" width="590" height="335" /></a></span> <span style="color: #800000;"><br />
<a href="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-6.jpg"><img class="alignnone size-full wp-image-655" title="transfer-6" src="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-6.jpg" alt="transfer-6" width="592" height="639" /></a></span> <span style="color: #800000;"><br />
<a href="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-7.jpg"><img class="alignnone size-full wp-image-656" title="transfer-7" src="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-7.jpg" alt="transfer-7" width="587" height="145" /></a></span> <span style="color: #800000;"><br />
基本不用改什么，其中第四项是要你买空间，你只要不选就行了，第五项如果你直接想支付的话，选下面一个，然后点Continue.<br />
<a href="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-8.jpg"><img class="alignnone size-full wp-image-657" title="transfer-8" src="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-8.jpg" alt="transfer-8" width="777" height="377" /></a></span> <span style="color: #800000;"><br />
<a href="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-9.jpg"><img class="alignnone size-full wp-image-658" title="transfer-9" src="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-9.jpg" alt="transfer-9" width="526" height="297" /></a></span> <span style="color: #800000;"><br />
选择你的付款方式，点Checkout Now。我由于没有信用卡，所以选择的代金券(<a href="http://taobao.com">淘宝</a>买的).</span></p>
<p><span style="color: #800000;">付款后<a href="http://godaddy.com">godaddy.com</a>会给你域名的Administrative contact发一封邮件通知你Transaction ID和Security Code，后面的转移过程会用到。<span style="color: #ff0000;">(有时候可能会过一到两天才会发邮件)</span><br />
3. 登陆<a href="http://godaddy.com">godaddy.com</a>后在左侧，点Domain manager.<br />
<a href="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-10.jpg"><img class="alignnone size-full wp-image-659" title="transfer-10" src="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-10.jpg" alt="transfer-10" width="221" height="91" /></a><br />
在弹出的新窗口中，导航条Domains下拉菜单，选Pending Transfers<br />
<a href="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-11.jpg"><img class="alignnone size-full wp-image-660" title="transfer-11" src="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-11.jpg" alt="transfer-11" width="173" height="153" /></a><br />
选中要转移的域名<br />
<a href="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-12.jpg"><img class="alignnone size-full wp-image-661" title="transfer-12" src="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-12.jpg" alt="transfer-12" width="215" height="122" /></a><br />
在Authorization点Begin Transfer Authorization<br />
<a href="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-13.jpg"><img class="alignnone size-full wp-image-662" title="transfer-13" src="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-13.jpg" alt="transfer-13" width="150" height="71" /></a><br />
输入邮箱收到的Transaction ID和Security Code<br />
<a href="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-14.jpg"><img class="alignnone size-full wp-image-663" title="transfer-14" src="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-14.jpg" alt="transfer-14" width="577" height="271" /></a></span></p>
<p><span style="color: #800000;">选Authorize，然后点NEXT</span></p>
<p><span style="color: #800000;"><a href="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-15.jpg"><img class="alignnone size-full wp-image-666" title="transfer-15" src="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-15.jpg" alt="transfer-15" width="569" height="276" /></a></span></p>
<p><span style="color: #800000;">然后会要求你输入域名转移码(EPP Key)<br />
<a href="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-16.jpg"><img class="alignnone size-full wp-image-667" title="transfer-16" src="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-16.jpg" alt="transfer-16" width="570" height="278" /></a></span></p>
<p><span style="color: #800000;">提示成功，点OK。<br />
<a href="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-17.jpg"><img class="alignnone size-full wp-image-668" title="transfer-17" src="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-17.jpg" alt="transfer-17" width="570" height="278" /></a></span></p>
<p><span style="color: #800000;">刷新后就如下图<br />
<a href="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-18.jpg"><img class="alignnone size-full wp-image-669" title="transfer-18" src="http://www.koryi.net/wp-content/uploads2/2009/03/transfer-18.jpg" alt="transfer-18" width="180" height="78" /></a><br />
一般要等5-7天左右就成功了，我的等了七天。</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.koryi.net/net/649.html/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>网页MSN,QQ,Skype,贸易通,雅虎通在线客服代码合集</title>
		<link>http://www.koryi.net/net/608.html</link>
		<comments>http://www.koryi.net/net/608.html#comments</comments>
		<pubDate>Thu, 18 Sep 2008 08:32:19 +0000</pubDate>
		<dc:creator>ray1980</dc:creator>
				<category><![CDATA[网络应用]]></category>
		<category><![CDATA[MSN]]></category>
		<category><![CDATA[QQ]]></category>
		<category><![CDATA[Skype]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[在线客服]]></category>
		<category><![CDATA[网页]]></category>
		<category><![CDATA[贸易通]]></category>
		<category><![CDATA[雅虎通]]></category>

		<guid isPermaLink="false">http://www.koryi.net/2008/09/%e7%bd%91%e9%a1%b5msnqqskype%e8%b4%b8%e6%98%93%e9%80%9a%e9%9b%85%e8%99%8e%e9%80%9a%e5%9c%a8%e7%ba%bf%e5%ae%a2%e6%9c%8d%e4%bb%a3%e7%a0%81%e5%90%88%e9%9b%86/</guid>
		<description><![CDATA[1.如何在网页上显示腾讯QQ在线洽谈?
QQ在线咨询代码(qq在线交谈代码/qq在线客服代码/qq在线状态代码/qq在线客服代码)
(将123456换成你的号码,site后面换成你的网站就可以了)

1
&#60;a target=&#34;blank&#... ]]></description>
			<content:encoded><![CDATA[<p><strong>1.如何在网页上显示腾讯QQ在线洽谈?</strong></p>
<p>QQ在线咨询代码(qq在线交谈代码/qq在线客服代码/qq在线状态代码/qq在线客服代码)<br />
(将123456换成你的号码,site后面换成你的网站就可以了)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="div" style="font-family:monospace;"><span style="color: #44aa44;">&lt;</span>a target<span style="color: #44aa44;">=</span><span style="color: #ff0000;">&quot;blank&quot;</span> href<span style="color: #44aa44;">=</span><span style="color: #ff0000;">&quot;http://wpa.qq.com/msgrd?V=1&amp;Uin=12345678&amp;Site=精品空间论坛&amp; Menu=yes&quot;</span><span style="color: #44aa44;">&gt;&lt;</span>img border<span style="color: #44aa44;">=</span><span style="color: #ff0000;">&quot;0&quot;</span> SRC<span style="color: #44aa44;">=</span>http<span style="color: #44aa44;">:</span><span style="color: #808080; font-style: italic;">//wpa.qq.com/pa?p=1:12345678:6 alt=&quot;点击这里给我发消息&quot; align=&quot;absmiddle&quot;&gt;&lt;/a&gt;</span></pre></td></tr></table></div>

<p>更多的生成显示QQ在线状态的代码,请查看腾讯官方网站</p>
<p>http://imis.qq.com/webpresence/code.shtml</p>
<p>你只需要填写你的号码,网站名称以及提示就可以点击生成就可以生成QQ在线状态的代码,拷贝生成的代码加入网页即可</p>
<p><strong>2.阿里巴巴贸易通在线状态代码生成,eric改成你的ID就行了,还有ALT改成你的内容</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="div" style="font-family:monospace;"><span style="color: #44aa44;">&lt;</span>a target<span style="color: #44aa44;">=</span>_blank href<span style="color: #44aa44;">=</span><span style="color: #ff0000;">&quot;http://scs1.sh1.china.alibaba.com/msg.atc?v=1&amp;uid=mengsajewel&quot;</span><span style="color: #44aa44;">&gt;&lt;</span>img _fcksavedurl<span style="color: #44aa44;">=</span><span style="color: #ff0000;">&quot;&quot;</span>http<span style="color: #44aa44;">:</span><span style="color: #808080; font-style: italic;">//scs1.sh1.china.alibaba.com/msg.atc?v=1&amp;uid=mengsajewel&quot;&gt;&lt;img&quot; border=0 src=&quot;http://scs1.sh1.china.alibaba.com/online.atc?v=1&amp;uid=eric&amp;s=2&quot; alt=&quot;精品空间论坛 eric&quot; align=&quot;absmiddle&quot;&gt;&lt;/a&gt;</span></pre></td></tr></table></div>

<p>更多的阿里巴巴贸易通在线状态代码生成样式,请查看阿里巴巴官方网站</p>
<p>http://club.china.alibaba.com/club/block/alitalk/alitalkfire.html</p>
<p><strong>3.skype在线状态代码生成</strong><br />
将eric换成你的skype ID就可以了,需要在skype个人账户里设置对任何人显示状态</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="div" style="font-family:monospace;"><span style="color: #44aa44;">&lt;</span>a href<span style="color: #44aa44;">=</span><span style="color: #ff0000;">&quot;skype:eric?call&quot;</span> _fcksavedurl<span style="color: #44aa44;">=</span><span style="color: #ff0000;">&quot;&quot;</span>skype<span style="color: #44aa44;">:</span>venky1979?call<span style="color: #ff0000;">&quot;&quot;</span> on<span style="color: #44aa44;">-</span>click<span style="color: #44aa44;">=</span><span style="color: #ff0000;">&quot;return skypeCheck();&quot;</span><span style="color: #44aa44;">&gt;&lt;</span>img src<span style="color: #44aa44;">=</span>http<span style="color: #44aa44;">:</span><span style="color: #808080; font-style: italic;">//mystatus.skype.com/smallclassic/eric style=&quot;border: none;&quot; alt=&quot;Call me!&quot; /&gt;&lt;/a&gt;</span></pre></td></tr></table></div>

<p>更多的skype在线状态代码生成样式,请查看skype的官方网站</p>
<p>http://www.skype.com/share/buttons/</p>
<p><strong>4.如何生成MSN在线状态代码</strong><br />
可以设置自定义显示图片,不过检测速度有点慢,另外一部分人在ｍｓｎ的配置中，设置了不加好友就不显示在线。这是为了个人隐私保护，但这样会显示状态未知或者离线。如果你不介意别人看到你，就开启那个选项就好了。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">    <span style="color: #339933;">&lt;!--</span>MSN即时交谈代码开始 <span style="color: #339933;">--&gt;</span>
    <span style="color: #339933;">&lt;</span>Script language<span style="color: #339933;">=</span>javascript<span style="color: #339933;">&gt;</span>
    <span style="color: #003366; font-weight: bold;">function</span> SendMSNMessage<span style="color: #009900;">&#40;</span><span style="color: #000066;">name</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
    <span style="color: #006600; font-style: italic;">//Send a message through MSN , only for IE</span>
    <span style="color: #006600; font-style: italic;">//and you must have installed MSN or Window Message</span>
    MsgrObj.<span style="color: #660066;">InstantMessage</span><span style="color: #009900;">&#40;</span><span style="color: #000066;">name</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #003366; font-weight: bold;">function</span> AddMSNContact<span style="color: #009900;">&#40;</span><span style="color: #000066;">name</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
    <span style="color: #006600; font-style: italic;">//Add a people to MSN , only for IE</span>
    <span style="color: #006600; font-style: italic;">//and you must have installed MSN or Window Message</span>
    MsgrObj.<span style="color: #660066;">AddContact</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #000066;">name</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>object id<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;MsgrObj&quot;</span> classid<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28&quot;</span>
    codetype<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;application/x-
    oleobject&quot;</span> width<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;0&quot;</span> height<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;0&quot;</span><span style="color: #339933;">&gt;&lt;/</span>object<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span>image src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;images/MSN.gif&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;在线MSN交流&quot;</span> onClick<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;SendMSNMessage
    ('[email]meskyes@hotmail.com[/email]')&quot;</span> <span style="color: #339933;">/&gt;</span>
    <span style="color: #339933;">&lt;!--</span>MSN在线交谈代码结束 <span style="color: #339933;">--&gt;</span></pre></td></tr></table></div>

<p><strong>6：雅虎</strong></p>
<p>将admin@hichf.com换成您自己的：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="div" style="font-family:monospace;"><span style="color: #44aa44;">&lt;</span>a href<span style="color: #44aa44;">=</span><span style="color: #ff0000;">&quot;http://cn.webmessenger.yahoo.com/index.php?t=1&amp;to=eWlkPXdlc3RreUB5YWhvby5jbg--&amp;sig=cf3f672c1bd9ada33783d2c5dd6cca855a8d2532&quot;</span> target<span style="color: #44aa44;">=</span><span style="color: #ff0000;">&quot;_blank&quot;</span><span style="color: #44aa44;">&gt;&lt;</span>img src<span style="color: #44aa44;">=</span><span style="color: #ff0000;">&quot;http://opium3.msg.vip.mud.yahoo.com/online?u=admin@hichf.com&amp;t=1&amp;l=cn&quot;</span> alt<span style="color: #44aa44;">=</span><span style="color: #ff0000;">&quot;在网页上就能直接与我们交谈！&quot;</span> width<span style="color: #44aa44;">=</span><span style="color: #cc66cc;">82</span> height<span style="color: #44aa44;">=</span><span style="color: #cc66cc;">22</span> hspace<span style="color: #44aa44;">=</span><span style="color: #ff0000;">&quot;5&quot;</span> border<span style="color: #44aa44;">=</span><span style="color: #ff0000;">&quot;0&quot;</span> align<span style="color: #44aa44;">=</span><span style="color: #ff0000;">&quot;absmiddle&quot;</span> <span style="color: #44aa44;">/&gt;&lt;/</span>a<span style="color: #44aa44;">&gt;</span></pre></td></tr></table></div>

<p><strong>7.在线客服的代码</strong></p>
<p>有很多朋友问我在线客服的代码，貌似网上也找不到好用的，因此打算把自己珍藏的代码拿出来给大家分性享一下，很好用。</p>
<p>按钮部分，我是用图片来做例子</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">    <span style="color: #339933;">&lt;</span>SPAN style<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;CURSOR: hand&quot;</span>
    onclick<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;javascript:addMSN('[email]admin@hichf.com[/email]');&quot;</span><span style="color: #339933;">&gt;&lt;</span>IMG
    src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;kefu.gif&quot;</span> border<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;/</span>SPAN<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>DIV style<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;DISPLAY: none&quot;</span><span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>OBJECT id<span style="color: #339933;">=</span>MsgrUIA height<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span> codeType<span style="color: #339933;">=</span>application<span style="color: #339933;">/</span>x<span style="color: #339933;">-</span>oleobject width<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span>
    classid<span style="color: #339933;">=</span>clsid<span style="color: #339933;">:</span>B69003B3<span style="color: #339933;">-</span>C55E<span style="color: #339933;">-</span>4b48<span style="color: #339933;">-</span>836C<span style="color: #339933;">-</span>BC5946FC3B28<span style="color: #339933;">&gt;&lt;/</span>OBJECT<span style="color: #339933;">&gt;&lt;/</span>DIV<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>JS部分：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">    <span style="color: #339933;">&lt;</span>SCRIPT language<span style="color: #339933;">=</span>javascript<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;!--</span>
    <span style="color: #003366; font-weight: bold;">function</span> addMSN <span style="color: #009900;">&#40;</span>address<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
       <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>MsgrUIA.<span style="color: #660066;">MyStatus</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span>
       <span style="color: #009900;">&#123;</span>
       <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'您的MSN没有登陆，请先登陆'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       <span style="color: #009900;">&#125;</span>
       <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>MsgrUIA.<span style="color: #660066;">MyStatus</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">2</span> <span style="color: #339933;">||</span> MsgrUIA.<span style="color: #660066;">MyStatus</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">10</span> <span style="color: #339933;">||</span> MsgrUIA.<span style="color: #660066;">MyStatus</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">14</span> <span style="color: #339933;">||</span> MsgrUIA.<span style="color: #660066;">MyStatus</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">34</span> <span style="color: #339933;">||</span> MsgrUIA.<span style="color: #660066;">MyStatus</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">50</span> <span style="color: #339933;">||</span> MsgrUIA.<span style="color: #660066;">MyStatus</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">66</span> <span style="color: #339933;">||</span> MsgrUIA.<span style="color: #660066;">MyStatus</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">6</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>   <span style="color: #006600; font-style: italic;">//2,10, 14, 34, 50,66,6</span>
       MsgrUIA.<span style="color: #660066;">InstantMessage</span><span style="color: #009900;">&#40;</span>address<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       <span style="color: #009900;">&#125;</span>
       <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>MsgrUIA.<span style="color: #660066;">MyStatus</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">512</span> <span style="color: #339933;">||</span> MsgrUIA.<span style="color: #660066;">MyStatus</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">768</span><span style="color: #009900;">&#41;</span>
       <span style="color: #009900;">&#123;</span>
       <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'您的MSN正在登陆，请稍等'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       <span style="color: #009900;">&#125;</span>
       <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
       <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'错误代码：'</span><span style="color: #339933;">+</span>   MsgrUIA.<span style="color: #660066;">MyStatus</span>   <span style="color: #339933;">+</span> <span style="color: #3366CC;">'。您没有安装MSN或使用的不是IE浏览器，请安装MSN并手动添加'</span> <span style="color: #339933;">+</span> address <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #339933;">--&gt;</span>
    <span style="color: #339933;">&lt;/</span>SCRIPT<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>ENGLISH</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">    <span style="color: #339933;">&lt;</span>SCRIPT language<span style="color: #339933;">=</span>javascript<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;!--</span>
    <span style="color: #003366; font-weight: bold;">function</span> addMSN <span style="color: #009900;">&#40;</span>address<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
       <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>MsgrUIA.<span style="color: #660066;">MyStatus</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span>
       <span style="color: #009900;">&#123;</span>
       <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Add a people to MSN , only for IE and you must have installed MSN or Window Message'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       <span style="color: #009900;">&#125;</span>
       <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>MsgrUIA.<span style="color: #660066;">MyStatus</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">2</span> <span style="color: #339933;">||</span> MsgrUIA.<span style="color: #660066;">MyStatus</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">10</span> <span style="color: #339933;">||</span> MsgrUIA.<span style="color: #660066;">MyStatus</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">14</span> <span style="color: #339933;">||</span> MsgrUIA.<span style="color: #660066;">MyStatus</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">34</span> <span style="color: #339933;">||</span> MsgrUIA.<span style="color: #660066;">MyStatus</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">50</span> <span style="color: #339933;">||</span> MsgrUIA.<span style="color: #660066;">MyStatus</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">66</span> <span style="color: #339933;">||</span> MsgrUIA.<span style="color: #660066;">MyStatus</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">6</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>   <span style="color: #006600; font-style: italic;">//2,10, 14, 34, 50,66,6</span>
       MsgrUIA.<span style="color: #660066;">InstantMessage</span><span style="color: #009900;">&#40;</span>address<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       <span style="color: #009900;">&#125;</span>
       <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>MsgrUIA.<span style="color: #660066;">MyStatus</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">512</span> <span style="color: #339933;">||</span> MsgrUIA.<span style="color: #660066;">MyStatus</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">768</span><span style="color: #009900;">&#41;</span>
       <span style="color: #009900;">&#123;</span>
       <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Logining Now，Please wait!'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       <span style="color: #009900;">&#125;</span>
       <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
       <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Error：'</span><span style="color: #339933;">+</span>   MsgrUIA.<span style="color: #660066;">MyStatus</span>   <span style="color: #339933;">+</span> <span style="color: #3366CC;">'。Send a message through MSN , only for IE and you must have installed MSN or Window Message'</span> <span style="color: #339933;">+</span> address <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #339933;">--&gt;</span>
    <span style="color: #339933;">&lt;/</span>SCRIPT<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p><strong>以上代码已经不支持msn8.0，MSN 8.0的代码</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="div" style="font-family:monospace;"><span style="color: #44aa44;">&lt;</span>A title<span style="color: #44aa44;">=</span><span style="color: #ff0000;">&quot;请确保XP版本以上的Windows并安装好MSN，或者手动添加地址。&quot;</span> href<span style="color: #44aa44;">=</span><span style="color: #ff0000;">&quot;msnim:chat?contact=admin@hichf.com&quot;</span>   target<span style="color: #44aa44;">=</span>_blank<span style="color: #44aa44;">&gt;</span>给zanpo发消息<span style="color: #44aa44;">&lt;/</span>A<span style="color: #44aa44;">&gt;</span></pre></td></tr></table></div>

<p>收藏自：<a rel="external nofollow" href="http://www.hichf.com/read.php?tid-4092.html">CHF精品论坛</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.koryi.net/net/608.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>两组PHP代码的随机图像显示程序</title>
		<link>http://www.koryi.net/net/607.html</link>
		<comments>http://www.koryi.net/net/607.html#comments</comments>
		<pubDate>Thu, 18 Sep 2008 08:18:26 +0000</pubDate>
		<dc:creator>ray1980</dc:creator>
				<category><![CDATA[网络应用]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[图像]]></category>
		<category><![CDATA[程序]]></category>
		<category><![CDATA[随机]]></category>

		<guid isPermaLink="false">http://www.koryi.net/2008/09/%e4%b8%a4%e7%bb%84php%e4%bb%a3%e7%a0%81%e7%9a%84%e9%9a%8f%e6%9c%ba%e5%9b%be%e5%83%8f%e6%98%be%e7%a4%ba%e7%a8%8b%e5%ba%8f/</guid>
		<description><![CDATA[1：PHP随机显示图片

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
&#60;?php
/*
*   Author:   http://www.yox.net.ru
*/
&#160;
$url = &#34;./images&#34;; //注意:图片文件夹路径，不可含有'/'... ]]></description>
			<content:encoded><![CDATA[<p>1：PHP随机显示图片</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
*   Author:   http://www.yox.net.ru
*/</span>
&nbsp;
<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;./images&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//注意:图片文件夹路径，不可含有'/'；</span>
<span style="color: #000088;">$files</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">false</span> <span style="color: #339933;">!==</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span> <span style="color: #339933;">=</span> <span style="color: #339933;">@</span><span style="color: #990000;">opendir</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span> <span style="color: #339933;">=</span> <span style="color: #990000;">readdir</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">&quot;.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&amp;&amp;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">&quot;..&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #339933;">,-</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;gif&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #339933;">,-</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;jpg&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #339933;">,-</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;png&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
   <span style="color: #000088;">$files</span><span style="color: #009900;">&#91;</span><span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$files</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$file</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #990000;">closedir</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$random</span> <span style="color: #339933;">=</span> <span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$files</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//设定随机数的范围;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//根据文件类型,设置输出的文件类型;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$files</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$random</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,-</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;gif&quot;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-type:image/gif&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">elseif</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$files</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$random</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,-</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;jpg&quot;</span><span style="color: #009900;">&#41;</span>
   <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-type:image/jpeg&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">elseif</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$files</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$random</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,-</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;png&quot;</span><span style="color: #009900;">&#41;</span>
   <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-type:image/png&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #990000;">readfile</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$url</span>/<span style="color: #006699; font-weight: bold;">$files</span>[<span style="color: #006699; font-weight: bold;">$random</span>]&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//读文件,显示图片;</span>
<span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span>
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;b&gt;图片目录&lt;font color=red&gt;<span style="color: #006699; font-weight: bold;">$url</span>&lt;/font&gt;不存在!请重新设置!&lt;/b&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>2：PHP随机图片<br />
创建名为1到15的gif图片,随机调用显示.（注意，文件名为1.gif到15.gif之间）<br />
可用于论坛头像,嘿嘿&#8230;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?</span><span style="color: #990000;">readfile</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">15</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;.gif&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>收藏自：<a rel="external nofollow" href="http://www.yox.net.ru/random_pic_bbs/">http://www.yox.net.ru/random_pic_bbs/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.koryi.net/net/607.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>htaccess防盗链的新法</title>
		<link>http://www.koryi.net/net/604.html</link>
		<comments>http://www.koryi.net/net/604.html#comments</comments>
		<pubDate>Fri, 25 Jul 2008 02:26:25 +0000</pubDate>
		<dc:creator>ray1980</dc:creator>
				<category><![CDATA[网络应用]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[防盗链]]></category>

		<guid isPermaLink="false">http://www.koryi.net/2008/07/htaccess%e9%98%b2%e7%9b%97%e9%93%be%e7%9a%84%e6%96%b0%e6%b3%95/</guid>
		<description><![CDATA[.htaccess 设置：虽然理论上而言，在Apache中，可以针对每个目录分别设置 .htaccess ，通过权限的继承与覆盖可以实现相当复杂的功能。不过，过多的 .htaccess 往往会增加管理的难度，有时候百密难... ]]></description>
			<content:encoded><![CDATA[<p>.htaccess 设置：虽然理论上而言，在Apache中，可以针对每个目录分别设置 .htaccess ，通过权限的继承与覆盖可以实现相当复杂的功能。不过，过多的 .htaccess 往往会增加管理的难度，有时候百密难免有一疏，修改 .htaccess 稍有遗漏便可能造成网站出现问题。<br />
默认情况下禁止其他网站盗链：对图片文件而言，当其他网站使用  盗链时自动重定向至类似右图所示的图片，声明版权及宣传您的网站。当然，从降低对服务器带宽占用的角度考虑，这个图片文件不能过大，您也可以简单地拒绝其访问，让其网页上图片位置以红“x”号代替。<br />
允许特定访问来源：单纯针对图片文件来说，事实上也不可能禁止所有除您自身网站之外的其他访问，比如说Google，如果您希望通过Google图片搜索获得一定访问的话，必须让其能够正确读取真正的图片文件，再如应能够让RSS订阅用户看到feed中的图片，这就要求允许来自bloglines等的访问。<br />
允许特定目录下的文件被外部网站使用：完全禁止外部网站有时会带来不便，很多时候，我们自己也可能需要在外部网站使用部分文件。当然，放入这些目录的文件要有一定限制，不然，便失去设置防盗链的意义了。<br />
设置 .htaccess 禁止图片盗链<br />
下面即为博客学堂禁止图片盗链的 .htaccess 设置部分：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">RewriteEngine</span> <span style="color: #0000ff;">on</span>
<span style="color: #00007f;">RewriteCond</span> %{REQUEST_URI} ^/(allow1|allow2)
<span style="color: #00007f;">RewriteRule</span> ^.*$ - [L]</pre></td></tr></table></div>

<p>首先，设置允许可“盗链”即外部网站可以使用的文件所处目录，上面我们设置了两个目录，分别为allow1与allow2，当然，如果您只有一个目录的话，可以将其改为：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">RewriteCond</span> %{REQUEST_URI} ^/allow1</pre></td></tr></table></div>

<p>接下来判断是否为图片文件：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">RewriteCond</span> %{REQUEST_FILENAME} \.(gif|jpeg|png|swf|flv|zip|rar|txt|exe)$ [NC]</pre></td></tr></table></div>

<p>您也可以根据自己的需要设置更多的文件类型。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">RewriteCond <span style="color: #339933;">%</span><span style="color: #009900;">&#123;</span>HTTP_REFERER<span style="color: #009900;">&#125;</span> <span style="color: #339933;">!</span>^$</pre></td></tr></table></div>

<p>上面这一行意在允许空“HTTP_REFERER”的访问，即允许用户在浏览器地址栏中直接输入图片地址时图片文件的显示。一般而言，这是可选的，不过，建议这么设置，如果强迫必须具有“HTTP_REFERER”才能访问，可能会带来某些问题，比如说在用户通过代理服务器访问时。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">RewriteCond</span> %{HTTP_REFERER} !blogsdiy\.org [NC]
<span style="color: #00007f;">RewriteCond</span> %{HTTP_REFERER} !google\.com [NC]
<span style="color: #00007f;">RewriteCond</span> %{HTTP_REFERER} !baidu\.com [NC]
<span style="color: #00007f;">RewriteCond</span> %{HTTP_REFERER} !bloglines\.com [NC]
<span style="color: #00007f;">RewriteCond</span> %{HTTP_REFERER} !feedburner\.com [NC]</pre></td></tr></table></div>

<p>设置允许访问的HTTP来源，包括博客学堂自身、Google、Baidu、Bloglines、Feedburner等。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">RewriteRule</span> (.*) /allow1/leech.gif [R,NC,L]</pre></td></tr></table></div>

<p>将不满足上述条件的访问重定向至leech.gif。您可能已经注意到，leech.gif位于允许“盗链”的目录allow1下，这一点很重要，不然，您的警告信息图片将无法在对方网站上显示。</p>
<p>如此，即实现了我们预先设定的防止图片盗链目标。</p>
<p>其他类型文件的防盗链设定<br />
如果您的网站上存在其他类似体积较大较耗费带宽的文件如flash、mp3被其他网站盗链，可以同样采取上述策略，比如说，对Flash文件，可用类似如下的设置：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">RewriteCond</span> %{REQUEST_URI} ^/allow1
<span style="color: #00007f;">RewriteRule</span> ^.*$ - [L]<span style="color: #00007f;">RewriteBase</span> /
<span style="color: #00007f;">RewriteCond</span> %{REQUEST_FILENAME} \.swf$ [NC]
<span style="color: #00007f;">RewriteCond</span> %{HTTP_REFERER} !^$
<span style="color: #00007f;">RewriteCond</span> %{HTTP_REFERER} !blogsdiy\.org [NC]
(……其他允许访问来源)
<span style="color: #00007f;">RewriteRule</span> (.*) /allow1/leech.swf [R,NC,L]</pre></td></tr></table></div>

<p>当然，需要事先创建一个声明版权信息的flash文件“leech.swf”。其他诸如防止mp3文件、压缩文件(zip或rar)盗链的设置与此类似，不再赘述。</p>
<p>收藏自：<a rel="external nofollow" href="http://kokia.name/2008/03/02/php-ji-qiao-xiu-gai-httpdconf-fang-zhi-tu-pian-wen-jian-bei-dao-lian-xia-zai-2/">塵色記憶</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.koryi.net/net/604.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>如何写robots.txt？</title>
		<link>http://www.koryi.net/net/570.html</link>
		<comments>http://www.koryi.net/net/570.html#comments</comments>
		<pubDate>Sun, 04 May 2008 03:18:06 +0000</pubDate>
		<dc:creator>ray1980</dc:creator>
				<category><![CDATA[网络应用]]></category>
		<category><![CDATA[robots]]></category>
		<category><![CDATA[搜索引擎]]></category>

		<guid isPermaLink="false">http://www.koryi.net/?p=570</guid>
		<description><![CDATA[robots.txt基本介绍
robots.txt是一个纯文本文件，在这个文件中网站管理者可以声明该网站中不想被robots访问的部分，或者指定搜索引擎只收录指定的内容。
当一个搜索机器人（有的叫搜索蜘蛛）... ]]></description>
			<content:encoded><![CDATA[<p><strong>robots.txt基本介绍</strong></p>
<p>robots.txt是一个纯文本文件，在这个文件中网站管理者可以声明该网站中不想被robots访问的部分，或者指定搜索引擎只收录指定的内容。</p>
<p>当一个搜索机器人（有的叫搜索蜘蛛）访问一个站点时，它会首先检查该站点根目录下是否存在robots.txt，如果存在，搜索机器人就会按照该文件中的内容来确定访问的范围；如果该文件不存在，那么搜索机器人就沿着链接抓取。</p>
<p>另外，robots.txt必须放置在一个站点的根目录下，而且文件名必须全部小写。</p>
<p><strong>robots.txt写作语法</strong></p>
<p>首先，我们来看一个robots.txt范例：<a href="http://www.seovip.cn/robots.txt">http://www.seovip.cn/robots.txt</a></p>
<p>访问以上具体地址，我们可以看到robots.txt的具体内容如下：</p>
<p><em># Robots.txt file from </em><em>http://www.seovip.cn</em><br />
<em># All robots will spider the domain</em></p>
<p><em>User-agent: *<br />
Disallow:</em></p>
<p>以上文本表达的意思是允许所有的搜索机器人访问<a href="http://www.seovip.cn/">www.seovip.cn</a>站点下的所有文件。</p>
<p>具体语法分析：其中#后面文字为说明信息；<em>User-agent:</em>后面为搜索机器人的名称，后面如果是<em>*，</em>则泛指所有的搜索机器人；<em>Disallow:</em>后面为不允许访问的文件目录。</p>
<p>下面，我将列举一些robots.txt的具体用法：</p>
<p><strong>允许所有的robot访问</strong></p>
<p><em>User-agent: *<br />
Disallow:</em></p>
<p>或者也可以建一个空文件 &#8220;/robots.txt&#8221; file</p>
<p><strong>禁止所有搜索引擎访问网站的任何部分</strong></p>
<p><em>User-agent: *<br />
Disallow: /</em></p>
<p><strong>禁止所有搜索引擎访问网站的几个部分（下例中的01、02、03目录）</strong></p>
<p>User-agent: *<br />
Disallow: /01/<br />
Disallow: /02/<br />
Disallow: /03/</p>
<p><strong>禁止某个搜索引擎的访问（下例中的BadBot）</strong></p>
<p><em>User-agent: BadBot<br />
Disallow: /</em></p>
<p><strong>只允许某个搜索引擎的访问（下例中的Crawler）</strong></p>
<p><em>User-agent: Crawler<br />
Disallow:</em></p>
<p><em>User-agent: *<br />
Disallow: /</em></p>
<p><strong>另外，我觉得有必要进行拓展说明，对robots meta进行一些介绍：</strong></p>
<p>Robots META标签则主要是针对一个个具体的页面。和其他的META标签（如使用的语言、页面的描述、关键词等）一样，Robots META标签也是放在页面的＜head＞＜/head＞中，专门用来告诉搜索引擎ROBOTS如何抓取该页的内容。</p>
<p><strong>Robots META标签的写法：</strong></p>
<p>Robots META标签中没有大小写之分，name=”Robots”表示所有的搜索引擎，可以针对某个具体搜索引擎写为name=”BaiduSpider”。 content部分有四个指令选项：index、noindex、follow、nofollow，指令间以“,”分隔。</p>
<p>INDEX 指令告诉搜索机器人抓取该页面；</p>
<p>FOLLOW 指令表示搜索机器人可以沿着该页面上的链接继续抓取下去；</p>
<p>Robots Meta标签的缺省值是INDEX和FOLLOW，只有inktomi除外，对于它，缺省值是INDEX,NOFOLLOW。</p>
<p>这样，一共有四种组合：</p>
<p>＜META NAME=&#8221;ROBOTS&#8221; CONTENT=&#8221;INDEX,FOLLOW&#8221;＞<br />
＜META NAME=&#8221;ROBOTS&#8221; CONTENT=&#8221;NOINDEX,FOLLOW&#8221;＞<br />
＜META NAME=&#8221;ROBOTS&#8221; CONTENT=&#8221;INDEX,NOFOLLOW&#8221;＞<br />
＜META NAME=&#8221;ROBOTS&#8221; CONTENT=&#8221;NOINDEX,NOFOLLOW&#8221;＞</p>
<p>其中</p>
<p>＜META NAME=&#8221;ROBOTS&#8221; CONTENT=&#8221;INDEX,FOLLOW&#8221;＞可以写成＜META NAME=&#8221;ROBOTS&#8221; CONTENT=&#8221;ALL&#8221;＞；</p>
<p>＜META NAME=&#8221;ROBOTS&#8221; CONTENT=&#8221;NOINDEX,NOFOLLOW&#8221;＞可以写成＜META NAME=&#8221;ROBOTS&#8221; CONTENT=&#8221;NONE&#8221;＞</p>
<p>目前看来，绝大多数的搜索引擎机器人都遵守robots.txt的规则，而对于Robots META标签，目前支持的并不多，但是正在逐渐增加，如著名搜索引擎GOOGLE就完全支持，而且GOOGLE还增加了一个指令“archive”，可以 限制GOOGLE是否保留网页快照。例如：</p>
<p>＜META NAME=&#8221;googlebot&#8221; CONTENT=&#8221;index,follow,noarchive&#8221;＞</p>
<p>表示抓取该站点中页面并沿着页面中链接抓取，但是不在GOOLGE上保留该页面的网页快照。</p>
<p>收藏自：<a rel="external nofollow" href="http://www.dunsh.org/2006/08/02/robotstxt/"> 点石互动</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.koryi.net/net/570.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nexus Weblog Link 描述格式设置“友情链接”</title>
		<link>http://www.koryi.net/net/567.html</link>
		<comments>http://www.koryi.net/net/567.html#comments</comments>
		<pubDate>Tue, 18 Mar 2008 12:17:36 +0000</pubDate>
		<dc:creator>ray1980</dc:creator>
				<category><![CDATA[网络应用]]></category>
		<category><![CDATA[Babel]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[Nexus]]></category>
		<category><![CDATA[Weblog]]></category>

		<guid isPermaLink="false">http://www.koryi.net/567</guid>
		<description><![CDATA[友情链接的界面是一个像编辑器似的界面。因此，可以用类似写代码的方式来控制你的友情链接，比如若在其中输入下面这段：

1
2
3
4
My Sites
珂亦收藏&#124;http://www.koryi.net
江阴印刷&#124;http://www... ]]></description>
			<content:encoded><![CDATA[<p>友情链接的界面是一个像编辑器似的界面。因此，可以用类似写代码的方式来控制你的友情链接，比如若在其中输入下面这段：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">My Sites
珂亦收藏<span style="color: #339933;">|</span>http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//www.koryi.net</span>
江阴印刷<span style="color: #339933;">|</span>http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//www.jyprint.net</span>
精品论坛<span style="color: #339933;">|</span>http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//www.jyccf.com</span></pre></td></tr></table></div>

<p>则将会建立一个叫做 【My Sites】 的链接分类，其下有3个链接。</p>
<p>如果你希望在链接或者分类的标题中使用 | 这个字符，那么请在前面加入 \，比如你希望建立一个叫做 My Sites|Friend 的分类，则输入应该是 My Sites\|Friend。</p>
<p>希望你喜欢这种简洁的链接设置方式。</p>
<p>好久没用怕会忘记，记下来总没错的</p>
<p>收藏自<a rel="external nofollow" href="http://mac.6.cn">mac.6.cn</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.koryi.net/net/567.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>project babel使用设置非官方指南</title>
		<link>http://www.koryi.net/net/566.html</link>
		<comments>http://www.koryi.net/net/566.html#comments</comments>
		<pubDate>Wed, 12 Mar 2008 13:25:04 +0000</pubDate>
		<dc:creator>ray1980</dc:creator>
				<category><![CDATA[网络应用]]></category>
		<category><![CDATA[Babel]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[v2ex]]></category>

		<guid isPermaLink="false">http://www.koryi.net/566</guid>
		<description><![CDATA[1. 如何修改babel头部的背景？
修改babel/htdocs/core/V2EXCore.php
把

1
echo&#40;'&#60;div id=&#34;top_banner&#34; align=&#34;left&#34;&#62;'&#41;;

改为

1
2
echo&#40;'&#60;div id=&#34;top_banner&#34; style=&#34;border-bottom: 1px solid rgb... ]]></description>
			<content:encoded><![CDATA[<p>1. 如何修改babel头部的背景？<br />
修改babel/htdocs/core/V2EXCore.php<br />
把</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;div id=&quot;top_banner&quot; align=&quot;left&quot;&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>改为</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;div id=&quot;top_banner&quot; style=&quot;border-bottom: 1px solid rgb(119, 119, 119);
background-image: url(/img/bg_space.jpg);&quot; align=&quot;left&quot;&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>上传一张960&#215;100大小的图片bg_space.jpg到babel/htdocs/img目录下</p>
<p>2. 如何修改站内搜索？<br />
修改/babel/res/google_search.php文件，把里面关于v2ex改成你自己站的。</p>
<p>3. 如何修改babel的titel以及在底部增加备案信息？<br />
修改babel/htdocs/core/Vocabularies.php<br />
site_name 站点名字<br />
site_title Title名字<br />
site_title_mobile 移动设备上网的Title<br />
备案信息可以加在这里</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">site_copyright <span style="color: #339933;">=</span> <span style="color: #0000ff;">'? 2007 feitui.com &lt;a href=&quot;http://www.miibeian.gov.cn/&quot;
target=&quot;_blank&quot;&gt;豫ICP备0000001号&lt;/a&gt;'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>4. 如何修改about页？<br />
修改bable/res/about里面的文件。</p>
<p>5. 如何开启“百页斩”？<br />
修改babel/htdocs/core/Settings.php<br />
把</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'BABEL_VISITING_AWARDING'</span><span style="color: #339933;">,</span> flase<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// This is too evil.</span></pre></td></tr></table></div>

<p>改为</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'BABEL_VISITING_AWARDING'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// This is too evil.</span></pre></td></tr></table></div>

<p>6. 如何设置“自言自语”版面？<br />
（注：自言自语版面里只能回复自己的主题，没有回复别人主题的权限）<br />
添加一个板块，把这个板块的ID，添加到/babel/res/autistic.xml文件里</p>
<p>7. 如何设置“无要点”版面？<br />
（注：无要点版面出现的帖子即便有新的回复也不会出现在最新帖子那里）<br />
添加一个板块，把这个板块的ID，添加到/babel/res/pointless.php文件里</p>
<p>8. 如何开启友情链接功能？<br />
修改/bable/core/V2EXCore.php文件<br />
把注释去掉</p>
<p>把</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">/* if ($_module_links) {
echo('&lt;li&gt;&lt;img src=&quot;' . CDN_IMG . 'pico_web.gif&quot; align=&quot;absmiddle&quot; /&gt; 友情链接&lt;ul class=&quot;items&quot;&gt;');
$x = simplexml_load_file(BABEL_PREFIX . '/res/links.xml');
foreach ($x-&gt;xpath('//link') as $link) {
echo '&lt;li&gt;&lt;a href=&quot;' . $link-&gt;url . '&quot; target=&quot;_blank&quot;&gt;' .
$link-&gt;name . '&lt;/a&gt;&lt;/li&gt;';
}
echo('&lt;/ul&gt;&lt;/li&gt;');
} */</span></pre></td></tr></table></div>

<p>改为</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_module_links</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;li&gt;&lt;img src=&quot;'</span> <span style="color: #339933;">.</span> CDN_IMG <span style="color: #339933;">.</span> <span style="color: #0000ff;">'pico_web.gif&quot; align=&quot;absmiddle&quot; /&gt; 友情链接&lt;ul class=&quot;items&quot;&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$x</span> <span style="color: #339933;">=</span> <span style="color: #990000;">simplexml_load_file</span><span style="color: #009900;">&#40;</span>BABEL_PREFIX <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/res/links.xml'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">xpath</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'//link'</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$link</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;li&gt;&lt;a href=&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$link</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">url</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; target=&quot;_blank&quot;&gt;'</span> <span style="color: #339933;">.</span>
<span style="color: #000088;">$link</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">name</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/a&gt;&lt;/li&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;/ul&gt;&lt;/li&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>并把链接的站点写到/babel/res/links.xml文件里，格式为：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>links<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>link<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>url<span style="color: #339933;">&gt;</span>http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//www.feitui.com/&lt;/url&gt;</span>
<span style="color: #339933;">&lt;</span>name<span style="color: #339933;">&gt;</span>飞腿<span style="color: #339933;">&lt;/</span>name<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>link<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>link<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>url<span style="color: #339933;">&gt;</span>http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//hi.cutlife.com/&lt;/url&gt;</span>
<span style="color: #339933;">&lt;</span>name<span style="color: #339933;">&gt;</span>Cutlife<span style="color: #339933;">|</span>惊蛰<span style="color: #339933;">&lt;/</span>name<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>link<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>links<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>9. 如何增加“所在地”？<br />
修改/bable/geo/map.xml文件，添加你的所在地，并且在/bable/geo/下面对应的子目录里添加对应的目录及xml文件	</p>
<p>10. 如何屏蔽在注册过程中要求的确认码[v0.5-pre]<br />
V2EXCore.php中屏蔽掉了module: Signup block中的验证码显示输出部分和整个result: c部分<br />
ValidatorCore.php中屏蔽掉module: User Create Check logic中的check: c一段<br />
这样子就可以完全屏蔽掉注册码</p>
<p>11. 在哪儿修改导航和title？<br />
core/Vocabularies.php</p>
<p>12. babel/res 下的几个文件干啥用的？<br />
dangerous.xml 用来指定一些需要屏蔽的危险主题。<br />
restricted.xml 用来指定受限制讨论区。</p>
<p>13. 如何添加相关网站<br />
htdocs/core/InstallCore.php</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$i</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">vxSetupRelatedByName</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'board_name'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://www.livid.cn/'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Livid's Paranoid&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>14. 启动资金修改<br />
Settings.php</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">BABEL_USR_INITIAL_MONEY <span style="color: #339933;">=&gt;</span> 初始资金</pre></td></tr></table></div>

<p>15. 首页底部总是显示debug.怎么去掉?<br />
Settings.php里的两个</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'BABEL_DEBUG'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span></pre></td></tr></table></div>

<p>改成false</p>
<p>16. 要显示股票信息，该改哪个参数？<br />
如果 nod_name 是 6 位数字的话。<br />
默认打开的，只需要吧股票代码的6位数字填到 nod_name 里</p>
<p>17. 用babelman创建板块后，没有图标<br />
图片文件必须和板块nod_name一样才能显示出来</p>
<p>18. 置顶贴怎么实现</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$sql</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;UPDATE babel_topic SET tpc_flag = 2 WHERE tpc_id = <span style="color: #006699; font-weight: bold;">{$topic_id}</span> LIMIT 1&quot;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>19.首页头像展示不出来<br />
打开V2EXCore.PHP文件,2312行</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$sql</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;SELECT usr_id, usr_nick, usr_geo, usr_portrait FROM babel_user WHERE usr_portrait != '' AND 
&nbsp;
usr_hits &gt; 100 AND usr_lastlogin &gt; <span style="color: #006699; font-weight: bold;">{$ts_month}</span> ORDER BY rand() LIMIT <span style="color: #006699; font-weight: bold;">{$p_count}</span>&quot;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>将里面的100改下就可以了.默认是个人页面被查看100次以上才能展示出来.</p>
<p>20. 右侧栏下面FF那两个图标链接在哪能修改?<br />
V2EXCore.php</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">_v_hr<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;a href=&quot;http://www.spreadfirefox.com/?q=affiliates&amp;id=197201&amp;t=218&quot;&gt;&lt;img border=&quot;0&quot; alt=&quot;Firefox 2&quot; 
&nbsp;
title=&quot;Firefox 2&quot; src=&quot;'</span> <span style="color: #339933;">.</span> CDN_UI <span style="color: #339933;">.</span> <span style="color: #0000ff;">'img/ff2o80x15.gif&quot; /&gt;&lt;/a&gt; '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' &lt;a href=&quot;http://www.igniterealtime.org/projects/openfire/&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; 
&nbsp;
alt=&quot;Pageflakes&quot; title=&quot;Openfire&quot; src=&quot;'</span> <span style="color: #339933;">.</span> CDN_UI <span style="color: #339933;">.</span> <span style="color: #0000ff;">'img/80x15/openfire.gif&quot; /&gt;&lt;/a&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
_v_hr<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>HOST_LINK <span style="color: #339933;">==</span> <span style="color: #0000ff;">'http://www.mediatemple.net/'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;'</span> <span style="color: #339933;">.</span> HOST_LINK <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; target=&quot;_blank&quot;&gt;&lt;img 
&nbsp;
src=&quot;http://www.mediatemple.net/_images/partnerlogos/mt-160x30-dk.gif&quot; border=&quot;0&quot; alt=&quot;'</span> <span style="color: #339933;">.</span> HOST_COMPANY <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; 
&nbsp;
/&gt;&lt;/a&gt;&lt;br /&gt;&lt;small&gt;Hosted by &lt;a href=&quot;'</span> <span style="color: #339933;">.</span> HOST_LINK <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; target=&quot;_blank&quot; class=&quot;o&quot;&gt;'</span> <span style="color: #339933;">.</span> HOST_COMPANY <span style="color: #339933;">.</span> 
&nbsp;
<span style="color: #0000ff;">'&lt;/a&gt;&lt;/small&gt;&lt;/div&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;span class=&quot;tip_i&quot;&gt;&lt;small&gt;Hosted by &lt;a href=&quot;'</span> <span style="color: #339933;">.</span> HOST_LINK <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; target=&quot;_blank&quot; style=&quot;color: '</span> <span style="color: #339933;">.</span> 
&nbsp;
rand_color<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; class=&quot;var&quot;&gt;'</span> <span style="color: #339933;">.</span> HOST_COMPANY <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/a&gt;&lt;/small&gt;&lt;/span&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>21. 如何自动执行利息<br />
设置/cron/core/下的Setting.php里的数据库</p>
<p>打开SSH<br />
命令：<br />
crontab -e　　＃进入CRONTAB编辑页面<br />
59 23 * * * /usr/local/bin/php /home/pathto/benefit.php<br />
Ctrl+x 保存退出，看到CRONTAB建立成功就可以了。<br />
考虑到DH与中国的时差，可能这个59　23得调整，晚点再说吧。</p>
<p>转自<a rel="external nofollow" href="http://mac.6.cn">mac.6.cn</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.koryi.net/net/566.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>使用 WAMP5 架设能够安装 Babel 的环境</title>
		<link>http://www.koryi.net/net/563.html</link>
		<comments>http://www.koryi.net/net/563.html#comments</comments>
		<pubDate>Sat, 05 Jan 2008 01:00:45 +0000</pubDate>
		<dc:creator>ray1980</dc:creator>
				<category><![CDATA[网络应用]]></category>
		<category><![CDATA[Babel]]></category>
		<category><![CDATA[WAMP]]></category>

		<guid isPermaLink="false">http://www.koryi.net/563</guid>
		<description><![CDATA[本文所述的一切基于系统 Windows XP 进行测试。至于 Babel 的源代码，推荐使用我打包的，包含 Installer（a.k.a. project-rahab) 的版本，你可以在这里找到最新版本：http://code.google.com/p/project-rahab/。示... ]]></description>
			<content:encoded><![CDATA[<p>本文所述的一切基于系统 Windows XP 进行测试。至于 Babel 的源代码，推荐使用我打包的，包含 Installer（a.k.a. project-rahab) 的版本，你可以在这里找到最新版本：<a href="http://code.google.com/p/project-rahab" rel="nofollow external" class="tpc">http://code.google.com/p/project-rahab/</a>。示例中的是 r8 版本。</p>
<p>hosts 文件的设置。我们需要欺骗系统，将指定的一个域名解析到 127.0.0.1。<br />
<strong> Windows XP 中的位置：</strong>C:\WINDOWS\system32\drivers\etc\hosts<br />
<strong> Ubuntu 中的位置：</strong>/etc/hosts<br />
打开 hosts 文件后，找到如下行的位置：</p>
<blockquote><p>127.0.0.1       localhost</p></blockquote>
<p>我们更改为：</p>
<blockquote><p>127.0.0.1       localhost orz.vx</p></blockquote>
<p>其中， www.babel.vx 可以更改为你喜爱的域名，例如，orz.com，值得注意的是，设置以后，可能会与现有的 DNS 指向有冲突，例如，你指定域名为 www.google.com，那么，你将无法访问 www.google.com，而是本地的 127.0.0.1。在这里推荐使用不存在的域名，例如，orz.vx。</p>
<blockquote><p><strong>必须使用修改 hosts 这一步骤中设置的域名访问，安装并且运行！</strong></p></blockquote>
<p>系统环境的安装。在 Windows XP 下，我推荐使用 WAMP5，它能够迅速建立一个 AMP 服务器环境，并且拥有方便快捷的 Apache Module 和 PHP Module 菜单，你可以从以下地址下载到 WAMP5 的最新版本：<a href="http://www.wampserver.com" rel="nofollow external" class="tpc">http://www.wampserver.com/</a>。这里使用的是 WAMP5.1.7.0。<br />
在 WAMP5 安装过程中，会询问是否在系统启动时自动启动 AMP 服务(auto start)，你可以根据自己的需要来决定是否启用这个选项。安装结束后，安装程序会弹出一个窗口，要求你设置 document root 的位置，默认是 wamp 安装目录下的 www 目录，这里采用默认设置，直接点击确定即可。接下来，还需要设置 PHP 的 SMTP 的服务器地址以及 email 的地址，默认是 localhost 和 you@domain.com，这里我们可以不理会，直接点击 next。<br />
例子中，WAMP5 的安装路径是 D:\wamp\。<br />
安装完毕后，开启 WAMP5，接下来我们需要对 Apache 以及 PHP 进行一些设置。左键点击任务栏中 WAMP5 的图标，弹出设置菜单，在 apache modules 中选择 rewrite_module，在 php settings 的 php extensions 中点选 php_gd2,php_mcrypt。注意的是，点选开启一个 module 后，需要稍等片刻才能继续点选开启下一个 module，这是因为，选择启用一个新 module 后，WAMP 会重启所有服务，此时进行设置，会出现报错窗口。<br />
接下来，把下载回来的 Babel 源代码解压至 D:\wamp\www\ 下。解压后，你可以在 D:\wamp\www\htdocs\ 目录下找到 babel.php 这个文件，可以以此验证你解压后的路径是否与本文中所说的一致。<br />
不过接下来，得先手动对 php 和 apache 进行一些设置。<br />
打开 WAMP5 的菜单，config files -&gt; php.ini ，找到 memory_limit = 8M 一行，更改为:</p>
<blockquote><p>memory_limit = 16M</p></blockquote>
<p>保存后关闭。然后是 config files -&gt; httpd.conf，在文件的最后加上一行：</p>
<blockquote><p>Include &#8220;D:\wamp\apache2\conf\mybabel.conf&#8221;</p></blockquote>
<p>这里的路径应该根据你的实际情况更改；然后在 D:\wamp\apache2\conf 下创建 mybabel.conf 文件，内容如下：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
</pre></td><td class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">NameVirtualHost</span> 127.0.0.1
<span style="color: #00007f;">ServerName</span> orz.vx
&lt;<span style="color: #000000; font-weight:bold;">VirtualHost</span> orz.vx&gt;
    <span style="color: #00007f;">ServerAdmin</span> yanleech@gmail.com
    <span style="color: #00007f;">RewriteEngine</span> <span style="color: #0000ff;">On</span>
    <span style="color: #00007f;">DocumentRoot</span> D:/wamp/www/htdocs
&lt;<span style="color: #000000; font-weight:bold;">Directory</span> /&gt;
    <span style="color: #00007f;">Options</span> <span style="color: #0000ff;">FollowSymLinks</span>
    <span style="color: #00007f;">AllowOverride</span> <span style="color: #00007f;">All</span>
    <span style="color: #00007f;">Order</span> <span style="color: #00007f;">deny</span>,<span style="color: #00007f;">allow</span>
    <span style="color: #00007f;">Deny</span> <span style="color: #00007f;">from</span> <span style="color: #00007f;">all</span>
    <span style="color: #00007f;">Allow</span> <span style="color: #00007f;">from</span> 127.0.0.1
&lt;/<span style="color: #000000; font-weight:bold;">Directory</span>&gt;
&lt;<span style="color: #000000; font-weight:bold;">Directory</span> D:/wamp/www/htdocs/&gt;
    <span style="color: #00007f;">Options</span> <span style="color: #0000ff;">Indexes</span> <span style="color: #0000ff;">FollowSymLinks</span>
    <span style="color: #00007f;">AllowOverride</span> <span style="color: #00007f;">All</span>
    <span style="color: #00007f;">Order</span> <span style="color: #00007f;">deny</span>,<span style="color: #00007f;">allow</span>
    <span style="color: #00007f;">Deny</span> <span style="color: #00007f;">from</span> <span style="color: #00007f;">all</span>
    <span style="color: #00007f;">Allow</span> <span style="color: #00007f;">from</span> 127.0.0.1
&lt;/<span style="color: #000000; font-weight:bold;">Directory</span>&gt;
    <span style="color: #00007f;">ErrorLog</span> D:/wamp/logs/error.log
    <span style="color: #00007f;">LogLevel</span> warn
    <span style="color: #00007f;">CustomLog</span> D:/wamp/logs/access.log combined
&lt;/<span style="color: #000000; font-weight:bold;">VirtualHost</span>&gt;</pre></td></tr></table></div>

<p>其中，上面的 ServerName，VirtualHost， DocumentRoot，以及 &lt;Directory D:/wamp/www/htdocs/&gt; ，ErrorLog， CustomLog 请按照你的实际情况更改。</p>
<p>接下来，便是 MySQL 的一些设置。WAMP 的安装中已经包括 PhpMyAdmin，使用 PhpMyAdmin 创建一个数据库，为默认用户 root 设置密码，你也可以建立一个新的用户。<br />
在上面所有步骤完成后，在 WAMP 的菜单中选择 Restart All Services 重启服务器。</p>
<p>然后运行 installer.php，按照提示进行设置。毫无意外，你将成功完成 project-babel 的安装！</p>
<p>收藏自：<a rel="external nofollow" href="http://www.v2ex.com/topic/view/8861.html">http://www.v2ex.com/topic/view/8861.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.koryi.net/net/563.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>提高网站反向链接的10种方法</title>
		<link>http://www.koryi.net/net/555.html</link>
		<comments>http://www.koryi.net/net/555.html#comments</comments>
		<pubDate>Mon, 03 Dec 2007 03:00:19 +0000</pubDate>
		<dc:creator>ray1980</dc:creator>
				<category><![CDATA[网络应用]]></category>
		<category><![CDATA[网站 链接]]></category>

		<guid isPermaLink="false">http://www.koryi.net/555</guid>
		<description><![CDATA[方法1、将网站提交道DMOZ目录、yahoo目录、ODP目录一些专业目录网站；
方法2、到交换链接的BBS发布友情链接交换信息；
方法3、与行业协会或商业机构联系。这些非营利性的网站的链接权重一般... ]]></description>
			<content:encoded><![CDATA[<p>方法1、将网站提交道DMOZ目录、yahoo目录、ODP目录一些专业目录网站；</p>
<p>方法2、到交换链接的BBS发布友情链接交换信息；</p>
<p>方法3、与行业协会或商业机构联系。这些非营利性的网站的链接权重一般都比较高，所以与这些网站进行链接交换也是非常好的一种手段；</p>
<p>方法4、寻找竞争对手网站的反向链接，主动与这些网站进行链接交换：向超越竞争对手，最好的办法就是竞争对手有的反向链接你都有，竞争对手没有的你也有。呵呵！</p>
<p>方法5、发布新闻稿，在新闻稿中合理的加上超链接，当这个新闻被众多网站转载之后，就可以帮助你的网站增加非常多的反向链接：</p>
<p>方法6、在论坛签名中加上你的超链接。经常混论坛，发帖子，资源要好好利用；</p>
<p>方法7、创建blog，创建blog，丰富blog的内容，在blog中合理的加上你的网站的超链接；</p>
<p>方法8、用搜索引擎搜索“提交网站、add url”等相关关键词。搜索到的网页中，可以增加你网站的反向链接；<br />
去各大搜索引擎提交网站，如百度登陆：<a href="http://www.baidu.com/search/url_submit.html" target="_blank">http://www.baidu.com/search/url_submit.html</a></p>
<p>方法9、给自己的增加自助链接申请功能，吸引其他网站主动与你链接；</p>
<p>方法10、购买反向链接，有很多站长拥有数量非常多的资源，你可以向他们购买反向链接。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.koryi.net/net/555.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>单页面一周之内做到一万IP的技巧揭密</title>
		<link>http://www.koryi.net/net/544.html</link>
		<comments>http://www.koryi.net/net/544.html#comments</comments>
		<pubDate>Tue, 20 Nov 2007 04:08:50 +0000</pubDate>
		<dc:creator>ray1980</dc:creator>
				<category><![CDATA[网络应用]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.koryi.net/544</guid>
		<description><![CDATA[    用单页面在一周内带来一万IP，似乎是顶级SEOER的杰作，一直没有人透露其中的技巧，都在暗暗地赚钱了。其实做SEOER也不需要这么狭隘，关键词的 资源，不是某一个SEOER能做得完的。今天把... ]]></description>
			<content:encoded><![CDATA[<p>    用单页面在一周内带来一万IP，似乎是顶级SEOER的杰作，一直没有人透露其中的技巧，都在暗暗地赚钱了。其实做SEOER也不需要这么狭隘，关键词的 资源，不是某一个SEOER能做得完的。今天把其中的技巧完全分享出来，希望有心得朋友，能达到用单页面或者若干页面，一周内做到上万IP的目标。</p>
<p>首先是关键词的选取，这是最关键的地方，也是关乎成败的技巧，选择关键词的标准，一是看搜索量，百度指数和相关搜索，需要耐心寻找合适的目标关键词。一般 来说搜索量在3000-5000左右的中长关键词，这种词竞争激烈程度一般较低，而且相关搜索量好几万乃至几十万，有做到价值。周期性存在的如“××电视 剧在线观看”，瞬间流量如“嫦娥一号升空”“嫦娥一号发射”，长期性流量如“校内网CSS代码”“刘亦菲全身暴光图片”“××明星床戏视频”“张柏芝合成 图”等。这个是确定方向和关乎成败的过程，花上几个小时乃至几天的时间去寻找都不为过。我们选择中长达关键词，是为了避开激烈的竞争，如何看关键词的竞争 程度呢？其一是分析首页排名靠前的站，是否有超越的把握。检查权重的标准是顶级域名&gt;目录&gt;页面，用我之长（顶级域名的权重）去超越对手之短 （页面），其次是看是否有百度知道，百度空间，门户大站的踪影，最后是坚持反链，在这个过程中你会常常发现SEO高手的踪影。</p>
<p>第二点，选择一个顶级域名，推荐cn，虽然主流观点是org.cn更好些，但是ORG.CN被SEOER用得过火了，反而CN看起来更加自然一些。我们要 做到，是构建一个完美的单页面。表格,DIV布局均可，只是切记嵌套不要太多，提高关键词信噪比。一开始的时候，不要刻意考虑关键词密度，让页面看起来顺 其自然，所谓没有SEO是最好的SEO，即是说当对搜索友好的观念已经潜移默化时，做出的站自然是SE喜欢的。当然，对于新手来说，做完后最好用工具检查 一下密度，一开始控制在5%左右时比较好的，中间可以不断调整，直到达到了无SEO的痕迹。</p>
<p>第三点：title的写法。刚上线时页面标题可以用比较安全的个人风格，比如**的博客，心情日志之类的，一旦成功收录，就要对标题大胆地进行修改。这里 要了解百度的分词技术，所谓的长尾对标题来说，不是单个的长尾，写法要让SE自己去分成若干长尾关键词，比如对于热门的一个电视剧，根据相关搜索和指数， 它的TITLE可以写成 “××分集剧情介绍|第×集|×××在线观看|下载|大结局”，对于嫦娥一号，可以写成“嫦娥一号发射升空直播|嫦娥一号奔月图片、视频”。当然，注意控 制标题的长度和关键词的密度。</p>
<p>第四点：权重的构建。第一个目标是被收录，如果你有百度频繁光顾的站，加几个外部链接，一般一两天就收录了。新站在考核期内，一般只收录首页（说到这里我 们要第三点标题是重中之重了），收录成功之后我们要耐心地构建外链，现在对于SE，群发无异于找死，SEO已经进入了群建的时代。OBLOG，动网 BLOG，都是很好的群建目标。有工具的话，每天导入一些带链接的文章，记得，你是新站，而且对付越来越聪明的百度，不要一次发太多。没有工具的朋友，人 肉群建是最好的选择。百度和GOOGLE对门户站博客的更新速度是惊人的，一般上午发的软文，下午就收录了，这里推荐一个最好的资源，那就是和讯博客，一 个BLOG相当于一个三级域名，它的权重和一般的独立域名的网站已经相当了，没有和讯工具的就手工，建好BLOG，友情加上自己的站，然后手工/工具导入 大量带文本链接的文章。其实很多SEOER一直在用和讯做外链，今天刘睿泳第一次把这个资源明确发出来，也许它的存在之日不久了。</p>
<p>做到以上几点，就耐心地等待吧。收录之后，每天可以更新首页的部分内容，同时注意观察统计的关键词来路，慢慢调整标题的写法。新手可以从捕捉瞬间流量入 手，很多老鸟不屑做的瞬间流量，其效果也是惊人的，之后再慢慢挑战竞争比较激烈搜索量更大的关键词。当然了，不局限于单页面，对于每个网站来说，都可以融 入其中的方法。SEO的过程，是一个黑盒测试的过程，要亲手做过了，才慢慢掌握其技巧和规律。</p>
<p>本文原创by刘睿泳，转载请注明 <a href="http://blog.bieshu.net/archives/20">http://blog.bieshu.net/archives/20</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.koryi.net/net/544.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.htaccess使用说明</title>
		<link>http://www.koryi.net/net/541.html</link>
		<comments>http://www.koryi.net/net/541.html#comments</comments>
		<pubDate>Thu, 08 Nov 2007 12:15:23 +0000</pubDate>
		<dc:creator>ray1980</dc:creator>
				<category><![CDATA[网络应用]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[ip]]></category>

		<guid isPermaLink="false">http://www.koryi.net/541</guid>
		<description><![CDATA[.htaccess可以做大量范围的事情，包括：文件夹密码保护、用户自动重新指向、自定义错误页面、变更你的文件扩展名、屏蔽特定的用户IP地址、只允许特定的IP地址、停止目录表以及使用其他文... ]]></description>
			<content:encoded><![CDATA[<p>.htaccess可以做大量范围的事情，包括：文件夹密码保护、用户自动重新指向、自定义错误页面、变更你的文件扩展名、屏蔽特定的用户IP地址、只允许特定的IP地址、停止目录表以及使用其他文件作为index文件，等等&#8230;&#8230;</p>
<p>1. Introduction 介绍<br />
文件名 .htaccess 属性 644 (RW-R–R–)<br />
htaccess会影响它所在目录下的所有子目录<br />
注意大多数内容都要求保持在一行之内，不要换行，否则会引起错误</p>
<p>2. Error Documents 错误文档<br />
Official document: ErrorDocument Directive<br />
ErrorDocument code document<br />
例子<br />
ErrorDocument 400 /errors/badrequest.html<br />
ErrorDocument 404 http://yoursite/errors/notfound.html<br />
ErrorDocument 401 “Authorization Required”<br />
(注意之后内容如果出现的双引号需要转义为 \”)<br />
常见HTTP状态码<br />
Successful Client Requests<br />
200 OK<br />
201 Created<br />
202 Accepted<br />
203 Non-Authorative Information<br />
204 No Content<br />
205 Reset Content<br />
206 Partial Content<br />
Client Request Redirected<br />
300 Multiple Choices<br />
301 Moved Permanently<br />
302 Moved Temporarily<br />
303 See Other<br />
304 Not Modified<br />
305 Use Proxy<br />
Client Request Errors<br />
400 Bad Request<br />
401 Authorization Required<br />
402 Payment Required (not used yet)<br />
403 Forbidden<br />
404 Not Found<br />
405 Method Not Allowed<br />
406 Not Acceptable (encoding)<br />
407 Proxy Authentication Required<br />
408 Request Timed Out<br />
409 Conflicting Request<br />
410 Gone<br />
411 Content Length Required<br />
412 Precondition Failed<br />
413 Request Entity Too Long<br />
414 Request URI Too Long<br />
415 Unsupported Media Type<br />
Server Errors<br />
500 Internal Server Error<br />
501 Not Implemented<br />
502 Bad Gateway<br />
503 Service Unavailable<br />
504 Gateway Timeout<br />
505 HTTP Version Not Supported</p>
<p>3. Password Protection 密码保护<br />
Official document: Authentication, Authorization and Access Control<br />
假设密码文件为.htpasswd<br />
AuthUserFile /usr/local/safedir/.htpasswd (这里必须使用全路径名)<br />
AuthName EnterPassword<br />
AuthType Basic<br />
两种常见验证方式:<br />
Require user windix<br />
(仅允许用户windix登陆)<br />
Require valid-user<br />
(所有合法用户都可登陆)<br />
Tip: 如何生成密码文件<br />
使用htpasswd命令(apache自带)<br />
第一次生成需要创建密码文件<br />
htpasswd -c .htpasswd user1<br />
之后增加新用户<br />
htpasswd .htpasswd user2</p>
<p>4. Enabling SSI Via htaccess 通过htaccess允许SSI(Server Side Including)功能<br />
AddType text/html .shtml<br />
AddHandler server-parsed .shtml<br />
Options Indexes FollowSymLinks Includes<br />
DirectoryIndex index.shtml index.html</p>
<p>5. Blocking users by IP 根据IP阻止用户访问<br />
order allow,deny<br />
deny from 123.45.6.7<br />
deny from 12.34.5. (整个C类地址)<br />
allow from all</p>
<p>6. Blocking users/sites by referrer 根据referrer阻止用户/站点访问<br />
需要mod_rewrite模块<br />
例1. 阻止单一referrer: badsite.com<br />
RewriteEngine on<br />
# Options +FollowSymlinks<br />
RewriteCond %{HTTP_REFERER} badsite\.com [NC]<br />
RewriteRule .* &#8211; [F]<br />
例2. 阻止多个referrer: badsite1.com, badsite2.com<br />
RewriteEngine on<br />
# Options +FollowSymlinks<br />
RewriteCond %{HTTP_REFERER} badsite1\.com [NC,OR]<br />
RewriteCond %{HTTP_REFERER} badsite2\.com<br />
RewriteRule .* &#8211; [F]<br />
[NC] &#8211; 大小写不敏感(Case-insensite)<br />
[F] &#8211; 403 Forbidden<br />
注意以上代码注释掉了”Options +FollowSymlinks”这个语句。如果服务器未在 httpd.conf 的 段落设置 FollowSymLinks, 则需要加上这句，否则会得到”500 Internal Server error”错误。</p>
<p>7. Blocking bad bots and site rippers (aka offline browsers) 阻止坏爬虫和离线浏览器<br />
需要mod_rewrite模块<br />
坏爬虫? 比如一些抓垃圾email地址的爬虫和不遵守robots.txt的爬虫(如baidu?)<br />
可以根据 HTTP_USER_AGENT 来判断它们<br />
(但是还有更无耻的如”中搜 zhongsou.com”之流把自己的agent设置为 “Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)” 太流氓了，就无能为力了)<br />
RewriteEngine On<br />
RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:craftbot@yahoo.com [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^HMView [OR]<br />
RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR]<br />
RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^larbin [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Widow [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Zeus<br />
RewriteRule ^.* &#8211; [F,L]<br />
[F] &#8211; 403 Forbidden<br />
[L] &#8211; ?</p>
<p>8. Change your default directory page 改变缺省目录页面<br />
DirectoryIndex index.html index.php index.cgi index.pl</p>
<p>9. Redirects 转向<br />
单个文件<br />
Redirect /old_dir/old_file.html http://yoursite.com/new_dir/new_file.html<br />
整个目录<br />
Redirect /old_dir http://yoursite.com/new_dir<br />
效果: 如同将目录移动位置一样<br />
http://yoursite.com/old_dir -&gt; http://yoursite.com/new_dir<br />
http://yoursite.com/old_dir/dir1/test.html -&gt; http://yoursite.com/new_dir/dir1/test.html<br />
Tip: 使用用户目录时Redirect不能转向的解决方法<br />
当你使用Apache默认的用户目录，如 http://mysite.com/~windix，当你想转向 http://mysite.com/~windix/jump时，你会发现下面这个Redirect不工作:<br />
Redirect /jump http://www.google.com<br />
正确的方法是改成<br />
Redirect /~windix/jump http://www.google.com<br />
(source: .htaccess Redirect in “Sites” not redirecting: why?<br />
)</p>
<p>10. Prevent viewing of .htaccess file 防止.htaccess文件被查看<br />
order allow,deny<br />
deny from all</p>
<p>11. Adding MIME Types 添加 MIME 类型<br />
AddType application/x-shockwave-flash swf<br />
Tips: 设置类型为 application/octet-stream 将提示下载</p>
<p>12. Preventing hot linking of images and other file types 防盗链<br />
需要mod_rewrite模块<br />
RewriteEngine on<br />
RewriteCond %{HTTP_REFERER} !^$<br />
RewriteCond %{HTTP_REFERER} !^http://(www/\.)?mydomain.com/.*$ [NC]<br />
RewriteRule \.(gif|jpg|js|css)$ &#8211; [F]<br />
解析:<br />
若 HTTP_REFERER 非空 (来源为其他站点，非直接连接) 并且<br />
若 HTTP_REFERER 非(www.)mydomain.com开头(忽略大小写[NC]) (来源非本站)<br />
对于所有含有 .gif/.jpg/.js/.css 结尾的文件给出 403 Forbidden 错误[F]<br />
也可指定响应，如下例显示替换图片<br />
RewriteRule \.(gif|jpg)$<br />
[R,L]<br />
[R] &#8211; 转向(Redirect)<br />
[L] &#8211; 连接(Link)</p>
<p>13. Preventing Directory Listing 防止目录列表时显示<br />
IndexIgnore *<br />
IndexIgnore *.jpg *.gif<br />
Tips:<br />
允许目录列表显示: Options +Indexes<br />
禁止目录列表显示: Options -Indexes<br />
显示提示信息: 页首 文件HEADER, 页尾 文件README</p>
<p>转自:<a rel="external nofollow" href="http://www.21andy.com/blog/20070405/614.html">21Andy.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.koryi.net/net/541.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux攻略 SSH实用技巧及常用命令使用说明</title>
		<link>http://www.koryi.net/net/533.html</link>
		<comments>http://www.koryi.net/net/533.html#comments</comments>
		<pubDate>Tue, 23 Oct 2007 03:11:47 +0000</pubDate>
		<dc:creator>ray1980</dc:creator>
				<category><![CDATA[网络应用]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.koryi.net/533</guid>
		<description><![CDATA[SFTP 可以使用的命令
CD 改变目录
LS 列出文件
MKDIR
RMDIR
PWD
CHGRP
CHOWN
CHMOD
LN OLDNAEM NEWNAME
RM PATH
RENAME OLDNAME NEWNAEM
EXIT 推出
LCD PATH 改变当前目录到本机目录
LLS
LMKDIR
LPWD L=LOCALHOST
PUT LOCALHOST_PATH HOST_PATH... ]]></description>
			<content:encoded><![CDATA[<p>SFTP 可以使用的命令</p>
<p>CD 改变目录</p>
<p>LS 列出文件</p>
<p>MKDIR</p>
<p>RMDIR</p>
<p>PWD</p>
<p>CHGRP</p>
<p>CHOWN</p>
<p>CHMOD</p>
<p>LN OLDNAEM NEWNAME</p>
<p>RM PATH</p>
<p>RENAME OLDNAME NEWNAEM</p>
<p>EXIT 推出</p>
<p>LCD PATH 改变当前目录到本机目录</p>
<p>LLS</p>
<p>LMKDIR</p>
<p>LPWD L=LOCALHOST</p>
<p>PUT LOCALHOST_PATH HOST_PATH</p>
<p>PUT 本机目录或者文件</p>
<p>GET 远程主机目录文件 本机目录</p>
<p>GET 远程主机目录或者文件</p>
<p>GET *</p>
<p>GET *.RPM</p>
<p># $OpenBSD: sshd_config,v 1.59 2002/09/25 11:17:16 markus Exp $</p>
<p># This is the sshd server system-wide configuration file. See</p>
<p># sshd_config(5) for more information.</p>
<p># This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin</p>
<p># The strategy used for options in the default sshd_config shipped with</p>
<p># OpenSSH is to specify options with their default value where</p>
<p># possible, but leave them commented. Uncommented options change a</p>
<p># default value.</p>
<p>#Port 22 SSH 默认的坚挺端口</p>
<p>#Protocol 2,1 选择SSH的版本</p>
<p>#ListenAddress 0.0.0.0 监听的IP地址</p>
<p>#ListenAddress ::</p>
<p># HostKey for protocol version 1</p>
<p>#HostKey /etc/ssh/ssh_host_key SSH VERSION 1 使用的密钥</p>
<p># HostKeys for protocol version 2</p>
<p>#HostKey /etc/ssh/ssh_host_rsa_key SSH VERSION 2 使用的RSA私钥</p>
<p>#HostKey /etc/ssh/ssh_host_dsa_key SSH VAESION 2 使用的 DSA私钥</p>
<p># Lifetime and size of ephemeral version 1 server key</p>
<p>#KeyRegenerationInterval 3600 版本一的密钥从新生成时间间隔</p>
<p>#ServerKeyBits 768 SERVER_KEY 的长度</p>
<p># Logging</p>
<p>#obsoletes QuietMode and FascistLogging</p>
<p>#SyslogFacility AUTH SSH登陆系统 记录信息 记录的位置 默认是/VAR/LOG/SECUER</p>
<p>SyslogFacility AUTHPRIV</p>
<p>#LogLevel INFO</p>
<p># Authentication:</p>
<p>#UserLogin no 在SSH 下不接受LOGIN 程序登陆</p>
<p>#LoginGraceTime 120</p>
<p>#PermitRootLogin yes 是否让ROOT用户登陆</p>
<p>#StrictModes yes 用户的HOST_KEY 改面的时候不让登陆</p>
<p>#RSAAuthentication yes 是否使用纯的RAS认证 针对VERSION 1</p>
<p>#PubkeyAuthentication yes 是否使用PUBLIC_KEY 针对VERSION 2</p>
<p>#AuthorizedKeysFile .ssh/authorized_keys 使用不需要密码登陆的的帐号时帐号的存放文件所在的文件名</p>
<p># rhosts authentication should not be used</p>
<p>#RhostsAuthentication no 本机系统不使用 RHOSTS 使用RHOSTS 不安全</p>
<p># Don’t read the user’s ~/.rhosts and ~/.shosts files</p>
<p>#IgnoreRhosts yes 是否取消上面的认证方式 当然选是</p>
<p># For this to work you will also need host keys in /etc/ssh/ssh_known_hosts</p>
<p>#RhostsRSAAuthentication no 不使用针对 VERSION 1 使用RHOSTS 文件在/ETC/HOSTS.EQUIV 配合RAS进行认证 不建议使用</p>
<p># similar for protocol version 2</p>
<p>#HostbasedAuthentication no 针对VERSION 2 也是上面的功能</p>
<p># Change to yes if you don’t trust ~/.ssh/known_hosts for</p>
<p># RhostsRSAAuthentication and HostbasedAuthentication</p>
<p>#IgnoreUserKnownHosts no 是否忽略主目录的 ~/.ssh/known_hosts文件记录</p>
<p># To disable tunneled clear text passwords, change to no here!</p>
<p>#PasswordAuthentication yes 是否需要密码验证</p>
<p>#PermitEmptyPasswords no 是否允许空密码登陆</p>
<p># Change to no to disable s/key passwords</p>
<p>#ChallengeResponseAuthentication yes 挑战任何密码验证</p>
<p># Kerberos options</p>
<p>#KerberosAuthentication no</p>
<p>#KerberosOrLocalPasswd yes</p>
<p>#KerberosTicketCleanup yes</p>
<p>#AFSTokenPassing no</p>
<p># Kerberos TGT Passing only works with the AFS kaserver</p>
<p>#KerberosTgtPassing no</p>
<p># Set this to ‘yes’ to enable PAM keyboard-interactive authentication</p>
<p># Warning: enabling this may bypass the setting of ‘PasswordAuthentication’</p>
<p>#PAMAuthenticationViaKbdInt no</p>
<p>#X11Forwarding no</p>
<p>X11Forwarding yes</p>
<p>#X11DisplayOffset 10</p>
<p>#X11UseLocalhost yes</p>
<p>#PrintMotd yes 是否显示上次登陆信息</p>
<p>#PrintLastLog yes 显示上次登陆信息</p>
<p>#KeepAlive yes 发送连接信息</p>
<p>#UseLogin no</p>
<p>#UsePrivilegeSeparation yes 用户权限设置</p>
<p>#PermitUserEnvironment no</p>
<p>#Compression yes</p>
<p>#MaxStartups 10 连接的画面的设置 从连接就是登陆画面</p>
<p># no default banner path</p>
<p>#Banner /some/path</p>
<p>#VerifyReverseMapping no</p>
<p># override default of no subsystems</p>
<p>Subsystem sftp /usr/libexec/openssh/sftp-server</p>
<p>DenyUsers * 设置受阻的用户 代表全部用户</p>
<p>DenyUsers test</p>
<p>DenyGroups test</p>
<p>SSH 自动登陆设置</p>
<p>１设置CLIENT端建立PUBLIC_KEY 和 PRIVATE_KEY</p>
<p>[TEST@TEST TEST] SSH-KEYGEN –T RSA //-T 说明使用RSA 加密算法</p>
<p>生成密钥的文件夹 $HOME/.SSH/ID_RSA</p>
<p>上传PUBLIC_KEY 到SERVER</p>
<p>SFTP TEST@TEST</p>
<p>LCD /HOME/.SSH</p>
<p>PUT ID_RSA.PUB</p>
<p>EXIT</p>
<p>登陆到SERVER</p>
<p>执行命令</p>
<p>[TEST@TEST SSH] CAT ../ID_RSA.PUB &gt;&gt; AUTHORIZED_KEYS</p>
<p>相关的安全设置</p>
<p>/ETC/SSH/SSHD_CONFIG</p>
<p>/ETC/HOSTS.ALLOW</p>
<p>/ETC/HOSTS.DENY</p>
<p>IPTABLES</p>
<p>编辑/ETC/HOSTS.DENY</p>
<p>SSHD : ALL :SPAWN (/BIN/ECHO SECURITY NOTICE FROM HOST `/BIN/HOSTNAME` ;\</p>
<p>/BIN/ECHO ; /USR/SBIN/SAFE_FINGER @%H )|\</p>
<p>/BIN/MAIL –S “%d -%H SECURITY” ROOT@LOCALHOST &amp;\</p>
<p>:TWIST (/BIN/ECHO –E “\N\nWARNING connection not allowed. You attempt has been logged. \n\n\n 警告信息</p>
]]></content:encoded>
			<wfw:commentRss>http://www.koryi.net/net/533.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DreamHost 新建用户 FTP 以及域名绑定等大概操作</title>
		<link>http://www.koryi.net/net/532.html</link>
		<comments>http://www.koryi.net/net/532.html#comments</comments>
		<pubDate>Sat, 20 Oct 2007 07:26:00 +0000</pubDate>
		<dc:creator>ray1980</dc:creator>
				<category><![CDATA[网络应用]]></category>
		<category><![CDATA[dreamhost]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[域名]]></category>

		<guid isPermaLink="false">http://www.koryi.net/532</guid>
		<description><![CDATA[昨天去淘宝那淘了个 500G 的 Dreamhost Hosting，正值 Dreamhost 十周年嘛，空间大优惠，呵呵，只是自己没有信用卡，所以支付是个问题，于是便去淘宝淘个方便。昨晚由于学校的网速太慢了，新建用... ]]></description>
			<content:encoded><![CDATA[<p>昨天去<a href="http://www.taobao.com/">淘宝</a>那淘了个 500G 的 <a href="http://www.dreamhost.com/">Dreamhost</a> Hosting，正值 Dreamhost 十周年嘛，空间大优惠，呵呵，只是自己没有信用卡，所以支付是个问题，于是便去淘宝淘个方便。昨晚由于学校的网速太慢了，新建用户，绑定域名以及开设 FTP 帐号等问题花了一个晚上，Google，百度 了好久才找到一些最新的控制面板的使用说明。还有些问了下 <a href="http://anqun.cn/">安群的老刘</a>。呵呵，今天早上醒来就登陆下昨晚绑定的，还不错，速度挺快的。下面说下我建立一个新用户开设空间以及绑定域名的布奏。</p>
<p><strong>一、首先可以要做的就是修改你的域名的 DNS，改为 Dreanhost 的，如下：</strong><br />
ns1.dreamhost.com<br />
ns2.dreamhost.com<br />
ns3.dreamhost.com</p>
<p><strong>二、接着在 Dreamhost 的控制面板操作。</strong><br />
1. 添加域名: Domains — Manage Domains — Add New Domain<br />
2. 新建用户: Users — Manage Users — Add New User<br />
3. 新建数据库: Goodies — Manage MySQL — Creat a new MySQL database</p>
<p>具体一些主要参数说明：<br />
<strong>1. 添加域名: Domains — Manage Domains — Add New Domain</strong><br />
在 Fully Hosted 里填写你要绑定的域名等信息就可。<br />
<span id="more-72"></span><br />
1) 在”Domain to host”后面的框中输入要绑定的域名(比如 sinzi.org ), 不需要加 http:// 和 www 的。</p>
<p>2) “PHP Version” 默认为 5.2.3 版本， “Extra Web Security”前面的框也保留默认勾上，上面的意思是额外的网站安全，后面的”highly recommended.”是极力推荐的意思。</p>
<p>3)如果要支持 CGI 则在 FastCGI Support 选项上打钩。</p>
<p>4) “FTP user / CGI-runs-as user:”后面的下拉菜单选择用户名，你也可以此添加新的用户，选择”create a new user”输入新用户名，你可以到用户管理中修改该用户的空间权限。</p>
<p>5) “Web Directory”空间的目录，默认自动生成，也可更改的。</p>
<p>6) 在”How do you like the www in your URL?”中<br />
第一个 Both 是指 http://www.domain.com/  跟 http://domain.com/ 都可以正常工作<br />
第二个 Add “www.” 是说如果别人输入http://domain.com/, 会自动跳转到 http://www.domain.com/<br />
第三个 Remove “www.” 是说如果别人输入 http://www.domain.com/，会自动跳转到 http://domain.com/上去。<br />
你可以根据情况选择。我这里选择了 Both 模式。</p>
<p>7) 点击”fully host this domain now!”按钮完成操作。</p>
<p><strong>2.新建用户: Users — Manage Users — Add New User</strong></p>
<p>1) Type of User Account 中，有三种类型选择：FTP、SSH、Shell（FTP+SSH）</p>
<p>2) Username 中填入用户名</p>
<p>3) Full Name 中填入用户的全名。</p>
<p>4) Password 中输入密码，在下面的框里还要输入一次, 或者在 ” Pick a password for me.” 前打勾， 让系统自动生成一个。</p>
<p>5) 点 Add User,会跳转至下一页的为这个用户添加一个邮件选项 ”Create email address for this user“，可以不填直接点击： Continue 系统会显示成功添加 ” Add successful “等信息。</p>
<p>6) 为了限制每个用户的空间使用量, 你需要点击刚才新加用户名的”Edit”来编辑他的权限, 在 ” Limit total disk usage ” 前面打勾，其后面输入”10000″, 也就是大约 10G 的空间.</p>
<p>7) 点击”Save Changes” 按钮完成操作。</p>
<p><strong>3. 新建数据库: Goodies — Manage MySQL — Creat a new MySQL database</strong></p>
<p>关于添加MySQL, 是每个域名都使用它们自己的 mysql 子域名。比如我添加自己域名的 mysql 数据库是这样的。</p>
<p>首先要确保已把域名 http://www.sinzi.org/ 添加进DH的管理范畴： Domains — Manage Domains — Add New Domain</p>
<p>1)在 Add a MySQL Hostname 中填域名的名，比如我填 my_db，然后在下拉菜单选择我的域名（sinzi.org）。则对应的是数据库地址是 my_db.sinzi.org</p>
<p>2) 在 First User 中选择”creat a new user now…”，New username 中输入”数据库用户名”， 后面 New Password 输入两次密码。</p>
<p>3) 最后的 Database Comment 是注释，自己标签个好记的就 OK。</p>
<p>4) 点击 Add new database now 按钮，这样系统就显示添加成功了。</p>
<p>转自<a rel="external nofollow" href="http://www.sinzi.org/pub/2007/10/dreamhost-add-new-user-domain-mysql-ftp-account.html" rel="bookmark" title="Permanent link to DreamHost 新建用户 FTP 以及域名绑定等大概操作" class="permalink">iF</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.koryi.net/net/532.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>恐怖大师斯蒂芬.金的7条Blog写作秘笈</title>
		<link>http://www.koryi.net/net/530.html</link>
		<comments>http://www.koryi.net/net/530.html#comments</comments>
		<pubDate>Fri, 19 Oct 2007 04:36:40 +0000</pubDate>
		<dc:creator>ray1980</dc:creator>
				<category><![CDATA[网络应用]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[写作]]></category>
		<category><![CDATA[恐怖]]></category>
		<category><![CDATA[斯蒂芬]]></category>
		<category><![CDATA[秘笈]]></category>

		<guid isPermaLink="false">http://www.koryi.net/530</guid>
		<description><![CDATA[这篇文章来自《positivity blog》，他的依据是斯蒂芬.金的《On Writing》写 的读后感，他把这些经验作为自己写博客的借鉴。之所以选择这篇文章，一是想测试抓虾需要多长时间抓取文章。二是满... ]]></description>
			<content:encoded><![CDATA[<p>这篇文章来自<a href="http://www.positivityblog.com/index.php/2007/10/08/stephen-kings-top-7-tips-for-becoming-a-better-writer/">《positivity blog》</a>，他的依据是斯蒂芬.金的<a href="http://www.amazon.com/Writing-Stephen-King/dp/0743455967?ie=UTF8&amp;s=books&amp;qid=1191845086&amp;sr=8-1">《On Writing》</a>写 的读后感，他把这些经验作为自己写博客的借鉴。之所以选择这篇文章，一是想测试抓虾需要多长时间抓取文章。二是满足抓虾用户的需求，他们非常喜欢这种标 题。三是豆瓣九点已经成为我Blog的主要流量来源，这篇文章应该更符合豆瓣网友的口味。最后，原文是英文，我翻译为中文。考虑到我的英文水准有限，所以 把原文和翻译都附上，希望能有人指正其中的谬误。</p>
<p><strong>1. Get to the point.抓住重点</strong></p>
<p>Don’t waste your reader’s time with too much back-story, long intros or longer anecdotes about your life. Reduce the noise. Reduce the babbling. In On Writing King gets to his points quickly. Get to your point quickly too before your reader loses patience and moves on.<br />
不要用过多的背景故事、冗长引子和作者个人传奇浪费读者的时间。要减少不必要的旁枝末节，要减少无意义的胡说八道。在《On Writing》中斯蒂芬.金很快能抓住重点，你也得那么做，否则你的读者将会失去耐心掉头而去。</p>
<p><strong>2. Write a draft. Then let it rest.写好草稿，然后冷处理。</strong></p>
<p>King recommends that you crank out a first draft and then put it in your drawer to let it rest. Now, how long you let your text rest may vary. King puts his manuscripts away for several months before rereading and start the editing process.<br />
金建议，当你打好了第一个草稿之后，就把它锁在你的抽屉里，由它去好了。需要冷处理多长时间没有一定之限，金一般要把草稿放在抽屉里数月之久，然后才去再次通读并开始完善。</p>
<p>I often let a post rest for a day or two before I start editing (as I´m sure many other bloggers do from time to time too).<br />
我本人经常写好一篇帖子后等待一到两天，然后再开始编辑修订。（我相信很多博客时不时也会这么做）</p>
<p>This enables you to get out of the mindset you had when you wrote the draft and get a more detached and clear perspective on the text. It then becomes easier to edit, add and cut in a sometimes kinda ruthless way. The result is most often a better text.<br />
使用这种方法，能够让你拜托写草稿时的情绪，而换用不偏不倚和更清醒透彻的视角对待文本。可以让你更容易地修改文章，使得增删的行为变得“冷酷无情”。这么做的结果是你往往能得到一篇更好的文章。</p>
<p><strong>3. Cut down your text.勇于删削</strong></p>
<p>When you revisit your text it´s time to kill you darlings and remove all the superfluous words and sentences. Removing will declutter your text and often get your message through with more clarity and a bigger emotional punch.<br />
虽然是文章是你的亲儿子，但是当你重新审阅它的时候，你要勇于删除所有冗余的字词和句子。删改能规整你的文章，还能以更为清晰和更富于冲击力的形式表达你的想法。</p>
<p>Don´t remove too much text though or you may achieve the opposite effects instead. King got the advice to cut down his texts by 10 percent from an old rejection-letter and has abided by this advice for decades. While editing my blog I´ve found that 10 percent seems to be a pretty good figure not just for mammoth-sized books.<br />
但也别删削太多，或是达到过犹不及的程度。金曾经在一封退稿信中得到过个建议：减少10%的篇幅。此后的几十年时间中，他一直遵从这个建议。当我修改我的博客文章时，我发现10%这个比例非常恰当，看来它并非只适用于鸿篇巨著。</p>
<p><strong>4. Be relatable and honest.保持可信和诚实</strong></p>
<p>King has an honest voice in his fiction and in his memoir. He tells it like it is and makes us relate to him and his characters. Since King´s fiction often is of an odd kind with strange plots that seldom happen to normal people I think one of his strengths as a writer is being able to write relatable content anyway.<br />
（relatable是不是想当然的生造词？）金在他的小说和角色里都始终用一种诚实的声音说话。他恰如其分地如实描述，因而使我们对他和他塑造的角色信服。虽然金小说中内容对于我们普通人来说非常另类罕见，我想他使人信服的力量源自于总是描述令人信服的内容。</p>
<p>One of the keys to doing that is to have an honest voice and honest characters with both bad and good sides to them. People we can relate to with all of their faults, passions, fears, weaknesses and good moments. King´s characters seem human. That creates a strong connection to the reader who starts caring about the characters.<br />
能做到这一点的秘诀之一是诚实的写作和真实的角色，无论作者是描写好的一面还是坏的一面。我们之所以会觉得一个人可信，是因为他所有的错误、激情、恐惧、脆弱和美好的瞬间。金塑造的角色有血有肉，这就让读者和小说人物血肉相联，开始关心人物本身。</p>
<p>Another key to being honest and relatable is keeping a conversational style. Keeping it simple and using language that isn’t unnecessarily complicated. Using the words that first come to mind.<br />
另一个保持城市和可信的秘诀在于始终使用对话风格。保持对话内容简单，没有必要使用复杂的语言，而是要用你脑海里最初浮现的字句。</p>
<p><strong>5. Don´t care too much what others may think.不要太过在意别人的看法。</strong></p>
<p>King admits to being needy about the emotional feedback he gets when he lets his wife read a new story for the first time. He gets a kick out of hearing her laugh so she cries or just cry because something in manuscript really touched her. But he has also gotten tons of mail over the years from people who confuse his sometimes nasty characters with the writer. Or just thinks he should wind up in hell. And King hasn´t always been a favourite among literary critics either.<br />
金承认，当他让妻子做为他新故事的第一读者时，对于情绪化的反馈他很不适。听到她大笑的时候，他也会因此而抱怨，弄得妻子哭了起来。或者是她为草稿中的内 容所打动而哭泣的时候，他同样会大发牢骚。而他每年也接到数以吨计的读者来信咒骂他，他们把作者和作者塑造的邪恶角色混为一谈，或者认为金应该下地狱。此 外，金在文学评论界也同样很不得宠。</p>
<p>But from what I gather he just sits down at his desk and keeps writing every morning anyway. If you listen too much to your critics you won´t get much done. Your writing will probably become worse and less fun. And criticism is often not even about you anyway.<br />
但是从我搜集到的资料显示，他只是回到桌子边坐下，在每个早晨继续挥笔*。如果你听了太多关于你的批评，那么你也将一事无成。你的写作过程将变得更为不畅，减少了其中的乐趣，而那些批评通常根本和你没有任何关系。</p>
<p><strong>6. Read a lot.广泛阅读</strong></p>
<p>When you read you always pick up things. Sometimes it might be reminders about what you know you should be doing while you write. Sometimes it’s some cool idea or just the world and atmosphere the writer is painting. Sometimes it’s something totally new that makes your jaw drop. That one is my favourite. And sometimes you learn what you should avoid doing. There are almost always lessons you can learn.<br />
当你阅读的时候，总能有所收获。有些时候，当你在写作，这些在阅读中的积累会告诉你应该写什么。有些时候，它们则变成了某个绝妙的主意或者你笔下需要描绘 的氛围。有的时候它们的效果是如此惊人，也许你会下巴掉到了地上。有的时候，你也能从中学到一些应该避免的事情。在阅读过程中，你总有可以学习的东西。</p>
<p>If you want to be a better writer you need to read a lot to get fresh input, broaden your horizons and deepen your knowledge. And to evolve you need to mix yourself up with new influences and see what happens.<br />
如果你想写得更好，那么你需要大量阅读，构思新的表现方法，扩大你的视野，深化你的知识，然后把它们带来的新意融汇到你想表达的事物上，看看会有什么事情发生。</p>
<p>How do you find time to read more? You can cut down on other evening activities like watching TV-shows you don´t care for that much anyway. Or, as King suggests, you can bring a book to waiting rooms, treadmills or toilets. I like to plug in an audiobook while I´m on the bus or walking somewhere.<br />
那如何找到时间阅读呢？你可以压缩晚上的休闲娱乐项目，比如说看电视，反正你其实并不需要随时盯着它。或者按照金的建议，你可以带着书去候诊室、健身房或者厕所去看。我个人比较喜欢在乘巴士或者散步的时候听声讯电子书。</p>
<p><strong>7. Write a lot.勤奋写作</strong></p>
<p>I’ve saved the most important tip for last. To become a better writer you probably – and not so surprisingly &#8211; need to write more.<br />
我把最重要的一条秘笈留到了最后。不要惊奇，如果你想写得更好，那么方法是写得更多。</p>
<p>Many of the best in different fields – Bruce Springsteen, Michael Jordan and Tiger Woods &#8211; have gone beyond normal limits of practise. And so they reap extraordinary results.<br />
布鲁斯·斯普林斯汀、飞人乔丹、老虎伍兹，许许多多这样在不同领域内的高手，都曾痛下苦功，超越常人。所以，他们因为吃得苦中苦，终成人上人。</p>
<p>But what do you do when you don´t feel like writing? Waiting for inspiration can become a long wait.<br />
可是，当你不想写的时候你是怎么做的？妓女不能等有了性欲才接客，这可能需要太长时间。</p>
<p>One good way to get around this is to find an effective solution to reduce procrastination. You may have to try a few before you find one that works for you. Another way is well, just to do it. And if you just get going your emotions changes a lot of the time and any initial resistance becomes fun and enthusiasm instead.、<br />
摆脱这种状态的好办法是找到一个减少拖延的法子。在找到一个奏效的方法之前，你也许得多尝试几个。另一种方法也不错：只管去做。当你能经常改变自己情绪的时候，最初的抵触情绪将代之以趣味和狂热。</p>
<p>*注“斯蒂芬.金多年来一直保持固定的写作习惯，每天早晨固定时间开始写作，写够定额，如同服药。</p>
<p>转自<a href="http://www.caobian.info/?p=2616">槽边往事</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.koryi.net/net/530.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>DreamHost超级简单安装Babel</title>
		<link>http://www.koryi.net/net/528.html</link>
		<comments>http://www.koryi.net/net/528.html#comments</comments>
		<pubDate>Tue, 16 Oct 2007 03:27:39 +0000</pubDate>
		<dc:creator>ray1980</dc:creator>
				<category><![CDATA[网络应用]]></category>
		<category><![CDATA[Babel]]></category>
		<category><![CDATA[dreamhost]]></category>
		<category><![CDATA[v2ex]]></category>

		<guid isPermaLink="false">http://www.koryi.net/528</guid>
		<description><![CDATA[Project Babel升级至 v0.6 了，经过N次的本机测试，koryi.com终于升级成功了。(安装方法在下面)
和 v0.5 Monster Inc 相比，这个新版本在以下方面有变化：
* Nexus Weblogging Platform &#8211; 注册会员可以使用... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.livid.cn/doc_view.php?doc_id=5659">Project Babel</a>升级至 v0.6 了，经过N次的本机测试，<a href="http://www.koryi.com/">koryi.com</a>终于升级成功了。<strong>(安装方法在下面)</strong></p>
<p><strong>和 v0.5 <a href="http://www.livid.cn/doc_view.php?doc_id=5611">Monster Inc</a> 相比，这个新版本在以下方面有变化：</strong></p>
<blockquote><p>* Nexus Weblogging Platform &#8211; 注册会员可以使用由 Project Babel 系统提供的 blog hosting 服务，这是 Project Babel 的自创的 blog 系统，生成静态 HTML 文件进行发布，每次发布新文章的时候会自动 ping 一些重要的 ping hub，支持纯文本 / HTML / UBB / Markdown / Textile 等 5 种语法写 blog，可以设置 3 种评论权限（评论禁止 / 只有好友可以评论 / 任何人可以评论），内建对 Creative Commons 的支持，内建对 ING 的支持，目前有 9 套主题式样。</p>
<p>* Internationalization &#8211; 国际化的工作正在进行中，目前已经有了大体可用的中文 / English / Deutsch 三个语言包。</p>
<p>* Node Editor &#8211; 如果你的网站的版面规划已经基本完整，那么在定制版面的名称（包括在各种不同的语言设置下显示的名称）及介绍的时候，可以使用新的 Node Editor 而不需要使用 InstallCore。但是如果你在使用了 Node Editor 之后又使用 InstallCore 修改版面，那么可能会产生无法预料的后果。在下一个版本中，看起来和思考起来比较“抽象”的 InstallCore 将会彻底过时。对于版面的管理将使用 Node 系工具解决。</p>
<p>* Last.fm 集成 &#8211; 如果会员在个人资料中填写了 Last.fm 用户名，那么将会在其个人页面上显示他最喜欢的音乐家及最近听过的曲子。</p>
<p>* 配置文件中增加是否集成 Alimama 广告位的选项。</p>
<p>* 为放置 Google Analytics 代码预留了文件，编辑 res/google_analytics.php 即可在全站加入 Google Analytics 代码。</p>
<p>* 新的外观设计，大量的细节修正，不过还没有全部完成，因此可能会在界面中感受到一些不一致。</p>
<p>* 细碎的优化，细碎的小问题修正，这些在每次新版本发布的时候都会有。</p>
<p>安装的过程没有任何变化，请依然参考 <a href="http://labs.v2ex.com/installation.php">V2EX Labs</a> 上的安装文档，英文版本的安装文档的草稿在<a href="http://www.v2ex.com/topic/view/17898.html">这里</a>。</p>
<p>关于安装的一些补充说明：</p>
<p>* 初次开始运行的时候，可能会看到一些 PHP 的 notice 甚至 warning 错误，而这些错误在注册了第一个用户，建立了第一个讨论区，发了第一个帖子之后就会全部消失。</p>
<p>* InstallCore 第一次运行的时候，每个语句前面的提示是 OK，而第二次运行的时候是 EX。EX 的意思是 EXisted，表示试图要建立的内容已经存在，这只是 just FYI，没有任何问题。当 InstallCore 在下一个版本中过时之后，就没有必要面对这些抽象的提示了。</p></blockquote>
<p>原来安装<a href="http://www.livid.cn/doc_view.php?doc_id=5611">Project Babel</a> v0.5的时候写过一篇<a href="http://www.koryi.net/382">DreamHost安装ProjectBabel指南</a>，这次发现其实<a href="http://www.dreamhost.com/">DreamHost</a>安装<a href="http://www.v2ex.com/">Babel</a>可以非常简单。</p>
<p>一．登陆你的<a href="http://www.dreamhost.com/">DreamHost</a>后台。<br />
1）新建一个域名(以koryi.com为例)：Domains-&gt;Manage Domains-&gt;Add New Domain/Sub-Domain，在Specify your web directory一栏这样填写/home/username/<strong><u>koryi.com/htdocs</u></strong>/，因为<a href="http://labs.v2ex.com/installation.php">V2EX Labs 上 Installation 文档</a>中说了如果你是在<a href="http://www.dreamhost.com/">DreamHost</a>上安装，请在添加 Domain 时指定 DocumentRoot 到 Project Babel 文件夹中的 htdocs 目录。</p>
<p>2）登陆数据库后台，手工导入一个 sql文件 /sql/babel.mysql.sql并执行。</p>
<p>二．在<a href="http://project-babel.googlecode.com/files/project-babel-v0.6.zip">这里</a>下载 <a href="http://www.livid.cn/doc_view.php?doc_id=5659">Project Babel</a> v0.6，解压缩，修改settings.php如下:</p>
<blockquote><p>修改<br />
define(’BABEL_PREFIX’, ‘/www/babel’);<br />
为<br />
define(’BABEL_PREFIX’, ‘/home/.jyray/koryi.com’);</p></blockquote>
<blockquote><p>define(’BABEL_DB_HOSTNAME’, ‘127.0.0.1′); 你的数据库地址<br />
define(’BABEL_DB_PORT’, 3306); 不用动<br />
define(’BABEL_DB_USERNAME’, ‘XXXXXX’); 你的数据库用户名<br />
define(’BABEL_DB_PASSWORD’, ‘XXXXXX’); 你的数据库密码<br />
define(’BABEL_DB_SCHEMATA’, ‘XXXXXXl’); 你用来跑babel的数据库名称</p></blockquote>
<blockquote><p>修改<br />
define(’BABEL_DNS_NAME’, ‘www.v2ex.com’);<br />
define(’BABEL_DNS_DOMAIN’, ‘v2ex.com’);<br />
define(’BABEL_DNS_FEED’, ‘feed.v2ex.com’);<br />
define(’BABEL_FEED_URL’, ‘http://www.v2ex.com/feed/v2ex.rss’);<br />
为<br />
define(’BABEL_DNS_NAME’, ‘www.koryi.com’); 将www.koryi.com换成你的域名<br />
define(’BABEL_DNS_DOMAIN’, ‘www.koryi.com’);<br />
define(’BABEL_DNS_FEED’, ‘www.koryi.com’);<br />
define(’BABEL_FEED_URL’, ‘http://www.koryi.com/feed/v2ex.rss’);</p></blockquote>
<p>三．编辑 htdocs/core/InstallCore.php 配置初始的分区（Section）及讨论区（Discussion Board）设置。然后从浏览器中访问此文件一次。</p>
<p>InstallCore.php 文件的概念类似于一个批处理文件，不过重复运行不会对系统造成破坏。建议在运行完毕之后，在本地备份这个文件，然后从服务器上删除此文件，否则就是一个可能的性能漏洞。</p>
<p>四．拷贝apache\htaccess\.htaccess到htdocs目录下，打开主页这时可能会继续提示一些问题的存在，比如数据库未正确配置或者目录权限问题之类，根据屏幕上的提示逐一修正这些问题。如果不再提示任何错误，那么至此安装基本完成。你可以在这个新网站上注册第一个用户，而这个用户就将成为这个社区里拥有最高权限的管理员。</p>
<p>安装完成如何个性化网站看<a href="http://www.koryi.com/topic/view/79.html">这里</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.koryi.net/net/528.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>巧用SSH做代理服务器</title>
		<link>http://www.koryi.net/net/524.html</link>
		<comments>http://www.koryi.net/net/524.html#comments</comments>
		<pubDate>Sat, 13 Oct 2007 02:34:32 +0000</pubDate>
		<dc:creator>ray1980</dc:creator>
				<category><![CDATA[网络应用]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[代理]]></category>
		<category><![CDATA[服务器]]></category>

		<guid isPermaLink="false">http://www.koryi.net/524</guid>
		<description><![CDATA[转自：Shawn’s Blog.
其实这是一个很早就有的技巧，但以前使用国外空间的朋友并不多，所以没有普及开来。随着越来越多的用户购买了Dreamhost、Hostmonster 等国外空间，SSH的强大特性逐渐凸显出... ]]></description>
			<content:encoded><![CDATA[<p>转自：<a rel="external nofollow" href="http://ishawn.net/2007/03/use-ssh-to-build-a-proxy.htm" title="Shawn's Blog.">Shawn’s Blog</a>.</p>
<p>其实这是一个很早就有的技巧，但以前使用国外空间的朋友并不多，所以没有普及开来。随着越来越多的用户购买了<a href="http://dupola.com/pages/dreamhost/" title="dreamhost。" target="_blank">Dreamhost</a>、<a href="http://dupola.com/go/hostmonster/" title="hostmonster" target="_blank">Hostmonster</a> 等国外空间，<a href="http://dupola.com/tag/ssh/" title="SSH">SSH</a>的强大特性逐渐凸显出来。使用SSH，我们不仅可以通过命令操作实现更多的功能，根据其端口转发的特性，还可以利用Putty这个开源的SSH客户端建立一个独立通道，实现加密的互联网代理访问。</p>
<p>操作步骤如下：</p>
<blockquote><p>1. 首先需要有一个国外主机的帐号和<a href="http://dupola.com/tag/ssh/" title="SSH">SSH</a>访问权限(国内的不行，大家都知道为什么)。</p>
<p>2. 到<a href="http://www.chiark.greenend.org.uk/%7Esgtatham/putty/download.html" target="_blank">官方下载</a>Putty完整客户端，仅有putty.exe 这一个文件不行，因为需要用到plink.exe 这个 putty 的命令符程序。</p>
<p>3. 新建一个文件，写入以下内容，另存为.bat批处理文件，并放在Putty的安装目录内。<br />
<code>@echo  off</code><br />
goto start<br />
:start<br />
cls<br />
color 1f<br />
echo.<br />
echo SSH Proxy  启动程序<br />
echo.<br />
plink -N Username@localhost -pw Password -D  127.0.0.1:1080<br />
请将Username Localhost Password三处改为您自己登陆服务器的用户名、服务器地址和密码。</p>
<p>4.  执行这个批处理文件，保持其窗口开启，一旦关闭代理便失效。代理服务器地址为：127.0.0.1:1080，使Socks5协议的代理，也可以更改为需要的端口。需要使用时请将相关信息正确部署至浏览器、即时通信软件内。</p>
<p>5. 开始使用！</p></blockquote>
<p>下文转自：车东Blog:<a href="http://www.chedong.com/blog/archives/001246.html" target="_blank">利用Putty通过ssh端口转发实现FireFox和MSN加密代理访问</a></p>
<p>参考原文：<a href="http://thinkhole.org/wp/2006/05/10/howto-secure-firefox-and-im-with-putty/">http://thinkhole.org/wp/2006/05/10/howto-secure-firefox-and-im-with-putty/</a><br />
加密传输的机制如下：</p>
<pre>                                     /  foo.com

浏览器 &lt;==secure tunnel==&gt;ssh server -   bar.com

                                     \   example.com</pre>
<p>浏览器先通过加密通道链接到一台服务器上，然后通过这个服务器再访问整个互联网。主要的用途就是这个<strong>绕道访问</strong>。具体你需要<em>通过加密通道绕过谁？ 谁用谁知道……</em>具体配置过程：<br />
在<a href="http://www.chiark.greenend.org.uk/%7Esgtatham/putty/download.html">SSH登录工具Putty</a>的登录设置中配置tunnel，目标设置为Dynamic，添加一个端口7070，再按Add，一个动态转发端口就实现了；<br />
<img src="http://www.koryi.net/wp-content/uploads2/2007/10/11.png" alt="dynamic_tunnel.png" height="410" width="450" /><br />
然后用相应帐号ssh登录后：除了登录的终端窗口意外，本地的7070连服务器的22端口之间就有了一个SSH加密的转发通道了。</p>
<p>为了方便切换，可以使用FireFox的<a href="https://addons.mozilla.org/firefox/125/">SwitchProxy tool插件</a>，设置<strong>socks代理</strong>通过本地的127.0.0.1:7070 进行传输。<br />
<img src="http://www.koryi.net/wp-content/uploads2/2007/10/2.png" alt="switch_proxy.png" height="386" width="380" /><br />
MSN的机制类似：就是在连接配置中设置sock5 加密代理。<br />
附：<br />
<a href="http://blog.cnblog.org/archives/2006/11/1sshsilenceisde.html">获得国外的SSH帐号</a>或者有Dreamhost虚拟主机的可以增加ssh用户：都可以用类似机制进行加密访问。</p>
<p>感谢<a href="http://brucewang.net/">number5</a>:</p>
<blockquote><p>更简单方便的setup方式是使用 putty的后台命令行程序<a href="http://www.chiark.greenend.org.uk/%7Esgtatham/putty/download.html">plink</a><br />
plink -N username@remote.ssh.server -D 127.0.0.1:7070<br />
其中 -N 表示不需要shell<br />
username@remote.ssh.server 换成你ssh帐户名和主机域名或者地址<br />
或者替换成 -load sessionname 也可以，用dreamhost上的帐号试了一下，真的很快</p></blockquote>
<p><strong>如何在Windows下使用密钥方式登录Linux服务器：</strong><br />
如果设置需要基于密钥的登录（如果不设置密钥密码，就可以自动登录了），<br />
我没有试成使用puttygen生成的密钥（公钥/私钥）直接部署在Linux服务器上。目前成功的方法是：先在服务器上用服务器上用./ssh- keygen生成密钥对，将公钥 id_rsa.pub &gt;&gt; 部署到要登录到的服务器上：/home/username/.ssh/authorized_keys 中，密钥在Windows客户端下使用：将密钥 id_rsa下载到本地，然后用puttygen导入id_rsa 另存转换为putty格式的密钥id_rsa.ppk即可。然后使用 plink -i c:\path\to\id_rsa.ppk username@example.com方式登录。</p>
<p>注意：<br />
加密通道和网站是否提供https没有直接的关系，https是指服务商直接向客户提供的加密，例如：<a href="https://mail.google.com/mail/">GMail: https://mail.google.com/mail/</a>, <a href="https://www.google.com/reader/view/">GReader: https://www.google.com/reader/view/</a>，从ssh server到服务网站之间仍然是明文的http传输；<br />
加密通道和匿名不匿名访问网站也没有直接关系。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.koryi.net/net/524.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>加入了LinkWorth</title>
		<link>http://www.koryi.net/net/515.html</link>
		<comments>http://www.koryi.net/net/515.html#comments</comments>
		<pubDate>Sun, 07 Oct 2007 14:50:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[网络应用]]></category>
		<category><![CDATA[LinkWorth]]></category>
		<category><![CDATA[TLA]]></category>
		<category><![CDATA[赚钱]]></category>

		<guid isPermaLink="false">http://www.koryi.net/515</guid>
		<description><![CDATA[
    在前~博客那看到了LinkWorth。
    LinkWorth和大家熟知的TLA一样，也是文字链接广告商，用户可以在其网站上出售或是购买链接。
    虽然LinkWorth起步较晚，但在文字链接产品的创新上狠下功夫... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.linkworth.com?a=7025" target="_blank"><img src="http://www.linkworth.com/adm/affiliate_manager/affiliate_banners/bann-36.gif" border="0"></a></p>
<p>    在<a href="http://www.qianblogger.com/">前~博客</a>那看到了<a href="http://www.linkworth.com/?a=7025" target="_blank">LinkWorth</a>。</p>
<p>    <a href="http://www.linkworth.com/?a=7025" target="_blank">LinkWorth</a>和大家熟知的<a href="http://www.text-link-ads.com/?ref=65440">TLA</a>一样，也是文字链接广告商，用户可以在其网站上出售或是购买链接。</p>
<p>    虽然<a href="http://www.linkworth.com/?a=7025" target="_blank">LinkWorth</a>起步较晚，但在文字链接产品的创新上狠下功夫，总过有10多种和文字连接相关的服务，让每一个发布商都能最大程度的获得利润。而且<a href="http://www.linkworth.com/?a=7025" target="_blank">LinkWorth</a>对申请加入网站的要求更低，对博客也有特殊的政策，所以我们这些规模不大的个人博客也很容易通过审核。</p>
<p>  更重要的是<a href="http://www.linkworth.com/?a=7025" target="_blank">LinkWorth</a>最近推出了推荐奖励计划，每成功推介一个网站加入<a href="http://www.linkworth.com/?a=7025" target="_blank">LinkWorth</a>就能获得25美元的推介奖励！就是说即使没有卖出什么链接，照样可以赚钱！</p>
<p>感兴趣的网友，现在就开始赶快加入<a href="http://www.linkworth.com/?a=7025" target="_blank">LinkWorth</a>吧！如果可以，请在注册时指定7025为您的推荐人（referral id），谢谢!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.koryi.net/net/515.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Text Link Ads终于通过了</title>
		<link>http://www.koryi.net/net/513.html</link>
		<comments>http://www.koryi.net/net/513.html#comments</comments>
		<pubDate>Fri, 05 Oct 2007 03:50:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[网络应用]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[TLA]]></category>
		<category><![CDATA[公益广告]]></category>
		<category><![CDATA[赚钱]]></category>

		<guid isPermaLink="false">http://www.koryi.net/513</guid>
		<description><![CDATA[
Text Link Ads 其实注册很久了，加了站点后一直没有通过，昨天收到TLA的邮件，就又去看了一下，还是没通过，郁闷。。。今天突然想到换一个域名试试，就把www.koryi.net换成koryi.net居然马上就通... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://tinyurl.com/2na4rk"><img src="http://www.text-link-ads.com/images/text_link_ads_E_468x60.gif" /></a></p>
<p>Text Link Ads 其实注册很久了，加了站点后一直没有通过，昨天收到TLA的邮件，就又去看了一下，还是没通过，郁闷。。。今天突然想到换一个域名试试，就把www.koryi.net换成koryi.net居然马上就通过了，可惜浪费了这么久时间才想到，不过<a href="http://www.text-link-ads.com/link_calculator.php">http://www.text-link-ads.com/link_calculator.php</a>估算的价比实际给出的价格少了一半。</p>
<blockquote><p>Text Link Ads 是世界上最大的出售文字付费链接的平台。通过 Text Link Ads 交易平台，你可以出售你网站上的链接来帮你获取收益，也可以购买别人网站上的链接来获取流量。购买链接不仅仅可以带来一些流量，而且还有助于搜索引擎优 化。对于网站发布者而言，出售链接不会像 <a href="http://www.google.com/adsense/">Google AdSense</a> 那样给读者带来不好的阅读体验，也不必劳神费力地撰写付费评论，可以比较轻松地获取一些收益，被许多博客作者认为是最好的博客赚钱方式。</p></blockquote>
<p>Text Link Ads 还有另外一种盈利模式“即推荐会员加入 Text Link Ads 也能盈利”，尤其是对于那些还刚刚加入 TLA，但网站还没有通过的网友，可以立即加入这种方式来帮你的网站盈利。</p>
<p>要加入 Text Link Ads 的会员推广计划，你需要首先加入 Text Link Ads。注册之后，别忘了先提交你的站点，然后需要耐心地等待通过认证。</p>
<p>根据 Text Link Ads 的政策，每成功推介一个会员，不管是广告主还是发布者，你都将获取 25 美元的收入。据我判断，这里所谓成功的含义，是指对方通过你的推介注册 TLA，并且网站通过认证。</p>
<p>感兴趣的网友，现在就开始注册<a href="http://tinyurl.com/2na4rk"> Text Link Ads</a>！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.koryi.net/net/513.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>草根站长非必读之经验法则</title>
		<link>http://www.koryi.net/net/508.html</link>
		<comments>http://www.koryi.net/net/508.html#comments</comments>
		<pubDate>Mon, 17 Sep 2007 07:26:56 +0000</pubDate>
		<dc:creator>ray1980</dc:creator>
				<category><![CDATA[网络应用]]></category>
		<category><![CDATA[法则]]></category>
		<category><![CDATA[站长]]></category>
		<category><![CDATA[经验]]></category>
		<category><![CDATA[草根]]></category>

		<guid isPermaLink="false">http://www.koryi.net/508</guid>
		<description><![CDATA[1.不要每天守在你的网站上，否则可能你会发现你的网站特别糟糕。
2.用大量的时间去折腾添置论坛的插件，实在很愚蠢，因为天涯看上去就像网络石器时代的洞穴论坛那么原始，百度知道好比... ]]></description>
			<content:encoded><![CDATA[<p>1.不要每天守在你的网站上，否则可能你会发现你的网站特别糟糕。<br />
2.用大量的时间去折腾添置论坛的插件，实在很愚蠢，因为天涯看上去就像网络石器时代的洞穴论坛那么原始，百度知道好比沼泽地里的一块三叶虫化石。天涯与百度贴吧的人气却超越了中国互联网任何大型社区，这反映的就是网络的本质——简单、易用、上手快！<br />
3.尽可能地远离广告（远离Google adsense、百度推广主题、yahoo赞助网站广告、阿里妈妈及所有花枝招展的广告联盟），它们都是毒品，相对于初创阶段的网站而言，它们会使你迷失 方向背道而驰。遗憾的是：贪婪是人的本性，因此大多数站长想得最多的是如何用有限的流量兑换无限的真金白银，以至于宁可把网站变相为广告营销商。<br />
4.统计和排名只是个数据，广告报告也是如此，用多点的时间去探索用户的需求比拓宽自己眼前的收益更重要。<br />
5.SEO搜索优化就像练气功，强身健体就可以了，何苦走火入魔。<br />
6.你不需要懂得方方面面的专业知识，懂点皮毛就差不多了，关键是出了问题知道如何找人帮忙解决，多认识一些同行，求人不如求己只会最终孤立自己，尝试成为组织协调者，发挥站长的角色作用。<br />
7.抱怨是蠢货们的口头禅。<br />
8.不断地学习。所有的皮毛攒起来就成为皮毛商了。<br />
9.多看竞争对手的网站，哪怕根本不值得一看。<br />
10.用最好的时间陪伴家人，而不是呆在网络上自以为事半功倍。<br />
11.网络成功的新贵绝大多数依靠的是技术革命和创意点子，模仿是中国流氓们发迹的第一桶金，不用在乎你模仿了谁，重要的是除了模仿你还能做什么。<br />
12.网络神话看多了，很容易误以为自己也会成为神话人物。<br />
13.不要理睬搜索引擎，否则搜索引擎不理睬你的时候，你就一无所有了。<br />
14.不要做法律所不允许的内容，在你根本不懂法之前。<br />
15.用户永远是互联网唯一存在的理由，共享是网站得以流传的口碑。<br />
16.跨国网站在中国不成功的原因在于它们只相信钱，尽管中国网投也相信钱的推动价值，但它们似乎更懂得“妻不如妾、妾不如妓、妓不如偷、偷不如偷不着” 这一恒定泡沫市场的波动理论。中国网站使强盗合法化、使混血本土化、使免费增值化、使妻妾成群（热门频道）牌坊林立（口水秀、官司门），中国网站显然最有 可能成为Internet的成吉思汗。<br />
17.中国“名站导航”上的名单没有几个屁股是干净的。<br />
18.告诉你不要跟风，你不是QQ，也不是淘宝，更不是百度，你只是一个寻常网民，顶多成为一名合格的知识产权监守自盗的网站站长。<br />
19.做站等同于坐台，别拿茅坑大点的网站恬不知耻地向人介绍自己是CEO或首席执行官，你充其量只是茅坑里一条向上蠕动的蛆！<br />
20.我喜欢“人肉”这个词，站长的作业方式就是“人肉机械”，区别在于，名站都是“人肉流水线”。<br />
21.忘记曾经读到过的印象深刻的成功案例。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.koryi.net/net/508.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
