2024-09-19 20:50:29 +09:00
|
|
|
<?php
|
2022-09-18 04:20:16 +09:00
|
|
|
include_once('./_common.php');
|
|
|
|
|
|
|
|
|
|
// 권한 확인
|
|
|
|
|
if(!$is_admin) {
|
|
|
|
|
if($member['mb_id'] && $write['mb_id'] == $member['mb_id']) {
|
|
|
|
|
exit;
|
|
|
|
|
} else if ($member['mb_level'] < $board['bo_write_level']) {
|
|
|
|
|
exit;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-05-28 18:30:16 +09:00
|
|
|
sql_query("update {$g5['character_body_table']} set bd_use = '' where wr_id = '{$wr_id}'");
|
2022-09-18 04:20:16 +09:00
|
|
|
$bd = sql_fetch("select * from {$g5['character_body_table']} where bd_id = '{$bd_id}'");
|
|
|
|
|
if($bd['bd_id']) {
|
|
|
|
|
$sql = " update {$g5['character_body_table']}
|
|
|
|
|
set bd_use = '1'
|
|
|
|
|
where bd_id = '{$bd['bd_id']}'";
|
|
|
|
|
sql_query($sql);
|
|
|
|
|
}
|
|
|
|
|
|
2024-09-19 20:50:29 +09:00
|
|
|
?>
|