-
UID:2 管理员
-
- 注册时间2010-09-11
- 最后登录2024-12-27
- 在线时间2039小时
- 本月在线2689分钟
- 今日发帖6
(已打卡)
- 本月发帖280
-
-
访问TA的空间加好友用道具
|
继续搜索“subject_replytouser_title”, lib/forum/replypost.class.php文件部分代码: - function sendMail() {
- global $db_msgreplynotice,$db_replysendmail,$db_replysitemail,$windid,$winduid;
- $ret = $msgNotice = 0;
- $this->data['content'] = preg_replace("/\[quote\](.*)\[\/quote\]/is","",$this->data['content']);
- if ($db_msgreplynotice && $this->replyToUser && $this->replyToUser != $windid) {
- M::sendMessage(
- $winduid,
- array($this->replyToUser),
- array(
- 'create_uid' => $winduid,
- 'create_username' => $windid,
- 'title' => getLangInfo('writemsg','subject_replytouser_title',array(
- 'windid' => $windid,
- 'title' => substrs(strip_tags($this->tpcArr['subject']), 30, 'Y')
- )),
- 'content' => getLangInfo('writemsg','subject_reply_content',array(
- 'tid' => $this->tid,
- 'pid' => $this->pid,
- 'windid' => $windid,
- 'content' => substrs(strip_tags($this->data['content']), 100, 'Y')
- )),
- ),
- 'sms_reply',
- 'sms_reply'
- );
- $msgNotice = 1;
- }
- if ($this->data['authorid'] == $this->tpcArr['authorid']) {
- return $ret;
- }
- if ($db_replysendmail == 1 && ($this->tpcArr['ifmail'] == 1 || $this->tpcArr['ifmail'] == 3)) {
- $userService = L::loadClass('UserService', 'user'); /* @var $userService PW_UserService */
- $receiver = $this->tpcArr['author'];
- $old_title = $this->tpcArr['subject'];
- $detail = $userService->get($this->tpcArr['authorid']);
- $send_address = $detail['email'];
- if (getstatus($detail['userstatus'], PW_USERSTATUS_RECEIVEMAIL)) {
- require_once (R_P . 'require/sendemail.php');
- sendemail($send_address, 'email_reply_subject', 'email_reply_content', 'email_additional');
- }
- $ret = 1;
- }
- if ($db_replysitemail && !$msgNotice && ($this->tpcArr['ifmail'] == 2 || $this->tpcArr['ifmail'] == 3)) {
- /*
- $userService = L::loadClass('UserService', 'user');
- $rt = $userService->get($this->tpcArr['authorid'], true, false, true);
- $replyinfo = $rt['replyinfo'] ? $rt['replyinfo'] . $this->tid . ',' : ",$this->tid,";
- $userService->update($this->tpcArr['authorid'], array(), array(), array('replyinfo' => $replyinfo));
- if (!getstatus($rt['userstatus'], PW_USERSTATUS_NEWRP)) {
- $userService->setUserStatus($this->tpcArr['authorid'], PW_USERSTATUS_NEWRP, true);
- }
- */
- M::sendMessage(
- $winduid,
- array($this->tpcArr['author']),
- array(
- 'create_uid' => $winduid,
- 'create_username' => $windid,
- 'title' => getLangInfo('writemsg','subject_reply_title',array(
- 'windid' => $windid,
- 'author' => $this->tpcArr['author'],
- 'title' => substrs(strip_tags($this->tpcArr['subject']), 30, 'Y')
- )),
- 'content' => getLangInfo('writemsg','subject_reply_content',array(
- 'tid' => $this->tid,
- 'pid' => $this->pid,
- 'windid' => $windid,
- 'content' => substrs(strip_tags(stripWindCode($this->data['content'])), 100, 'Y')
- )),
- ),
- 'sms_reply',
- 'sms_reply'
- );
- $ret += 2;
- }
- return $ret;
- }
|