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

数据库编程

开发平台:

ASP/ASPX

  1. <% Option Explicit %>
  2. <!--#include file="../../FS_Inc/Const.asp" -->
  3. <!--#include file="../../FS_InterFace/MF_Function.asp" -->
  4. <!--#include file="../../FS_Inc/Function.asp" -->
  5. <%
  6. 'on error resume next
  7. Dim Conn,User_Conn,InsertUserSysParaRs
  8. Dim AllowReg,AllowChinese,NeedAudit,isCheckCorp,Login_Filed,OnlyMemberLogin,ID_Rule,IDRule_Array,ID_Elem,ID_Postfix,UserName_Length,Forbid_UserName,Pwd_Length,Pwd_Contain_Word,ResigterNeedFull,isSendMail,Email_Aduit,Reg_Help
  9. Dim CheckCodeStyle,LoginStyle,ReturnUrl,ErrorPwdTimes,ShowNumberPerPage,UpfileType,UpfileSize,MessageSize,RssFeed,LimitClass,CertDir,LimitReviewChar,isPassCard,isYellowCheck
  10. Dim DefaultGroupID,MoneyName,RegPointmoney,LoginPointmoney,PointChange,isPrompt,LenLoginTime,contrPoint,contrMoney,contrAuditPoint,contrAuditMoney
  11. MF_Default_Conn
  12. MF_User_Conn
  13. MF_Session_TF
  14. Set InsertUserSysParaRs=Server.CreateObject(G_FS_RS)
  15. '***************************************
  16. if NoSqlHack(Request.QueryString("Act"))="BaseParam" then
  17. DefaultGroupID = Request.Form("DefaultGroupID")
  18. AllowReg=Request.Form("AllowReg")
  19. AllowChinese=Request.Form("AllowChinese")
  20. NeedAudit=Request.Form("NeedAudit")
  21. isCheckCorp=Request.Form("Corp_NeedAudit")
  22. Login_Filed=Request.Form("Login_Filed")
  23. OnlyMemberLogin=Request.Form("OnlyMemberLogin")
  24. ID_Rule=trim(Request.Form("ID_Prefix"))&","&trim(replace(Request.Form("ID_Elem"),",","")&","&Request.Form("ID_Postfix"))&","&trim(request.Form("ID_Devide"))
  25. if len(trim(Request.Form("NeedWord")))>0 then
  26. ID_Rule=ID_Rule&","&trim(Request.Form("NeedWord"))
  27. end if
  28. UserName_Length=trim(Request.Form("UserName_Length_Min"))&","&trim(Request.Form("UserName_Length_Max"))
  29. Forbid_UserName=Request.Form("Forbid_UserName")
  30. Pwd_Length=trim(Request.Form("Pwd_Length_Min"))&","&trim(Request.Form("Pwd_Length_Max"))
  31. isSendMail=Request.Form("isSendMail")
  32. Email_Aduit=Request.Form("Email_Aduit")
  33. Reg_Help=Request.Form("Reg_Help")
  34. '****************update DateBase***************************
  35. InsertUserSysParaRs.open "select RegisterTF,AllowChineseName,RegisterCheck,isCheckCorp,LoginStyle,OnlyMemberLogin,UserNumberRule,LenUserName,LimitUserName,LenPassword,isSendMail,isValidate,RegisterNotice,DefaultGroupID from FS_ME_SysPara",User_Conn,1,3
  36. InsertUserSysParaRs("DefaultGroupID")=DefaultGroupID
  37. InsertUserSysParaRs("RegisterTF")=AllowReg
  38. InsertUserSysParaRs("AllowChineseName")=AllowChinese
  39. InsertUserSysParaRs("RegisterCheck")=NeedAudit
  40. InsertUserSysParaRs("isCheckCorp")=isCheckCorp
  41. InsertUserSysParaRs("LoginStyle")=Login_Filed
  42. InsertUserSysParaRs("OnlyMemberLogin")=OnlyMemberLogin
  43. InsertUserSysParaRs("UserNumberRule")=ID_Rule
  44. InsertUserSysParaRs("LenUserName")=UserName_Length
  45. InsertUserSysParaRs("LimitUserName")=Forbid_UserName
  46. InsertUserSysParaRs("LenPassword")=Pwd_Length
  47. InsertUserSysParaRs("isSendMail")=isSendMail
  48. InsertUserSysParaRs("isValidate")=Email_Aduit
  49. InsertUserSysParaRs("RegisterNotice")=Reg_Help
  50. InsertUserSysParaRs.update
  51. InsertUserSysParaRs.close
  52. elseif NoSqlHack(Request.QueryString("Act"))="OtherParam" then
  53. LoginStyle=Request.Form("LoginStyle")
  54. ReturnUrl=Request.Form("ReturnUrl")
  55. ErrorPwdTimes=Request.Form("ErrorPwdTimes")
  56. ShowNumberPerPage=Request.Form("ShowNumberPerPage")
  57. UpfileType=Request.Form("UpfileType")
  58. UpfileSize=Request.Form("UpfileSize")
  59. MessageSize=Request.Form("MessageSize")
  60. RssFeed=Request.Form("RssFeed")
  61. LimitClass=trim(Request.Form("LimitClass"))&","&Trim(Request.Form("LimitClass2"))
  62. CertDir=Request.Form("CertDir")
  63. isPassCard=Request.Form("isPassCard")
  64. isYellowCheck=Request.Form("isYellowCheck")
  65. LimitReviewChar=Request.Form("LimitReviewChar")
  66. '*********************************************
  67. InsertUserSysParaRs.open "Select Login_Style,ReturnUrl,LoginLockNum,MemberList,UpfileType,UpfileSize,MessageSize,RssFeed,LimitClass,CertDir,LimitReviewChar,isPassCard,isYellowCheck,ReviewTF,FilesSpace From FS_ME_SysPara",User_Conn,1,3
  68. InsertUserSysParaRs("Login_Style")=LoginStyle
  69. InsertUserSysParaRs("ReturnUrl")=ReturnUrl
  70. InsertUserSysParaRs("LoginLockNum")=ErrorPwdTimes
  71. InsertUserSysParaRs("MemberList")=ShowNumberPerPage
  72. InsertUserSysParaRs("UpfileType")=UpfileType
  73. InsertUserSysParaRs("UpfileSize")=UpfileSize
  74. InsertUserSysParaRs("MessageSize")=MessageSize
  75. InsertUserSysParaRs("RssFeed")=RssFeed
  76. InsertUserSysParaRs("LimitClass")=LimitClass
  77. InsertUserSysParaRs("CertDir")=CertDir
  78. InsertUserSysParaRs("LimitReviewChar")=LimitReviewChar
  79. if Request.Form("ReviewTF")="1" then
  80. InsertUserSysParaRs("ReviewTF")=1
  81. else
  82. InsertUserSysParaRs("ReviewTF")=0
  83. end if
  84. if Request.Form("FilesSpace")<>"" then
  85. InsertUserSysParaRs("FilesSpace")=cint(Request.Form("FilesSpace"))
  86. else
  87. InsertUserSysParaRs("FilesSpace")=2
  88. end if
  89. InsertUserSysParaRs("isYellowCheck")=isYellowCheck
  90. InsertUserSysParaRs("isPassCard")=isPassCard
  91. InsertUserSysParaRs.update
  92. InsertUserSysParaRs.close
  93. elseif Request.QueryString("Act")="MoneyParam" then 
  94. MoneyName=Request.Form("MoneyName")
  95. RegPointmoney=trim(Request.Form("Reg_Point"))&","&trim(Request.Form("Reg_Money"))
  96. LoginPointmoney=trim(Request.Form("Login_Point"))&","&trim(Request.Form("Login_Money"))
  97. PointChange=trim(Request.Form("PointChange"))&","&trim(Request.Form("Money_to_Point"))&","&trim(Request.Form("Point_to_Money"))
  98. isPrompt=trim(Request.Form("isPrompt"))&","&trim(Request.Form("PromptCondition"))
  99. LenLoginTime=trim(Request.Form("LenLoginTime"))&","&trim(Request.Form("LenLoginTime2"))
  100. contrPoint=Request.Form("txt_contrPoint")
  101. contrMoney=Request.Form("txt_contrMoney")
  102. contrAuditPoint=Request.Form("txt_contrAuditPoint")
  103. contrAuditMoney=Request.Form("txt_contrAuditMoney")
  104. '*************************************************
  105. InsertUserSysParaRs.open "select MoneyName,RegPointmoney,LoginPointmoney,PointChange,isPrompt,LenLoginTime,contrPoint,contrMoney,contrAuditPoint,contrAuditMoney from FS_ME_SysPara",User_Conn,1,3
  106. InsertUserSysParaRs("MoneyName")=MoneyName
  107. InsertUserSysParaRs("RegPointmoney")=RegPointmoney
  108. InsertUserSysParaRs("LoginPointmoney")=LoginPointmoney
  109. InsertUserSysParaRs("PointChange")=PointChange
  110. InsertUserSysParaRs("isPrompt")=isPrompt
  111. InsertUserSysParaRs("LenLoginTime")=LenLoginTime
  112. InsertUserSysParaRs("MoneyName")=MoneyName
  113. InsertUserSysParaRs("RegPointmoney")=RegPointmoney
  114. InsertUserSysParaRs("contrPoint")=contrPoint
  115. InsertUserSysParaRs("contrMoney")=contrMoney
  116. InsertUserSysParaRs("contrAuditPoint")=contrAuditPoint
  117. InsertUserSysParaRs("contrAuditMoney")=contrAuditMoney
  118. InsertUserSysParaRs.update
  119. InsertUserSysParaRs.close
  120. End if
  121. %>
  122. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  123. <html>
  124. <head>
  125. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  126. <title>FoosunCMS</title>
  127. </head>
  128. <link href="../images/skin/Css_<%=Session("Admin_Style_Num")%>/<%=Session("Admin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  129. <body>
  130. <%
  131. if err.number>0 then
  132. Response.Redirect("../error.asp?ErrCodes="&err.description&"&ErrorUrl="&Request.ServerVariables("HTTP_REFERER"))
  133. Response.End()
  134. else
  135. Response.Redirect("../success.asp?ErrCodes=<li>操作成功</li>&ErrorUrl="&Request.ServerVariables("HTTP_REFERER"))
  136. Response.End()
  137. end if
  138. %>
  139. </body>
  140. <%
  141. Conn.close
  142. Set Conn=nothing
  143. User_Conn.Close
  144. Set User_Conn=nothing
  145. %>
  146. </html>