这个是比较常见的问题,动易系统中,在用户登录后仍然可以进行再注册,解决方法如下。
打开reg/user_reg.asp
查找下面代码:
Sub Main() If EnableUserReg <> True Then FoundErr = True ErrMsg = ErrMsg & "<li>对不起,本站暂停新用户注册服务!</li>" Call WriteErrMsg(ErrMsg, ComeUrl) Exit Sub End If
在下面添加下列代码:
返回自定义提示信息: -------------------------------- If CheckUserLogined=True then FoundErr = True ErrMsg = ErrMsg & "<li><center>对不起,你已是本站注册用户!<br>你的用户名是 <font color=#99000><b>"&username&"</b></font><br><a href='/'><font color=#666666><< 返回首页</font></a> <a href='/user/'><font color=#666666>用户中心>></font></a><center></li>" Call WriteErrMsg(ErrMsg, ComeUrl) Exit Sub End If --------------------------------
或者加入下面代码:
直接进入用户中心: -------------------------------- If CheckUserLogined() = True Then Response.Redirect "/user/" Response.End End If -------------------------------- 注:以上两种方法,任选一种。 |