|
|
|
15년 전
|
조회 941
|
|
|
|
15년 전
|
조회 1,698
|
|
|
|
15년 전
|
조회 1,187
|
|
|
|
15년 전
|
조회 1,421
|
|
|
|
15년 전
|
조회 1,554
|
|
|
|
15년 전
|
조회 1,547
|
|
|
|
15년 전
|
조회 889
|
|
|
|
15년 전
|
조회 953
|
|
|
|
15년 전
|
조회 941
|
|
|
|
15년 전
|
조회 2,681
|
|
|
|
15년 전
|
조회 1,530
|
|
|
|
15년 전
|
조회 1,138
|
|
|
|
15년 전
|
조회 1,429
|
|
|
|
15년 전
|
조회 1,068
|
|
|
|
15년 전
|
조회 834
|
|
|
|
15년 전
|
조회 1,571
|
|
|
|
15년 전
|
조회 1,744
|
|
|
|
15년 전
|
조회 1,437
|
|
|
|
15년 전
|
조회 998
|
|
|
|
15년 전
|
조회 1,678
|
댓글 6개
<?php
include_once './_common.php';
$point = '30' // 부여할 포인트를 적는다
$result = sql_query("select mb_id from $g4[member_table] where mb_id <> 'admin'"); // admin은 제외
while($row = sql_fetch_array($result)) {
insert_point($row['mb_id'], $point, '설 특별 뽀나스', '@login', $row['mb_id'], $g4['time_ymd']);
}
echo "설 특별 뽀나스를 일괄 지급했습니다...";
?>
문제는 시간이 많이 걸릴 것 같네요.
// 전체 회원에게 포인트 일괄 지급하는 소스 코드
// 탈퇴회원 및 접근금지 회원은 제외
include_once ("./_common.php");
$point = "3000"; //지급포인트
$point_msg = "설 특별 포인트 지급"; // 포인트내역
if ($is_admin != "super")
echo "관리자로 접속하세요.";
else
{
$sql = " select mb_id from $g4[member_table] where mb_id<>'{$config[cf_admin]}' and mb_leave_date='' and mb_intercept_date='' ";
$result = sql_query($sql);
while($row = sql_fetch_array($result))
{
$mb_id = $row[mb_id];
insert_point($mb_id, $point, $point_msg, "@event", $mb_id, $g4['time_ymdhis']);
}
echo "$point_msg 완료";
}
?>