








|
|
User Identification
Please type your name and address in the space provided.
This information is necessary for processing your sign-up information and will be kept confidential.
|
|
<%
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% END PAGE 2
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% BEGIN PAGE 3
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Case "Page3"
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%>
<% If region = "" Then %>
<% Else %>
Dial Up Access









|
Phone Number
Please type your phone number in the space provided.
This information is needed to verify your account, and will be kept confidential.
|
<% End If %>
<%
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% END PAGE 3
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% BEGIN PAGE 4
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Case "Page4"
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%>
Account Information









|
Account Information
Please enter the user name you'd like to use here,
and choose the type of account you would like.
|
<%
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% END PAGE 4
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% BEGIN CheckLogin
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Case "CheckLogin"
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%>
<% If accounttype = "" Then %>
Oops!You forgot to select an account type! Please hit the back button on your browser and try again.
<% Else %>
<%
response.write (request.form("login") & request.form("liste"))
Set checklogin_conn = Server.CreateObject("ADODB.Connection")
checklogin_conn.Open "DSN=emerald", "sa", "!60740EU"
checklogin_sql = "SELECT Login"
checklogin_sql = checklogin_sql & " FROM SubAccounts "
checklogin_sql = checklogin_sql & " WHERE (Login = "
checklogin_sql = checklogin_sql & "'" & login & "'"
checklogin_sql = checklogin_sql & ")"
Set checklogin_rs = Server.CreateObject("ADODB.Recordset")
checklogin_rs.Open checklogin_sql, checklogin_conn, 3, 3
Set Executor = Server.CreateObject("ASPExec.Execute")
'Executor.Application = "cmd /c d:\ASP_Scripts\signup_scott\check.bat"
Executor.Parameters = login
strResult = Executor.ExecuteDosApp
'Response.write(strResult)
'Response.write(inStr(strResult, "ERR"))
Set Executor2 = Server.CreateObject("ASPExec.Execute")
'Executor2.Application = "cmd /c d:\ASP_Scripts\signup_scott\checkAlias.bat"
Executor2.Parameters = login
strResult2 = Executor2.ExecuteDosApp
'Response.write(strResult2)
'Response.write(inStr(strResult2, login&"="))
%>
<%
if checklogin_rs.RecordCount = adUnknown And login <> "" and inStr(strResult, "ERR") = 1 and inStr(strResult2, login&"=") =0 Then
Response.write" Dial Up Information"
else
Response.write" Error Dial Up User Name already used !"
end if
%>
|
|
<%
if checklogin_rs.RecordCount = adUnknown And login <> "" and inStr(strResult, "ERR") = 1 and inStr(strResult2, login&"=") =0 then
Response.write"User Name"
else
Response.write"Please choose another user name"
end if
%>
|
|
<%
if checklogin_rs.RecordCount = adUnknown And login <> "" and inStr(strResult, "ERR") = 1 and inStr(strResult2, login&"=") =0 then
Response.write"User Name Information "
else
Response.write"The username you chose is already used. "
end if
%>
<%
if checklogin_rs.RecordCount = adUnknown And login <> "" and inStr(strResult, "ERR") = 1 and inStr(strResult2, login&"=") =0 then
Response.write" This is information for your Dial Up Account. "
Response.write"This information will be pre-configured at the end of this sign-up, "
Response.write"however, you should take a moment now to write this info down or print this page "
Response.write"and put it in a safe spot. If you ever have a problem connecting, "
Response.write"the first thing technical support will ask for is your user name."
Response.write" Your E-mail name and password will be the same as your dial up name and password. "
else
Response.write" We are sorry, but the user/login name you have chosen"
Response.write" is already in use by another Roguelink customer. "
Response.write"Please enter a new user name in the " & Chr(34) & "user/login name" & Chr(34) & " box beside here. "
end if
%>
|
|
<% End If %>
<%
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% END CheckLogin
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% BEGIN PAGE 5
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Case "Page5"
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%>
<% Set emerald = Server.CreateObject("ADODB.Connection")
emerald.Open "DSN=68.185.17.143","onlineasp", "ok4asp!"
Set SystemRS = emerald.execute("select systemtype from systemtypes")
Set ModemRS = emerald.execute("select modemspeed from modemspeeds")
Set SoftRS = emerald.execute("select netsoftware from netsoftwares")
%>
Technical Information









|
Computer
|
Technical Information
This section is designed to give Roguelink's technical support team
some information about your computer.
The information provided here will be used in future technical support
calls that you may place.
Please try to fill in as much of this as you can.
If you can't find the answer to a question please select "UnKnown".
You may be asked at a later date to try to find this
information so that we may better support you.
|
|
<%
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% END PAGE 5
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% BEGIN PAGE 6
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Case "Page6"
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%>
<% If systemtype = "" Then %>
Oops!You forgot to select which Operating System you are using. If your Operating System is not listed, or you do not know what Operating System you are using, please call (541) 471-0052 for assistance.
<% ElseIf modemspeed = "" Then %>
Oops!You forgot to select what speed your modem is. If you do not know your modem speed, please call (541) 471-0052 for assistance.
<% ElseIf netsoftware = "" Then %>
Oops!You forgot to select which Browser you are using. If your browser is not listed, or you do not know which browser you are using, please call (541) 471-0052 for assistance.
<% Else %>
Billing Information









|
Payment
|
Billing Information
Please enter your Credit Card type here.
Then enter the number of the Credit Card in the space named "Card number".
Also enter the Expiration Date of the card in the "Expiration Date" fields.
If the date of the card can not be matched to the dates here, then please
call our technical support line. The Name on the Credit Card should be in the
"Name on card" field.
|
|
<% End IF %>
<%
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% END PAGE 6
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% BEGIN PAGE BadCC
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Case "BadCC"
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%>
Bad Credit Card Information









|
Credit Card
|
Credit Card Information
You have entered invalid credit card information.
Please check your Credit Card and re-enter the information.
|
|
<%
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% END BadCC
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% BEGIN PAGE 7
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Case "Page7"
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%>
<% If sendmeth = "" Then %>
Oops!You forgot to select how you would like to recieve your invoice! Please click the back button on your browser and try again.
<% ElseIf payperiod = "" Then %>
Oops!You forgot to select a billing period! Please click the back button on your browser and try again.
<% Else %>
Internet Account Summary









|
Summary
|
Review your account information
Please take a minute to review your account information, to make sure
everything is correct.
To make changes, click the button for the section you want to modify.
Click "Submit" to send your account information to Roguelink and
complete the sign-up process.
|
|
<% End If %>
<%
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% END PAGE 7
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% BEGIN PAGE CancelPage
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Case "CancelPage"
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Session.Abandon
Response.Redirect("http://www.Roguelink.net")
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% END CancelPage
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% BEGIN Finish
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Case "Finish"
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% Perform Data Validation
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
if fname = "" or _
sendmeth = "" or _
lname = "" or _
addr1 = "" or _
city = "" or _
state = "" or _
zip = "" or _
HomeAreac = "" or _
HomeExch = "" or _
HomeLast4 = "" or _
ccard = "" or _
ccard = "Unknown Card Type" or _
cardnum = "" or _
cardexp = "" or _
cardname = "" _
then %>
Error









|
Warning !
|
Error !
An error has occured.
|
An error has occured when you clicked on the "Submit" button. There are two possible reasons :
- Your submission has already been registered. You can now go back to Roguelink homepage.
- You did not fill all the required fields. Click on the "Back" button and check your submission information.
|
|
<% else
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% Insert the Information into the Database
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
if salespers="" then
salespers="Signup Server"
end if
if isNumeric(sendmeth) then
sendmeth = cint(sendmeth)
end if
Set insert_conn = Server.CreateObject("ADODB.Connection")
insert_conn.Open "DSN=68.185.17.143", "onlineasp", "ok4asp!"
insert_sql = "INSERT INTO MasterAccounts "
insert_sql = insert_sql & "(active, "
insert_sql = insert_sql & "firstname, "
insert_sql = insert_sql & "lastname, "
insert_sql = insert_sql & "address1,"
insert_sql = insert_sql & "address2, "
insert_sql = insert_sql & "city, "
insert_sql = insert_sql & "state, "
insert_sql = insert_sql & "zip, "
insert_sql = insert_sql & "phonehome, "
insert_sql = insert_sql & "phonework, "
insert_sql = insert_sql & "phonefax, "
insert_sql = insert_sql & "PayMethod, "
insert_sql = insert_sql & "creditcardnumber, "
insert_sql = insert_sql & "creditcardexpire, "
insert_sql = insert_sql & "creditcardauth, "
insert_sql = insert_sql & "GroupID, "
insert_sql = insert_sql & "PayPeriod, "
insert_sql = insert_sql & "Region, "
insert_sql = insert_sql & "Extension, "
insert_sql = insert_sql & "SalesPerson, "
insert_sql = insert_sql & "LastModifyUser,"
insert_sql = insert_sql & "PayInfo,"
insert_sql = insert_sql & "SendMethod, "
insert_sql = insert_sql & "BillingCycleID, "
insert_sql = insert_sql & "BilledThru"
insert_sql = insert_sql
insert_sql = insert_sql & ") "
insert_sql = insert_sql & "VALUES("
insert_sql = insert_sql & "-1, "
insert_sql = insert_sql & CheckString(fname,",")
insert_sql = insert_sql & CheckString(lname,",")
insert_sql = insert_sql & CheckString(addr1,",")
insert_sql = insert_sql & CheckString(addr2,",")
insert_sql = insert_sql & CheckString(city,",")
insert_sql = insert_sql & CheckString(state,",")
insert_sql = insert_sql & CheckString(zip,",")
insert_sql = insert_sql & "'" & HomeAreac & "-" & HomeExch & "-" & HomeLast4 & "',"
if WorkAreac = "" _
then
insert_sql = insert_sql & "' ', "
else
insert_sql = insert_sql & "'" & WorkAreac & "-" & WorkExch & "-" & WorkLast4 & "',"
end if
if FAXAreac = "" _
then
insert_sql = insert_sql & "' ', "
else
insert_sql = insert_sql & "'" & FAXAreac & "-" & FAXExch & "-" & FAXLast4 & "',"
end if
CurrentDate = Date
insert_sql = insert_sql & "'Credit Card',"
insert_sql = insert_sql & CheckString(cardnum,",")
insert_sql = insert_sql & CheckString(cardexp,",")
insert_sql = insert_sql & CheckString(cardname, ",")
insert_sql = insert_sql & "1, "
insert_sql = insert_sql & CheckString(payperiod, ",")
insert_sql = insert_sql & CheckString(region, ",")
insert_sql = insert_sql & "10, "
insert_sql = insert_sql & CheckString(salespers, ",")
insert_sql = insert_sql & CheckString(salespers, ",")
insert_sql = insert_sql & CheckString(payinfo, ",")
insert_sql = insert_sql & sendmeth & ", "
insert_sql = insert_sql & "1, "
insert_sql = insert_sql & "'" & CurrentDate & "'"
insert_sql = insert_sql & ")"
'Response.write insert_sql
Set insert_RS = insert_conn.Execute(insert_sql)
insert_conn.Close
Set getcustid_conn = Server.CreateObject("ADODB.Connection")
getcustid_conn.Open "DSN=68.185.17.143", "onlineasp", "ok4asp!"
getcustid_sql = "SELECT CustomerID"
getcustid_sql = getcustid_sql & " FROM MasterAccounts "
getcustid_sql = getcustid_sql & " WHERE (FirstName="
getcustid_sql = getcustid_sql & "'" & fname & "'"
getcustid_sql = getcustid_sql & " AND LastName="
getcustid_sql = getcustid_sql & "'" & lname & "'"
getcustid_sql = getcustid_sql & " AND Address1="
getcustid_sql = getcustid_sql & "'" & addr1 & "'"
getcustid_sql = getcustid_sql & " AND Region="
getcustid_sql = getcustid_sql & "'" & region & "'"
getcustid_sql = getcustid_sql & " AND PhoneHome="
getcustid_sql = getcustid_sql & "'" & HomeAreac & "-" & HomeExch & "-" & HomeLast4 & "'"
getcustid_sql = getcustid_sql & " AND SalesPerson ="
getcustid_sql = getcustid_sql & "'" & salespers & "'"
getcustid_sql = getcustid_sql & ")"
'Response.write getcustid_sql
Set getcustid_rs = Server.CreateObject("ADODB.Recordset")
getcustid_rs.Open getcustid_sql, getcustid_conn, 3, 3
getcustid_rs.MoveLast
'Response.write getcustid_rs.Fields("CustomerID").Value
Set insertSub_conn = Server.CreateObject("ADODB.Connection")
insertSub_conn.Open "DSN=68.185.17.143", "onlineasp", "ok4asp!"
insertSub_sql = "INSERT INTO SubAccounts "
insertSub_sql = insertSub_sql & "(CustomerID, "
insertSub_sql = insertSub_sql & "Login, "
insertSub_sql = insertSub_sql & "Email, "
insertSub_sql = insertSub_sql & "FirstName,"
insertSub_sql = insertSub_sql & "LastName, "
insertSub_sql = insertSub_sql & "PhoneHome, "
insertSub_sql = insertSub_sql & "PhoneWork, "
insertSub_sql = insertSub_sql & "AccountType, "
insertSub_sql = insertSub_sql & "Discount, "
insertSub_sql = insertSub_sql & "Description, "
insertSub_sql = insertSub_sql & "Password, "
insertSub_sql = insertSub_sql & "SystemType, "
insertSub_sql = insertSub_sql & "ModemSpeed, "
insertSub_sql = insertSub_sql & "NetSoftware, "
insertSub_sql = insertSub_sql & "Operator, "
insertSub_sql = insertSub_sql & "LastModifyUser, "
insertSub_sql = insertSub_sql & "LoginLimit, "
insertSub_sql = insertSub_sql & "saCurrent "
insertSub_sql = insertSub_sql & ") "
insertSub_sql = insertSub_sql & "VALUES("
insertSub_sql = insertSub_sql & getcustid_rs.Fields("CustomerID").Value & ","
insertSub_sql = insertSub_sql & CheckString(login,",")
insertSub_sql = insertSub_sql & CheckString(email,",")
insertSub_sql = insertSub_sql & CheckString(fname,",")
insertSub_sql = insertSub_sql & CheckString(lname,",")
insertSub_sql = insertSub_sql & "'" & HomeAreac & "-" & HomeExch & "-" & HomeLast4 & "',"
if WorkAreac = "" _
then
insertSub_sql = insertSub_sql & "' ', "
else
insertSub_sql = insertSub_sql & "'" & WorkAreac & "-" & WorkExch & "-" & WorkLast4 & "',"
end if
insertSub_sql = insertSub_sql & CheckString(accounttype,",")
insertSub_sql = insertSub_sql & "'Normal','"
insertSub_sql = insertSub_sql & " " & "','"
insertSub_sql = insertSub_sql & password & "',"
insertSub_sql = insertSub_sql & CheckString(systemtype,",")
insertSub_sql = insertSub_sql & CheckString(modemspeed,",")
insertSub_sql = insertSub_sql & CheckString(netsoftware,",")
insertSub_sql = insertSub_sql & CheckString(salespers,",")
insertSub_sql = insertSub_sql & CheckString(salespers,",")
insertSub_sql = insertSub_sql & "1,"
insertSub_sql = insertSub_sql & "-1)"
'Response.write insertSub_sql
Set insertSub_RS = insertSub_conn.Execute(insertSub_sql)
insertSub_conn.Close
getcustid_rs.Close
getcustid_conn.Close
TempVar = SendTheMail
Response.write TempVar & " "
'Set Executor = Server.CreateObject("ASPExec.Execute")
'Executor.Application = "cmd /c d:\ASP_Scripts\signup_scott\add.bat"
'Executor.Parameters = " " & login & " " & fname & " " & lname & " " & password
'strResult = Executor.ExecuteDosApp
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% Write information out to a text file
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Set fs = CreateObject("Scripting.FileSystemObject")
filepath = server.mappath("install.ins")
filepath2 = server.mappath("insfiles/new" & login & ".ins")
'Response.write filepath
'Response.write filepath2
Set a = fs.OpenTextFile(filepath, 1, FALSE)
Set b = fs.CreateTextFile(filepath2, True)
EntireFile = a.ReadAll
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% START install.ins Customization
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
b.WriteLine ("[User]")
b.WriteLine ("Requires_Logon=Yes")
b.WriteLine ("Name=" & login)
b.WriteLine ("Password=" & password)
b.WriteLine ("")
b.WriteLine ("[Phone]")
b.WriteLine ("Phone_Number=" & ISPPhoneNumber)
b.WriteLine ("Area_Code=" & ISPAreaCode)
b.WriteLine ("Country_Code=1")
b.WriteLine ("Country_ID=1")
b.WriteLine ("Dial_As_Is=Yes")
b.WriteLine ("")
b.WriteLine ("[Internet_Mail]")
b.WriteLine ("Name=" & login)
b.WriteLine ("Password=" & password)
b.WriteLine ("Email_Name=" & fname & " " & lname)
b.WriteLine ("POP_Logon_Name=" & login)
b.WriteLine ("POP_Logon_Password=" & password)
b.WriteLine ("Email_Address=" & email)
b.WriteLine ("Domain=Roguelink.net")
b.WriteLine ("Window_Title=Outlook Express provided by Roguelink Internet Explorer")
b.WriteLine ("Use_IMAP=No")
b.WriteLine ("SMTP_Server=smtp.Roguelink.net")
b.WriteLine ("POP_Server=pop.Roguelink.net")
b.WriteLine ("Default_Client=Yes")
b.WriteLine ("Logon_Using_SPA=No")
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% END install.ins Customization
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
b.WriteLine("")
b.WriteLine (EntireFile)
b.Close
a.Close
Response.write(" Signup completed Congratulations ! Your account has been successfully created ! If your computer is an IBM PC comptatible and that you use Internet Explorer, you can now ")
Response.write(" download")
Response.write(" this script which will setup your computer to use your Roguelink Account. You just have to click on download then select Save File to Disk and then OK.")
Response.write(" When this is done, just double-click on this file and your Internet configuration will be automatically upgraded ! ")
Response.write("Otherwise, please follow the instructions for manual configuration")
Response.write(" ")
'Response.write(" Medford Setup")
Response.write("Remember, your Roguelink email account will be activated 1 business day after your dialup access account has been activated. ")
Response.write("If you have any problem, please contact us at 471-0457.")
Response.write(" Exit")
Response.write("")
Session.Abandon
end if
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% END Finish
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'% BEGIN Else
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Case Else
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Response.write "An unexpected error has occured. Please contact support@Roguelink.net"
End Select
%>
| | | | | | | |