| @@ 199-206 (lines=8) @@ | ||
| 196 | $ftp_info->ftp_port = '21'; |
|
| 197 | } |
|
| 198 | ||
| 199 | if($ftp_info->sftp == 'Y') |
|
| 200 | { |
|
| 201 | if(!function_exists('ssh2_sftp')) |
|
| 202 | { |
|
| 203 | return new BaseObject(-1, 'disable_sftp_support'); |
|
| 204 | } |
|
| 205 | return $this->getSFTPPath(); |
|
| 206 | } |
|
| 207 | ||
| 208 | if($ftp_info->ftp_pasv == 'N') |
|
| 209 | { |
|
| @@ 346-353 (lines=8) @@ | ||
| 343 | $ftp_info->ftp_port = "21"; |
|
| 344 | } |
|
| 345 | ||
| 346 | if($ftp_info->sftp == 'Y') |
|
| 347 | { |
|
| 348 | if(!function_exists('ssh2_sftp')) |
|
| 349 | { |
|
| 350 | return new BaseObject(-1, 'disable_sftp_support'); |
|
| 351 | } |
|
| 352 | return $this->getSFTPList(); |
|
| 353 | } |
|
| 354 | ||
| 355 | $oFtp = new ftp(); |
|
| 356 | if($oFtp->ftp_connect($ftp_info->ftp_host, $ftp_info->ftp_port)) |
|