| @@ 746-749 (lines=4) @@ | ||
| 743 | } |
|
| 744 | ||
| 745 | $this->oFtp = new ftp(); |
|
| 746 | if(!$this->oFtp->ftp_connect($ftp_host, $this->ftp_info->ftp_port)) |
|
| 747 | { |
|
| 748 | return new Object(-1, sprintf(Context::getLang('msg_ftp_not_connected'), 'host')); |
|
| 749 | } |
|
| 750 | if(!$this->oFtp->ftp_login($this->ftp_info->ftp_user, $this->ftp_password)) |
|
| 751 | { |
|
| 752 | $this->_close(); |
|
| @@ 276-276 (lines=1) @@ | ||
| 273 | ||
| 274 | require_once(_XE_PATH_.'libs/ftp.class.php'); |
|
| 275 | $oFtp = new ftp(); |
|
| 276 | if(!$oFtp->ftp_connect($ftp_info->ftp_host, $ftp_info->ftp_port)) return new Object(-1, sprintf(Context::getLang('msg_ftp_not_connected'), 'host')); |
|
| 277 | ||
| 278 | if(!$oFtp->ftp_login($ftp_info->ftp_user, $ftp_info->ftp_password)) |
|
| 279 | { |
|