| @@ 345-346 (lines=2) @@ | ||
| 342 | $other_passwords['iconv'] = sha1(strtolower(iconv('UTF-8', $modSettings['previousCharacterSet'], $user_settings['member_name'])) . un_htmlspecialchars(iconv('UTF-8', $modSettings['previousCharacterSet'], $_POST['passwrd']))); |
|
| 343 | ||
| 344 | // Say it aint so, iconv failed! |
|
| 345 | if (empty($other_passwords['iconv']) && function_exists('mb_convert_encoding')) |
|
| 346 | $other_passwords[] = sha1(strtolower(mb_convert_encoding($user_settings['member_name'], 'UTF-8', $modSettings['previousCharacterSet'])) . un_htmlspecialchars(mb_convert_encoding($_POST['passwrd'], 'UTF-8', $modSettings['previousCharacterSet']))); |
|
| 347 | } |
|
| 348 | } |
|
| 349 | ||
| @@ 3534-3538 (lines=5) @@ | ||
| 3531 | } |
|
| 3532 | ||
| 3533 | // Too many images?! |
|
| 3534 | if (!empty($sig_limits[3]) && (substr_count(strtolower($unparsed_signature), '[img') + substr_count(strtolower($unparsed_signature), '<img')) > $sig_limits[3]) |
|
| 3535 | { |
|
| 3536 | $txt['profile_error_signature_max_image_count'] = sprintf($txt['profile_error_signature_max_image_count'], $sig_limits[3]); |
|
| 3537 | return 'signature_max_image_count'; |
|
| 3538 | } |
|
| 3539 | ||
| 3540 | // What about too many smileys! |
|
| 3541 | $smiley_parsed = $unparsed_signature; |
|