Code Duplication    Length = 6-6 lines in 2 locations

other/install.php 2 locations

@@ 1544-1549 (lines=6) @@
1541
			$incontext['error'] = $txt['error_invalid_characters_username'];
1542
			return false;
1543
		}
1544
		elseif (empty($_POST['email']) || !filter_var(stripslashes($_POST['email']), FILTER_VALIDATE_EMAIL) || strlen(stripslashes($_POST['email'])) > 255)
1545
		{
1546
			// One step back, this time fill out a proper admin email address.
1547
			$incontext['error'] = sprintf($txt['error_valid_admin_email_needed'], $_POST['username']);
1548
			return false;
1549
		}
1550
		elseif (empty($_POST['server_email']) || !filter_var(stripslashes($_POST['server_email']), FILTER_VALIDATE_EMAIL) || strlen(stripslashes($_POST['server_email'])) > 255)
1551
		{
1552
			// One step back, this time fill out a proper admin email address.
@@ 1550-1555 (lines=6) @@
1547
			$incontext['error'] = sprintf($txt['error_valid_admin_email_needed'], $_POST['username']);
1548
			return false;
1549
		}
1550
		elseif (empty($_POST['server_email']) || !filter_var(stripslashes($_POST['server_email']), FILTER_VALIDATE_EMAIL) || strlen(stripslashes($_POST['server_email'])) > 255)
1551
		{
1552
			// One step back, this time fill out a proper admin email address.
1553
			$incontext['error'] = $txt['error_valid_server_email_needed'];
1554
			return false;
1555
		}
1556
		elseif ($_POST['username'] != '')
1557
		{
1558
			$incontext['member_salt'] = substr(md5(mt_rand()), 0, 4);