lib/common.lib.php에 다음 함수에서
// 포인트 부여
function insert_point($mb_id, $point, $content='', $rel_table='', $rel_id='', $rel_action='')
{
..
$sql = " select sum( po_point) sum from $g4[point_table]
where mb_id = '$mb_id'
and po_datetime >= curdate() ";
$row = sql_fetch($sql);
if ($row[sum] > 제한 값)
return -1;
// 이미 등록된 내역이라면 건너뜀
if ($rel_table || $rel_id || $rel_action)
댓글 3개
이거 참고하시면 되겠네요
// 포인트 부여
function insert_point($mb_id, $point, $content='', $rel_table='', $rel_id='', $rel_action='')
{
..
$sql = " select sum( po_point) sum from $g4[point_table]
where mb_id = '$mb_id'
and po_datetime >= curdate() ";
$row = sql_fetch($sql);
if ($row[sum] > 제한 값)
return -1;
// 이미 등록된 내역이라면 건너뜀
if ($rel_table || $rel_id || $rel_action)
위 처럼 추가해 보세요.
DB 해당 테이블에 인덱스는 적당히 걸어 주세요.