Code Duplication    Length = 2-5 lines in 2 locations

Sources/LogInOut.php 1 location

@@ 352-353 (lines=2) @@
349
					$other_passwords['iconv'] = sha1(strtolower(iconv('UTF-8', $modSettings['previousCharacterSet'], $user_settings['member_name'])) . un_htmlspecialchars(iconv('UTF-8', $modSettings['previousCharacterSet'], $_POST['passwrd'])));
350
351
				// Say it aint so, iconv failed!
352
				if (empty($other_passwords['iconv']) && function_exists('mb_convert_encoding'))
353
					$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'])));
354
			}
355
		}
356

Sources/Profile-Modify.php 1 location

@@ 3427-3431 (lines=5) @@
3424
		}
3425
3426
		// Too many images?!
3427
		if (!empty($sig_limits[3]) && (substr_count(strtolower($unparsed_signature), '[img') + substr_count(strtolower($unparsed_signature), '<img')) > $sig_limits[3])
3428
		{
3429
			$txt['profile_error_signature_max_image_count'] = sprintf($txt['profile_error_signature_max_image_count'], $sig_limits[3]);
3430
			return 'signature_max_image_count';
3431
		}
3432
3433
		// What about too many smileys!
3434
		$smiley_parsed = $unparsed_signature;