mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
글 조회시 포인트 차감 또는 증감 할 수 있도록 기능 추가. 모듈 업데이트 필요. 중복 부과 안됨
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3501 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
860cb7e686
commit
480d7582f2
14 changed files with 76 additions and 12 deletions
|
|
@ -30,6 +30,7 @@
|
|||
$config->signup_point = (int)$args->signup_point;
|
||||
$config->login_point = (int)$args->login_point;
|
||||
$config->insert_document = (int)$args->insert_document;
|
||||
$config->read_document = (int)$args->read_document;
|
||||
$config->insert_comment = (int)$args->insert_comment;
|
||||
$config->upload_file = (int)$args->upload_file;
|
||||
$config->download_file = (int)$args->download_file;
|
||||
|
|
@ -71,7 +72,7 @@
|
|||
$args = Context::getRequestVars();
|
||||
|
||||
foreach($args as $key => $val) {
|
||||
preg_match("/^(insert_document|insert_comment|upload_file|download_file)_([0-9]+)$/", $key, $matches);
|
||||
preg_match("/^(insert_document|insert_comment|upload_file|download_file|read_document)_([0-9]+)$/", $key, $matches);
|
||||
if(!$matches[1]) continue;
|
||||
$name = $matches[1];
|
||||
$module_srl = $matches[2];
|
||||
|
|
@ -103,6 +104,7 @@
|
|||
$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');
|
||||
|
||||
$oModuleController = &getController('module');
|
||||
$oModuleController->insertModuleConfig('point', $config);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue