I'd assume you'd need access to the MPGH database.
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.
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
Last edited by NextGen1; 02-20-2010 at 03:59 PM.
crinklymilk (10-12-2012),XGelite (02-22-2010)
Thanks NextGen, that will probably work.
Not a problem, should do just fine as a way around using databases
The Actual Code to log into MPGH.net is
Because it has been asked 4 times alreadyCode:' 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")