Code Duplication    Length = 2-5 lines in 2 locations

Sources/LogInOut.php 1 location

@@ 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

Sources/Profile-Modify.php 1 location

@@ 3468-3472 (lines=5) @@
3465
		}
3466
3467
		// Too many images?!
3468
		if (!empty($sig_limits[3]) && (substr_count(strtolower($unparsed_signature), '[img') + substr_count(strtolower($unparsed_signature), '<img')) > $sig_limits[3])
3469
		{
3470
			$txt['profile_error_signature_max_image_count'] = sprintf($txt['profile_error_signature_max_image_count'], $sig_limits[3]);
3471
			return 'signature_max_image_count';
3472
		}
3473
3474
		// What about too many smileys!
3475
		$smiley_parsed = $unparsed_signature;