DEDECMS 文章被别人评论后系统短消息通知作者的代码成功,现在特别将方法分享给大家,需要修改的文件是:feedback.php。找到: $inquery = "INSERT INTO `58pic_feedback` (`aid`,`typeid`,`username`,`arctitle`,`ip`,`ischeck`,`dtime`, `mid`, `bad`,`good […]
DEDECMS文章被别人评论后系统短消息通知作者的代码成功,现在特别将方法分享给大家,需要修改的文件是:feedback.php。找到:
$inquery = "INSERT INTO `58pic_feedback`
(`aid`,`typeid`,`username`,`arctitle`,`ip`,`ischeck`,`dtime`, `mid`,
`bad`,`good`,`ftype`,`face`,`msg`)
'$ischeck','$dtime', '{$cfg_ml->M_ID}','0','0','$feedbacktype','$face','$msg'); ";
修改为:
VALUES ('$aid','$typeid','$username','$arctitle','$ip',
$rs = $dsql->ExecuteNoneQuery($inquery);
$inquery = "INSERT INTO `58pic_feedback`(`aid`,`typeid`,`username`,
`arctitle`,`ip`,`ischeck`,`dtime`, `mid`,`bad`,`good`,`ftype`,`face`,`msg`)
'$dtime', '{$cfg_ml->M_ID}','0','0','$feedbacktype','$face','$msg'); ";
`tologinid`,`folder`,`subject`,`sendtime`,`writetime`,`hasview`,`isadmin`,`message`)
'$dtime','$dtime','0','0','{$cfg_ml->M_LoginID}说:{$msg}'); ";
VALUES ('$aid','$typeid','$username','$arctitle','$ip','$ischeck',
$inquery1 = "INSERT INTO `58pic_member_pms` (`floginid`,`fromid`,`toid`,
VALUES ('admin','1','$mid','$writer','inbox','你的《{$arctitle}》有新的评论',
$rs = $dsql->ExecuteNoneQuery($inquery);
$rs = $dsql->ExecuteNoneQuery($inquery1);