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!


Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: PHP code?

  1. #1
    Join Date
    Oct 2005
    Location
    Teh NORTH Pole! ;O
    Posts
    99
    Tokens
    0

    Default PHP code?

    OK. I have used TechTuts user system tutorials to make a user system. But I need a code that will check if the password on that account is changeme. And if it is, redirect them to the password change page. Reputation will be awarded! KKTHNX.

  2. #2
    Join Date
    Feb 2006
    Location
    Befordshire, England
    Posts
    672
    Tokens
    0

    Default

    Hey i don't think you really need that script, because if the person has anybrains what so ever he/she will change there password anyway.


    -Daza

  3. #3
    Join Date
    Oct 2005
    Location
    Teh NORTH Pole! ;O
    Posts
    99
    Tokens
    0

    Default

    No it's a school thing. I'm making the accounts. So when they login I need them to change their password.
    Last edited by Newsie; 24-02-2006 at 09:44 PM.

  4. #4
    Join Date
    Feb 2006
    Location
    Befordshire, England
    Posts
    672
    Tokens
    0

    Default

    Oh i hate school things they have to be so difficult.


    -Daza

  5. #5
    Join Date
    Oct 2005
    Location
    Teh NORTH Pole! ;O
    Posts
    99
    Tokens
    0

    Default

    Tell me about it.

  6. #6
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    Since the password is encrypted its all most impossible.

  7. #7
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default

    I'm assuming that the user logs in and the variable of the field where they type the pass is "pass". Just put this as the first thing in your PHP on the page where the user goes when they log-in, and it should work depending on the script etc.

    PHP Code:
    if($_POST['pass'] == 'changeme') {
     
    header('location: http://www.google.com');
     die();

    If it doesn't work post the script here, or link to the site and I'll try and work something out to fit in with your site.

  8. #8
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    How are the posts stored in the database?
    i mean is it just text so "changeme" or the md5 hashed "changeme" or possibly a custom algorthum "/

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

    Latest Awards:

    Default

    If you need to fish the pass out of a database it will almost certainly be encrypted.



    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)


  10. #10
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    You could have a table in the mysql called oldpass and newpass

    then you could compair them and if they match it would say bleh bleh bleh. You could do that by editing Nets if/else code.

Page 1 of 2 12 LastLast

Posting Permissions

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