관리자모드 일부 원본 복구

This commit is contained in:
whitedot
2012-11-02 11:53:34 +09:00
parent d3ab4acee1
commit 50732cfc3b
54 changed files with 2758 additions and 2802 deletions

View File

@ -1,37 +1,37 @@
<?
$sub_menu = '200100';
include_once('./_common.php');
$sub_menu = "200100";
include_once("./_common.php");
check_demo();
auth_check($auth[$sub_menu], 'w');
auth_check($auth[$sub_menu], "w");
check_token();
for ($i=0; $i<count($chk); $i++)
{
// 실제 번호를 넘김
$k = $_POST["chk"][$i];
$k = $_POST['chk'][$i];
$mb = get_member($_POST['mb_id'][$k]);
if (!$mb['mb_id']) {
$msg .= '$mb['mb_id'] : 회원자료가 존재하지 않습니다.\\n';
} else if ($is_admin != 'super' && $mb[mb_level] >= $member[mb_level]) {
$msg .= '$mb['mb_id'] : 자신보다 권한이 높거나 같은 회원은 수정할 수 없습니다.\\n';
} else if ($member['mb_id'] == $mb['mb_id']) {
$msg .= '$mb['mb_id'] : 로그인 중인 관리자는 수정 할 수 없습니다.\\n';
if (!$mb[mb_id]) {
$msg .= "$mb[mb_id] : 회원자료가 존재하지 않습니다.\\n";
} else if ($is_admin != "super" && $mb[mb_level] >= $member[mb_level]) {
$msg .= "$mb[mb_id] : 자신보다 권한이 높거나 같은 회원은 수정할 수 없습니다.\\n";
} else if ($member[mb_id] == $mb[mb_id]) {
$msg .= "$mb[mb_id] : 로그인 중인 관리자는 수정 할 수 없습니다.\\n";
} else {
$sql = ' update $g4[member_table]
set mb_level = "{$_POST["mb_level"][$k]}",
mb_intercept_date = "{$_POST["mb_intercept_date"][$k]}"
where mb_id = "{$_POST['mb_id'][$k]}" ';
$sql = " update $g4[member_table]
set mb_level = '{$_POST['mb_level'][$k]}',
mb_intercept_date = '{$_POST['mb_intercept_date'][$k]}'
where mb_id = '{$_POST['mb_id'][$k]}' ";
sql_query($sql);
}
}
if ($msg)
echo '<script> alert("$msg"); </script>';
echo "<script type='text/javascript'> alert('$msg'); </script>";
goto_url('./member_list.php?$qstr');
goto_url("./member_list.php?$qstr");
?>