mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
1. 에디터 모듈의 추가 설정 부분을 확장하여 업로드 권한/컴포넌트/기본컴포넌트/html사용등의 권한과 에디터 높이/스킨등을 상세히 설정할 수 있도록 기능 추가.
2. 게시판 모듈(board)의 경우 기본 설정 - 추가 설정 - 권한 설정을 여러개의 게시판에 대해서 일괄 적용할 수 있도록 기능 추가 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3519 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
77195b282a
commit
62ff4b1fae
54 changed files with 710 additions and 230 deletions
|
|
@ -113,20 +113,30 @@
|
|||
$module_srl = Context::get('target_module_srl');
|
||||
if(!$module_srl) return new Object(-1, 'msg_invalid_request');
|
||||
|
||||
// 여러개의 모듈 일괄 설정일 경우
|
||||
if(preg_match('/^([0-9,]+)$/',$module_srl)) $module_srl = explode(',',$module_srl);
|
||||
else $module_srl = array($module_srl);
|
||||
|
||||
// 설정 정보 가져오기
|
||||
$oModuleModel = &getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('point');
|
||||
|
||||
$config->module_point[$module_srl]['insert_document'] = (int)Context::get('insert_document');
|
||||
$config->module_point[$module_srl]['insert_comment'] = (int)Context::get('insert_comment');
|
||||
$config->module_point[$module_srl]['upload_file'] = (int)Context::get('upload_file');
|
||||
$config->module_point[$module_srl]['download_file'] = (int)Context::get('download_file');
|
||||
$config->module_point[$module_srl]['read_document'] = (int)Context::get('read_document');
|
||||
// 설정 저장
|
||||
for($i=0;$i<count($module_srl);$i++) {
|
||||
$srl = trim($module_srl[$i]);
|
||||
if(!$srl) continue;
|
||||
$config->module_point[$srl]['insert_document'] = (int)Context::get('insert_document');
|
||||
$config->module_point[$srl]['insert_comment'] = (int)Context::get('insert_comment');
|
||||
$config->module_point[$srl]['upload_file'] = (int)Context::get('upload_file');
|
||||
$config->module_point[$srl]['download_file'] = (int)Context::get('download_file');
|
||||
$config->module_point[$srl]['read_document'] = (int)Context::get('read_document');
|
||||
}
|
||||
|
||||
$oModuleController = &getController('module');
|
||||
$oModuleController->insertModuleConfig('point', $config);
|
||||
|
||||
return new Object(0, 'success_registed');
|
||||
$this->setError(-1);
|
||||
$this->setMessage('success_updated');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue