<%@LANGUAGE="VBSCRIPT"%> <% '=============================================== ' Personals System 2002 ' ©2002 vSpin.net. www.vspin.net '=============================================== ' All rights reserved. ' Use of this code is covered by the terms and ' conditions in the license agreement. No ' unauthorized duplication or distribution is ' permitted. vSpin.net copyright notices must ' remain in the ASP sections of the code. '=============================================== %> <% dim xxxxm, rsheadUpdatee, rsheadUpdatee_numRows Dim textfield, textfield3, textfield4, textfield5, textfield6, textfield7, textfield8, textfield9, textfield10, textfield11, checkbox, SAVECOOKIES, rsup, rsup_numRows, textfield2, ipaddy, thequery, p_id, rsdup, rsdup_numRows, MM_editAction Function sqlsafe(s) pos = InStr(s, "'") While pos > 0 s = Mid(s, 1, pos) & "'" & Mid(s, pos + 1) pos = InStr(pos + 2, s, "'") Wend sqlsafe=s End Function if request.form("MM_insert") = "true" then textfield = request.form("textfield") set rsdup = Server.CreateObject("ADODB.Recordset") rsdup.ActiveConnection = MM_conn_STRING rsdup.Source = "SELECT p_user FROM p_users WHERE p_user = '" + Replace(textfield, "'", "''") + "'" rsdup.CursorType = 0 rsdup.CursorLocation = 2 rsdup.LockType = 3 rsdup.Open() rsdup_numRows = 0 if NOT request.form("textfield2") = request.form("textfield12") then message = 53 rsdup.close set rsdup = nothing elseif ucase(request("textfield")) = ucase("Administration") Then message = 54 rsdup.close set rsdup = nothing elseif ucase(request("textfield")) = ucase("Admin") Then message = 54 rsdup.close set rsdup = nothing elseif NOT rsdup.EOF And NOT rsdup.BOF then message = 52 rsdup.close set rsdup = nothing elseif request.form("textfield2") = request.form("textfield12") AND rsdup.EOF And rsdup.BOF AND NOT ucase(request("textfield")) = ucase("Administration") AND NOT ucase(request("textfield")) = ucase("Admin") Then textfield2 = request.form("textfield2") textfield3 = request.form("textfield3") textfield4 = request.form("textfield4") textfield5 = request.form("textfield5") textfield6 = request.form("textfield6") textfield7 = request.form("textfield7") textfield8 = request.form("textfield8") textfield9 = request.form("textfield9") textfield10 = request.form("textfield10") textfield11 = request.form("textfield11") checkbox = request.form("checkbox") ipaddy = Request.ServerVariables("REMOTE_ADDR") If rsdup.EOF And rsdup.BOF Then if request.form("SAVECOOKIES") = "yes" then Response.Buffer = True ' This script handles both the adding and deleting of cookies Dim strCookieName ' id Dim strCookiePass ' pass Dim strCookieValue ' The value to be assigned to it Dim strCookieValue2 ' The value to be assigned to it ' Get the values passed in by the other script strCookieName = "id" strCookiePass = "access" strCookieValue = request.form("textfield") strCookieValue2 = request.form("textfield2") ' If no name is passed in then we don't do anything If strCookieName <> "" AND strCookiePass <> "" Then If strCookieValue <> "" AND strCookieValue2 <> ""Then Response.Cookies(strCookiePass) = strCookieValue2 Response.Cookies(strCookiePass).Expires = Date() + 365 Response.Cookies(strCookieName) = strCookieValue Response.Cookies(strCookieName).Expires = Date() + 365 End If End If ElseIf request.form("SAVECOOKIES") <> "yes" then Response.Cookies("id") = "$" Response.Cookies("id").Expires = Date() + 1 Response.Cookies("access") = "$" Response.Cookies("access").Expires = Date() + 1 end if Session.Abandon Set Conn = Server.CreateObject("ADODB.Connection") Conn.Open MM_conn_STRING sql1 = "insert into p_users (p_user,p_password,p_state,p_first,p_last,p_email,p_phone,p_fax,p_address,p_city,p_zip,p_newsletter,p_ip) values('"& sqlsafe(textfield) & "','"& sqlsafe(textfield2) & "','"& textfield3 & "','"& sqlsafe(textfield4) & "','"& sqlsafe(textfield5) & "','"& sqlsafe(textfield6) & "','"& sqlsafe(textfield7) & "','"& sqlsafe(textfield8) & "','"& sqlsafe(textfield9) & "','"& sqlsafe(textfield10) & "','"& sqlsafe(textfield11) & "','"& checkbox & "','"& sqlsafe(ipaddy) & "')" conn.execute(sql1) SQL1 = "SELECT p_id FROM p_users WHERE p_user = '" + Replace(textfield, "'", "''") + "'" Set rsReg = conn.execute(sql1) p_id = rsReg("p_id") body = "Hello " & textfield4 & (" ") & textfield5 & vbCrLf & vbCrLf body = body & "Your username is: " & textfield & vbCrLf body = body & "Your password is: " & textfield2 & vbCrLf & vbCrLf body = body & "Your activation number is: " & p_id & vbCrLf & vbCrLf body = body & "You have a minimum of 24 hours to activate your account or the registration will be removed. Please use the link below to activate your account. " & vbCrLf & vbCrLf body = body & weburl & "activate.asp?activate=" & p_id & vbCrLf Dim objCDO, objConfig set objCDO = createobject("cdo.message") set objConfig = createobject("cdo.configuration") ' Setting the SMTP Server Set Flds = objConfig.Fields Flds.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 Flds.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.abac.com" Flds.update Set objCDO.Configuration = objConfig objCDO.To = textfield6 objCDO.From = webemail objCDO.Subject = "Activate your Personals Account!" objCDO.TextBody = body objCDO.fields.update objCDO.Send set objCDO = nothing set objConfig = nothing rsdup.close set rsdup = nothing conn.close set conn = nothing MM_conn_STRING.close set MM_conn_STRING = nothing set SQL = nothing set rsReg = nothing SAVECOOKIES = request.form("SAVECOOKIES") response.redirect("activate.asp?message=14&f=" & textfield4 & ("&l=") & textfield5 & ("&e=") & textfield6 & ("&c=") & SAVECOOKIES) end if end if end if %>

***AOL users- AOL tends to put our emails in your junk or spam mail folders. Be sure to check there for your activation email.

 

***MSN, HOTMAIL or Yahoo users- Make sure your account is not over its limit or you will not receive your activation email.

  
       *Required Fields
*Desired User ID
"> 14 characters max. Numbers & Letters only.
*Password " size="20"> 14 characters max. Numbers & Letters only.
*re-type Password " size="20"> 14 characters max. Numbers & Letters only.
*First Name:  "> 25 characters max.
*Last Name "> 25 characters max.
*E-mail Address "> Important: Account will require verification by email.
<% elseif request.form("checkbox") = "y" AND request.form("MM_insert") = "true" then %> checked<% else %> checked<% end if %>>Yes, send me emails of news & updates
checked<% end if %>>Remember my user id and password for login.
Read the Terms of Service.