#18726233 : add passive option for ftp use, (default is to use passive mode)

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7314 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2010-02-24 06:29:14 +00:00
parent d5ff1c4ceb
commit 1fc0517ba2
3 changed files with 11 additions and 1 deletions

View file

@ -179,6 +179,10 @@
return new Object(-1,'msg_ftp_invalid_auth_info');
}
$_SESSION['ftp_password'] = $this->ftp_password;
if($ftp_info->ftp_pasv != "N")
{
ftp_pasv($connection, true);
}
$target_dir = $ftp_info->ftp_root_path.$this->target_path;