mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
#18427049 : support cafe24
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6921 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0a2c1409f5
commit
cb6e5687f7
2 changed files with 22 additions and 0 deletions
|
|
@ -83,6 +83,17 @@
|
||||||
return new Object(-1,'msg_ftp_invalid_auth_info');
|
return new Object(-1,'msg_ftp_invalid_auth_info');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$_list = $oFtp->ftp_rawlist($config->ftp_root_path);
|
||||||
|
if(count($_list) == 0 || !$_list[0]) {
|
||||||
|
$oFtp->ftp_quit();
|
||||||
|
$oFtp = new ftp();
|
||||||
|
if(!$oFtp->ftp_connect($_SERVER['SERVER_NAME'], $ftp_info->ftp_port)) return new Object(-1,'msg_ftp_not_connected');
|
||||||
|
if(!$oFtp->ftp_login($ftp_info->ftp_user, $ftp_info->ftp_password)) {
|
||||||
|
$oFtp->ftp_quit();
|
||||||
|
return new Object(-1,'msg_ftp_invalid_auth_info');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$oModuleModel = &getModel('module');
|
$oModuleModel = &getModel('module');
|
||||||
$config = $oModuleModel->getModuleConfig('autoinstall');
|
$config = $oModuleModel->getModuleConfig('autoinstall');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -204,6 +204,17 @@
|
||||||
$_list = $oFtp->ftp_rawlist($pwd);
|
$_list = $oFtp->ftp_rawlist($pwd);
|
||||||
$oFtp->ftp_quit();
|
$oFtp->ftp_quit();
|
||||||
$list = array();
|
$list = array();
|
||||||
|
if(count($_list) == 0 || !$_list[0]) {
|
||||||
|
$oFtp = new ftp();
|
||||||
|
if(!$oFtp->ftp_connect($_SERVER['SERVER_NAME'], $ftp_info->ftp_port)) return new Object(-1,'msg_ftp_not_connected');
|
||||||
|
if(!$oFtp->ftp_login($ftp_info->ftp_user, $ftp_info->ftp_password)) {
|
||||||
|
$oFtp->ftp_quit();
|
||||||
|
return new Object(-1,'msg_ftp_invalid_auth_info');
|
||||||
|
}
|
||||||
|
|
||||||
|
$_list = $oFtp->ftp_rawlist($pwd);
|
||||||
|
$oFtp->ftp_quit();
|
||||||
|
}
|
||||||
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) $list[] = substr(strrchr($v,' '),1) . '/';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue