Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Junior Member
    Join Date
    Dec 2009
    Posts
    23

    [HELP] Login System, combined with PHP - C# - MySQL

    Hi everyone,

    I wanted to start coding in C# and C++, since C# is a bit more simple than C++ I started a bit developping, and then i came on the idea of recreating the HelioS-Framework programm to see how far i can come, and finishing this to learn much about this.

    I've done the interface etc, but currently i'm trying to fix a Login System. People which i have talked to told me i had to use PHP in this, but i dont have any idea how to do this..

    Currently my knowledge wont go further than PHP, HTML, MySQL, CSS and a bit of JS.

    I really hoped you guys could try to help me here.

    I included my source + the .exe which i build.
    To login you can just press the Login button,,

    Greets,
    Me
    Attached Files Attached Files

  2. #2
    Junior Member
    Join Date
    Dec 2009
    Posts
    23

    Re: Login System, combined with PHP - C# - MySQL

    Hey, anyone already has an idea how to do this??

    And FreckleS,, I'm requesting for help, this is not a source about how to :P

  3. #3
    VIP FreckleS's Avatar
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    2,121

    Re: Login System, combined with PHP - C# - MySQL

    Oh crap sorry lol. Whats your problem?

    Are you accessing the database via the php script or through your program?
    "The pain you feel today, will be the strength you feel tomorrow"

  4. #4
    Junior Member
    Join Date
    Aug 2007
    Location
    Czech Republic
    Posts
    8

    Re: [HELP] Login System, combined with PHP - C# - MySQL

    Hey dude, u need to check mysql client and setup reader wich will compare string from textbox1(user) and second string(recommended to md5 hash like php) from textbox2 with data from mysql... Its the best way.. Other way is setup in php some login system with remote login function and setup a browser that u will navigate to that func like:
    Code:
     
    Webbrowser brwsr = new Webbrowser();
    brwsr.Navigate = "http://yourhosting/login.php?user="+textbox1.text+"&pass="+textbox2.text+"";
    u can add me on xfire and maybe i will be able to tell u more.. xf:wolunteer
    ............
    And now how i am using it in my loader...
    When user writes details into login form and click login, it will connect to mssql where are stored my users data(im preparing customers system for selling) and use there mysql command to make reader like
    Code:
    "SELECT * FROM customers WHERE name='+textbox1.text+'"
    and if reader has rows then continue check if this user is not online like i have in customers column online default no and by loader setting it to yes and when clicked logout then set back to no
    Code:
    string sOnline = sqlReader['online'];
    if( sOnline == no )
    {
     //next checks
    }
    else
    {
    //Msgbox that u cant connect to one account twice!
    }
    now you have to check if
    Code:
    textbox1.text = reader['name']
    and
    Code:
    textbox2.text = reader['pass']
    and if yes continue to next, or msgbox with error that bad password was entered...
    Continue to set the online status on YES and (coz of i wanna have php list of my customers (who is online) and my webhosting dont support mssql execute from php and there is disabled to connect to mysql remotely (i.e.:from my loader or from any sql manager) i have it setuped on 2 databases.... 1.mssql(for loader) and 2.mysql(for online list)) then setup new browser wich is navigated to (in my case im using
    Code:
    form.php?x=login&u=user&p=pass&o=yes
    coz i wanna have only one php file to whole control remote by webbrowser setuped in my loader)your remote login file with arguments from textbox1 and textbox2 and let the func make in mysql online column set to yes... Than open new form and the second one hide... In form2 u will make as logined user control like i have there listbox and buttons inject and logout wich if clicked inject it will write into listbox what is actually doing and do some stuff to inject my hook into game when 100% secured is and alp included in hack too, than will ask for game exe and execute game with hook injected... when click logout it will access mssql and set online to no and navigate webbrowser to logout and then close the whole program if u want more info write me on xf

    And now info for those peoples who preparing to leak me when i will release it: I HAVE ALL THE STUFF CHANGE FOR TELL HIM

  5. #5
    Junior Member
    Join Date
    Dec 2009
    Posts
    23

    Re: Login System, combined with PHP - C# - MySQL

    Quote Originally Posted by FreckleS View Post
    Oh crap sorry lol. Whats your problem?

    Are you accessing the database via the php script or through your program?
    I want to connect through PHP script =)
    The basic idea is to recreate the HelioS Client.Net..
    I just wanted to create a remote connection to my mysql database but i think it's way safer if it's going to happen through a PHP script.

    @nowolu
    Thanks, but it is a bit hard to understand what you actually mean aint ur fault but mine =) I understand with the tables with online = yes or no though..

    I can add you on Xfire,, but i dont think it'll help that much, because i might be asking almost everything, and than it's actually even easyer if you just gave me a complete working code.. and that aint going to happen =)

  6. #6
    VIP FreckleS's Avatar
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    2,121

    Re: Login System, combined with PHP - C# - MySQL

    ok, so all you need to do is send a webrequest to your php script and then get the response. The php script will do all the hard work.
    "The pain you feel today, will be the strength you feel tomorrow"

  7. #7

    Re: [HELP] Login System, combined with PHP - C# - MySQL

    Quote Originally Posted by nowolu View Post
    ~ bla ~
    this is such a crap implementation i almost shit myself
    - "Double the gun, double the fun!"

  8. #8
    Junior Member
    Join Date
    Dec 2009
    Posts
    23

    Re: Login System, combined with PHP - C# - MySQL

    Quote Originally Posted by FreckleS View Post
    ok, so all you need to do is send a webrequest to your php script and then get the response. The php script will do all the hard work.
    Are you able to show me some (little) example? ^^

  9. #9
    Coders
    Join Date
    Nov 2009
    Location
    Belgium
    Posts
    990

    Re: [HELP] Login System, combined with PHP - C# - MySQL

    Quote Originally Posted by learn_more View Post
    this is such a crap implementation i almost shit myself
    Please don't, just don't. I beg you!

  10. #10
    VIP FreckleS's Avatar
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    2,121

    Re: Login System, combined with PHP - C# - MySQL

    Quote Originally Posted by larssy1 View Post
    Are you able to show me some (little) example? ^^
    Not right now, I have 10 stitches in my elbow and I am going on holidays.
    "The pain you feel today, will be the strength you feel tomorrow"

Page 1 of 2 12 LastLast

Similar Threads

  1. [PHP]Snippet - MYSQL
    By sil#s in forum Html, Php, Xml, Css, ...
    Replies: 4
    Last Post: July 8th, 2010, 18:31
  2. Replies: 2
    Last Post: June 7th, 2010, 13:45
  3. [TUT]C# SIMPLE login system
    By nowolu in forum Tutorials
    Replies: 0
    Last Post: May 2nd, 2010, 17:41
  4. Offering help on Mysql, php and css
    By michael1987 in forum Html, Php, Xml, Css, ...
    Replies: 1
    Last Post: January 27th, 2009, 18:40
  5. Log in at website (MySQL?)
    By Square in forum Html, Php, Xml, Css, ...
    Replies: 6
    Last Post: December 8th, 2008, 17:39

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •