<%@ LANGUAGE="VBSCRIPT" %> <%If Request.ServerVariables("REQUEST_METHOD") <> "POST" Then%> <%Call AutoSSL("")%> <%End If%> <% Session(DSN+"apply"+"M1") = "Email '" Session(DSN+"apply"+"M11") = "Your Email is required." Session(DSN+"apply"+"M2") = "' has already been used." Session(DSN+"apply"+"M21") = "' is invalid." Session(DSN+"apply"+"M3") = "User Name '" Session(DSN+"apply"+"M4") = "' has already been used. Please select a different one." Session(DSN+"apply"+"M5") = "New Member: " Session(DSN+"apply"+"M6") = "Account No: " Session(DSN+"apply"+"M61") = "Account Type: " Session(DSN+"apply"+"M7") = "has just signed up. Requires manual activation." Session(DSN+"apply"+"E0") = "Both User Name and Password are required." Session(DSN+"apply"+"E1") = "Invalid Credit Card: " Session(DSN+"apply"+"E2") = "Wrong type; " Session(DSN+"apply"+"E3") = "Wrong length; " Session(DSN+"apply"+"E4") = "Wrong number; " Session(DSN+"apply"+"E5") = "Unknown card type; " Session(DSN+"SessionFields") = "FirstName,LastName,Email" 'To remember these fields as Session Variables, e.g. Session(DSN+"FirstName") 'after login is verified. 'The fields must exist in the Members table. Dim sAffiliate Const DaysToKeep = 7 sAffiliate = Request("Affiliate") If Len(sAffiliate) <> 0 Then Response.Cookies("Affiliate") = sAffiliate Response.Cookies("Affiliate").Expires = Date + DaysToKeep Response.Cookies("Affiliate").Path = "/" End If %> <%Call CreateMyObject %> <% 'Page variables Dim sStr 'Output Variables Dim sGoBack If IsObject(MyObject) Then sGoBack = MyObject.sGoBack End If 'Use this function to send further email notification or acknowledgment etc. Function SendMail1(sSender, sOrgEmail, sDestName, sDestEmail, sSubject, ByRef sText, bHTML, bIncoming, sAttach) If IsObject(MyObject) Then SendMail1 = MyObject.SendMail1(sSender, sOrgEmail, sDestName, sDestEmail, sSubject, sText, bHTML, bIncoming, sAttach) End If End Function %> <% 'The email(s) is sent when a new account is created. Feel free to alter the email contents. Sub SendEmails() Dim sText, crlf, sAdminEmail, sAdminName, sSubject, sName, sEmail crlf = Chr(13) & Chr(10) sAdminEmail = GetData("Admin", "AdminEmail") sAdminName = GetData("Admin", "AdminName") bAdminEmail = True If IsNull(Session(DSN+"Cancel")) Or Len(Session(DSN+"Cancel")) = 0 Then Session(DSN+"Cancel") = 0 End If If IsNull(Session(DSN+"Balance")) Or Len(Session(DSN+"Balance")) = 0 Then Session(DSN+"Balance") = 0 Else Session(DSN+"Balance") = CDbl(Session(DSN+"Balance")) End If If Session(DSN+"Cancel") = 0 Or Session(DSN+"Balance") <> 0 Then sSubject = "New Member Sign Up Account - " & Session(DSN+"Account") sText = "Dear Admin," & crlf & crlf & "A new member has signed up. Use the Membership Manager to view the new member's details or click below:" sText = sText & crlf & GetCurrentURL(Request, False) & "detail.asp?Account=" & _ Server.URLEncode(Session(DSN+"Account")) sText = sText & crlf & crlf & Session(DSN+"SiteName") & " Automatic System Message" Call SendMail1(sAdminName, sAdminEmail, sAdminName, sAdminEmail, sSubject, sText, False, False, "") End If sName = GetRequest("FirstName") & " " & GetRequest("LastName") sEmail = GetRequest("Email") sSubject = "Welcome to " & Session(DSN+"SiteName") & "!" sText = "Dear " & sName & ", " & crlf & crlf & _ "Thank You for joining " & Session(DSN+"SiteName") & "." & crlf & crlf If Session(DSN+"Cancel") <> 0 Then If Session(DSN+"Balance") = 0 Then sText = sText & "You will be notified as soon as your account is activated. If you have any queries, don't hesitate to contact us." & crlf & crlf Else sText = sText & "Your account will be activated as soon as the joining fee is paid. If you have any queries, don't hesitate to contact us." & crlf & crlf End If Else If GetRequest("UserName") <> Session(DSN+"UserName") Or _ GetRequest("Password") <> Session(DSN+"Password") Then sText = sText & "Here is the Link to Update your Account Information with us," & crlf & Chr(9) sText = sText & GetCurrentURL(Request, False) & "update.asp?UserName=" & _ Server.URLEncode(Session(DSN+"UserName")) & _ "&Password=" & Server.URLEncode(Session(DSN+"Password")) & crlf & crlf End If sText = sText & "For your convenience, use the online messaging facility to communicate with our staff:" & crlf & _ GetCurrentURL(Request, False) & "custom17.asp" & crlf & crlf End If ' sText = sText & "[Add your own messages here]" & crlf & crlf & _ sText = sText & "Warmest regards," & crlf & crlf & _ sAdminName & crlf & _ Session(DSN+"SiteName") & crlf & _ sAdminEmail & crlf Call SendMail1(sAdminName, sAdminEmail, sName, sEmail, sSubject, sText, False, False, "") End Sub %> <%=Session(DSN+"SiteName")%> Sign Up Sheet " background="<%=Session(DSN+"Background")%>"> <%If Len(Session(DSN+"Error")) > 0 Then%>

