글 수 47
수정 파일 : lib/common.lib.php
// 포인트 부여
function insert_point($mb_id, $point,
$content='', $rel_table='', $rel_id='', $rel_action='')
// 이미 등록된 내역이라면
건너뜀 - 원본
if ($rel_table || $rel_id || $rel_action)
{
$sql = " select count(*) as cnt from $g4[point_table]
where
mb_id = '$mb_id'
and po_rel_table =
'$rel_table'
and po_rel_id =
'$rel_id'
and po_rel_action =
'$rel_action'
and po_datetime > now() - interval 24
hour "; // 24시간 이후 재차감시 - 추가
$row =
sql_fetch($sql);
if ($row[cnt])
return -1;
} 