zhangjingyu
继续搜索“ping_content”,lib/fourm/ping .class.php
if ($params['ifmsg'] && !$atc['anonymous'] && $atc['author'] != $windid) {
//发消息
$title = getLangInfo('writemsg','ping_title',array('sender'=>$windid,'receiver'=>$atc['author']));
$content = getLangInfo('writemsg','ping_content',array(
'manager'=> $windid,
'fid'=> $atc['fid'],
'tid'=> $this->tid,
'pid'=> $pid,
'subject'=> $atc['subject'],
'postdate'=> get_date($atc['postdate']),
'forum'=> strip_tags($this->forum->foruminfo['name']),
'affect'=> $affect,
'admindate'=> get_date($timestamp),
'reason'=> stripslashes($params['atc_content']),
'sender'=> $windid,
'receiver'=> $atc['author']
));
$this->sendMessage($atc['author'],$title,$content);
}
这是发送消息的核心。在这里加判断吗?