晚上把系统升级为了 Wordpress 1.5,把 bug #15 和 bug #18 解决了
因为服务器上的 mail 服务器没有开,所以在新系统里注册新用户可能收不到注册信(其中包含登陆密码)。TODO:如何解决?
TODO:
修改 theme,使之适合 mozcn
加最新评论插件
加 firefox 下载计数器
使用过程中有任何问题,可以到问题跟踪系统报告,类别为 “社区建设 -> blog 问题”。谢谢。
This entry was posted
on Tuesday, April 12th, 2005 at 10:45 pm and is filed under About | 关于本站.
You can follow any responses to this entry through the RSS 2.0 feed.
You can skip to the end and leave a response. Pinging is currently not allowed.
April 13th, 2005 at 9:48 am
先上个anti-spam吧,这不就已经7条了
April 13th, 2005 at 3:01 pm
Done. Let’s see if it works.
April 13th, 2005 at 4:52 pm
我记得升级前的wordpress里面有comment中链接大于几就等待确认的,这个应该有用
April 15th, 2005 at 6:42 pm
对了,现在item页(就是看某条blog的页面)里面我找不到作者(就是index里面的by murj之类的东西),这个改theme的时候也加上吧:)
April 15th, 2005 at 9:39 pm
果然收不到注册信。
April 18th, 2005 at 4:05 pm
使用smtp来发送邮件,应该没有问题的。
April 18th, 2005 at 4:20 pm
改写一下wp-includes/functions.php中的wp_mail函数,使用smtp来发送邮件^-^
April 20th, 2005 at 12:52 pm
大侠帮忙提供一个 smtp mail 函数?:)
April 20th, 2005 at 4:18 pm
php的?我这里有一个
April 20th, 2005 at 4:21 pm
host = $host;
$this->port = $port;
$this->user = base64_encode($user);
$this->pass = base64_encode($pass);
$this->debug = $debug;
$this->socket = socket_create (AF_INET, SOCK_STREAM, SOL_TCP); //具体用法请参考手册
if($this->socket)
{
$this->result_str = “创建SOCKET:”.socket_strerror(socket_last_error());
$this->debug_show($this->result_str);
}
else
{
exit(”初始化失败,请检查您的网络连接和参数”);
}
$this->conn = socket_connect($this->socket,$this->host,$this->port);
if($this->conn)
{
$this->result_str = “创建SOCKET连接:”.socket_strerror(socket_last_error());
$this->debug_show($this->result_str);
}
else
{
exit(”初始化失败,请检查您的网络连接和参数”);
}
$this->result_str = “服务器应答:”.socket_read ($this->socket, 1024).”";
$this->debug_show($this->result_str);
}
function debug_show($str)
{
if($this->debug)
{
echo $str.”\r\n”;
}
}
function send($from,$to,$subject,$body)
{
if($from == “” || $to == “”)
{
exit(”请输入信箱地址”);
}
if($subject == “”) $sebject = “无标题”;
if($body == “”) $body = “无内容”;
$this->from = $from;
$this->to = $to;
$this->subject = $subject;
$this->body = $body;
$All = “From:”.$this->from.”\n”;
$All .= “To:”.$this->to.”\n”;
$All .= “Subject:”.$this->subject.”\n”;
$All .= $this->body;
/*
如过把$All的内容再加处理,就可以实现发送MIME邮件了
不过还需要加很多程序
*/
//以下是和服务器会话
$this->in = “EHLO HELO\r\n”;
$this->docommand();
$this->in = “AUTH LOGIN\r\n”;
$this->docommand();
$this->in = $this->user.”\r\n”;
$this->docommand();
$this->in = $this->pass.”\r\n”;
$this->docommand();
$this->in = “MAIL FROM:”.$this->from.”\r\n”;
$this->docommand();
$this->in = “RCPT TO:”.$this->to.”\r\n”;
$this->docommand();
$this->in = “DATA\r\n”;
$this->docommand();
$this->in = $All.”\r\n.\r\n”;
$this->docommand();
$this->in = “QUIT\r\n”;
$this->docommand();
//结束,关闭连接
}
function docommand()
{
socket_write ($this->socket, $this->in, strlen ($this->in));
$this->debug_show(”客户机命令:”.$this->in);
$this->result_str = “服务器应答:”.socket_read ($this->socket, 1024).”";
$this->debug_show($this->result_str);
}
}
//这个是我做的测试,我用的是smtp.163.com,那你的信箱也必须是163.com的,要不人家不让你发!!
//你用这个类的时候你修改成你自己的信箱就可以了
$smtp = new smtp_mail(”host”,”port”,”username”,”password”);
//如果你需要显示会话信息,请将上面的修改成
//$smtp = new smtp_mail(”host”,”port”,”username”,”password”,true);
$smtp->send(”from address”,”to address”,”title”,”content”);
?>
April 21st, 2005 at 4:25 pm
可以使用pear的Mail_smtp class,http://pear.php.net/package/Mail
服务器已经安装了,支持smtp auth