diff --git a/adm/point_clear.php b/adm/point_clear.php deleted file mode 100644 index 22b5d25d7..000000000 --- a/adm/point_clear.php +++ /dev/null @@ -1,64 +0,0 @@ -'; -include_once('./admin.tail.php'); -flush(); - -echo ''."\n"; -flush(); - -$max_count = 50; - -// 테이블 락을 걸고 -$sql = " LOCK TABLES {$g5['member_table']} WRITE, {$g5['point_table']} WRITE "; -sql_query($sql); - -$sql = " select mb_id, count(po_point) as cnt - from {$g5['point_table']} - group by mb_id - having cnt > {$max_count}+1 - order by cnt "; -$result = sql_query($sql); -for ($i=0; $row=sql_fetch_array($result); $i++) -{ - $count = 0; - $total = 0; - $sql2 = " select po_id, po_point - from {$g5['point_table']} - where mb_id = '{$row['mb_id']}' - order by po_id desc - limit {$max_count}, {$row['cnt']} "; - $result2 = sql_query($sql2); - for ($k=0; $row2=sql_fetch_array($result2); $k++) - { - $count++; - $total += $row2['po_point']; - - sql_query(" delete from {$g5['point_table']} where po_id = '{$row2['po_id']}' "); - } - - insert_point($row['mb_id'], $total, '포인트 {$count}건 정리', '@clear', $row['mb_id'], G5_TIME_YMD."-".uniqid("")); - - $str = $row['mb_id']."님 포인트 내역 ".number_format($count)."건 ".number_format($total)."점 정리
"; - echo ''."\n"; - flush(); -} - -// 테이블 락을 풀고 -$sql = " UNLOCK TABLES "; -sql_query($sql); - -echo ''."\n"; -?> diff --git a/adm/point_list.php b/adm/point_list.php index 08f44d5b1..084c5ad09 100644 --- a/adm/point_list.php +++ b/adm/point_list.php @@ -70,16 +70,6 @@ else $mb_id = ""; ?> - -
전체 건 @@ -91,7 +81,6 @@ function point_clear() echo ' (전체 합계 '.number_format($row2['sum_point']).'점)'; } ?> -