adm quotation

This commit is contained in:
chicpro
2012-11-02 11:57:00 +09:00
parent d3ab4acee1
commit 70e70f7909
10 changed files with 399 additions and 394 deletions

View File

@ -7,7 +7,7 @@ if ($is_admin != 'super')
$mb = get_member($mb_id);
if (!$mb['mb_id'])
alert('존재하는 회원아이디가 아닙니다.');
alert('존재하는 회원아이디가 아닙니다.');
check_token();
@ -15,20 +15,20 @@ if ($member['mb_password'] != sql_password($_POST['admin_password'])) {
alert('패스워드가 다릅니다.');
}
$sql = " insert into {$g4[auth_table]}
$sql = " insert into {$g4['auth_table']}
set mb_id = '{$_POST['mb_id']}',
au_menu = '$_POST[au_menu]',
au_auth = '{$_POST['r']},{$_POST[$w]},{$_POST[$d]}' ";
au_menu = '{$_POST['au_menu']}',
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]}'
$sql = " update $g4['auth_table']
set au_auth = '{$_POST[r]},{$_POST['w']},{$_POST['d']}'
where mb_id = '{$_POST['mb_id']}'
and au_menu = '$_POST[au_menu]' ";
and au_menu = '{$_POST['au_menu']}' ";
sql_query($sql);
}
//sql_query(" OPTIMIZE TABLE `$g4[auth_table]` ");
goto_url('./auth_list.php?$qstr');
goto_url('./auth_list.php?'.$qstr);
?>