| @@ 600-607 (lines=8) @@ | ||
| 597 | elseif ($failure) |
|
| 598 | { |
|
| 599 | // Load any session data we might have... |
|
| 600 | if (!isset($_POST['ftp_username']) && isset($_SESSION['installer_temp_ftp'])) |
|
| 601 | { |
|
| 602 | $_POST['ftp_server'] = $_SESSION['installer_temp_ftp']['server']; |
|
| 603 | $_POST['ftp_port'] = $_SESSION['installer_temp_ftp']['port']; |
|
| 604 | $_POST['ftp_username'] = $_SESSION['installer_temp_ftp']['username']; |
|
| 605 | $_POST['ftp_password'] = $_SESSION['installer_temp_ftp']['password']; |
|
| 606 | $_POST['ftp_path'] = $_SESSION['installer_temp_ftp']['path']; |
|
| 607 | } |
|
| 608 | ||
| 609 | $incontext['ftp_errors'] = array(); |
|
| 610 | 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'])) |
|