관리자 모드 땀표 전쟁, 회원추가 완료

This commit is contained in:
whitedot
2012-11-01 18:12:13 +09:00
parent 6f10749461
commit 54b20eff74
58 changed files with 962 additions and 945 deletions

View File

@ -6,7 +6,7 @@ if ($is_admin != "super")
alert("최고관리자만 접근 가능합니다.");
$mb = get_member($mb_id);
if (!$mb[mb_id])
if (!$mb['mb_id'])
alert("존재하는 회원아이디가 아닙니다.");
check_token();
@ -16,14 +16,14 @@ if ($member[mb_password] != sql_password($_POST['admin_password'])) {
}
$sql = " insert into $g4[auth_table]
set mb_id = '$_POST[mb_id]',
set mb_id = '{$_POST['mb_id']}',
au_menu = '$_POST[au_menu]',
au_auth = '$_POST[r],$_POST[$w],$_POST[$d]' ";
au_auth = '{$_POST[r]},{$_POST[$w]},{$_POST[$d]}' ";
$result = sql_query($sql, FALSE);
if (!$result) {
$sql = " update $g4[auth_table]
set au_auth = '$_POST[r],$_POST[$w],_POST[$d]'
where mb_id = '$_POST[mb_id]'
set au_auth = '{$_POST[r]},{$_POST[$w]},{$_POST[$d]}'
where mb_id = '{$_POST['mb_id']}'
and au_menu = '$_POST[au_menu]' ";
sql_query($sql);
}