Ucenter确实很好用

作者在 2008-06-22 13:03:59 发布以下内容
发个短信只需要一行
 
uc_pm_send($discuz_uid, getuid($tid), "恭喜,您发表的原创已经通过审核,加为精华", "您发表的原创帖子 [url=http://bbs.bccn.net/thread-".$tid."-1-1.html][u]".getsubject($tid)."[/u][/url] 于 ".date("Y-m-d H:i:s",time())." 通过审核并加为精华", 1, 0, 0);
 
 
以前需要对数据库进行操作,要牵扯到很多字段,稍不注意就出现很多问题
 
 
$db->query("INSERT INTO cdb_pms (msgfrom, msgfromid, msgtoid, folder, new, subject, dateline, message) VALUES('静夜思', '2', '".getuid($tid)."', 'inbox', '1', '恭喜,您发表的原创已经通过审核,加为精华', '".time()."', '您发表的原创帖子 [url=http://bbs.bccn.net/thread-".$tid."-1-1.html][un]".getsubject($tid)."[/un][/url] 于 ".date("Y-m-d H:i:s",time())." 通过审核并加为精华')");
$db->query("UPDATE cdb_members SET newpm='1',posts=posts+1,digestposts=digestposts+1 WHERE uid='".getuid($tid)."'", 'UNBUFFERED');
论坛维护 | 阅读 4284 次
文章评论,共1条
变幻小子
2011-03-22 22:18
1
你好  路过看看
游客请输入验证码
浏览2800100次
文章归档