| @@ 177-184 (lines=8) @@ | ||
| 174 | $upcontext['chmod']['path'] = $_SESSION['installer_temp_ftp']['path']; |
|
| 175 | } |
|
| 176 | // Or have we submitted? |
|
| 177 | elseif (isset($_POST['ftp_username'])) |
|
| 178 | { |
|
| 179 | $upcontext['chmod']['server'] = $_POST['ftp_server']; |
|
| 180 | $upcontext['chmod']['port'] = $_POST['ftp_port']; |
|
| 181 | $upcontext['chmod']['username'] = $_POST['ftp_username']; |
|
| 182 | $upcontext['chmod']['password'] = $_POST['ftp_password']; |
|
| 183 | $upcontext['chmod']['path'] = $_POST['ftp_path']; |
|
| 184 | } |
|
| 185 | ||
| 186 | require_once($sourcedir . '/Class-Package.php'); |
|
| 187 | if (isset($upcontext['chmod']['username'])) |
|
| @@ 622-629 (lines=8) @@ | ||
| 619 | elseif ($failure) |
|
| 620 | { |
|
| 621 | // Load any session data we might have... |
|
| 622 | if (!isset($_POST['ftp_username']) && isset($_SESSION['installer_temp_ftp'])) |
|
| 623 | { |
|
| 624 | $_POST['ftp_server'] = $_SESSION['installer_temp_ftp']['server']; |
|
| 625 | $_POST['ftp_port'] = $_SESSION['installer_temp_ftp']['port']; |
|
| 626 | $_POST['ftp_username'] = $_SESSION['installer_temp_ftp']['username']; |
|
| 627 | $_POST['ftp_password'] = $_SESSION['installer_temp_ftp']['password']; |
|
| 628 | $_POST['ftp_path'] = $_SESSION['installer_temp_ftp']['path']; |
|
| 629 | } |
|
| 630 | ||
| 631 | $incontext['ftp_errors'] = array(); |
|
| 632 | require_once('Sources/Class-Package.php'); |
|