mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 04:39:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1411 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c459b1bf0d
commit
1b727a32a1
6 changed files with 141 additions and 17 deletions
|
|
@ -725,6 +725,16 @@
|
|||
$config = $oModuleModel->getModuleConfig('member');
|
||||
if($logged_info->is_admin != 'Y' && $config->image_name != 'Y') return $this->stop('msg_not_uploaded_image_name');
|
||||
|
||||
$this->insertImageName($member_srl, $file['tmp_name']);
|
||||
|
||||
// 페이지 리프레쉬
|
||||
$this->setRefreshPage();
|
||||
}
|
||||
|
||||
function insertImageName($member_srl, $target_file) {
|
||||
$oModuleModel = &getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('member');
|
||||
|
||||
// 정해진 사이즈를 구함
|
||||
$max_width = $config->image_name_max_width;
|
||||
if(!$max_width) $max_width = "90";
|
||||
|
|
@ -732,10 +742,7 @@
|
|||
if(!$max_height) $max_height = "20";
|
||||
|
||||
$target_filename = sprintf('files/attach/member_extra_info/image_name/%s%d.gif', getNumberingPath($member_srl), $member_srl);
|
||||
FileHandler::createImageFile($file['tmp_name'], $target_filename, $max_width, $max_height, 'gif');
|
||||
|
||||
// 페이지 리프레쉬
|
||||
$this->setRefreshPage();
|
||||
FileHandler::createImageFile($target_file, $target_filename, $max_width, $max_height, 'gif');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -778,6 +785,16 @@
|
|||
$config = $oModuleModel->getModuleConfig('member');
|
||||
if($logged_info->is_admin != 'Y' && $config->image_mark != 'Y') return $this->stop('msg_not_uploaded_image_mark');
|
||||
|
||||
$this->insertImageMark($member_srl, $file['tmp_name']);
|
||||
|
||||
// 페이지 리프레쉬
|
||||
$this->setRefreshPage();
|
||||
}
|
||||
|
||||
function insertImageMark($member_srl, $target_file) {
|
||||
$oModuleModel = &getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('member');
|
||||
|
||||
// 정해진 사이즈를 구함
|
||||
$max_width = $config->image_mark_max_width;
|
||||
if(!$max_width) $max_width = "20";
|
||||
|
|
@ -785,10 +802,8 @@
|
|||
if(!$max_height) $max_height = "20";
|
||||
|
||||
$target_filename = sprintf('files/attach/member_extra_info/image_mark/%s%d.gif', getNumberingPath($member_srl), $member_srl);
|
||||
FileHandler::createImageFile($file['tmp_name'], $target_filename, $max_width, $max_height, 'gif');
|
||||
FileHandler::createImageFile($target_file, $target_filename, $max_width, $max_height, 'gif');
|
||||
|
||||
// 페이지 리프레쉬
|
||||
$this->setRefreshPage();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue