관리자: 회원삭제 안 되는 문제 #53
This commit is contained in:
@ -36,7 +36,7 @@ function member_delete($mb_id)
|
|||||||
global $config;
|
global $config;
|
||||||
global $g4;
|
global $g4;
|
||||||
|
|
||||||
$sql = " select mb_name, mb_nick, mb_ip, mb_recommend, mb_memo, mb_level from {$g4['member_table']} where mb_id= '{$mb_id}' ";
|
$sql = " select mb_name, mb_nick, mb_ip, mb_recommend, mb_memo, mb_level from {$g4['member_table']} where mb_id= '".$mb_id."' ";
|
||||||
$mb = sql_fetch($sql);
|
$mb = sql_fetch($sql);
|
||||||
if ($mb['mb_recommend']) {
|
if ($mb['mb_recommend']) {
|
||||||
$row = sql_fetch(" select count(*) as cnt from {$g4['member_table']} where mb_id = '".addslashes($mb['mb_recommend'])."' ");
|
$row = sql_fetch(" select count(*) as cnt from {$g4['member_table']} where mb_id = '".addslashes($mb['mb_recommend'])."' ");
|
||||||
@ -63,7 +63,7 @@ function member_delete($mb_id)
|
|||||||
mb_birth = '',
|
mb_birth = '',
|
||||||
mb_sex = '',
|
mb_sex = '',
|
||||||
mb_signature = '',
|
mb_signature = '',
|
||||||
mb_memo = '".date('Ymd',$g4['server_time'])." 삭제함\n\n{$mb['mb_memo']}',
|
mb_memo = '".date('Ymd',$g4['server_time'])." 삭제함".PHP_EOL."{$mb['mb_memo']}',
|
||||||
mb_leave_date = '".date('Ymd',$g4['server_time'])."'
|
mb_leave_date = '".date('Ymd',$g4['server_time'])."'
|
||||||
where mb_id = '{$mb_id}' ";
|
where mb_id = '{$mb_id}' ";
|
||||||
//echo $sql; exit;
|
//echo $sql; exit;
|
||||||
|
|||||||
@ -23,7 +23,8 @@ check_token();
|
|||||||
member_delete($mb['mb_id']);
|
member_delete($mb['mb_id']);
|
||||||
|
|
||||||
if ($url)
|
if ($url)
|
||||||
goto_url($url.'?'.$qstr'&w=u&mb_id='.$mb_id);
|
goto_url($url.'?'.$qstr.'&w=u&mb_id='.$mb_id);
|
||||||
else
|
else
|
||||||
goto_url('./member_list.php?'.$qstr);
|
goto_url('./member_list.php?'.$qstr);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -246,14 +246,13 @@ include_once('./admin.head.php');
|
|||||||
<div class="btn_confirm">
|
<div class="btn_confirm">
|
||||||
<input type="submit" accesskey='s' value="확인">
|
<input type="submit" accesskey='s' value="확인">
|
||||||
<input type="button" value="목록" onclick="document.location.href='./member_list.php?<?=$qstr?>';">
|
<input type="button" value="목록" onclick="document.location.href='./member_list.php?<?=$qstr?>';">
|
||||||
|
<? if ($w != '') { ?>
|
||||||
<? if ($w != '') { ?><!-- -->
|
|
||||||
<input type="button" value="삭제" onclick="del('./member_delete.php?<?=$qstr?>&w=d&mb_id=<?=$mb['mb_id']?>&url=<?=$_SERVER['PHP_SELF']?>');">
|
<input type="button" value="삭제" onclick="del('./member_delete.php?<?=$qstr?>&w=d&mb_id=<?=$mb['mb_id']?>&url=<?=$_SERVER['PHP_SELF']?>');">
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script type='text/javascript'>
|
<script>
|
||||||
if (document.fmember.w.value == "")
|
if (document.fmember.w.value == "")
|
||||||
document.fmember.mb_id.focus();
|
document.fmember.mb_id.focus();
|
||||||
else if (document.fmember.w.value == "u")
|
else if (document.fmember.w.value == "u")
|
||||||
|
|||||||
Reference in New Issue
Block a user