Code Duplication    Length = 6-6 lines in 2 locations

other/install.php 2 locations

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