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 19

Thread: Change password

  1. #1
    Join Date
    Dec 2005
    Location
    Leicester
    Posts
    181
    Tokens
    0

    Default Change password

    I was woundering if anyone could do me a script to change a password script using md5

  2. #2
    Join Date
    Dec 2005
    Posts
    1,733
    Tokens
    201
    Habbo
    Bomb-Head

    Latest Awards:

    Default

    Change password for what ?

  3. #3
    Join Date
    Dec 2005
    Location
    Leicester
    Posts
    181
    Tokens
    0

    Default

    I need a script that changes md5 passwords for my dj panel

  4. #4
    Join Date
    Dec 2005
    Location
    Australia
    Posts
    693
    Tokens
    0

    Default

    I'll post the code from techtuts, can't be bothered getting a better one for you. Analyse it and learn.

    PHP Code:
    <?
    ob_start
    ();
    include(
    "config.php");
    if (
    $logged[username])
    {
    // the user is logged in!  We continue...
    if (!$_POST[update])
    {
    // the form hasn't been submitted.  We continue...
    $profile mysql_query("SELECT * from users where username = '$logged[username]'");
    $profile mysql_fetch_array($profile);
    // the above lines get the information so that it can be displayed in the html form.
    echo("
    <center><form method=\"POST\">
    <table width=\"100%\">
    <tr>
    <td align=\"right\" width=\"25%\">
    Location
    </td>
    <td align=\"left\">
    <input type=\"text\" size=\"25\" maxlength=\"25\" name=\"locate\" value=\"
    $profile[location]\"></td>
    </tr>
    <tr>
    <td align=\"right\" width=\"25%\">
    MSN Messenger
    </td>
    <td align=\"left\">
    <input size=\"25\" name=\"msn\" value=\"
    $profile[msn]\"></td>
    </tr>
    <tr>
    <td align=\"right\" width=\"25%\">
    AOL Messenger</td>
    <td align=\"left\">
    <input size=\"25\" name=\"aim\"  value=\"
    $profile[aim]\"></td>
    </tr>
    <tr>
    <td align=\"right\" width=\"25%\">
    Email Address</td>
    <td align=\"left\">
    <input size=\"25\"  name=\"email\" value=\"
    $profile[email]\"></td>
    </tr>
    <tr>
    <td align=\"center\">
    </td>
    <td align=\"left\">
    <input type=\"submit\" name=\"update\" value=\"Update\"></td>
    </tr>
    </table>
    </form>
    </center>"
    );
    }
    else
    {
    $email htmlspecialchars($_POST[email]);
    $aim htmlspecialchars($_POST[aim]);
    $msn htmlspecialchars($_POST[msn]);
    $locate htmlspecialchars($_POST[locate]);
    // the above lines get rid of all html.
    echo ("Your profile has been updated!");
    $update mysql_query("Update users set email = '$email',
    msn = '
    $msn', aim = '$aim', location = '$locate' where username = '$logged[username]'");
    // updates the information in the database.
    }
    }
    else
    {
    // They aren't logged in!
    echo ("<a href=\"login.php\">You must login</a>");
    }
    ?>
    XHTML, CSS, AJAX, JS, php, MySQL.

    --

    HxF moderators can't read timestamps.

  5. #5
    Join Date
    Dec 2005
    Location
    Leicester
    Posts
    181
    Tokens
    0

    Default

    For get it i am not uing techtuts and i have made the login my self and its no crap one so it dont matter

  6. #6
    Join Date
    Dec 2005
    Location
    XX
    Posts
    2,308
    Tokens
    2,015

    Latest Awards:

    Default

    Your making a djpanel yet you dont know php?

    ***?

    JoeyK. (Forum Moderator) - Please don't avoid the filter.
    Last edited by JoeyK.; 14-06-2006 at 05:44 AM.


  7. #7
    Join Date
    Dec 2005
    Location
    Australia
    Posts
    693
    Tokens
    0

    Default

    Quote Originally Posted by Jamie0112
    For get it i am not uing techtuts and i have made the login my self and its no crap one so it dont matter
    Well if you bothered reading it you'd find the code you're looking for.

    If you aren't willing to *try*, don't even post for help.
    XHTML, CSS, AJAX, JS, php, MySQL.

    --

    HxF moderators can't read timestamps.

  8. #8
    Join Date
    Dec 2005
    Location
    Leicester
    Posts
    181
    Tokens
    0

    Default

    Yes i have made a dj panel and yes i now how to do php if i didnt i wouldnt be able to do the login would i

  9. #9
    Join Date
    Dec 2005
    Location
    Australia
    Posts
    693
    Tokens
    0

    Default

    If you made a DJ panel, you would know the basics of sql and md5. Der der der.

    And whoever the moron was that bad repped me for my above post, is just that, a moron. Not even gutfull enough to leave a name, wimps.
    XHTML, CSS, AJAX, JS, php, MySQL.

    --

    HxF moderators can't read timestamps.

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

    Latest Awards:

    Default

    PHP Code:
    md5(); 

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
  •