- 상품이벤트/개인결제복사/SMS 번호·그룹·폼·업로드/방문로그 삭제 등 POST 기반 상태변경 처리에 check_request_origin() 적용 (스킨 수정 불필요) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
32 lines
1.0 KiB
PHP
32 lines
1.0 KiB
PHP
<?php
|
|
$sub_menu = '500310';
|
|
include_once('./_common.php');
|
|
|
|
check_demo();
|
|
|
|
auth_check_menu($auth, $sub_menu, "w");
|
|
|
|
if (function_exists('check_request_origin')) check_request_origin(G5_ADMIN_URL);
|
|
|
|
$post_it_id_count = (isset($_POST['it_id']) && is_array($_POST['it_id'])) ? count($_POST['it_id']) : 0;
|
|
|
|
for ($i=0; $i<$post_it_id_count; $i++)
|
|
{
|
|
$iit_id = isset($_POST['it_id'][$i]) ? preg_replace('/[^a-z0-9_\-]/i', '', $_POST['it_id'][$i]) : '';
|
|
|
|
$sql = " delete from {$g5['g5_shop_event_item_table']}
|
|
where ev_id = '$ev_id'
|
|
and it_id = '{$iit_id}' ";
|
|
sql_query($sql);
|
|
|
|
if (isset($_POST['ev_chk'][$i]) && $_POST['ev_chk'][$i])
|
|
{
|
|
$sql = "insert into {$g5['g5_shop_event_item_table']}
|
|
set ev_id = '$ev_id',
|
|
it_id = '{$iit_id}' ";
|
|
sql_query($sql);
|
|
}
|
|
|
|
}
|
|
|
|
goto_url('./itemeventlist.php?ev_id='.$ev_id.'&sort1='.$sort1.'&sort2='.$sort2.'&sel_ca_id='.$sel_ca_id.'&sel_field='.$sel_field.'&search='.$search.'&page='.$page); |