Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 10 of 10

Thread: Registration

  1. #1
    <?PHP> Guest

    Default Registration

    How would i go about making a registration form for a login script. It runs flat file and works by getting the usernames and passwords from /log.txt

    How could i make a form that would add usernames and passwords to that.

    +Rep for any help

  2. #2
    Join Date
    Feb 2008
    Location
    North Carolina, USA.
    Posts
    172
    Tokens
    0

    Default

    Thats extremely insecure, I would suggest switching to a MySQL based solution.

    All someone would have to do is visit that text file for all of the users' usernames and passwords.

  3. #3
    <?PHP> Guest

    Default

    Yes i know. I'm just using it as a basic example.

    Could anyone help me?

  4. #4
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by habfm.net View Post
    How would i go about making a registration form for a login script. It runs flat file and works by getting the usernames and passwords from /log.txt

    How could i make a form that would add usernames and passwords to that.

    +Rep for any help
    People could find the text file if it is called log.txt rename it to something like 23jdhs7j2.txt or put it in a sub folder with a htaccess file.
    Lets set the stage on fire, and hollywood will be jealous.

  5. #5
    <?PHP> Guest

    Default

    Yep, It has htaccess... And i will do when the sites done. Atm it dont really matter. Nothing to protect

  6. #6
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    3,285
    Tokens
    0

    Latest Awards:

    Default

    Name makes no difference if you configure an htaccess file, just make it so it can only be read by the server.



    i used to be NintendoNews. visit my blog or add me on twitter.
    need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!


    "I am the way, the truth, and the life. No one comes to the Father except through me"
    John 14:6 (NIV)


  7. #7
    <?PHP> Guest

    Default

    Done ^^

    Anyone Help Me?

  8. #8
    Join Date
    May 2007
    Location
    Brisbane, Australia
    Posts
    796
    Tokens
    0

    Default

    search the forms for a submit form because i remeber someone requesting when you submit
    somthing it saves to something.txt ;p
    Thanks,
    Chris
    Free Image Uploading

    __________________


    [/url]

    [/FONT]

  9. #9
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    @above - WIT?!

    Um, it depends how your logs.txt file is layed out.. As it will have to be exploded..

    if its
    Code:
    User1||password
    User2||password
    Then you'd do something like

    PHP Code:
    <?php
    $s 
    = @file_get_contents("logs.txt");
    $uinf nl2br($s);
    $uinf explode("<br />",$unif);
    foreach(
    $uinf as $user)
    {
    $userinf explode("||",$user);
    $username trim($userinf[0]);
    $password trim($userinf[1]);
    }
    ?>
    Then build a login system around that (which i really cba doing atm)
    But that bit of code will break up the usernames and passwords.
    Coming and going...
    Highers are getting the better of me

  10. #10
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    Oh right sorry, thought u wanted login part...

    just use fwrite ?
    Coming and going...
    Highers are getting the better of me

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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