Checked PSR-1 / PHP 8.1 Undefiend Varialbe, type error
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = "200100";
|
||||
include_once("./_common.php");
|
||||
require_once "./_common.php";
|
||||
|
||||
check_demo();
|
||||
|
||||
@ -8,21 +8,23 @@ auth_check_menu($auth, $sub_menu, "d");
|
||||
|
||||
$mb = isset($_POST['mb_id']) ? get_member($_POST['mb_id']) : array();
|
||||
|
||||
if (! (isset($mb['mb_id']) && $mb['mb_id']))
|
||||
if (!(isset($mb['mb_id']) && $mb['mb_id'])) {
|
||||
alert("회원자료가 존재하지 않습니다.");
|
||||
else if ($member['mb_id'] == $mb['mb_id'])
|
||||
} elseif ($member['mb_id'] == $mb['mb_id']) {
|
||||
alert("로그인 중인 관리자는 삭제 할 수 없습니다.");
|
||||
else if (is_admin($mb['mb_id']) == "super")
|
||||
} elseif (is_admin($mb['mb_id']) == "super") {
|
||||
alert("최고 관리자는 삭제할 수 없습니다.");
|
||||
else if ($mb['mb_level'] >= $member['mb_level'])
|
||||
} elseif ($mb['mb_level'] >= $member['mb_level']) {
|
||||
alert("자신보다 권한이 높거나 같은 회원은 삭제할 수 없습니다.");
|
||||
}
|
||||
|
||||
check_admin_token();
|
||||
|
||||
// 회원자료 삭제
|
||||
member_delete($mb['mb_id']);
|
||||
|
||||
if ($url)
|
||||
goto_url("{$url}?$qstr&w=u&mb_id=$mb_id");
|
||||
else
|
||||
goto_url("./member_list.php?$qstr");
|
||||
if (isset($url)) {
|
||||
goto_url("{$url}?$qstr&w=u&mb_id=" . $mb['mb_id']);
|
||||
} else {
|
||||
goto_url("./member_list.php?$qstr");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user