Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. Imports System.Net
  2.  
  3. Public Class myBB
  4. Inherits Forum
  5.  
  6. Public Sub New(ByVal url As String, ByVal username As String, ByVal password As String)
  7. MyBase.New(url, url & "/member.php?action=login", username, "mybbuser", "", "username=" + username & "&password=" + password & "&submit=Login&action=do_login&url=")
  8. End Sub
  9.  
  10. Public Overrides Function isLoggedIn(ByVal cookies As System.Net.CookieContainer) As Boolean
  11. If Not IsNothing(cookies.GetCookies(New Uri(url)).Item(defaultCookieName)) Then
  12. Return True
  13. End If
  14. Return False
  15. End Function
  16. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement