帝国cms留言板(帝国cms评论)
说明:修改1:
e/admin/tool/ReGook.php /*回复表单*/在第43行添加代码
-------------------------------------------------- ----------------------------------------------------
输入名称='电子邮件'类型='隐藏'id='电子邮件'值='?=$r[电子邮件]?' /*获取用户的EMIAL地址*/input name='lytext' type='hidden' id='lytext' value='?=$r[lytext]?' /*获取用户消息信息*/---------------------------- -------------- ------------------------------------------------ -------------- ----
第67 行添加表单选择
-------------------------------------------------- -------------------------------------------------- ----------------
tr bgcolor='#FFFFFF'td height='25'通知书友:/tdtd height='25' input name='checked[]' type='checkbox' id='checked[]' value='' title='向书友发送Emial 通知' style='background:#99C4E3'span style='color:red' 书友Email:=$r[email]? /span/td/tr------------- ------------------------------ --------------------------------------------------------------- ------------------------
修改2:
e/admin/tool/gbook.php 添加一行: include('././class/SendEmail.inc.php'); 30行代码
-------------------------------------------------- --------
elseif($enews=='ReGbook'){$lyid=$_POST['lyid'];$bid=$_POST['bid'];$retext=$_POST['retext'];ReGbook($lyid,$回复,$bid,$logininid,$loginin);}---------------------------------------- --- --------------------------
变成:
-------------------------------------------------- --------
elseif($enews=='ReGbook'){$lyid=$_POST['lyid'];$bid=$_POST['bid'];$retext=$_POST['retext'];$email=$_POST[ 'email'];$lytext=$_POST['lytext'];$checked=(int)$_POST['checked'];if($checked)//发送{EcmsToSendMail($email,$lytext,$retext) ;}ReGbook($lyid,$retext,$bid,$logininid,$loginin);}