<%=Session(DSN+"Error")%>

<% Response.Write "" CloseDatabase Response.End %> <%ElseIf Request.ServerVariables("REQUEST_METHOD") = "POST" Then%> <%Call SendEmails%>

<%=Session(DSN+"SiteName")%>

" Method="POST">
">"> <%If Session(DSN+"EncryptPrice") = True Then%> "> <%End If%> ">
<%If IsNull(Session(DSN+"Cancel")) Or Session(DSN+"Cancel") = 0 Then%> <%If Session(DSN+"BuyerPoints") = True Then%> <%End If%> <%Else%> <%If Not IsNull(Session(DSN+"Balance")) Then%> <%If CDbl(Session(DSN+"Balance")) > 0 Then%> <%End If%> <%End If%> <%Session(DSN+"Account") = "" 'Disable Login%> <%End If%>
Account No.: " size="20" maxlength="30">
Available Points: ">
Your application is pending activation/approval.
The account will be activated <%If Not IsNull(Session(DSN+"ExpiryDate")) Then%> <%If IsDate(Session(DSN+"ExpiryDate")) Then %> and remain valid till <%=FormatDateTime2(Session(DSN+"ExpiryDate"),2)%>
<%End If%> <%End If%> upon payment of <%=FormatPrice(Session, Session(DSN+"Balance"))%> joining fee.
 |  Pay Now

Take me to ...
<%If InStr(1, Session(DSN+"GoBack"), "checkout.asp", 1) <> 0 Then%>  | Back to Check Out... <%Else%>  | Go Back <%End If%>
<%Else%>

<%=Session(DSN+"SiteName")%> Sign up for a customer account now <%If Request.ServerVariables("SERVER_PORT_SECURE") <> 0 Then%> <%End If%>

- All information provided will be kept confidential.
- Fields that are marked with * are mandatory.
"><%=SetGoBack()%>
<% If Session(DSN+"DoCreditCards") <> 0 Then%> <%End If%>
To create an account please specify your preferred account details
Preferred login settings to your account.
User Name*: " size="20" maxlength="30">
Password*: ">
Confirm*: ">
Private Question: ">
  e.g.: What is your mother's maiden name?
Answer to Question: ">
Account Type:
Personal Information
Please enter your name and contact information here.
First*: " size="15" maxlength="15">
Last*: ">
Company: ">
Email*: ">
Repeat Email: " onBlur="if (this.form.Email.value != this.value) alert('Two emails do not match. Please make sure they are identical and correct.')">
(enter again, don't copy-paste)
  Would you like to be included in our mailing list?
Phone*: ">
Fax: ">
Where did
you find us:
">
Delivery Details
Address to which your order(s) will be shipped.
Recipient: ">
(full name of addressee)
Address 1*: ">
Address 2: ">
City*: ">
State/Province*: " onblur="GetStateAbbrev(this)">
Postal Code*: ">
(The delivery cost may vary upon the destination region/country.)
Region/Country*: <%sStr = ListCountries()%> <%If Len(sStr) <> 0 Then%> <%Else%> "> <%End If%>
Your Comments:
Consultant ID: ">
Billing Address
Check here   if same as the delivery address.
Address 1: ">
Address 2: ">
City: ">
State/Province: " onblur="GetStateAbbrev(this)">
Postal Code: ">
Country: ">
Payment Information
Credit Card Type:
Credit Card Number:
Expiration Date: /
Name On Card:
CVV2/CVC2 (Help!):
Card Holder Phone:
Apply Now | Go Back
<%End If%>
  Thanks for choosing Adultery - we really appreciate your custom.
<%CloseDatabase%>