}
else
{
$ucsynlogin = uc_user_synlogin($uid);
}
}
#/aip}}
if($cfg_md_mailtest=='Y')
{
$row = $dsql->GetOne("Select mid From `dede_member` where email like '$email' ");
if(is_array($row))
{
ShowMsg('你使用的Email已经被另一帐号注册,请使其它帐号!', '-1');
exit();
}
}
//检测用户名是否存在
$row = $dsql->GetOne("Select mid From `dede_member` where userid like '$userid' ");
if(is_array($row))
{
ShowMsg("你指定的用户名 {$userid} 已存在,请使用别的用户名!", "-1");
exit();
}
if($safequestion==0)
{
$safeanswer = '';
}
else
{
if(strlen($safeanswer)>30)
{
ShowMsg('你的新安全问题的答案太长了,请控制在30字节以内!', '-1');
exit();
}
}
//会员的默认金币
$dfscores = 0;
$dfmoney = 0;
$dfrank = $dsql->GetOne("Select money,scores From `dede_arcrank` where rank='10' ");
if(is_array($dfrank))
{
$dfmoney = $dfrank['money'];
$dfscores = $dfrank['scores'];