home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.americansys.com
/
2014.06.ftp.americansys.com.tar
/
ftp.americansys.com
/
spamcrusherenterprise.exe
/
web
/
procaddrbook.asp
< prev
next >
Wrap
Text File
|
2004-04-02
|
2KB
|
68 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)
PostData = ""
Dim biData
biData = Request.BinaryRead(Request.TotalBytes)
'Careful! It's binary! So, let's change it into
'something a bit more manageable.
For nIndex = 1 to LenB(biData)
PostData = PostData & Chr(AscB(MidB(biData,nIndex,1)))
Next
ContentType = Request.ServerVariables("HTTP_CONTENT_TYPE")
ctArray = Split(ContentType, ";")
bArray = Split(Trim(ctArray(1)), "=")
Boundary = Trim(bArray(1))
'Now use that to split up all the variables!
FormData = Split(PostData, Boundary)
InfoEnd = InStr(FormData(1), EOLN & EOLN)
If InfoEnd > 0 Then
'Get info for this field, minus stuff at the end
VarInfo = Mid(FormData(1), 3, InfoEnd - 3)
'Get value for this field, being sure to skip
'CrLf pairs at the start and the CrLf at the end
FileContents = Mid(FormData(1), InfoEnd + 4, Len(FormData(1)) - InfoEnd - 7)
'Is this a file?
End If
'*** FileContents contains the file data
EOLN = chr(13) + chr(10)
Set SpamCrusher = Server.CreateObject("SpamCrusherEnterprise.SpamCrusherEnte.1")
SpamCrusher.SetCurrentUser(Session("UserId"))
Error = ""
Error = SpamCrusher.ImportAddressBook(FileContents)
SpamCrusher.Logoff()
Response.Write(FileContents)
Response.Redirect("friends.asp")
Response.Write("")
%>
</body>
</html>