mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-21 03:12:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6333 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e8476eba00
commit
5f4e8752bf
4 changed files with 39 additions and 1 deletions
|
|
@ -274,6 +274,31 @@
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 개별 모듈의 포인트 리셋
|
||||
**/
|
||||
function procPointAdminReset() {
|
||||
$module_srl = Context::get('module_srls');
|
||||
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);
|
||||
|
||||
// 설정 저장
|
||||
$oModuleController = &getController('module');
|
||||
for($i=0;$i<count($module_srl);$i++) {
|
||||
$srl = trim($module_srl[$i]);
|
||||
if(!$srl) continue;
|
||||
unset($args);
|
||||
$args->module = 'point';
|
||||
$args->module_srl = $srl;
|
||||
executeQuery('module.deleteModulePartConfig', $args);
|
||||
}
|
||||
|
||||
$this->setMessage('success_updated');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 캐시파일 저장
|
||||
**/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue