Changeset 308 for trunk/Options.php
- Timestamp:
- Jan 31, 2010, 9:41:08 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Options.php
r302 r308 20 20 if(($_SESSION['Pass'] == $OldPass) and ($NewPass == $NewPass2)) 21 21 { 22 $Database->SQLCommand('UPDATE user SET pass = sha1("'.$NewPass.'") WHERE ID = '.$_SESSION['UserID']); 22 // Update password 23 $Salt = GetPasswordSalt(); 24 $Database->SQLCommand('UPDATE user SET pass = sha1(CONCAT(sha1("'.$NewPass.'"), "'.$Salt.'")), Salt="'.$Salt.'" WHERE ID = '.$_SESSION['UserID']); 23 25 echo('Heslo změněno!<br />'); 24 26 } else echo('<br />Hesla se neshodují!<br />'); 27 25 28 $Database->SQLCommand('UPDATE user SET Email = "'.$Email.'", Language = "'.$Language.'", redirecting = "'.$redirecting.'" WHERE ID = '.$_SESSION['UserID']); 26 29 echo('Úprava nastavení proběhla v pořádku, Email: <b>'.$Email.'</b> Uživatel: <b>'.$User.'</b><br />');
Note:
See TracChangeset
for help on using the changeset viewer.