Page 3 of 3 FirstFirst 123
Results 21 to 24 of 24
  1. #21
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Use KP 2.

  2. #22
    Join Date
    Apr 2006
    Location
    West Midlands
    Posts
    3,384
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Hitman View Post
    I understand that, but what I'm saying he has $password2 twice. He then inserts the value of $password2 as the pass... which I'm sure it reads the first (correct me if I'm wrong I'm not the best coder as you know...) so it'd grab the first $password2 and insert? Or the second...?

    Meh. Correct me pls!
    It would grab the second.


    Xbox Live: Jholder112233
    PS3 Online Tag: Josh-H

    Last.fm | Digg | Xbox.com

  3. #23
    Join Date
    Jun 2006
    Posts
    4,832
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Josh-H View Post
    It would grab the second.
    Ah okay so it's all fine. Thanks for telling me!

  4. #24
    Join Date
    Apr 2006
    Location
    Leamington Spa
    Posts
    1,375
    Tokens
    72

    Latest Awards:

    Default

    PHP Code:
    <?php
    if(isset($_SESSION['EON_CNTPNL_USERNAME'])){
        
    $check->login(); 
    }else{
        
    session_start();
        include(
    "functions.php");
        
    $check = new checklogin;
        
    $check->login();
    }
        echo(
    "
                      <b>Edit your password!</b><br/>
                     <br/>"
    );
        if(
    $_GET["act"] == "update")
        {
            
    $password clean($_POST['password']);
            
    $password md5($password);
            
    $password sha1($password);
            
    mysql_query("UPDATE `users` SET `password` = '" $password "' WHERE `username` = '" $_SESSION['EON_CNTPNL_NAME'] . "'") or die(mysql_error());
            echo(
    "Password Updated");
            exit;
        }
        else
        {
            
    $rand generateRandStr(13);
            echo(
    "Please set a new password:<br/><form action=\"?page=editpass&act=update\" method=\"POST\"><input type=\"text\" name=\"password\" value=\"$rand\" class=\"formbox\"> <b><-- Suggested</b><br/><br/><input type=\"submit\" name=\"submit\" value=\"Change Password\"><br/><br/>
        The suggested password was 
    $rand<br/>(So you can copy and paste)</form>");
        }
    ?>
    Don't go mental if it doesn't work.
    i've been here for over 8 years and i don't know why

Page 3 of 3 FirstFirst 123

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
  •