Does anyone have a working password changer php file for the tad file in DBSRV/Accoun

Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    Member gundulapek is offline
    MemberRank
    Nov 2011 Join Date
    96Posts

    Re: Does anyone have a working password changer php file for the tad file in DBSRV/Ac

    forgot the '$'

    Code:
    for($i=0; $i<strlen($password2); $i++)
    {
       $temppass[$i] = ord($password2[$i]); // not sure only ord or ordutf8
    }

  2. #17
    Unknown marcuel is offline
    MemberRank
    Mar 2010 Join Date
    499Posts

    Re: Does anyone have a working password changer php file for the tad file in DBSRV/Ac

    that's good, can u post the source?

  3. #18
    Unknown marcuel is offline
    MemberRank
    Mar 2010 Join Date
    499Posts

    Re: Does anyone have a working password changer php file for the tad file in DBSRV/Ac

    @jbeitz107 can show the source of changing password in php and in tad?

  4. #19
    Banned Radiantecf is offline
    BannedRank
    Mar 2008 Join Date
    your heartLocation
    196Posts

    Re: Does anyone have a working password changer php file for the tad file in DBSRV/Ac

    Este es el codigo reparado, se puede mejorar más.
    $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");
    @fclose($fp);


    $userid = $_SESSION['username'];


    $password2 = strtoupper(md5($newpass));


    $initial=substr($userid,0,1);
    if (ereg("^[a-zA-Z]$",$initial))
    {
    $initial=strtoupper($initial);
    }
    else
    {
    $initial="etc";
    }
    $accdir=("C:\kathana6\DBSRV\Account");
    $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($f2);
    @fclose($f);



Page 2 of 2 FirstFirst 12

Advertisement