mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
#18681045 : fixed a bug that getting list for ftp setting did not work on windows server
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7288 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
00ffe1175b
commit
256647c2d0
1 changed files with 2 additions and 1 deletions
|
|
@ -60,6 +60,7 @@
|
||||||
if($oFtp->ftp_connect($ftp_info->ftp_host, $ftp_info->ftp_port)){
|
if($oFtp->ftp_connect($ftp_info->ftp_host, $ftp_info->ftp_port)){
|
||||||
if($oFtp->ftp_login($ftp_info->ftp_user, $ftp_info->ftp_password)) {
|
if($oFtp->ftp_login($ftp_info->ftp_user, $ftp_info->ftp_password)) {
|
||||||
$_list = $oFtp->ftp_rawlist($this->pwd);
|
$_list = $oFtp->ftp_rawlist($this->pwd);
|
||||||
|
debugPrint($_list);
|
||||||
$oFtp->ftp_quit();
|
$oFtp->ftp_quit();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -71,7 +72,7 @@
|
||||||
|
|
||||||
if($_list){
|
if($_list){
|
||||||
foreach($_list as $k => $v){
|
foreach($_list as $k => $v){
|
||||||
if(strpos($v,'d') === 0) $list[] = substr(strrchr($v,' '),1) . '/';
|
if(strpos($v,'d') === 0 || strpos($v, '<DIR>')) $list[] = substr(strrchr($v,' '),1) . '/';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->add('list', $list);
|
$this->add('list', $list);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue