@@ 356-367 (lines=12) @@ | ||
353 | } |
|
354 | ||
355 | $oFtp = new ftp(); |
|
356 | if($oFtp->ftp_connect($ftp_info->ftp_host, $ftp_info->ftp_port)) |
|
357 | { |
|
358 | if($oFtp->ftp_login($ftp_info->ftp_user, $ftp_info->ftp_password)) |
|
359 | { |
|
360 | $_list = $oFtp->ftp_rawlist($this->pwd); |
|
361 | $oFtp->ftp_quit(); |
|
362 | } |
|
363 | else |
|
364 | { |
|
365 | return new BaseObject(-1, 'msg_ftp_invalid_auth_info'); |
|
366 | } |
|
367 | } |
|
368 | $list = array(); |
|
369 | ||
370 | if($_list) |
@@ 76-88 (lines=13) @@ | ||
73 | { |
|
74 | require_once(_XE_PATH_.'libs/ftp.class.php'); |
|
75 | $oFtp = new ftp(); |
|
76 | if($oFtp->ftp_connect($ftp_info->ftp_host, $ftp_info->ftp_port)) |
|
77 | { |
|
78 | if($oFtp->ftp_login($ftp_info->ftp_user, $ftp_info->ftp_password)) |
|
79 | { |
|
80 | $_list = $oFtp->ftp_rawlist($this->pwd); |
|
81 | $oFtp->ftp_quit(); |
|
82 | } |
|
83 | else |
|
84 | { |
|
85 | $oFtp->ftp_quit(); |
|
86 | return new BaseObject(-1,'msg_ftp_invalid_auth_info'); |
|
87 | } |
|
88 | } |
|
89 | } |
|
90 | ||
91 | $list = array(); |