很多客户在使用DEDECMS模板的启动邮件注册验证,当输入邮件服务器信息,启动自动发送注册通知的时候,发现后台没有邮件模板,仔细研究了下,原来是集成在注册模板里的!
打开注册member/reg_new.php: 看下就知道修改了哪里了.
<?php
require_once(dirname(__FILE__)."/config.php");
require_once DEDEINC.'/membermodel.cls.php';
if($cfg_mb_allowreg=='N')
{
ShowMsg('系统关闭了新用户注册!', 'index.php');
exit();
}
if(!isset($dopost))
{
$dopost = '';
}
$step = empty($step)? 1 : intval(preg_replace("/[^d]/",'', $step));
if($step == 1)
{
if($cfg_ml->IsLogin())
{
if($cfg_mb_reginfo == 'Y')
{
//如果启用注册详细信息
if($cfg_ml->fields['spacesta'] == 0 || $cfg_ml->fields['spacesta'] == 1)
{
ShowMsg("尚未完成详细资料,请完善...","index_do.php?fmdo=user&dopost=regnew&step=2",0,1000);
exit;
}
}
ShowMsg('你已经登陆系统,无需重新注册!', 'index.php');
exit();
}
if($dopost=='regbase')
{
$svali = GetCkVdValue();
if(preg_match("/1/",$safe_gdopen)){
if(strtolower($vdcode)!=$svali || $svali=='')
{
ResetVdValue();
ShowMsg('验证码错误!', '-1');
exit();
}
}