채택완료

접근 권한 좀봐주세요.

2016-09-22 (목) 13:32:22 3,061

아래 소스가 pc에서는 권한에 맞게 끔 설정해서

일반 회원이 접속이 되지 않게 되어 있습니다.

이것을 모바일에서도

동일하게 적용하려면 어찌해야 할까요?

Copy
<?phpinclude_once('./_common.php'); $sql3 = " select count(*) as cnt from {$g5['g5_shop_order_table']} where mb_id = '{$member['mb_id']}' and od_receipt_price > 0 ";$row3 = sql_fetch($sql3);$od_cnt = $row3['cnt']; if($member['mb_level'] == 7 || !$member['mb_id'] || $od_cnt < 2 || $member['mb_id'] == 'temesia') { // 레벨7 미만 or 주문건수가 2건 미만일때    alert('접근권한이 없습니다.', G5_URL);} if (G5_IS_MOBILE) {    include_once(G5_MSHOP_PATH.'/index.php');    return;} define("_INDEX_", TRUE);include_once(G5_SHOP_PATH.'/shop.head3.php');?>
|

답변 1개 / 댓글 1개

채택된 답변
+20 포인트
Copy
$sql3 = " select count(*) as cnt from {$g5['g5_shop_order_table']} where mb_id = '{$member['mb_id']}' and od_receipt_price > 0 ";$row3 = sql_fetch($sql3);$od_cnt = $row3['cnt'];  if($member['mb_level'] == 7 || !$member['mb_id'] || $od_cnt < 2 || $member['mb_id'] == 'temesia') { // 레벨7 미만 or 주문건수가 2건 미만일때    alert('접근권한이 없습니다.', G5_URL);}

 

위 부분을 모바일 상단에 적용해 주시면 됩니다. 

답변에 대한 댓글 1개

답변 감사합니다. (__)

답변을 작성하려면 로그인이 필요합니다.