User_sys.asp
上传用户:jisenq
上传日期:2014-06-29
资源大小:7216k
文件大小:5k
源码类别:

数据库编程

开发平台:

ASP/ASPX

  1. <%
  2. Sub User_GetParm()
  3. set GetUserParaObj  = server.CreateObject(G_FS_RS)
  4. UserSql = "select Top 1 Login_Style,UserNumberRule,RegisterNotice,RegisterTF,LoginLockNum,LoginPointmoney,Login_Style,AllowChineseName,LenUserName,isCheckCorp,RegisterCheck,MoneyName,RegPointmoney,ReturnUrl,LenPassword,isSendMail,isValidate,OnlyMemberLogin,LenLoginTime,LimitUserName,isPassCard,isYellowCheck,PointChange,UpfileType,UpfileSize,FilesSpace,LimitClass,DefaultGroupID From FS_ME_SysPara"
  5. GetUserParaObj.open UserSql,User_Conn,1,3
  6. if Not GetUserParaObj.eof then
  7. if GetUserParaObj("RegisterTF")=0 then
  8. RegisterTF=false
  9. Else
  10. RegisterTF=true
  11. End if
  12. DefaultGroupID = GetUserParaObj("DefaultGroupID")
  13. RegisterNotice = GetUserParaObj("RegisterNotice")
  14. p_UserNumberRule = GetUserParaObj("UserNumberRule")
  15. LoginLockNum = cint(GetUserParaObj("LoginLockNum"))
  16. p_LoginStyle = GetUserParaObj("Login_Style")
  17. p_AllowChineseName = GetUserParaObj("AllowChineseName")
  18. p_LenUserName = GetUserParaObj("LenUserName")
  19. strLenUserNameArr=split(p_LenUserName,",")
  20. p_NumLenMin = strLenUserNameArr(0)
  21. p_NumLenMax = strLenUserNameArr(1)
  22. p_isCheckCorp = cint(GetUserParaObj("isCheckCorp"))
  23. p_RegisterCheck =  cint(GetUserParaObj("RegisterCheck"))
  24. p_MoneyName =  GetUserParaObj("MoneyName")
  25. p_RegPointmoney = GetUserParaObj("RegPointmoney")
  26. strRegPointmoneyArr=split(p_RegPointmoney,",")
  27. p_NumGetPoint = trim(strRegPointmoneyArr(0))
  28. p_NumGetMoney =  trim(strRegPointmoneyArr(1))
  29. p_NumReturnUrl =  Cint(GetUserParaObj("ReturnUrl"))
  30. p_LenPasswordarr =  split(GetUserParaObj("LenPassword"),",")
  31. p_LenPassworMin = cint(trim(p_LenPasswordarr(0)))
  32. p_LenPassworMax = cint(trim(p_LenPasswordarr(1)))
  33. p_isSendMail = cint(GetUserParaObj("isSendMail"))
  34. p_isValidate =  cint(GetUserParaObj("isValidate"))
  35. p_OnlyMemberLogin = cint(GetUserParaObj("OnlyMemberLogin"))
  36. p_LenLoginTimearr =  split(GetUserParaObj("LenLoginTime"),",")
  37. p_LoginGetIntegral = Clng(p_LenLoginTimearr(0))
  38. p_LoginGetMoney = Cint(p_LenLoginTimearr(1))
  39. p_LoginPointmoneyarr =  split(GetUserParaObj("LoginPointmoney"),",")
  40. p_LoginPointmoneyarr_1 = Clng(p_LoginPointmoneyarr(0))
  41. p_LoginPointmoneyarr_2 = Cint(p_LoginPointmoneyarr(1))
  42. p_LimitUserName = GetUserParaObj("LimitUserName")
  43. p_isPassCard = GetUserParaObj("isPassCard")
  44. p_PointChange =  GetUserParaObj("PointChange")
  45. p_isYellowCheck = GetUserParaObj("isYellowCheck")
  46. p_UpfileType= GetUserParaObj("UpfileType")
  47. p_UpfileSize= GetUserParaObj("UpfileSize")
  48. p_FilesSpace= GetUserParaObj("FilesSpace")
  49. p_LimitClass=split(GetUserParaObj("LimitClass"),",")(1)
  50. GetUserParaObj.close:set GetUserParaObj = nothing
  51. Else
  52. strShowErr = "<li>参数错误</li><li>找不到会员系统配置</li>"
  53. Response.Redirect Replace("/"&G_VIRTUAL_ROOT_DIR &"/"&G_USER_DIR,"//","/")& "/lib/Error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl="
  54. Response.end
  55. End if
  56. Set GetConfigObj = server.CreateObject(G_FS_RS)
  57. GetConfigObj.open "select  Top  1 MF_Login_style,MF_Soft_Version From FS_MF_Config",Conn,1,3
  58. if Not GetConfigObj.eof then
  59. p_Soft_Version = "版本号:V" & GetConfigObj(1)
  60. Else
  61. p_Soft_Version = "<font color=""Red"">Err:Please configure Your Soft</font>"
  62. End if
  63. GetConfigObj.close
  64. Set GetConfigObj = nothing
  65. '获得天数字符串
  66. if Len(Cstr(month(now)))<2  then  
  67. strCard_month_1 = "0"&month(now)
  68. Else
  69. strCard_month_1 = month(now)
  70. End  if 
  71. if Len(Cstr(day(now)))<2  then  
  72. strCard_day_1 = "0"&day(now)
  73. Else
  74. strCard_day_1 = day(now)
  75. End  if 
  76. if Len(Cstr(hour(now)))<2  then  
  77. strCard_hour_1 = "0"&hour(now)
  78. Else
  79. strCard_hour_1 = hour(now)
  80. End  if 
  81. if Len(Cstr(minute(now)))<2  then  
  82. strCard_minute_1 = "0"&minute(now)
  83. Else
  84. strCard_minute_1 = minute(now)
  85. End  if 
  86. strTodaydate = right(year(now),2)&strCard_month_1&strCard_day_1
  87. strTodaydate_1 = right(year(now),2)&strCard_month_1&strCard_day_1&strCard_hour_1&strCard_minute_1
  88. End Sub
  89. Function GetRandstr()
  90.  Dim Randchar,Randchararr,RandLen,iR,Randomizecode
  91. Randomize
  92. Randchar="0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z"
  93. Randchararr=split(Randchar,",") 
  94. RandLen=8 '定义密码的长度或者是位数
  95. for iR=1 to RandLen
  96. Randomizecode=Randomizecode&Randchararr(Int((21*Rnd)))
  97. next 
  98. End Function   
  99.  
  100. Function  ReturnError(Str,strURL) 
  101. Response.Redirect Replace("/"&G_VIRTUAL_ROOT_DIR &"/"&G_USER_DIR,"//","/")& "/lib/Error.asp?ErrCodes="&Server.URLEncode(Str)&"&ErrorUrl="
  102. Response.end
  103. End Function
  104. Function  ReturnSuccess(Str,strURL) 
  105. Response.Redirect Replace("/"&G_VIRTUAL_ROOT_DIR &"/"&G_USER_DIR,"//","/")& "/lib/success.asp?ErrCodes="&Server.URLEncode(Str)&"&ErrorUrl="
  106. Response.end
  107. End Function
  108. %>