Change Password

Results 1 to 8 of 8
  1. #1
    Member Vandreich is offline
    MemberRank
    Jul 2012 Join Date
    79Posts

    sad Change Password

    Anyone can help me with this?
    When i tried to change my password with working change pass script.
    In my mssql my password was change.
    But when i try to log ingame.
    It will stop only until serverlist
    and says "sorry connection failed"

    Hope someone will help me about this


  2. #2
    Tantra/Web Development jbeitz107 is offline
    MemberRank
    Mar 2012 Join Date
    USALocation
    1,471Posts

    Re: Change Password

    Did you figure this out? this is an example of my script but, it only changes the password on the site to the correct one and changes the md5 code but, it is still wrong.
    $fp = fopen("C:/kathana6/DBSRV/Share/Serv02/new/$UserID.txt","w");
    fwrite($fp,$UserID."\r\n");
    fwrite($fp,$password."\r\n");
    fwrite($fp,"000000\r\n");
    fwrite($fp,$userkey."\r\n");
    $userid = $_SESSION['username'];
    $password2 = strtoupper(md5($Password));
    $initial=substr($userid,0,1);
    if (ereg("^[a-zA-Z]$",$initial))
    {
    $initial=strtoupper($initial);
    }
    else
    {
    $initial="etc";
    }
    $accdir=("C:\kathana6\DBSRV\Account");
    $f=fopen("./inc/sample.tad", "r");
    $f=@fopen($accdir."\\".$initial."\\".$userid.".TAD",r) or die("Error");
    $acc = @fread($f,7124);
    $demopass=substr($acc,52,32);
    $acc = str_replace($demopass,$password2,$acc);
    $f2=@fopen($accdir."\\".$initial."\\".$userid.".TAD",w);
    @fwrite($f2,$acc) or die("Error");
    @fclose($f);
    fclose($fp);

  3. #3
    Member intercorei5 is offline
    MemberRank
    Sep 2012 Join Date
    84Posts

    Re: Change Password

    your change pass in .tad is wrong :)

  4. #4
    Tantra/Web Development jbeitz107 is offline
    MemberRank
    Mar 2012 Join Date
    USALocation
    1,471Posts

    Re: Change Password

    Quote Originally Posted by intercorei5 View Post
    your change pass in .tad is wrong :)
    no kidding but, do you have any idea how to fix it?

  5. #5
    MMORG Fan in Ragezone KyleMarvin is offline
    MemberRank
    Nov 2011 Join Date
    AustraliaLocation
    349Posts

    Re: Change Password

    $fp = fopen("C:/kathana6/DBSRV/Share/Serv02/new/$UserID.txt","w");
    fwrite($fp,$UserID."\r\n");
    fwrite($fp,$password."\r\n");
    fwrite($fp,"000000\r\n");
    fwrite($fp,$userkey."\r\n");
    $userid = $_SESSION['username'];
    $password2 = strtoupper(md5($Password));
    $initial=substr($userid,0,1);
    if (ereg("^[a-zA-Z]$",$initial))
    {
    $initial=strtoupper($initial);
    }
    else
    {
    $initial="etc";
    }
    $accdir=("C:\kathana6\DBSRV\Account");
    $f=fopen("./inc/sample.tad", "r");
    $f=@fopen($accdir."\\".$initial."\\".$userid.".TAD",r) or die("Error");
    $acc = @fread($f,7124);
    $demopass=substr($acc,52,36);
    $acc = str_replace($demopass,$password2,$acc);
    $f2=@fopen($accdir."\\".$initial."\\".$userid.".TAD",w);
    @fwrite($f2,$acc) or die("Error");
    @fclose($f);
    fclose($fp);

    I changed that line. colored... hope it helps.

  6. #6
    Tantra/Web Development jbeitz107 is offline
    MemberRank
    Mar 2012 Join Date
    USALocation
    1,471Posts

    Re: Change Password

    Quote Originally Posted by KyleMarvin View Post
    $fp = fopen("C:/kathana6/DBSRV/Share/Serv02/new/$UserID.txt","w");
    fwrite($fp,$UserID."\r\n");
    fwrite($fp,$password."\r\n");
    fwrite($fp,"000000\r\n");
    fwrite($fp,$userkey."\r\n");
    $userid = $_SESSION['username'];
    $password2 = strtoupper(md5($Password));
    $initial=substr($userid,0,1);
    if (ereg("^[a-zA-Z]$",$initial))
    {
    $initial=strtoupper($initial);
    }
    else
    {
    $initial="etc";
    }
    $accdir=("C:\kathana6\DBSRV\Account");
    $f=fopen("./inc/sample.tad", "r");
    $f=@fopen($accdir."\\".$initial."\\".$userid.".TAD",r) or die("Error");
    $acc = @fread($f,7124);
    $demopass=substr($acc,52,36);
    $acc = str_replace($demopass,$password2,$acc);
    $f2=@fopen($accdir."\\".$initial."\\".$userid.".TAD",w);
    @fwrite($f2,$acc) or die("Error");
    @fclose($f);
    fclose($fp);

    I changed that line. colored... hope it helps.
    I tried that but, it still inputs the wrong code.

  7. #7
    Member gundulapek is offline
    MemberRank
    Nov 2011 Join Date
    96Posts

    Re: Change Password

    $fp = fopen("C:/kathana6/DBSRV/Share/Serv02/new/$UserID.txt","w");
    fwrite($fp,$UserID."\r\n");
    fwrite($fp,$password."\r\n");
    fwrite($fp,"000000\r\n");
    fwrite($fp,$userkey."\r\n");
    $userid = $_SESSION['username'];
    $password2 = strtoupper(md5($Password));
    $initial=substr($userid,0,1);
    if (ereg("^[a-zA-Z]$",$initial))
    {
    $initial=strtoupper($initial);
    }
    else
    {
    $initial="etc";
    }
    $accdir=("C:\kathana6\DBSRV\Account");
    $f=fopen("./inc/sample.tad", "r");
    $f=@fopen($accdir."\\".$initial."\\".$userid.".TAD",r) or die("Error");
    $acc = @fread($f,7124);
    $demopass=substr($acc,51,36);
    $acc = str_replace($demopass,$password2,$acc);
    $f2=@fopen($accdir."\\".$initial."\\".$userid.".TAD",w);
    @fwrite($f2,$acc) or die("Error");
    @fclose($f);
    fclose($fp);

  8. #8
    Tantra/Web Development jbeitz107 is offline
    MemberRank
    Mar 2012 Join Date
    USALocation
    1,471Posts

    Re: Change Password

    ok that simply deleted both the username and password in the .tad file and didn't do anything to the sql database at all but, it did say Error on my site after trying lol.

    Quote Originally Posted by jbeitz107 View Post
    ok that simply deleted both the username and password in the .tad file and didn't do anything to the sql database at all but, it did say Error on my site after trying lol.
    From what I have determined it is a read .tad file error. It won't get past this.



Advertisement