Пример #1
0
<channel>
<title><?php 
echo specialchars_replace($config['cf_title']);
?>
</title>
<link><?php 
echo specialchars_replace($default_link);
?>
</link>
<description>APMS RSS Feed</description>
<language>ko</language>
<?php 
$cate = array();
$author = array();
// 관리자 정보
$cf_author = apms_member($config['cf_admin']);
// where
if ($id == $config['cf_admin']) {
    // 최고관리자는 자기꺼와 파트너아이디 없는 것 다 보여줌
    $sql_where = " and (pt_id = '' or pt_id = '{$id}')";
} else {
    // 파트너는 자기꺼만 보여줌
    $sql_where = " and pt_id = '{$id}'";
}
// 추출
$order_by = 'pt_num desc, it_id desc';
$where = "it_use = '1'";
if ($id) {
    $where .= $sql_where;
}
if ($tid) {
Пример #2
0
    if ($board['as_torrent'] && $view['file']['count']) {
        //첨부파일에서 토렌트 시드추출
        $torrent = apms_get_torrent($view['file'], G5_DATA_PATH . '/file/' . $bo_table);
        if (count($torrent) > 0) {
            $is_torrent = true;
        }
    }
}
$view['content'] = $shingo_txt . $view['content'];
// 글쓴이
$author = array();
$is_signature = false;
$signature = '';
if ($view['mb_id']) {
    $lvl = $board['as_level'] ? 'yes' : 'no';
    $author = apms_member($view['mb_id'], $lvl);
    if (!$author['mb_open']) {
        $author['mb_email'] = '';
        $author['mb_homepage'] = '';
    }
    if ($board['bo_use_signature']) {
        $is_signature = true;
        $signature = apms_content(conv_content($author['mb_signature'], 1));
    }
}
if ($is_signature) {
    $view['photo'] = $author['photo'];
} else {
    $view['photo'] = apms_photo_url($view['mb_id']);
}
// 신고
Пример #3
0
<?php

include_once './_common.php';
if (!$member['mb_id']) {
    alert_close('회원만 이용하실 수 있습니다.');
}
if (!$member['mb_open'] && $is_admin != 'super' && $member['mb_id'] != $mb_id) {
    alert_close('자신의 정보를 공개하지 않으면 다른분의 정보를 조회할 수 없습니다.\\n\\n정보공개 설정은 회원정보수정에서 하실 수 있습니다.');
}
$mb = apms_member($mb_id);
if (!$mb['mb_id']) {
    alert_close('회원정보가 존재하지 않습니다.\\n\\n탈퇴하였을 수 있습니다.');
}
if (!$mb['mb_open'] && $is_admin != 'super' && $member['mb_id'] != $mb_id) {
    alert_close('정보공개를 하지 않았습니다.');
}
$mb_nick = apms_sideview($mb['mb_id'], get_text($mb['mb_nick']), $mb['mb_email'], $mb['mb_homepage'], $mb['as_level']);
// 회원가입후 몇일째인지? + 1 은 당일을 포함한다는 뜻
$sql = " select (TO_DAYS('" . G5_TIME_YMDHIS . "') - TO_DAYS('{$mb['mb_datetime']}') + 1) as days ";
$row = sql_fetch($sql);
$mb_reg_after = $row['days'];
$mb_homepage = set_http(get_text(clean_xss_tags($mb['mb_homepage'])));
$mb_profile = $mb['mb_profile'] ? conv_content($mb['mb_profile'], 0) : '';
$mb_signature = $mb['mb_signature'] ? apms_content(conv_content($mb['mb_signature'], 1)) : '';
// Page ID
$pid = $pid ? $pid : '';
$at = apms_page_thema($pid);
if (!defined('THEMA_PATH')) {
    include_once G5_LIB_PATH . '/apms.thema.lib.php';
}
$g5['title'] = get_text($mb['mb_nick']) . '님의 자기소개';
Пример #4
0
// 테마체크
$at = apms_ca_thema($ca_id, $ca);
if (!defined('THEMA_PATH')) {
    include_once G5_LIB_PATH . '/apms.thema.lib.php';
}
// 본인인증, 성인인증체크
$is_cert = false;
if (!$is_admin) {
    $is_cert = shop_member_cert_check($it_id, 'item');
    if ($is_cert) {
        alert($is_cert, G5_SHOP_URL);
    }
}
// 등록자 정보
$author_id = $it['pt_id'] ? $it['pt_id'] : $config['cf_admin'];
$author = apms_member($author_id);
$author_photo = $author['photo'];
if ($author['mb_open']) {
    $author['homepage'] = set_http(clean_xss_tags($author['mb_homepage']));
    $author['email'] = $author['mb_email'];
} else {
    $author['email'] = $author['mb_email'] = '';
    $author['homepage'] = $author['mb_homepage'] = '';
}
$author['profile'] = $author['mb_profile'] ? conv_content($author['mb_profile'], 0) : '';
$author['signature'] = $author['mb_signature'] ? apms_content(conv_content($author['mb_signature'], 1)) : '';
// 오늘 본 상품 저장 시작
// tv 는 today view 약자
$saved = false;
$tv_idx = (int) get_session("ss_tv_idx");
if ($tv_idx > 0) {
Пример #5
0
<?php

include_once './_common.php';
$id = apms_escape_string(trim($id));
if (!$id) {
    goto_url(G5_SHOP_URL . '/partner');
}
$author = array();
$mb_id = $id;
$author = apms_member($mb_id);
$is_auth = false;
$is_cf = false;
if ($author['partner']) {
} else {
    if ($is_admin == 'super') {
        $is_auth = true;
    } else {
        if ($mb_id == $config['cf_admin']) {
            $is_cf = true;
        } else {
            alert('등록된 마이샵이 없습니다.', G5_SHOP_URL);
        }
    }
}
// Page ID
$pid = $pid ? $pid : 'myshop';
$at = apms_page_thema($pid);
if (!defined('THEMA_PATH')) {
    include_once G5_LIB_PATH . '/apms.thema.lib.php';
}
// RSS
Пример #6
0
    @(include_once THEMA_PATH . '/head.sub.php');
}
$skin_path = $member_skin_path;
$skin_url = $member_skin_url;
// 전체 페이지 계산
$rows = 5;
$row = sql_fetch(" select count(*) as cnt {$sql_common} ");
$total_count = $row['cnt'];
$total_page = ceil($total_count / $rows);
$page = $page > 1 ? $page : 1;
$from_record = ($page - 1) * $rows;
// 리스트
$result = sql_query(" select * {$sql_common} order by b.mb_today_login desc limit {$from_record}, {$rows} ");
for ($i = 0; $row = sql_fetch_array($result); $i++) {
    // Member
    $list[$i] = apms_member($row['mb_id']);
    $list[$i]['del_href'] = $mode == 'follow' || $mode == 'like' ? G5_BBS_URL . '/follow.php?id=' . $row['id'] . '&amp;mode=' . $mode . '&amp;&del=1' : '';
    $list[$i]['myshop_href'] = '';
    $list[$i]['myrss_href'] = '';
    if (IS_YC && $list[$i]['partner']) {
        $list[$i]['myshop_href'] = G5_SHOP_URL . '/myshop.php?id=' . $row['mb_id'];
        $list[$i]['myrss_href'] = G5_URL . '/rss/?id=' . $row['mb_id'];
    }
    // Item
    $j = 0;
    if (IS_YC) {
        $result2 = sql_query(" select it_id, it_name, pt_comment, it_time from {$g5['g5_shop_item_table']} where pt_id = '{$row['mb_id']}' and it_use = '1' order by it_id desc limit 0, 3 ", false);
        for ($j = 0; $row2 = sql_fetch_array($result2); $j++) {
            $list[$i]['it'][$j]['subject'] = $row2['it_name'];
            $list[$i]['it'][$j]['comment'] = $row2['pt_comment'];
            $list[$i]['it'][$j]['date'] = strtotime($row2['it_time']);
Пример #7
0
$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) {
        define('IS_PARTNER', true);
    } else {
        define('IS_PARTNER', false);