Code Duplication    Length = 6-6 lines in 2 locations

other/install.php 2 locations

@@ 1463-1468 (lines=6) @@
1460
			$incontext['error'] = $txt['error_invalid_characters_username'];
1461
			return false;
1462
		}
1463
		elseif (empty($_POST['email']) || !filter_var(stripslashes($_POST['email']), FILTER_VALIDATE_EMAIL) || strlen(stripslashes($_POST['email'])) > 255)
1464
		{
1465
			// One step back, this time fill out a proper admin email address.
1466
			$incontext['error'] = sprintf($txt['error_valid_admin_email_needed'], $_POST['username']);
1467
			return false;
1468
		}
1469
		elseif (empty($_POST['server_email']) || !filter_var(stripslashes($_POST['server_email']), FILTER_VALIDATE_EMAIL) || strlen(stripslashes($_POST['server_email'])) > 255)
1470
		{
1471
			// One step back, this time fill out a proper admin email address.
@@ 1469-1474 (lines=6) @@
1466
			$incontext['error'] = sprintf($txt['error_valid_admin_email_needed'], $_POST['username']);
1467
			return false;
1468
		}
1469
		elseif (empty($_POST['server_email']) || !filter_var(stripslashes($_POST['server_email']), FILTER_VALIDATE_EMAIL) || strlen(stripslashes($_POST['server_email'])) > 255)
1470
		{
1471
			// One step back, this time fill out a proper admin email address.
1472
			$incontext['error'] = $txt['error_valid_server_email_needed'];
1473
			return false;
1474
		}
1475
		elseif ($_POST['username'] != '')
1476
		{
1477
			$incontext['member_salt'] = substr(md5(mt_rand()), 0, 4);