savesetting.asp
上传用户:saigedz
上传日期:2019-10-14
资源大小:997k
文件大小:3k
源码类别:

中间件编程

开发平台:

HTML/CSS

  1. <%@ CODEPAGE=65001 %>
  2. <%
  3. '///////////////////////////////////////////////////////////////////////////////
  4. '// 插件应用:    Z-Blog 1.5及以上的版本
  5. '// 插件制作:    williamlong(http://www.williamlong.info)
  6. '// 备    注:    反垃圾留言的插件代码
  7. '// 最后修改:   2006-6-27
  8. '// 最后版本:    1.0.0
  9. '///////////////////////////////////////////////////////////////////////////////
  10. %>
  11. <% Option Explicit %>
  12. <% On Error Resume Next %>
  13. <% Response.Charset="UTF-8" %>
  14. <% Response.Buffer=True %>
  15. <!-- #include file="../../c_option.asp" -->
  16. <!-- #include file="../../function/c_function.asp" -->
  17. <!-- #include file="../../function/c_function_md5.asp" -->
  18. <!-- #include file="../../function/c_system_lib.asp" -->
  19. <!-- #include file="../../function/c_system_base.asp" -->
  20. <!-- #include file="../../function/c_system_event.asp" -->
  21. <!-- #include file="../../function/c_system_plugin.asp" -->
  22. <%
  23. Call System_Initialize()
  24. '检查非法链接
  25. Call CheckReference("")
  26. '检查权限
  27. If BlogUser.Level>1 Then Call ShowError(6) 
  28. If CheckPluginState("Totoro")=False Then Call ShowError(48)
  29. Dim strContent
  30. strContent=LoadFromFile(BlogPath & "/PLUGIN/totoro/include.asp","utf-8")
  31. Dim strZC_TOTORO_TB_Page_Value
  32. strZC_TOTORO_TB_Page_Value=Request.Form("strZC_TOTORO_TB_Page_Value")
  33. Call SaveValueForSetting(strContent,True,"Numeric","TOTORO_TB_Page_Value",strZC_TOTORO_TB_Page_Value)
  34. Dim strZC_TOTORO_INTERVAL_VALUE
  35. strZC_TOTORO_INTERVAL_VALUE=Request.Form("strZC_TOTORO_INTERVAL_VALUE")
  36. Call SaveValueForSetting(strContent,True,"Numeric","TOTORO_INTERVAL_VALUE",strZC_TOTORO_INTERVAL_VALUE)
  37. Dim strZC_TOTORO_BADWORD_VALUE
  38. strZC_TOTORO_BADWORD_VALUE=Request.Form("strZC_TOTORO_BADWORD_VALUE")
  39. Call SaveValueForSetting(strContent,True,"Numeric","TOTORO_BADWORD_VALUE",strZC_TOTORO_BADWORD_VALUE)
  40. Dim strZC_TOTORO_HYPERLINK_VALUE
  41. strZC_TOTORO_HYPERLINK_VALUE=Request.Form("strZC_TOTORO_HYPERLINK_VALUE")
  42. Call SaveValueForSetting(strContent,True,"Numeric","TOTORO_HYPERLINK_VALUE",strZC_TOTORO_HYPERLINK_VALUE)
  43. Dim strZC_TOTORO_NAME_VALUE
  44. strZC_TOTORO_NAME_VALUE=Request.Form("strZC_TOTORO_NAME_VALUE")
  45. Call SaveValueForSetting(strContent,True,"Numeric","TOTORO_NAME_VALUE",strZC_TOTORO_NAME_VALUE)
  46. Dim strZC_TOTORO_LEVEL_VALUE
  47. strZC_TOTORO_LEVEL_VALUE=Request.Form("strZC_TOTORO_LEVEL_VALUE")
  48. Call SaveValueForSetting(strContent,True,"Numeric","TOTORO_LEVEL_VALUE",strZC_TOTORO_LEVEL_VALUE)
  49. Dim strZC_TOTORO_SV_THRESHOLD
  50. strZC_TOTORO_SV_THRESHOLD=Request.Form("strZC_TOTORO_SV_THRESHOLD")
  51. Call SaveValueForSetting(strContent,True,"Numeric","TOTORO_SV_THRESHOLD",strZC_TOTORO_SV_THRESHOLD)
  52. Dim bolTOTORO_DEL_DIRECTLY
  53. bolTOTORO_DEL_DIRECTLY=Request.Form("bolTOTORO_DEL_DIRECTLY")
  54. Call SaveValueForSetting(strContent,True,"Boolean","TOTORO_DEL_DIRECTLY",bolTOTORO_DEL_DIRECTLY)
  55. Dim strZC_TOTORO_BADWORD_LIST
  56. strZC_TOTORO_BADWORD_LIST=Replace(Replace(Request.Form("strZC_TOTORO_BADWORD_LIST"),vbCrlf,""),vbLf,"")
  57. Call SaveValueForSetting(strContent,True,"String","TOTORO_BADWORD_LIST",strZC_TOTORO_BADWORD_LIST)
  58. Call SaveToFile(BlogPath & "/PLUGIN/totoro/include.asp",strContent,"utf-8",False)
  59. Call System_Terminate()
  60. If Err.Number<>0 then
  61.   Call ShowError(0)
  62. End If
  63. %>
  64. <script type="text/javascript">window.location="setting.asp"</script>