<?php
$sub_menu = "200100";
include_once("./_common.php");

check_demo();

auth_check($auth[$sub_menu], "d");

$mb = get_member($_POST['mb_id']);

if (!$mb[mb_id])
    alert("회원자료가 존재하지 않습니다.");

check_token();

$i = 0;
$query = sql_query("select bo_table from `$g4[board_table]`");
while($row = sql_fetch_array($query)) {
  sql_query("update `$g4[write_prefix]$row[bo_table]` set wr_name='$mb[mb_nick]' where mb_id='$mb[mb_id]'");
  $i++;
}

if ($url)
    goto_url("{$url}?$qstr&w=u&mb_id=$mb[mb_id]");
else
    goto_url("./member_list.php?$qstr");
?>
