Hac Nho
Noobie
Posts: 3
I love YaBB SE!
|
|
Re:Good fix for Password problems
« Reply #2 on: January 14, 2002, 10:48:16 AM » |
|
Then set the crypt's seed to be the same with the other version.
Here we go:
<id> Fix YaBB-SE to work with crypted password </id>
<version> 1.0 </version>
<mod info> If you have YaBB1G, with password encrypted mod installed, use this mod. Remember NOT to crypt PASSWORD in converter.php. Default "pwseed" for yabb1G is "ya" </mod info>
<author> HacNho </author>
<homepage>
</homepage>
<edit file> /Sources/LogInOut.php </edit file>
<search for> $passwrd = crypt($passwrd,substr($passwrd,0,2)); </search for>
<replace> $passwrd = crypt($passwrd,$pwseed); </replace>
<edit file> /Sources/Register.php </edit file>
<search for> global $allow_hide_email; </search for>
<replace> global $allow_hide_email,$pwseed; </replace>
<search for> $queryPasswdPart = crypt($member['passwrd1'],substr($member['passwrd1'],0,2)); </search for>
<replace> $queryPasswdPart = crypt($member['passwrd1'],$pwseed); </replace>
<edit file> /Sources/Profile.php </edit file>
<search for> if($member['passwrd1'] != ''){ $queryPasswdPart="passwd='".crypt($member['passwrd1'], substr($member['passwrd1'],0,2))."',"; } </search for>
<replace> if($member['passwrd1'] != ''){ $queryPasswdPart="passwd='".crypt($member['passwrd1'], $pwseed)."',"; } </replace>
<edit file> /Sources/Subs.php </edit file>
<search for> $pwseed = 'ys'; </search for>
<replace> $pwseed = 'ya'; </replace>
<edit file> converter.php </edit file>
<search for> $password = crypt (stripcslashes($userData[0]),substr(stripcslashes($userData[0]),0,2)); </search for>
<replace> $password = stripcslashes($userData[0]); </replace>
|