Code Duplication    Length = 6-6 lines in 2 locations

other/install.php 2 locations

@@ 1449-1454 (lines=6) @@
1446
			$incontext['error'] = $txt['error_invalid_characters_username'];
1447
			return false;
1448
		}
1449
		elseif (empty($_POST['email']) || !filter_var(stripslashes($_POST['email']), FILTER_VALIDATE_EMAIL) || strlen(stripslashes($_POST['email'])) > 255)
1450
		{
1451
			// One step back, this time fill out a proper admin email address.
1452
			$incontext['error'] = sprintf($txt['error_valid_admin_email_needed'], $_POST['username']);
1453
			return false;
1454
		}
1455
		elseif (empty($_POST['server_email']) || !filter_var(stripslashes($_POST['server_email']), FILTER_VALIDATE_EMAIL) || strlen(stripslashes($_POST['server_email'])) > 255)
1456
		{
1457
			// One step back, this time fill out a proper admin email address.
@@ 1455-1460 (lines=6) @@
1452
			$incontext['error'] = sprintf($txt['error_valid_admin_email_needed'], $_POST['username']);
1453
			return false;
1454
		}
1455
		elseif (empty($_POST['server_email']) || !filter_var(stripslashes($_POST['server_email']), FILTER_VALIDATE_EMAIL) || strlen(stripslashes($_POST['server_email'])) > 255)
1456
		{
1457
			// One step back, this time fill out a proper admin email address.
1458
			$incontext['error'] = $txt['error_valid_server_email_needed'];
1459
			return false;
1460
		}
1461
		elseif ($_POST['username'] != '')
1462
		{
1463
			$incontext['member_salt'] = substr(md5(mt_rand()), 0, 4);