Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.62 KB | None | 0 0
  1. Imports System.Net
  2.  
  3. Public Class phpBB2
  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 & "/login.php", username, "phpBB_WBB_data", "userid%22%3Bi%3A-1%3B%7D", "&username=" + _
  8.   username + "&password=" + password + "&autologin=on&login=Log+in")
  9.     End Sub
  10.  
  11.     Public Overrides Function isLoggedIn(ByVal cookies As System.Net.CookieContainer) As Boolean
  12.   If Not cookies.GetCookies(New Uri(url)).Item(defaultCookieName).Value.Contains(defaultCookieSearch) Then
  13.     Return True
  14.   End If
  15.   Return False
  16.     End Function
  17. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement