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 >
Wrap
Text File
|
2003-10-17
|
1KB
|
59 lines
<html>
<head>
<title>Spam Crusher</title>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<body>
<script LANGUAGE="VBScript" RUNAT="Server">
</script>
<p><img border="0" src="smflaglogo.jpg" align="middle"><font size="5">Spam
Crusher Enterprise</font></p>
<p align="center"><font size="5">Processing...</font></p>
<%
EOLN = chr(13) + chr(10)
Add = Request.Form("btnAdd")
Delete = Request.Form("btnDelete")
if (Delete<>"") then
Set SpamCrusher = Server.CreateObject("SpamCrusherEnterprise.SpamCrusherEnte.1")
SpamCrusher.SetCurrentUser(Session("UserId"))
Phrases = Request.Form("lstPhrases")
'************Delete multiple phrases at once
StartPos = 1
EndPos = InStr(StartPos, Phrases, ", ")
do while (EndPos>0)
Str = Mid(Phrases, StartPos, EndPos-StartPos)
StartPos = EndPos+2
EndPos = InStr(StartPos, Phrases, ", ")
SpamCrusher.DeleteAcceptablePhrase(Str)
loop
Str = Mid(Phrases, StartPos)
SpamCrusher.DeleteAcceptablePhrase(Str)
SpamCrusher.Logoff()
Response.Redirect("acceptablephrases.asp")
Else
' add button
Response.Redirect("addPhrase.asp")
End If
Response.Write("")
%>
</body>
</html>