mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 22:33:10 +09:00
172900064 FTP class 추가 및 설치시에 FTP정보를 입력/저장하는 루틴 추가. 디렉토리 생성시 safe_mode일 경우 ftp로 디렉토리를 만들도록 처리. 추가 테스트 필요
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4520 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
28163b1312
commit
e581ffc40b
21 changed files with 955 additions and 51 deletions
|
|
@ -22,6 +22,7 @@
|
|||
var $context = NULL; ///< @brief request parameter 및 각종 환경 변수등을 정리하여 담을 변수
|
||||
|
||||
var $db_info = NULL; ///< @brief DB 정보
|
||||
var $ftp_info = NULL; ///< @brief FTP 정보
|
||||
|
||||
var $ssl_actions = array(); ///< @brief ssl로 전송해야 할 action등록 (common/js/xml_handler.js에서 ajax통신시 활용)
|
||||
var $js_files = array(); ///< @brief display시에 사용하게 되는 js files의 목록
|
||||
|
|
@ -260,6 +261,34 @@
|
|||
return $this->db_info;
|
||||
}
|
||||
|
||||
/**
|
||||
* @biref FTP 정보가 등록되었는지 확인
|
||||
**/
|
||||
function isFTPRegisted() {
|
||||
$ftp_config_file = Context::getFTPConfigFile();
|
||||
if(file_exists($ftp_config_file)) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief FTP 정보가 담긴 object를 return
|
||||
**/
|
||||
function getFTPInfo() {
|
||||
$oContext = &Context::getInstance();
|
||||
return $oContext->_getFTPInfo();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief FTP 정보가 담긴 object를 return
|
||||
**/
|
||||
function _getFTPInfo() {
|
||||
if(!$this->isFTPRegisted()) return null;
|
||||
|
||||
$ftp_config_file = $this->getFTPConfigFile();
|
||||
@include($ftp_config_file);
|
||||
return $ftp_info;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 사이트 title adding
|
||||
**/
|
||||
|
|
@ -958,6 +987,13 @@
|
|||
return _XE_PATH_."files/config/db.config.php";
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ftp설정내용이 저장되어 있는 config file의 path를 return
|
||||
**/
|
||||
function getFTPConfigFile() {
|
||||
return _XE_PATH_."files/config/ftp.config.php";
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 설치가 되어 있는지에 대한 체크
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue