Example #1
0
    }
    if ($board['bo_use_cert'] == 'hp-cert' && $member['mb_certify'] != 'hp') {
        exit;
    }
    if ($board['bo_use_cert'] == 'hp-adult' && (!$member['mb_adult'] || $member['mb_certify'] != 'hp')) {
        exit;
    }
}
if ($member['mb_level'] >= $board['bo_list_level'] && $board['bo_use_list_view'] || empty($wr_id)) {
} else {
    exit;
}
if (!isset($page) || isset($page) && $page == 0) {
    $page = 1;
}
$npg = apms_escape('npg', 0);
// 보드설정
$boset = array();
$boset = apms_boset();
//목록에 공지출력 기본값
$sql_apms_where = '';
$sql_apms_orderby = '';
$is_notice_list = true;
$is_link_video = true;
$bo_notice_arr = explode(',', trim($board['bo_notice']));
$bo_notice_cnt = 0;
if (!empty($bo_notice_arr)) {
    //$sql_apms_where .= " and wr_id not in (".implode(', ', $bo_notice_arr).") ";
    //$bo_notice_cnt = count($bo_notice_arr);
}
@(include_once $board_skin_path . '/board.head.skin.php');
Example #2
0
     // 전체 페이지 계산
     $from_record = ($page - 1) * $rows;
     // 시작 레코드 구함
     if ($from_record < 0) {
         $from_record = 0;
     }
     $num = $total_count - ($page - 1) * $rrows;
     $result = sql_query(" select b.* {$sql_common} order by b.pt_num desc, b.it_id desc limit {$from_record}, {$rows} ");
     for ($i = 0; $row = sql_fetch_array($result); $i++) {
         $list[$i] = $row;
         $list[$i]['href'] = './item.php?it_id=' . $row['it_id'];
         $list[$i]['num'] = $num;
         $num--;
     }
 } else {
     $type = apms_escape('type', 0);
     // 분류
     $ca = sql_fetch(" select * from {$g5['g5_shop_category_table']} where ca_id = '{$ca_id}' and ca_use = '1' ");
     if (!$ca['ca_id']) {
         exit;
     }
     // 인증
     if (!$is_admin) {
         $msg = shop_member_cert_check($ca_id, 'list');
         if ($msg) {
             exit;
         }
         if ($ca['as_partner'] && !IS_PARTNER) {
             exit;
         }
         if (apms_auth($ca['as_grade'], $ca['as_equal'], $ca['as_min'], $ca['as_max'])) {
Example #3
0
    define('MOBILE_', '');
}
// APMS Common ---------------------------------------------------------------------------
$as_href = array();
$at = array();
$xp = array();
// Load XP
$xp = sql_fetch("select * from {$g5['apms_xp']} ", false);
// Define Term
define('AS_XP', $config['as_xp']);
define('AS_MP', $config['as_mp']);
define('APMS_PLUGIN_PATH', G5_PLUGIN_PATH . '/apms');
define('APMS_PLUGIN_URL', G5_PLUGIN_URL . '/apms');
$mode = apms_escape('mode', 0);
$pid = apms_escape('pid', 0);
$pim = apms_escape('pim', 0);
define('APMS_PIM', $pim);
// Member
$member = apms_member($member['mb_id']);
if (USE_PARTNER) {
    if (isset($member['as_partner']) && $member['as_partner']) {
        define('IS_SELLER', true);
    } else {
        define('IS_SELLER', false);
    }
    if (isset($member['as_marketer']) && $member['as_marketer']) {
        define('IS_MARKETER', true);
    } else {
        define('IS_MARKETER', false);
    }
    if (IS_SELLER || IS_MARKETER) {
Example #4
0
<?php

include_once './_common.php';
if ($is_guest) {
    alert_close('파트너만 이용가능합니다.');
}
$is_auth = $is_admin == 'super' ? true : false;
$is_partner = IS_SELLER ? true : false;
if ($is_auth || $is_partner) {
    // 통과
} else {
    alert_close('판매자(셀러) 파트너만 이용가능합니다.');
}
$no = apms_escape('no', 0);
if (!$no) {
    alert_close('값이 넘어오지 않았습니다.');
}
$od_id = $no;
$od = sql_fetch("select * from {$g5['g5_shop_order_table']} where od_id = '{$od_id}' ");
if (!$od['od_id']) {
    alert_close('조회하실 주문서가 없습니다.');
}
$sql = " select a.ct_id,\n\t\t\t\ta.it_id,\n\t\t\t\ta.it_name,\n\t\t\t\ta.ct_price,\n\t\t\t\ta.ct_point,\n\t\t\t\ta.ct_qty,\n\t\t\t\ta.ct_status,\n\t\t\t\ta.ct_send_cost,\n\t\t\t\ta.it_sc_type,\n\t\t\t\tb.ca_id,\n\t\t\t\tb.ca_id2,\n\t\t\t\tb.ca_id3,\n\t\t\t\tb.pt_it,\n\t\t\t\tb.pt_msg1,\n\t\t\t\tb.pt_msg2,\n\t\t\t\tb.pt_msg3\n\t\t   from {$g5['g5_shop_cart_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id )\n\t\t  where a.od_id = '{$od_id}' and a.pt_id = '{$member['mb_id']}' and a.ct_select = '1' ";
$sql .= " group by a.it_id ";
$sql .= " order by a.ct_id ";
$result = sql_query($sql);
$cart_count = sql_num_rows($result);
if (!$cart_count) {
    alert_close('조회하실 주문정보가 없습니다.');
}
$it_send_cost = 0;
Example #5
0
<?php

include_once '../common.php';
if (isset($_REQUEST['sort'])) {
    $sort = trim($_REQUEST['sort']);
    $sort = preg_replace("/[\\<\\>\\'\"\\\\'\\\"\\%\\=\\(\\)\\s]/", "", $sort);
} else {
    $sort = '';
}
if (isset($_REQUEST['sortodr'])) {
    $sortodr = preg_match("/^(asc|desc)\$/i", $sortodr) ? $sortodr : '';
} else {
    $sortodr = '';
}
$ca_id = apms_escape('ca_id');
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP) {
    die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');
}
define('_SHOP_', true);
define('IS_SHOP', true);
// 예약체크
apms_check_reserve_end();