Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. Public Function Connect(User As String, Password As String) As Integer
  2. Dim Response As String
  3. Dim SessionID As String = RandomChar(10)
  4. Response = GetResponse(SessionID, "http://exemple.com/action.php?" &
  5. "action=connect" &
  6. "&sessionID=" & SessionID &
  7. "&user=" & User &
  8. "&password=" & Password)
  9. If Response = Nothing Then Return 0
  10. If CheckError(Response) = True Then Return 0
  11. If Not Response.StartsWith("OK") Then
  12. ErrorMsg("Erreur")
  13. Return 0
  14. End If
  15. Return If(Response.EndsWith("1"), 2, 1)
  16. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement