| @@ 610-617 (lines=8) @@ | ||
| 607 | elseif ($failure) |
|
| 608 | { |
|
| 609 | // Load any session data we might have... |
|
| 610 | if (!isset($_POST['ftp_username']) && isset($_SESSION['installer_temp_ftp'])) |
|
| 611 | { |
|
| 612 | $_POST['ftp_server'] = $_SESSION['installer_temp_ftp']['server']; |
|
| 613 | $_POST['ftp_port'] = $_SESSION['installer_temp_ftp']['port']; |
|
| 614 | $_POST['ftp_username'] = $_SESSION['installer_temp_ftp']['username']; |
|
| 615 | $_POST['ftp_password'] = $_SESSION['installer_temp_ftp']['password']; |
|
| 616 | $_POST['ftp_path'] = $_SESSION['installer_temp_ftp']['path']; |
|
| 617 | } |
|
| 618 | ||
| 619 | $incontext['ftp_errors'] = array(); |
|
| 620 | require_once('Sources/Class-Package.php'); |
|
| @@ 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'])) |
|