mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
fix #2086 FTP host 이름을 노출하지 않도록 변경
This commit is contained in:
parent
f104802ea2
commit
fa1078a0d6
3 changed files with 5 additions and 5 deletions
|
|
@ -112,7 +112,7 @@ class adminAdminModel extends admin
|
|||
$connection = ftp_connect($ftp_info->ftp_host, $ftp_info->ftp_port);
|
||||
if(!$connection)
|
||||
{
|
||||
return new Object(-1, sprintf(lang('msg_ftp_not_connected'), $ftp_host));
|
||||
return new Object(-1, sprintf(lang('msg_ftp_not_connected'), 'host'));
|
||||
}
|
||||
|
||||
$login_result = @ftp_login($connection, $ftp_info->ftp_user, $ftp_info->ftp_password);
|
||||
|
|
@ -216,7 +216,7 @@ class adminAdminModel extends admin
|
|||
$oFTP = new ftp();
|
||||
if(!$oFTP->ftp_connect($ftp_info->ftp_host, $ftp_info->ftp_port))
|
||||
{
|
||||
return new Object(1, sprintf(lang('msg_ftp_not_connected'), $ftp_info->ftp_host));
|
||||
return new Object(1, sprintf(lang('msg_ftp_not_connected'), 'host'));
|
||||
}
|
||||
|
||||
if(!$oFTP->ftp_login($ftp_info->ftp_user, $ftp_info->ftp_password))
|
||||
|
|
|
|||
|
|
@ -532,7 +532,7 @@ class PHPFTPModuleInstaller extends ModuleInstaller
|
|||
$this->connection = ftp_connect($ftp_host, $this->ftp_info->ftp_port);
|
||||
if(!$this->connection)
|
||||
{
|
||||
return new Object(-1, sprintf(lang('msg_ftp_not_connected'), $ftp_host));
|
||||
return new Object(-1, sprintf(lang('msg_ftp_not_connected'), 'host'));
|
||||
}
|
||||
|
||||
$login_result = @ftp_login($this->connection, $this->ftp_info->ftp_user, $this->ftp_password);
|
||||
|
|
@ -745,7 +745,7 @@ class FTPModuleInstaller extends ModuleInstaller
|
|||
$this->oFtp = new ftp();
|
||||
if(!$this->oFtp->ftp_connect($ftp_host, $this->ftp_info->ftp_port))
|
||||
{
|
||||
return new Object(-1, sprintf(lang('msg_ftp_not_connected'), $ftp_host));
|
||||
return new Object(-1, sprintf(lang('msg_ftp_not_connected'), 'host'));
|
||||
}
|
||||
if(!$this->oFtp->ftp_login($this->ftp_info->ftp_user, $this->ftp_password))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ class installModel extends install
|
|||
if(function_exists('ftp_connect'))
|
||||
{
|
||||
$connection = ftp_connect($ftp_info->ftp_host, $ftp_info->ftp_port);
|
||||
if(!$connection) return new Object(-1, sprintf(lang('msg_ftp_not_connected'), $ftp_info->ftp_host));
|
||||
if(!$connection) return new Object(-1, sprintf(lang('msg_ftp_not_connected'), 'host'));
|
||||
if(! @ftp_login($connection, $ftp_info->ftp_user, $ftp_info->ftp_password))
|
||||
{
|
||||
ftp_close($connection);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue