ASP/VBScript
(requires MSXML)
<%@LANGUAGE="VBScript"%>
<%
' syntax : conob.asp?code=username:password:secret:type
' username = an integer
' password = a string of non capital letters
' secret = a string of letter both capital and non capital
' type = 'add', or 'remove'
'SHORT INSTALLATION GUIDE
'Enter the URL of your conob.asp script in the settings(URL) in your account at www.conob.com
'Change the value of the variable, "secret", below
'Make the changes needed to add/remove information from your database
Dim username, password, mysecret, type, tariff_USD, payout_USD
Dim code
Dim myArray() As String
'**********************************
Dim secret As String = "Enter the Account secret here!"
' This is the secret given to you by CONOB.
'**********************************
' assign posted variable to a local variable
code = Request.Form("code")
' split the code value into local variables
myArray() = Split(code,":")
username = myArray(0)
password = myArray(1)
mysecret = myArray(2)
type = myArray(3)
'Check if the secret is correct
if mySecret = secret then
if type = "add" then
'Insert the username/password into the database
'Write to log file
end if
if type = "remove" then
'Find the username/password in the database and delete that post from the database.
'Write to log file
end if
else
'Write to log file that the secret was incorrect. This should be investigated!!
end if
%>
Jo jag förstod nästan att det inte går att konvertera automatiskt.
Men här har du koden, hoppas det går bra.....tack för hjälpen.
/TranceMaster