mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
#17856472 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5894 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2fde39c2d9
commit
937fbcc743
3 changed files with 11 additions and 1 deletions
|
|
@ -290,8 +290,13 @@
|
|||
if($logged_info->is_admin != 'Y') {
|
||||
$oFileModel = &getModel('file');
|
||||
$config = $oFileModel->getFileConfig($module_srl);
|
||||
$allowed_filesize = $config->allowed_filesize * 1024 * 1024;
|
||||
$allowed_attach_size = $config->allowed_attach_size * 1024 * 1024;
|
||||
|
||||
// 한 파일당 허용 용량 초과시 오류 출력
|
||||
if($allowed_filesize > filesize($file_info['tmp_name'])) return new Object(-1, 'msg_exceeds_limit_size');
|
||||
|
||||
|
||||
// 해당 문서에 첨부된 모든 파일의 용량을 가져옴 (DB에서 가져옴)
|
||||
$size_args->upload_target_srl = $upload_target_srl;
|
||||
$output = executeQuery('file.getAttachedFileSize', $size_args);
|
||||
|
|
|
|||
|
|
@ -80,6 +80,11 @@
|
|||
* @brief 파일 설정 정보를 구함
|
||||
**/
|
||||
function getFileConfig($module_srl = null) {
|
||||
// module_srl이 없으면 현재 모듈
|
||||
if(!$module_srl) {
|
||||
$current_module_info = Context::get('current_module_info');
|
||||
$module_srl = $current_module_info->module_srl;
|
||||
}
|
||||
// 설정 정보를 받아옴 (module model 객체를 이용)
|
||||
$oModuleModel = &getModel('module');
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* @author zero (zero@nzeo.com)
|
||||
* @brief file module의 view class
|
||||
*
|
||||
* RSS 2.0형식으로 문서 출력
|
||||
*
|
||||
*
|
||||
**/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue