포인트 리셋기능 추가. 글/댓글/파일을 첨부한 사용자만 대상이고 그 외 회원은 일단 지워지고 나서 캐시파일 생성시 포인트 입력됨 (회원가입점수는 이때 적용)

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3386 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-12-20 10:13:12 +00:00
parent 4d6afe35fa
commit 4c2eabe9fa
19 changed files with 260 additions and 2 deletions

View file

@ -300,6 +300,10 @@
function setPoint($member_srl, $point) {
if($point < 0) $point = 0;
// 설정 정보 가져오기
$oModuleModel = &getModel('module');
$config = $oModuleModel->getModuleConfig('point');
// 변수 설정
$args->member_srl = $member_srl;
$args->point = $point;
@ -309,6 +313,7 @@
if($oPointModel->isExistsPoint($member_srl)) {
executeQuery("point.updatePoint", $args);
} else {
$args->point += (int)$config->signup_point;
executeQuery("point.insertPoint", $args);
}