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

  1. <html>
  2.     <head>
  3.         <title>Spam Crusher</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.     Add = Request.Form("btnAdd")
  25.     Delete = Request.Form("btnDelete")
  26.  
  27.     if (Delete<>"") then
  28.         Set SpamCrusher = Server.CreateObject("SpamCrusherEnterprise.SpamCrusherEnte.1")
  29.         SpamCrusher.SetCurrentUser(Session("UserId"))
  30.  
  31.         Phrases = Request.Form("lstPhrases")
  32.  
  33.         '************Delete multiple phrases at once
  34.         
  35.         StartPos = 1
  36.         EndPos = InStr(StartPos, Phrases, ", ")
  37.         do while (EndPos>0) 
  38.             Str = Mid(Phrases, StartPos, EndPos-StartPos)
  39.             StartPos = EndPos+2
  40.             EndPos = InStr(StartPos, Phrases, ", ")
  41.  
  42.             SpamCrusher.DeleteAcceptablePhrase(Str)
  43.  
  44.         loop
  45.  
  46.         Str = Mid(Phrases, StartPos)
  47.         SpamCrusher.DeleteAcceptablePhrase(Str)
  48.         
  49.         SpamCrusher.Logoff()
  50.  
  51.         Response.Redirect("acceptablephrases.asp")
  52.     Else
  53.         ' add button
  54.         Response.Redirect("addPhrase.asp")
  55.     End If
  56.     Response.Write("")
  57. %>          
  58.     </body>
  59. </html>