mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-23 20:32:14 +09:00
#410. trigger로 추천, 비추천에 따른 포인트 변동 기능 지원
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4194 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
75ff83f052
commit
296c181762
14 changed files with 100 additions and 4 deletions
|
|
@ -36,6 +36,8 @@
|
|||
$config->insert_comment = (int)$args->insert_comment;
|
||||
$config->upload_file = (int)$args->upload_file;
|
||||
$config->download_file = (int)$args->download_file;
|
||||
$config->voted = (int)$args->voted;
|
||||
$config->blamed = (int)$args->blamed;
|
||||
|
||||
// 최고 레벨
|
||||
$config->max_level = $args->max_level;
|
||||
|
|
@ -89,7 +91,7 @@
|
|||
$args = Context::getRequestVars();
|
||||
|
||||
foreach($args as $key => $val) {
|
||||
preg_match("/^(insert_document|insert_comment|upload_file|download_file|read_document)_([0-9]+)$/", $key, $matches);
|
||||
preg_match("/^(insert_document|insert_comment|upload_file|download_file|read_document|voted|blamed)_([0-9]+)$/", $key, $matches);
|
||||
if(!$matches[1]) continue;
|
||||
$name = $matches[1];
|
||||
$module_srl = $matches[2];
|
||||
|
|
@ -130,6 +132,8 @@
|
|||
$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');
|
||||
$config->module_point[$srl]['voted'] = (int)Context::get('voted');
|
||||
$config->module_point[$srl]['blamed'] = (int)Context::get('blamed');
|
||||
}
|
||||
|
||||
$oModuleController = &getController('module');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue