Code Duplication    Length = 8-8 lines in 2 locations

other/install.php 1 location

@@ 587-594 (lines=8) @@
584
	elseif ($failure)
585
	{
586
		// Load any session data we might have...
587
		if (!isset($_POST['ftp_username']) && isset($_SESSION['installer_temp_ftp']))
588
		{
589
			$_POST['ftp_server'] = $_SESSION['installer_temp_ftp']['server'];
590
			$_POST['ftp_port'] = $_SESSION['installer_temp_ftp']['port'];
591
			$_POST['ftp_username'] = $_SESSION['installer_temp_ftp']['username'];
592
			$_POST['ftp_password'] = $_SESSION['installer_temp_ftp']['password'];
593
			$_POST['ftp_path'] = $_SESSION['installer_temp_ftp']['path'];
594
		}
595
596
		$incontext['ftp_errors'] = array();
597

other/upgrade.php 1 location

@@ 3493-3500 (lines=8) @@
3490
			$upcontext['chmod']['path'] = $_SESSION['installer_temp_ftp']['path'];
3491
		}
3492
		// Or have we submitted?
3493
		elseif (isset($_POST['ftp_username']))
3494
		{
3495
			$upcontext['chmod']['server'] = $_POST['ftp_server'];
3496
			$upcontext['chmod']['port'] = $_POST['ftp_port'];
3497
			$upcontext['chmod']['username'] = $_POST['ftp_username'];
3498
			$upcontext['chmod']['password'] = $_POST['ftp_password'];
3499
			$upcontext['chmod']['path'] = $_POST['ftp_path'];
3500
		}
3501
3502
		if (isset($upcontext['chmod']['username']))
3503
		{