打开注册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();
}
}
(责任编辑:最模板) |