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

中间件编程

开发平台:

HTML/CSS

  1. <%
  2. '注册插件
  3. Call RegisterPlugin("pingtool","ActivePlugin_pingtool")
  4. Dim PingTool_objArticle
  5. Dim PingTool_PingEnable
  6. Dim PingTool_TBContent
  7. '具体的接口挂接
  8. Function ActivePlugin_PingTool() 
  9. '挂上接口
  10. Call Add_Action_Plugin("Action_Plugin_ArticlePst_Begin","PingTool_PingEnable=Request.Form(""PingTool_PingEnable""):PingTool_TBContent=Request.Form(""PingTool_TBContent""):Call PingTool_Main()")
  11. Call Add_Action_Plugin("Action_Plugin_Edit_Begin","Call PingTool_addForm()")
  12. Call Add_Action_Plugin("Action_Plugin_Edit_Fckeditor_Begin","Call PingTool_addForm()")
  13. End Function
  14. Function PingTool_addForm()
  15. Call Add_Response_Plugin("Response_Plugin_Edit_Form2","<div class=""anti_normal"" style=""width:725px""><p><a href=""#"" onclick=""this.style.display='none';document.getElementById('divPingTool').style.display='block';"">[PING中心和引用通告发送]</a></p></div><div id=""divPingTool"" class=""normal"" style=""display:none;width:725px""><p>发送引用通告:输入引用通告的URL地址,每行表示一个地址.<br/><textarea style=""width:100%"" rows=""3""  name=""PingTool_TBContent"" id=""PingTool_TBContent""></textarea></p><p><input type=""checkbox""  name=""PingTool_PingEnable"" id=""PingTool_PingEnable"" onclick="""" value=""True""/><label for=""PingTool_PingEnable"">发布文章同时通知Ping中心.</label></p></div>")
  16. End Function
  17. Function PingTool_getArticle(ByRef objArticle) 
  18. Set PingTool_objArticle=objArticle
  19. End Function
  20. Function PingTool_gotoPingTB() 
  21. If PingTool_objArticle.ID>0 Then
  22. If Replace(Replace(Replace(PingTool_TBContent,vbCr,""),vbLf,"")," ","")<>"" Or PingTool_PingEnable=True Then
  23. Response.Redirect "plugin/PingTool/send.asp?id=" & PingTool_objArticle.ID & "&ping=" & Server.URLEncode(PingTool_PingEnable) & "&tbs=" & Server.URLEncode(PingTool_TBContent)
  24. End If
  25. End If
  26. End Function
  27. Function PingTool_Main()
  28. If IsEmpty(PingTool_PingEnable)=True Then
  29. PingTool_PingEnable=False
  30. Else
  31. PingTool_PingEnable=True
  32. End If
  33. Call Add_Filter_Plugin("Filter_Plugin_PostArticle_Core","PingTool_getArticle")
  34. Call Add_Action_Plugin("Action_Plugin_ArticlePst_Succeed","Call PingTool_gotoPingTB()")
  35. End Function
  36. %>