国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > CMS > 動易CMS > 正文

用戶名已經存在,注冊的時候還被判斷可以注冊如何修復

2024-09-10 21:54:58
字體:
來源:轉載
供稿:網友

問題: 新會員注冊時,用已存在的會員名注冊新用戶時仍然判定可以申請

圖片點擊可在新窗口打開查看此主題相關圖片如下:


圖片點擊可在新窗口打開查看

等到所有信息都正確填寫后,繼續下一步注提交注冊信息時,出現下圖:

圖片點擊可在新窗口打開查看此主題相關圖片如下:


圖片點擊可在新窗口打開查看

解決方法: 以下兩種方法任選一種

1.打開inc目錄下的checklist.asp文件

Sub usercheck()
Dim rtext, UserNameLimit, UserNameMax, UserName_RegDisabled
If InStr(iname, "=") > 0 Or InStr(iname, "%") > 0 Or InStr(iname, Chr(32)) > 0 Or InStr(iname, "?") > 0 Or InStr(iname, "&") > 0 Or InStr(iname, ";") > 0 Or InStr(iname, ",") > 0 Or InStr(iname, "'") > 0 Or InStr(iname, ".") > 0 Or InStr(iname, Chr(34)) > 0 Or InStr(iname, Chr(9)) > 0 Or InStr(iname, "?") > 0 Or InStr(iname, "$") > 0 Or InStr(iname, "*") Or InStr(iname, "|") Or InStr(iname, """") > 0 Then
Response.write "2" '含有非法字符
Else
If strLength(iname) > 4 Then
If LCase(Right(iname, 4)) = ".asp" Or LCase(Right(iname, 4)) = ".asa" Or LCase(Right(iname, 4)) = ".cer" Or LCase(Right(iname, 4)) = ".cdx" Then
Response.write "2" '含有非法字符
End If
Else

Set rtext = Conn.Execute("select top 1 UserNameLimit,UserNameMax,UserName_RegDisabled from PE_Config")
If Not (rtext.bof And rtext.EOF) Then
UserNameLimit = rtext("UserNameLimit")
UserNameMax = rtext("UserNameMax")
UserName_RegDisabled = rtext("UserName_RegDisabled")
Else
UserNameLimit = 4
UserNameMax = 20
End If
rtext.Close

If strLength(iname) > 20 Or strLength(iname) < UserNameLimit Then
Response.write "3" '長度不合
Else
If FoundInArr(UserName_RegDisabled, iname, "|") = True Then
Response.write "4" '禁止注冊
Else
Set rtext = Conn.Execute("select top 1 UserName from PE_User where UserName='" & iname & "'")
If rtext.bof And rtext.EOF Then
Response.write "0"
Else
Response.write "1" '重復
End If

共2頁上一頁12下一頁
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表

圖片精選

主站蜘蛛池模板: 清水县| 龙海市| 嵊州市| 阜平县| 伊川县| 德钦县| 保定市| 辽阳县| 汉中市| 耒阳市| 岗巴县| 临桂县| 旅游| 尉氏县| 雷波县| 德庆县| 沈丘县| 凉城县| 海安县| 友谊县| 白银市| 阿图什市| 三明市| 怀柔区| 攀枝花市| 唐河县| 西吉县| 云阳县| 静宁县| 安平县| 东莞市| 博罗县| 洪泽县| 林芝县| 黎川县| 康保县| 抚顺市| 揭阳市| 怀宁县| 广宁县| 修文县|