| @@ 585-592 (lines=8) @@ | ||
| 582 | elseif ($failure) |
|
| 583 | { |
|
| 584 | // Load any session data we might have... |
|
| 585 | if (!isset($_POST['ftp_username']) && isset($_SESSION['installer_temp_ftp'])) |
|
| 586 | { |
|
| 587 | $_POST['ftp_server'] = $_SESSION['installer_temp_ftp']['server']; |
|
| 588 | $_POST['ftp_port'] = $_SESSION['installer_temp_ftp']['port']; |
|
| 589 | $_POST['ftp_username'] = $_SESSION['installer_temp_ftp']['username']; |
|
| 590 | $_POST['ftp_password'] = $_SESSION['installer_temp_ftp']['password']; |
|
| 591 | $_POST['ftp_path'] = $_SESSION['installer_temp_ftp']['path']; |
|
| 592 | } |
|
| 593 | ||
| 594 | $incontext['ftp_errors'] = array(); |
|
| 595 | require_once($sourcedir . '/Class-Package.php'); |
|
| @@ 173-180 (lines=8) @@ | ||
| 170 | $upcontext['chmod']['path'] = $_SESSION['installer_temp_ftp']['path']; |
|
| 171 | } |
|
| 172 | // Or have we submitted? |
|
| 173 | elseif (isset($_POST['ftp_username'])) |
|
| 174 | { |
|
| 175 | $upcontext['chmod']['server'] = $_POST['ftp_server']; |
|
| 176 | $upcontext['chmod']['port'] = $_POST['ftp_port']; |
|
| 177 | $upcontext['chmod']['username'] = $_POST['ftp_username']; |
|
| 178 | $upcontext['chmod']['password'] = $_POST['ftp_password']; |
|
| 179 | $upcontext['chmod']['path'] = $_POST['ftp_path']; |
|
| 180 | } |
|
| 181 | ||
| 182 | require_once($sourcedir . '/Class-Package.php'); |
|
| 183 | if (isset($upcontext['chmod']['username'])) |
|