#17147582 회원 가입약관을 길게 쓸 경우 회원 설정 내용이 사라지는 오류를 수정.

수정 방법은 가입약관을 별도의 파일로 저장하고 DB에 저장하지 않도록 하여 수정.
가입약관 파일의 위치는 ./files/member_extra_info/agreement.txt 로 지정


git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6324 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-05-18 06:35:19 +00:00
parent ca413d3c90
commit b729bc68f0
6 changed files with 65 additions and 16 deletions

View file

@ -18,6 +18,32 @@
function init() {
}
/**
* @brief 회원 설정 정보를 return
**/
function getMemberConfig() {
// DB에 저장되는 회원 설정 정보 구함
$oModuleModel = &getModel('module');
$config = $oModuleModel->getModuleConfig('member');
// 회원가입 약관 구함
$agreement_file = _XE_PATH_.'files/member_extra_info/agreement.txt';
if(file_exists($agreement_file)) $config->agreement = FileHandler::readFile($agreement_file);
if(!$config->webmaster_name) $config->webmaster_name = 'webmaster';
if(!$config->image_name_max_width) $config->image_name_max_width = 90;
if(!$config->image_name_max_height) $config->image_name_max_height = 20;
if(!$config->image_mark_max_width) $config->image_mark_max_width = 20;
if(!$config->image_mark_max_height) $config->image_mark_max_height = 20;
if(!$config->profile_image_max_width) $config->profile_image_max_width = 80;
if(!$config->profile_image_max_height) $config->profile_image_max_height = 80;
if(!$config->skin) $config->skin = "default";
if(!$config->editor_skin || $config->editor_skin == 'default') $config->editor_skin = "xpresseditor";
if(!$config->group_image_mark) $config->group_image_mark = "N";
return $config;
}
/**
* @brief 선택된 회원의 간단한 메뉴를 표시
**/