home *** CD-ROM | disk | FTP | other *** search
/ ftp.americansys.com / 2014.06.ftp.americansys.com.tar / ftp.americansys.com / spamcrusherenterprise.exe / web / procbodyfilters.asp < prev    next >
Text File  |  2003-10-17  |  2KB  |  66 lines

  1. <html>
  2.     <head>
  3.         <title>Spam Crusher Login</title>
  4.         <meta http-equiv="Content-Language" content="en-us">
  5.         <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
  6.         <meta name="ProgId" content="FrontPage.Editor.Document">
  7.         <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  8.     </head>
  9.     <body>
  10.         <script LANGUAGE="VBScript" RUNAT="Server">
  11.         </script>
  12.         
  13.  
  14.         <p><img border="0" src="smflaglogo.jpg" align="middle"><font size="5">Spam 
  15.         Crusher Enterprise</font></p>
  16.  
  17.  
  18.         <p align="center"><font size="5">Processing...</font></p>
  19.  
  20.  
  21.         <%
  22.     EOLN = chr(13) + chr(10)
  23.  
  24.     Set SpamCrusher = Server.CreateObject("SpamCrusherEnterprise.SpamCrusherEnte.1")
  25.     SpamCrusher.SetCurrentUser(Session("UserId"))
  26.  
  27.     Add = Request.Form("btnAdd")
  28.     Delete = Request.Form("btnDelete")
  29.  
  30.     if (Delete<>"") then
  31.         Set SpamCrusher = Server.CreateObject("SpamCrusherEnterprise.SpamCrusherEnte.1")
  32.         SpamCrusher.SetCurrentUser(Session("UserId"))
  33.         Phrases = Request.Form("lstBodyFilters")
  34.  
  35.         '************Delete multiple phrases at once
  36.         
  37.         StartPos = 1
  38.         EndPos = InStr(StartPos, Phrases, ", ")
  39.         do while (EndPos>0) 
  40.             Str = Mid(Phrases, StartPos, EndPos-StartPos)
  41.             StartPos = EndPos+2
  42.             EndPos = InStr(StartPos, Phrases, ", ")
  43.  
  44.             SpamCrusher.DeleteBodyFilter(Str)
  45.  
  46.         loop
  47.  
  48.         Str = Mid(Phrases, StartPos)
  49.         SpamCrusher.DeleteBodyFilter(Str)
  50.         
  51.         SpamCrusher.Logoff()
  52.  
  53.         Response.Redirect("bodyfilters.asp")
  54.     Else
  55.         ' add button
  56.         Response.Redirect("addbodyfilter.asp")
  57.     End If
  58.  
  59.  
  60.     SpamCrusher.Logoff
  61.     Response.Redirect(URL)
  62.  
  63.     Response.Write("")
  64. %>          
  65.     </body>
  66. </html>