마크업:관리자>포인트

This commit is contained in:
whitedot
2012-11-15 13:45:09 +09:00
parent cbd2bb5e09
commit 3012f879ce
4 changed files with 142 additions and 138 deletions

View File

@ -11,7 +11,7 @@ if ($member['mb_password'] != sql_password($_POST['admin_password'])) {
}
$mb_id = $_POST['mb_id'];
$po_point = $_POST['po_point'];
$po_point = $_POST[po_point];
$po_content = $_POST['po_content'];
$mb = get_member($mb_id);
@ -19,7 +19,7 @@ $mb = get_member($mb_id);
if (!$mb['mb_id'])
alert('존재하는 회원아이디가 아닙니다.', './point_list.php?'.$qstr);
if (($po_point < 0) && ($po_point * (-1) > $mb['mb_point']))
if (($po_point < 0) && ($po_point * (-1) > $mb[mb_point]))
alert('포인트를 깎는 경우 현재 포인트보다 작으면 안됩니다.', './point_list.php?'.$qstr);
insert_point($mb_id, $po_point, $po_content, '@passive', $mb_id, $member['mb_id']."-".uniqid(""));