%@ 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")%>

<%=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. |
| Thanks for choosing Adultery - we really appreciate your custom. |