Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -1802,6 +1802,20 @@ |
1803 | 1803 | } |
1804 | 1804 | |
1805 | 1805 | /** |
| 1806 | + * Encrypt a username/password. |
| 1807 | + * |
| 1808 | + * @param string $userid ID of the user |
| 1809 | + * @param string $password Password of the user |
| 1810 | + * @return string Hashed password |
| 1811 | + * @deprecated Use User::crypt() or User::oldCrypt() instead |
| 1812 | + */ |
| 1813 | +function wfEncryptPassword( $userid, $password ) { |
| 1814 | + wfDeprecated(__FUNCTION__); |
| 1815 | + # Just wrap around User::oldCrypt() |
| 1816 | + return User::oldCrypt($password, $userid); |
| 1817 | +} |
| 1818 | + |
| 1819 | +/** |
1806 | 1820 | * Appends to second array if $value differs from that in $default |
1807 | 1821 | */ |
1808 | 1822 | function wfAppendToArrayIfNotDefault( $key, $value, $default, &$changed ) { |