<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/1.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: 升级网志系统为 Wordpress 1.5</title>
	<link>http://blog.mozcn.org/archives/2005/04/12/upgrade-to-wordpress-1-5/</link>
	<description>We Love Mozilla, We Spread Mozilla.</description>
	<pubDate>Thu, 28 Aug 2008 04:18:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5</generator>

	<item>
		<title>by: cathayan</title>
		<link>http://blog.mozcn.org/archives/2005/04/12/upgrade-to-wordpress-1-5/#comment-122</link>
		<pubDate>Wed, 13 Apr 2005 09:48:02 +0800</pubDate>
		<guid>http://blog.mozcn.org/archives/2005/04/12/upgrade-to-wordpress-1-5/#comment-122</guid>
					<description>先上个anti-spam吧，这不就已经7条了</description>
		<content:encoded><![CDATA[	<p>先上个anti-spam吧，这不就已经7条了
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: murj</title>
		<link>http://blog.mozcn.org/archives/2005/04/12/upgrade-to-wordpress-1-5/#comment-123</link>
		<pubDate>Wed, 13 Apr 2005 15:01:52 +0800</pubDate>
		<guid>http://blog.mozcn.org/archives/2005/04/12/upgrade-to-wordpress-1-5/#comment-123</guid>
					<description>Done. Let's see if it works.</description>
		<content:encoded><![CDATA[	<p>Done. Let&#8217;s see if it works.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: fishy</title>
		<link>http://blog.mozcn.org/archives/2005/04/12/upgrade-to-wordpress-1-5/#comment-124</link>
		<pubDate>Wed, 13 Apr 2005 16:52:54 +0800</pubDate>
		<guid>http://blog.mozcn.org/archives/2005/04/12/upgrade-to-wordpress-1-5/#comment-124</guid>
					<description>我记得升级前的wordpress里面有comment中链接大于几就等待确认的，这个应该有用</description>
		<content:encoded><![CDATA[	<p>我记得升级前的wordpress里面有comment中链接大于几就等待确认的，这个应该有用
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: fishy</title>
		<link>http://blog.mozcn.org/archives/2005/04/12/upgrade-to-wordpress-1-5/#comment-128</link>
		<pubDate>Fri, 15 Apr 2005 18:42:20 +0800</pubDate>
		<guid>http://blog.mozcn.org/archives/2005/04/12/upgrade-to-wordpress-1-5/#comment-128</guid>
					<description>对了，现在item页(就是看某条blog的页面)里面我找不到作者(就是index里面的by murj之类的东西)，这个改theme的时候也加上吧:)</description>
		<content:encoded><![CDATA[	<p>对了，现在item页(就是看某条blog的页面)里面我找不到作者(就是index里面的by murj之类的东西)，这个改theme的时候也加上吧:)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: 猫头猪</title>
		<link>http://blog.mozcn.org/archives/2005/04/12/upgrade-to-wordpress-1-5/#comment-130</link>
		<pubDate>Fri, 15 Apr 2005 21:39:07 +0800</pubDate>
		<guid>http://blog.mozcn.org/archives/2005/04/12/upgrade-to-wordpress-1-5/#comment-130</guid>
					<description>果然收不到注册信。</description>
		<content:encoded><![CDATA[	<p>果然收不到注册信。
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: adungaos</title>
		<link>http://blog.mozcn.org/archives/2005/04/12/upgrade-to-wordpress-1-5/#comment-131</link>
		<pubDate>Mon, 18 Apr 2005 16:05:45 +0800</pubDate>
		<guid>http://blog.mozcn.org/archives/2005/04/12/upgrade-to-wordpress-1-5/#comment-131</guid>
					<description>使用smtp来发送邮件，应该没有问题的。</description>
		<content:encoded><![CDATA[	<p>使用smtp来发送邮件，应该没有问题的。
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: adungaos</title>
		<link>http://blog.mozcn.org/archives/2005/04/12/upgrade-to-wordpress-1-5/#comment-132</link>
		<pubDate>Mon, 18 Apr 2005 16:20:48 +0800</pubDate>
		<guid>http://blog.mozcn.org/archives/2005/04/12/upgrade-to-wordpress-1-5/#comment-132</guid>
					<description>改写一下wp-includes/functions.php中的wp_mail函数，使用smtp来发送邮件^-^</description>
		<content:encoded><![CDATA[	<p>改写一下wp-includes/functions.php中的wp_mail函数，使用smtp来发送邮件^-^
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: murj</title>
		<link>http://blog.mozcn.org/archives/2005/04/12/upgrade-to-wordpress-1-5/#comment-137</link>
		<pubDate>Wed, 20 Apr 2005 12:52:53 +0800</pubDate>
		<guid>http://blog.mozcn.org/archives/2005/04/12/upgrade-to-wordpress-1-5/#comment-137</guid>
					<description>大侠帮忙提供一个 smtp mail 函数？:)</description>
		<content:encoded><![CDATA[	<p>大侠帮忙提供一个 smtp mail 函数？:)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: fishy</title>
		<link>http://blog.mozcn.org/archives/2005/04/12/upgrade-to-wordpress-1-5/#comment-138</link>
		<pubDate>Wed, 20 Apr 2005 16:18:19 +0800</pubDate>
		<guid>http://blog.mozcn.org/archives/2005/04/12/upgrade-to-wordpress-1-5/#comment-138</guid>
					<description>php的？我这里有一个</description>
		<content:encoded><![CDATA[	<p>php的？我这里有一个
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: fishy</title>
		<link>http://blog.mozcn.org/archives/2005/04/12/upgrade-to-wordpress-1-5/#comment-139</link>
		<pubDate>Wed, 20 Apr 2005 16:21:32 +0800</pubDate>
		<guid>http://blog.mozcn.org/archives/2005/04/12/upgrade-to-wordpress-1-5/#comment-139</guid>
					<description>host   = $host; 
$this-&amp;gt;port   = $port; 
$this-&amp;gt;user   = base64_encode($user); 
$this-&amp;gt;pass   = base64_encode($pass); 
$this-&amp;gt;debug  = $debug; 
$this-&amp;gt;socket = socket_create (AF_INET, SOCK_STREAM, SOL_TCP);  //具体用法请参考手册 
if($this-&amp;gt;socket) 
{ 
$this-&amp;gt;result_str  =  &quot;创建SOCKET:&quot;.socket_strerror(socket_last_error()); 
$this-&amp;gt;debug_show($this-&amp;gt;result_str); 
} 
else 
{ 
exit(&quot;初始化失败，请检查您的网络连接和参数&quot;); 
} 
$this-&amp;gt;conn = socket_connect($this-&amp;gt;socket,$this-&amp;gt;host,$this-&amp;gt;port); 
if($this-&amp;gt;conn) 
{ 
$this-&amp;gt;result_str  =  &quot;创建SOCKET连接:&quot;.socket_strerror(socket_last_error()); 
$this-&amp;gt;debug_show($this-&amp;gt;result_str); 
} 
else 
{ 
exit(&quot;初始化失败，请检查您的网络连接和参数&quot;); 
} 
$this-&amp;gt;result_str = &quot;服务器应答：&quot;.socket_read ($this-&amp;gt;socket, 1024).&quot;&quot;; 
$this-&amp;gt;debug_show($this-&amp;gt;result_str); 


} 
function debug_show($str) 
{ 
if($this-&amp;gt;debug) 
{ 
echo $str.&quot;\r\n&quot;; 
} 
} 
function send($from,$to,$subject,$body) 
{ 
if($from == &quot;&quot; || $to == &quot;&quot;) 
{ 
exit(&quot;请输入信箱地址&quot;); 
} 
if($subject == &quot;&quot;) $sebject = &quot;无标题&quot;; 
if($body    == &quot;&quot;) $body    = &quot;无内容&quot;; 
$this-&amp;gt;from     =  $from; 
$this-&amp;gt;to       =  $to; 
$this-&amp;gt;subject  =  $subject; 
$this-&amp;gt;body     =  $body; 

$All          = &quot;From:&quot;.$this-&amp;gt;from.&quot;\n&quot;; 
$All          .= &quot;To:&quot;.$this-&amp;gt;to.&quot;\n&quot;; 
$All          .= &quot;Subject:&quot;.$this-&amp;gt;subject.&quot;\n&quot;; 
$All          .= $this-&amp;gt;body; 
/* 
  如过把$All的内容再加处理，就可以实现发送MIME邮件了 
  不过还需要加很多程序 
*/ 


//以下是和服务器会话 
$this-&amp;gt;in       =  &quot;EHLO HELO\r\n&quot;; 
$this-&amp;gt;docommand(); 

$this-&amp;gt;in       =  &quot;AUTH LOGIN\r\n&quot;; 
$this-&amp;gt;docommand(); 

$this-&amp;gt;in       =  $this-&amp;gt;user.&quot;\r\n&quot;; 
$this-&amp;gt;docommand(); 

$this-&amp;gt;in       =  $this-&amp;gt;pass.&quot;\r\n&quot;; 
$this-&amp;gt;docommand(); 

$this-&amp;gt;in       =  &quot;MAIL FROM:&quot;.$this-&amp;gt;from.&quot;\r\n&quot;; 
$this-&amp;gt;docommand(); 

$this-&amp;gt;in       =  &quot;RCPT TO:&quot;.$this-&amp;gt;to.&quot;\r\n&quot;; 
$this-&amp;gt;docommand(); 

$this-&amp;gt;in       =  &quot;DATA\r\n&quot;; 
$this-&amp;gt;docommand(); 

$this-&amp;gt;in       =  $All.&quot;\r\n.\r\n&quot;; 
$this-&amp;gt;docommand(); 

$this-&amp;gt;in       =  &quot;QUIT\r\n&quot;; 
$this-&amp;gt;docommand(); 

//结束，关闭连接 



} 
function docommand() 
{ 
socket_write ($this-&amp;gt;socket, $this-&amp;gt;in, strlen ($this-&amp;gt;in)); 
$this-&amp;gt;debug_show(&quot;客户机命令：&quot;.$this-&amp;gt;in); 
$this-&amp;gt;result_str = &quot;服务器应答：&quot;.socket_read ($this-&amp;gt;socket, 1024).&quot;&quot;; 
$this-&amp;gt;debug_show($this-&amp;gt;result_str); 
} 
} 
//这个是我做的测试，我用的是smtp.163.com，那你的信箱也必须是163.com的，要不人家不让你发！！ 
//你用这个类的时候你修改成你自己的信箱就可以了 
$smtp  =   new smtp_mail(&quot;host&quot;,&quot;port&quot;,&quot;username&quot;,&quot;password&quot;); 
//如果你需要显示会话信息，请将上面的修改成 
//$smtp  =   new smtp_mail(&quot;host&quot;,&quot;port&quot;,&quot;username&quot;,&quot;password&quot;,true); 
$smtp-&amp;gt;send(&quot;from address&quot;,&quot;to address&quot;,&quot;title&quot;,&quot;content&quot;); 
?&amp;gt;</description>
		<content:encoded><![CDATA[	<p>host   = $host;<br />
$this-&gt;port   = $port;<br />
$this-&gt;user   = base64_encode($user);<br />
$this-&gt;pass   = base64_encode($pass);<br />
$this-&gt;debug  = $debug;<br />
$this-&gt;socket = socket_create (AF_INET, SOCK_STREAM, SOL_TCP);  //具体用法请参考手册<br />
if($this-&gt;socket)<br />
{<br />
$this-&gt;result_str  =  &#8220;创建SOCKET:&#8221;.socket_strerror(socket_last_error());<br />
$this-&gt;debug_show($this-&gt;result_str);<br />
}<br />
else<br />
{<br />
exit(&#8221;初始化失败，请检查您的网络连接和参数&#8221;);<br />
}<br />
$this-&gt;conn = socket_connect($this-&gt;socket,$this-&gt;host,$this-&gt;port);<br />
if($this-&gt;conn)<br />
{<br />
$this-&gt;result_str  =  &#8220;创建SOCKET连接:&#8221;.socket_strerror(socket_last_error());<br />
$this-&gt;debug_show($this-&gt;result_str);<br />
}<br />
else<br />
{<br />
exit(&#8221;初始化失败，请检查您的网络连接和参数&#8221;);<br />
}<br />
$this-&gt;result_str = &#8220;服务器应答：&#8221;.socket_read ($this-&gt;socket, 1024).&#8221;";<br />
$this-&gt;debug_show($this-&gt;result_str); </p>
	<p>}<br />
function debug_show($str)<br />
{<br />
if($this-&gt;debug)<br />
{<br />
echo $str.&#8221;\r\n&#8221;;<br />
}<br />
}<br />
function send($from,$to,$subject,$body)<br />
{<br />
if($from == &#8220;&#8221; || $to == &#8220;&#8221;)<br />
{<br />
exit(&#8221;请输入信箱地址&#8221;);<br />
}<br />
if($subject == &#8220;&#8221;) $sebject = &#8220;无标题&#8221;;<br />
if($body    == &#8220;&#8221;) $body    = &#8220;无内容&#8221;;<br />
$this-&gt;from     =  $from;<br />
$this-&gt;to       =  $to;<br />
$this-&gt;subject  =  $subject;<br />
$this-&gt;body     =  $body; </p>
	<p>$All          = &#8220;From:&#8221;.$this-&gt;from.&#8221;\n&#8221;;<br />
$All          .= &#8220;To:&#8221;.$this-&gt;to.&#8221;\n&#8221;;<br />
$All          .= &#8220;Subject:&#8221;.$this-&gt;subject.&#8221;\n&#8221;;<br />
$All          .= $this-&gt;body;<br />
/*<br />
  如过把$All的内容再加处理，就可以实现发送MIME邮件了<br />
  不过还需要加很多程序<br />
*/ </p>
	<p>//以下是和服务器会话<br />
$this-&gt;in       =  &#8220;EHLO HELO\r\n&#8221;;<br />
$this-&gt;docommand(); </p>
	<p>$this-&gt;in       =  &#8220;AUTH LOGIN\r\n&#8221;;<br />
$this-&gt;docommand(); </p>
	<p>$this-&gt;in       =  $this-&gt;user.&#8221;\r\n&#8221;;<br />
$this-&gt;docommand(); </p>
	<p>$this-&gt;in       =  $this-&gt;pass.&#8221;\r\n&#8221;;<br />
$this-&gt;docommand(); </p>
	<p>$this-&gt;in       =  &#8220;MAIL FROM:&#8221;.$this-&gt;from.&#8221;\r\n&#8221;;<br />
$this-&gt;docommand(); </p>
	<p>$this-&gt;in       =  &#8220;RCPT TO:&#8221;.$this-&gt;to.&#8221;\r\n&#8221;;<br />
$this-&gt;docommand(); </p>
	<p>$this-&gt;in       =  &#8220;DATA\r\n&#8221;;<br />
$this-&gt;docommand(); </p>
	<p>$this-&gt;in       =  $All.&#8221;\r\n.\r\n&#8221;;<br />
$this-&gt;docommand(); </p>
	<p>$this-&gt;in       =  &#8220;QUIT\r\n&#8221;;<br />
$this-&gt;docommand(); </p>
	<p>//结束，关闭连接 </p>
	<p>}<br />
function docommand()<br />
{<br />
socket_write ($this-&gt;socket, $this-&gt;in, strlen ($this-&gt;in));<br />
$this-&gt;debug_show(&#8221;客户机命令：&#8221;.$this-&gt;in);<br />
$this-&gt;result_str = &#8220;服务器应答：&#8221;.socket_read ($this-&gt;socket, 1024).&#8221;";<br />
$this-&gt;debug_show($this-&gt;result_str);<br />
}<br />
}<br />
//这个是我做的测试，我用的是smtp.163.com，那你的信箱也必须是163.com的，要不人家不让你发！！<br />
//你用这个类的时候你修改成你自己的信箱就可以了<br />
$smtp  =   new smtp_mail(&#8221;host&#8221;,&#8221;port&#8221;,&#8221;username&#8221;,&#8221;password&#8221;);<br />
//如果你需要显示会话信息，请将上面的修改成<br />
//$smtp  =   new smtp_mail(&#8221;host&#8221;,&#8221;port&#8221;,&#8221;username&#8221;,&#8221;password&#8221;,true);<br />
$smtp-&gt;send(&#8221;from address&#8221;,&#8221;to address&#8221;,&#8221;title&#8221;,&#8221;content&#8221;);<br />
?&gt;
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
