Example #1
0
        $view['content'] = $autoplay . $view['content'];
    }
    //$view['rich_content'] = preg_replace("/{이미지\:([0-9]+)[:]?([^}]*)}/ie", "view_image(\$view, '\\1', '\\2')", $view['content']);
    if ($view['as_img'] == "2") {
        // 본문삽입
        function conv_rich_content($matches)
        {
            global $view;
            return view_image($view, $matches[1], $matches[2]);
        }
        $view['content'] = preg_replace_callback("/{이미지\\:([0-9]+)[:]?([^}]*)}/i", "conv_rich_content", $view['content']);
    }
    // 토렌트
    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'] = '';
Example #2
0
    for ($i = 0; $i < count($free_down); $i++) {
        $download[] = $free_down[$i];
    }
}
if ($is_viewer) {
    for ($i = 0; $i < count($pay_view); $i++) {
        $viewer[] = $pay_view[$i];
    }
    for ($i = 0; $i < count($free_view); $i++) {
        $viewer[] = $free_view[$i];
    }
}
// 토렌트 정보
$is_torrent = false;
if ($attach['torrent']) {
    $torrent = apms_get_torrent($attach);
    $is_torrent = true;
}
// 썸네일보기
$is_thumbview = $it['pt_img'] ? false : true;
// 페이지체크
$ss_name = 'ss_item_' . $it['it_id'];
if (!get_session($ss_name)) {
    set_session($ss_name, TRUE);
}
//날짜
$it['datetime'] = strtotime($it['it_time']);
// 추천
$is_good = $default['pt_good_use'] ? true : false;
$good_href = G5_SHOP_URL . '/good.php?it_id=' . $it['it_id'] . '&amp;good=good';
$nogood_href = G5_SHOP_URL . '/good.php?it_id=' . $it['it_id'] . '&amp;good=nogood';