지운아빠 땀표 작업하던 것

This commit is contained in:
whitedot
2012-11-02 10:49:35 +09:00
parent c26c4d8ce9
commit d3ab4acee1
62 changed files with 2745 additions and 2764 deletions

View File

@ -1,24 +1,24 @@
<?
$sub_menu = "100200";
include_once("./_common.php");
include_once('./_common.php');
if ($is_admin != "super")
alert("최고관리자만 접근 가능합니다.");
if ($is_admin != 'super')
alert('최고관리자만 접근 가능합니다.');
$mb = get_member($mb_id);
if (!$mb['mb_id'])
alert("존재하는 회원아이디가 아닙니다.");
alert('존재하는 회원아이디가 아닙니다.');
check_token();
if ($member[mb_password] != sql_password($_POST['admin_password'])) {
alert("패스워드가 다릅니다.");
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_auth = '{$_POST['r']},{$_POST[$w]},{$_POST[$d]}' ";
$result = sql_query($sql, FALSE);
if (!$result) {
$sql = " update $g4[auth_table]
@ -30,5 +30,5 @@ if (!$result) {
//sql_query(" OPTIMIZE TABLE `$g4[auth_table]` ");
goto_url("./auth_list.php?$qstr");
goto_url('./auth_list.php?$qstr');
?>