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

中间件编程

开发平台:

HTML/CSS

  1. <%@ CODEPAGE=65001 %>
  2. <% Option Explicit %>
  3. <% On Error Resume Next %>
  4. <% Response.Charset="UTF-8" %>
  5. <% Response.Buffer=True %>
  6. <!-- #include file="../../c_option.asp" -->
  7. <!-- #include file="../../function/c_function.asp" -->
  8. <!-- #include file="../../function/c_function_md5.asp" -->
  9. <!-- #include file="../../function/c_system_lib.asp" -->
  10. <!-- #include file="../../function/c_system_base.asp" -->
  11. <!-- #include file="../../function/c_system_event.asp" -->
  12. <!-- #include file="../../function/c_system_plugin.asp" -->
  13. <!-- #include file="../../plugin/p_config.asp" -->
  14. <%
  15. Call System_Initialize()
  16. '检查非法链接
  17. Call CheckReference("")
  18. '检查权限
  19. If BlogUser.Level>1 Then Call ShowError(6) 
  20. If CheckPluginState("Totoro")=False Then Call ShowError(48)
  21. Dim i,j
  22. Dim s,t
  23. Dim aryArticle()
  24. s=Request.Form("edtBatch")
  25. t=Split(s,",")
  26. ReDim Preserve aryArticle(UBound(t))
  27. For j=0 To UBound(t)-1
  28. aryArticle(j)=0
  29. Next
  30. Dim objTrackBack
  31. Dim objArticle
  32. Set objArticle=New TArticle
  33. For i=0 To UBound(t)-1
  34. Set objTrackBack=New TTrackBack
  35. If objTrackBack.LoadInfobyID(t(i)) Then
  36. Dim objTestArticle
  37. Set objTestArticle=New TArticle
  38. objTrackBack.log_ID=-1-objTrackBack.log_ID
  39. If objTestArticle.LoadInfobyID(objTrackBack.log_ID) Then
  40. For j=0 To UBound(t)-1
  41. If aryArticle(j)=0 Then
  42. aryArticle(j)=objTrackBack.log_ID
  43. End If
  44. If aryArticle(j)=objTrackBack.log_ID Then Exit For
  45. Next
  46. If Not((objTestArticle.AuthorID=BlogUser.ID) Or (CheckRights("Root")=True)) Then Response.End
  47. Else
  48. 'Call ShowError(9)
  49. End If
  50. Set objTestArticle=Nothing
  51. objTrackBack.Del
  52. End If
  53. Set objTrackBack=Nothing
  54. Next
  55. For j=0 To UBound(t)-1
  56. If aryArticle(j)>0 Then
  57. 'Call BuildArticle(aryArticle(j),False,False)
  58. End If
  59. Next
  60. BlogReBuild_TrackBacks
  61. Response.Redirect "setting2.asp"
  62. %>
  63. <%
  64. Call System_Terminate()
  65. If Err.Number<>0 then
  66.   Call ShowError(0)
  67. End If
  68. %>