if (get_session($ss_name) || $is_pre_commenter) { if ($is_cmt_shingo) { $list[$i]['content'] = ''; } else { $list[$i]['content'] = conv_content($row['wr_content'], 0, 'wr_content'); $list[$i]['content'] = search_font($stx, $list[$i]['content']); $is_content = true; } } else { $list[$i]['content'] = '<a href="./password.php?w=sc&bo_table=' . $bo_table . '&wr_id=' . $list[$i]['wr_id'] . $qstr . '" class="s_cmt">댓글내용 확인</a>'; $is_secret = true; } } if ($is_content) { $list[$i]['content'] = preg_replace("/\\[<a\\s*href\\=\"(http|https|ftp)\\:\\/\\/([^[:space:]]+)\\.(gif|png|jpg|jpeg|bmp).*<\\/a>(\\s\\]|\\]|)/i", "<a href=\"" . G5_BBS_URL . "/view_img.php?img=\$1://\$2.\$3\" target=\"_blank\" class=\"item_image\"><img src=\"\$1://\$2.\$3\" alt=\"\" style=\"max-width:100%;border:0;\"></a>", $list[$i]['content']); $list[$i]['content'] = apms_content($list[$i]['content']); //럭키포인트 if ($row['as_lucky']) { $list[$i]['content'] = $list[$i]['content'] . '' . str_replace("[point]", number_format($row['as_lucky']), APMS_LUCKY_TEXT); } } // 글정리 $list[$i]['content'] = $shingo_txt . $list[$i]['content']; $list[$i]['is_secret'] = $is_secret; $list[$i]['date'] = strtotime($list[$i]['wr_datetime']); $list[$i]['datetime'] = substr($row['wr_datetime'], 2, 14); // 관리자가 아니라면 중간 IP 주소를 감춘후 보여줍니다. $list[$i]['ip'] = $row['wr_ip']; if (!$is_admin) { $list[$i]['ip'] = preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", G5_IP_DISPLAY, $row['wr_ip']); }
if ($view['as_img'] == "2") { // 본문삽입 $view['wr_content'] = preg_replace_callback("/{이미지\\:([0-9]+)[:]?([^}]*)}/i", "conv_rich_content", $view['wr_content']); } else { for ($i = 0; $i <= count($view['file']); $i++) { if ($view['file'][$i]['view']) { $file .= '<p>' . get_view_thumbnail($view['file'][$i]['view']) . '</p>'; } } if ($view['as_img'] == "1") { $head_file = $file; } else { $tail_file = $file; } } $view['wr_content'] = $head_file . apms_link_video($view['link']) . apms_content($view['wr_content']) . $tail_file; $view['wr_content'] = get_view_thumbnail($view['wr_content']); ?> <item> <title><?php echo specialchars_replace($view['wr_subject']); ?> </title> <link><?php echo specialchars_replace(G5_BBS_URL . '/board.php?bo_table=' . $bo_table . '&wr_id=' . $view['wr_id']); ?> </link> <description><![CDATA[<?php echo $view['wr_content']; ?>
} $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']) . '님의 자기소개'; include_once G5_PATH . '/head.sub.php'; if (!USE_G5_THEME) { @(include_once THEMA_PATH . '/head.sub.php'); } $skin_path = $member_skin_path; $skin_url = $member_skin_url; include_once $skin_path . '/profile.skin.php'; if (!USE_G5_THEME) {
} $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']); } // 신고 $is_shingo = $board['as_shingo'] > 0 ? true : false; // Tag $is_tag = false; if ($view['as_tag']) { $tag_list = apms_get_tag($view['as_tag']); if ($tag_list) { $is_tag = true;
// 시작 레코드 구함 if ($from_record < 0) { $from_record = 0; } $itemuse_list = "./itemuselist.php"; $itemuse_form = "./itemuseform.php?it_id=" . $it_id . '&ca_id=' . $ca_id . '&urows=' . $urows; $itemuse_formupdate = "./itemuseformupdate.php?it_id=" . $it_id . '&ca_id=' . $ca_id . '&urows=' . $urows . '&page=' . $page; $list = array(); $sql = "select * {$sql_common} order by is_id desc limit {$from_record}, {$urows} "; $result = sql_query($sql); $iuse_num = $total_count - ($page - 1) * $urows; for ($i = 0; $row = sql_fetch_array($result); $i++) { $list[$i] = $row; $list[$i]['is_num'] = $iuse_num; $list[$i]['is_time'] = strtotime($row['is_time']); $list[$i]['is_star'] = apms_get_star($row['is_score']); $list[$i]['is_photo'] = apms_photo_url($row['mb_id']); $list[$i]['is_href'] = './itemuselist.php?bo_table=itemuse&wr_id=' . $row['wr_id']; $list[$i]['is_edit_href'] = $itemuse_form . '&is_id=' . $row['is_id'] . '&page=' . $page . '&w=u'; $list[$i]['is_edit_self'] = $itemuse_form . '&is_id=' . $row['is_id'] . '&page=' . $page . '&w=u&move=1'; $list[$i]['is_content'] = apms_content(conv_content($list[$i]['is_content'], 1)); $hash = md5($row['is_id'] . $row['is_time'] . $row['is_ip']); $list[$i]['is_del_href'] = $itemuse_formupdate . '&is_id=' . $row['is_id'] . '&w=d&hash=' . $hash; $list[$i]['is_del_return'] = './itemuse.php?it_id=' . $it_id . '&ca_id=' . $ca_id . '&urows=' . $urows . '&page=' . $page; $list[$i]['is_btn'] = $is_admin || $row['mb_id'] == $member['mb_id'] ? true : false; $iuse_num--; } $write_pages = G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages']; $list_page = './itemuse.php?it_id=' . $it_id . '&ca_id=' . $ca_id . '&urows=' . $urows . '&page='; include_once $item_skin_path . '/itemuse.skin.php'; unset($list);
if (!$view['is_id']) { alert('존재하지 않는 자료입니다.', G5_URL); } if ($ca_id) { $qstr .= '&ca_id=' . $ca_id; } // 버튼 $view['is_edit_href'] = $view['is_del_href'] = ''; if ($is_admin || $view['mb_id'] && $member['mb_id'] == $view['mb_id']) { $view['is_edit_href'] = './itemuseform.php?it_id=' . $view['it_id'] . '&is_id=' . $is_id . '&page=' . $page . '&w=u&move=3'; $hash = md5($view['is_id'] . $view['is_time'] . $view['is_ip']); $view['is_del_href'] = './itemuseformupdate.php?it_id=' . $view['it_id'] . '&is_id=' . $is_id . '&w=d&move=2&hash=' . $hash; } $view['is_time'] = strtotime($view['is_time']); $view['is_photo'] = apms_photo_url($view['mb_id']); $view['is_content'] = apms_content(conv_content($view['is_content'], 1)); $view['it_href'] = './item.php?it_id=' . $view['it_id']; // Page ID $pid = $pid ? $pid : 'iuse'; $at = apms_page_thema($pid); if (!defined('THEMA_PATH')) { include_once G5_LIB_PATH . '/apms.thema.lib.php'; } $skin_row = array(); $skin_row = apms_rows('use_' . MOBILE_ . 'rows, use_' . MOBILE_ . 'skin, use_' . MOBILE_ . 'set'); $skin_name = $skin_row['use_' . MOBILE_ . 'skin']; // 스킨설정 $wset = array(); if ($skin_row['use_' . MOBILE_ . 'set']) { $wset = apms_unpack($skin_row['use_' . MOBILE_ . 'set']); }
if (strstr($row2['wr_option'], 'html1')) { $html = 1; } else { if (strstr($row2['wr_option'], 'html2')) { $html = 2; } } $content = conv_content($row2['wr_content'], $html); } else { $gubun = '보드댓글'; $href = G5_BBS_URL . '/board.php?bo_table=' . $row['bo_table'] . '&wr_id=' . $row['wr_parent'] . '#c_' . $row['wr_id']; $content = conv_content($row2['wr_content'], 0, 'wr_content'); $content = preg_replace("/\\[\\<a\\s*href\\=\"(http|https|ftp)\\:\\/\\/([^[:space:]]+)\\.(gif|png|jpg|jpeg|bmp)\"\\s*[^\\>]*\\>[^\\s]*\\<\\/a\\>\\]/i", "<img src='\$1://\$2.\$3' alt='' style='max-width:100%;border:0;'>", $content); } } $content = apms_content($content); ?> <tr> <td class="td_mng"><?php echo $gubun; ?> </td> <td> <?php echo $content; ?> </td> <td class="td_mng"> <a href="<?php echo $href; ?>
function apms_explan($explan, $filter = true) { if (!$explan) { return; } $explan = preg_replace_callback("/{이미지\\:([0-9]+)[:]?([^}]*)}/is", "apms_callback_explan_image", $explan); //Image $explan = apms_content(conv_content($explan, 1, $filter)); return $explan; }
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) { for ($i = 1; $i <= $tv_idx; $i++) { if (get_session("ss_tv[{$i}]") == $it_id) { $saved = true; break; } } } if (!$saved) { $tv_idx++; set_session("ss_tv_idx", $tv_idx);
} // 버튼 $view['iq_ans_href'] = $view['iq_edit_href'] = $view['iq_del_href'] = ''; if ($is_admin || $view['pt_id'] && $member['mb_id'] == $view['pt_id']) { $view['iq_ans_href'] = './itemqansform.php?it_id=' . $view['it_id'] . '&iq_id=' . $iq_id . '&page=' . $page . '&move=3'; } if ($is_admin || $view['mb_id'] && $member['mb_id'] == $view['mb_id']) { $view['iq_edit_href'] = './itemqaform.php?it_id=' . $view['it_id'] . '&iq_id=' . $iq_id . '&page=' . $page . '&w=u&move=3'; $hash = md5($view['iq_id'] . $view['iq_time'] . $view['iq_ip']); $view['iq_del_href'] = './itemqaformupdate.php?it_id=' . $view['it_id'] . '&iq_id=' . $iq_id . '&w=d&move=2&hash=' . $hash; } $view['iq_time'] = strtotime($view['iq_time']); $view['iq_photo'] = apms_photo_url($view['mb_id']); $view['iqa_photo'] = $view['pt_id'] ? apms_photo_url($view['pt_id']) : apms_photo_url($config['cf_admin']); $view['iq_question'] = apms_content(conv_content($view['iq_question'], 1)); $view['iq_answer'] = apms_content(conv_content($view['iq_answer'], 1)); $view['it_href'] = './item.php?it_id=' . $view['it_id']; // Page ID $pid = $pid ? $pid : 'iqa'; $at = apms_page_thema($pid); if (!defined('THEMA_PATH')) { include_once G5_LIB_PATH . '/apms.thema.lib.php'; } $skin_row = array(); $skin_row = apms_rows('qa_' . MOBILE_ . 'rows, qa_' . MOBILE_ . 'skin, qa_' . MOBILE_ . 'set'); $skin_name = $skin_row['qa_' . MOBILE_ . 'skin']; // 스킨설정 $wset = array(); if ($skin_row['qa_' . MOBILE_ . 'set']) { $wset = apms_unpack($skin_row['qa_' . MOBILE_ . 'set']); }
} else { //$prev_link = 'javascript:alert(\'쪽지의 처음입니다.\');'; $prev_link = ''; } // 다음 쪽지 $sql = " select * from {$g5[memo_table]}\n where me_id < '{$me_id}'\n and me_{$kind}_mb_id = '{$member[mb_id]}'\n order by me_id desc\n limit 1 "; $next = sql_fetch($sql); if ($next[me_id]) { $next_link = './memo_view.php?kind=' . $kind . '&me_id=' . $next['me_id'] . $qstr; } else { //$next_link = 'javascript:alert(\'쪽지의 마지막입니다.\');'; $next_link = ''; } $mb = get_member($memo['me_' . $unkind . '_mb_id']); $nick = $mb['mb_open'] ? apms_sideview($mb['mb_id'], $mb['mb_nick'], $mb['mb_email'], $mb['mb_homepage']) : apms_sideview($mb['mb_id'], $mb['mb_nick'], '', ''); $memo_content = apms_content(conv_content($memo['me_memo'], 0)); // 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'] = $member['mb_nick'] . ' 님이 ' . $t . ' 쪽지 보기'; include_once G5_PATH . '/head.sub.php'; if (!USE_G5_THEME) { @(include_once THEMA_PATH . '/head.sub.php'); } $skin_path = $member_skin_path; $skin_url = $member_skin_url; // 스킨설정 $wset = G5_IS_MOBILE ? apms_skin_set('member_mobile') : apms_skin_set('member');
$list[$i]['secret'] = true; } } $list[$i]['iq_time'] = strtotime($row['iq_time']); $list[$i]['iq_edit_href'] = $itemqa_form . '&iq_id=' . $row['iq_id'] . '&page=' . $page . '&w=u'; $list[$i]['iq_edit_self'] = $itemqa_form . '&iq_id=' . $row['iq_id'] . '&page=' . $page . '&w=u&move=1'; $list[$i]['iq_ans_href'] = $itemqans_form . '&iq_id=' . $row['iq_id'] . '&page=' . $page; $list[$i]['iq_ans_self'] = $itemqans_form . '&iq_id=' . $row['iq_id'] . '&page=' . $page . '&move=1'; $hash = md5($row['iq_id'] . $row['iq_time'] . $row['iq_ip']); $list[$i]['iq_del_href'] = $itemqa_formupdate . '&iq_id=' . $row['iq_id'] . '&w=d&hash=' . $hash; $list[$i]['iq_del_return'] = './itemqa.php?it_id=' . $it_id . '&ca_id=' . $ca_id . '&qrows=' . $qrows . '&page=' . $page; $list[$i]['iq_photo'] = apms_photo_url($row['mb_id']); if ($row['pt_id']) { $list[$i]['ans_photo'] = $row['pt_id'] == $author_id ? $author_photo : apms_photo_url($row['pt_id']); } else { $list[$i]['ans_photo'] = $author_photo; } $list[$i]['answer'] = false; if (!$list[$i]['secret']) { if ($row['iq_answer']) { $list[$i]['iq_answer'] = apms_content(conv_content($list[$i]['iq_answer'], 1)); $list[$i]['answer'] = true; } } $list[$i]['iq_btn'] = $is_admin || $is_author || $row['mb_id'] == $member['mb_id'] && !$list[$i]['answer'] ? true : false; $iqa_num--; } $write_pages = G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages']; $list_page = './itemqa.php?it_id=' . $it_id . '&ca_id=' . $ca_id . '&qrows=' . $qrows . '&page='; include_once $item_skin_path . '/itemqa.skin.php'; unset($list);
$list[$i] = $row2; $parent[$i] = $row2; $list[$i]['num'] = $num; $list[$i]['wr_id'] = $row['wr_id']; $list[$i]['wr_datetime'] = $row3['wr_datetime']; $list[$i]['date'] = strtotime($list[$i]['wr_datetime']); $list[$i]['gr_id'] = $row['gr_id']; $list[$i]['bo_table'] = $row['bo_table']; $list[$i]['href'] = G5_BBS_URL . '/board.php?bo_table=' . $row['bo_table'] . '&wr_id=' . $row2['wr_id'] . '#c_' . $row['wr_id']; $list[$i]['reply_name'] = $row['wr_comment_reply'] && $row['as_re_name'] ? $row['as_re_name'] : ''; $list[$i]['gr_subject'] = $row['gr_subject']; $list[$i]['bo_subject'] = $row['bo_subject']; $list[$i]['comment'] = $row2['wr_comment']; $list[$i]['subject'] = $row2['wr_subject']; $list[$i]['wr_content'] = $row3['wr_content']; $list[$i]['content'] = apms_content(conv_content($row3['wr_content'], 0, 'wr_content')); $list[$i]['content'] = preg_replace("/\\[\\<a\\s*href\\=\"(http|https|ftp)\\:\\/\\/([^[:space:]]+)\\.(gif|png|jpg|jpeg|bmp)\"\\s*[^\\>]*\\>[^\\s]*\\<\\/a\\>\\]/i", "<img src='\$1://\$2.\$3' alt='' style='max-width:100%;border:0;'>", $list[$i]['content']); //럭키포인트 if ($row3['as_lucky']) { $list[$i]['content'] = $list[$i]['content'] . '' . str_replace("[point]", number_format($row3['as_lucky']), APMS_LUCKY_TEXT); } $num--; } } else { for ($i = 0; $row = sql_fetch_array($result); $i++) { $tmp_write_table = $g5['write_prefix'] . $row['bo_table']; $row2 = sql_fetch(" select * from {$tmp_write_table} where wr_id = '{$row['wr_parent']}' "); $list[$i] = $row2; $list[$i]['num'] = $num; $list[$i]['gr_id'] = $row['gr_id']; $list[$i]['bo_table'] = $row['bo_table'];
<?php if (!defined("_GNUBOARD_")) { exit; } // 개별 페이지 접근 불가 include_once G5_EDITOR_LIB; if ($is_auth) { $qa_sql = " and (a.pt_id = '' or a.pt_id = '{$mb_id}')"; } else { $qa_sql .= " and a.pt_id = '{$mb_id}'"; } $sql = " select *\n from {$g5['g5_shop_item_qa_table']} a\n left join {$g5['member_table']} b on (a.mb_id = b.mb_id)\n where iq_id = '{$iq_id}' {$qa_sql} "; $iq = sql_fetch($sql); if (!$iq['iq_id']) { alert('등록된 자료가 없습니다.', './?ap=qalist'); } $iq['iq_question'] = apms_content(conv_content($iq['iq_question'], 1)); $name = apms_sideview($iq['mb_id'], get_text($iq['iq_name']), $iq['mb_email'], $iq['mb_homepage']); $photo = apms_photo_url($iq['mb_id']); $it = apms_it($iq['it_id']); $list_href = './?ap=qalist&sca=' . $sca . '&save_opt=' . $opt . '&opt=' . $opt . '&page=' . $page; include_once $skin_path . '/qaform.skin.php';
echo $i; ?> "> <span class="panel-icon"></span> <b><?php echo apms_get_text($v['fa_subject']); ?> </b> </a> </div> <div id="faq_collapse<?php echo $i; ?> " class="panel-collapse collapse"> <div class="panel-body"> <?php echo apms_content(conv_content($v['fa_content'], 1)); ?> </div> </div> </div> <?php $i++; } ?> </div> <?php } else { if ($stx) { echo '<div class="faq-none text-center">검색된 FAQ가 없습니다.</div>'; } else { echo '<div class="faq-none text-center">등록된 FAQ가 없습니다.';