QuestionMPGH Login Script(Help)

Posts 1–8 of 8 · Page 1 of 1
MPGH Login Script(Help)
Would it be possible to create a script in which the user has to log in to MPGH to continue? E.G. I have a Blackjack game i'm thinking of releasing + source to help ppl code, but I wanted to make the hacks accessible only by an MPGH account.



At the moment it works with an application-defined password, but I was wondering if there was a way to make it operate off user credentials.
I'd assume you'd need access to the MPGH database.
Quote Originally Posted by Lolland View Post
I'd assume you'd need access to the MPGH database.
which would need dave's consent, which is usually no
Use Mpgh.net database, Which will never happen

.......... Think Outside The Box..........

GetElementByID + Knowing what Element is displayed when a user is/is not logged in.

The easy method to see if a member is logged in is to look for the ID navbar_search programatically

If it exists the user is logged in, Search Button doesn't exisit unless the user is logged in.

That's an easy way to authenticate the user based on "logged in" or not

So the theory is .....

Form Login Loads
It then Checks form2.webbrowser for the elementID " navbar_search "

If it exisit Label1 = Welcome MPGH.net user

If Element ID navbar_search doesn't exisit
Textbox1.visibility = true , textbox2.Visibility = true
Label 1 = please login , that login gets sent using getelementbyid

and you have a way to authenticated a mpgh.net user
Thanks NextGen, that will probably work.
Not a problem, should do just fine as a way around using databases
What nextgen said.
The Actual Code to log into MPGH.net is
Code:
' To login to Mpgh.net programatically
WebBrowser1.Document.GetElementsByID("navbar_username").Innertext = textbox1.text
WebBrowser1.Document.GetElementsByID("navbar_password").Innertext = textbox2.text
WebBrowser1.Document.Forms(0).InvokeMember("submit")
Because it has been asked 4 times already
Posts 1–8 of 8 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us