소스 코드를 수정하셔야 합니다.
adm/shop_admin/categoryform.php 의 아래 코드 삭제
if ($is_admin != 'super')
$sql_common .= " where ca_mb_id = '$member[mb_id]' ";
adm/shop_admin/categoryformupdate.php 의 아래 코드 삭제
if ($w == "" || $w == "u")
{
if ($ca_mb_id)
{
$sql = " select mb_id from $g4[member_table] where mb_id = '$ca_mb_id' ";
$row = sql_fetch($sql);
if (!$row[mb_id])
alert("\'$ca_mb_id\' 은(는) 존재하는 회원아이디가 아닙니다.");
}
}
adm/shop_admin/categorylist.php 의 아래 코드 삭제
if ($is_admin != 'super')
$sql_common .= " where ca_mb_id = '$member[mb_id]' ";
adm/shop_admin/categorylistupdate.php 의 아래 코드 삭제
if ($_POST[ca_mb_id][$i])
{
$sql = " select mb_id from $g4[member_table] where mb_id = '{$_POST[ca_mb_id][$i]}' ";
$row = sql_fetch($sql);
if (!$row[mb_id])
alert("\'{$_POST[ca_mb_id][$i]}\' 은(는) 존재하는 회원아이디가 아닙니다.", "./categorylist.php?page=$page&sort1=$sort1&sort2=$sort2");
}
adm/shop_admin/itemform.php 의 아래 코드 삭제
if ($is_admin != 'super')
{
$sql = " select it_id from $g4[yc4_item_table] a, $g4[yc4_category_table] b
where a.it_id = '$it_id'
and a.ca_id = b.ca_id
and b.ca_mb_id = '$member[mb_id]' ";
$row = sql_fetch($sql);
if (!$row[it_id])
alert("\'{$member[mb_id]}\' 님께서 수정 할 권한이 없는 상품입니다.");
}
adm/shop_admin/itemformupdate.php 의 아래 코드 삭제
if ($is_admin != 'super')
{
$sql = " select it_id from $g4[yc4_item_table] a, $g4[yc4_category_table] b
where a.it_id = '$it_id'
and a.ca_id = b.ca_id
and b.ca_mb_id = '$member[mb_id]' ";
$row = sql_fetch($sql);
if (!$row[it_id])
alert("\'{$member[mb_id]}\' 님께서 삭제 할 권한이 없는 상품입니다.");
}
adm/shop_admin/itemlist.php 의 아래 코드 삭제
if ($is_admin != 'super')
$sql .= " where ca_mb_id = '$member[mb_id]' ";
위의 설명에서 빠져 있을 수 있는
ca_mb_id 와 관련된 코드는
모두 삭제해 주셔야 합니다.
adm/shop_admin/categoryform.php 의 아래 코드 삭제
if ($is_admin != 'super')
$sql_common .= " where ca_mb_id = '$member[mb_id]' ";
adm/shop_admin/categoryformupdate.php 의 아래 코드 삭제
if ($w == "" || $w == "u")
{
if ($ca_mb_id)
{
$sql = " select mb_id from $g4[member_table] where mb_id = '$ca_mb_id' ";
$row = sql_fetch($sql);
if (!$row[mb_id])
alert("\'$ca_mb_id\' 은(는) 존재하는 회원아이디가 아닙니다.");
}
}
adm/shop_admin/categorylist.php 의 아래 코드 삭제
if ($is_admin != 'super')
$sql_common .= " where ca_mb_id = '$member[mb_id]' ";
adm/shop_admin/categorylistupdate.php 의 아래 코드 삭제
if ($_POST[ca_mb_id][$i])
{
$sql = " select mb_id from $g4[member_table] where mb_id = '{$_POST[ca_mb_id][$i]}' ";
$row = sql_fetch($sql);
if (!$row[mb_id])
alert("\'{$_POST[ca_mb_id][$i]}\' 은(는) 존재하는 회원아이디가 아닙니다.", "./categorylist.php?page=$page&sort1=$sort1&sort2=$sort2");
}
adm/shop_admin/itemform.php 의 아래 코드 삭제
if ($is_admin != 'super')
{
$sql = " select it_id from $g4[yc4_item_table] a, $g4[yc4_category_table] b
where a.it_id = '$it_id'
and a.ca_id = b.ca_id
and b.ca_mb_id = '$member[mb_id]' ";
$row = sql_fetch($sql);
if (!$row[it_id])
alert("\'{$member[mb_id]}\' 님께서 수정 할 권한이 없는 상품입니다.");
}
adm/shop_admin/itemformupdate.php 의 아래 코드 삭제
if ($is_admin != 'super')
{
$sql = " select it_id from $g4[yc4_item_table] a, $g4[yc4_category_table] b
where a.it_id = '$it_id'
and a.ca_id = b.ca_id
and b.ca_mb_id = '$member[mb_id]' ";
$row = sql_fetch($sql);
if (!$row[it_id])
alert("\'{$member[mb_id]}\' 님께서 삭제 할 권한이 없는 상품입니다.");
}
adm/shop_admin/itemlist.php 의 아래 코드 삭제
if ($is_admin != 'super')
$sql .= " where ca_mb_id = '$member[mb_id]' ";
위의 설명에서 빠져 있을 수 있는
ca_mb_id 와 관련된 코드는
모두 삭제해 주셔야 합니다.
댓글 2개
게시글 목록
| 번호 | 제목 |
|---|---|
| 9 | |
| 8 | |
| 6 | |
| 1085 | |
| 4 | |
| 3 | |
| 2 | |
| 1 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기