mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
#18430274 : not yet complted
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6940 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
1e0778beed
commit
111d966f88
1 changed files with 3 additions and 1 deletions
|
|
@ -119,9 +119,11 @@
|
|||
* @brief FTP 정보 등록
|
||||
**/
|
||||
function procInstallAdminSaveFTPInfo() {
|
||||
$ftp_info = Context::gets('ftp_user','ftp_password','ftp_port','ftp_root_path');
|
||||
$ftp_info = Context::gets('ftp_user','ftp_password','ftp_port','ftp_root_path','sftp');
|
||||
debugPrint($ftp_info);
|
||||
$ftp_info->ftp_port = (int)$ftp_info->ftp_port;
|
||||
if(!$ftp_info->ftp_port) $ftp_info->ftp_port = 21;
|
||||
if(!$ftp_info->sftp) $ftp_info->sftp = 'N';
|
||||
$buff = '<?php if(!defined("__ZBXE__")) exit();'."\n";
|
||||
foreach($ftp_info as $key => $val) {
|
||||
$buff .= sprintf("\$ftp_info->%s = '%s';\n", $key, str_replace("'","\\'",$val));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue