mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
#18532379 : do not show ftp info at admin page
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7034 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e5861b96fc
commit
fc62786db3
2 changed files with 3 additions and 9 deletions
|
|
@ -159,11 +159,7 @@
|
|||
</form>
|
||||
<!--@if($ftp_info && $ftp_info->ftp_password && $ftp_info->ftp_user)-->
|
||||
<h4 class="xeAdmin" id="ftpSetup">{$lang->ftp_path_title}</h4>
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, install_ftp_path)">
|
||||
<input type="hidden" name="ftp_user" value="{$ftp_info->ftp_user}" />
|
||||
<input type="hidden" name="ftp_password" value="{$ftp_info->ftp_password}" />
|
||||
<input type="hidden" name="ftp_port" value="{$ftp_info->ftp_port}" />
|
||||
<input type="hidden" name="sftp" value="{$ftp_info->sftp}" />
|
||||
<form action="./" method="POST" onsubmit="return procFilter(this, install_ftp_path)">
|
||||
|
||||
<table cellspacing="0" class="rowTable">
|
||||
<tr>
|
||||
|
|
|
|||
|
|
@ -119,10 +119,8 @@
|
|||
* @brief FTP 정보 등록
|
||||
**/
|
||||
function procInstallAdminSaveFTPInfo() {
|
||||
$ftp_info = Context::gets('ftp_user','ftp_password','ftp_port','ftp_root_path','sftp');
|
||||
$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';
|
||||
$ftp_info = Context::getFTPInfo();
|
||||
$ftp_info->ftp_root_path = Context::get('ftp_root_path');
|
||||
$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