$rss_img = $img['src'] ? '<p><img src="' . $img['src'] . '" alt="' . $img['alt'] . '" border=0></p>' : ''; // 내용 $rss_content = apms_cut_text($row['it_explan'], 300); if (!$row['pt_id'] || $row['pt_id'] == $config['cf_admin']) { $author['mb_nick'] = $cf_author['mb_nick']; } else { $author = get_member($row['pt_id'], 'mb_nick'); } $date = $row['pt_num'] ? $row['pt_num'] : strtotime($row['it_time']); // rss 리더 스킨으로 호출하면 날짜가 제대로 표시되지 않음 //$date = substr($date,0,10) . "T" . substr($date,11,8) . "+09:00"; $date = date('r', $date); ?> <item> <title><?php echo specialchars_replace(apms_get_text($row['it_name'])); ?> </title> <link><?php echo specialchars_replace($link); ?> </link> <description><![CDATA[<?php echo conv_content($rss_img . $rss_content, 1); ?> ]]></description> <dc:creator><?php echo specialchars_replace($author['mb_nick']); ?> </dc:creator> <dc:date><?php
function apms_faq_rows($arr) { global $g5; $list = array(); $rows = isset($arr['rows']) && $arr['rows'] > 0 ? $arr['rows'] : 7; $sql_fa = ''; if (isset($arr['fa_list']) && $arr['fa_list']) { $sql_fa = isset($arr['except']) && $arr['except'] ? "and find_in_set(fm_id, '{$arr['fa_list']}')=0" : "and find_in_set(fa_id, '{$arr['fa_list']}')"; } $result = sql_query(" select * from {$g5['faq_table']} where 1 {$sql_fa} order by fa_order, fa_id limit 0, {$rows} ", false); for ($i = 0; $row = sql_fetch_array($result); $i++) { $list[$i] = $row; $list[$i]['subject'] = apms_get_text($list[$i]['fa_subject']); $list[$i]['content'] = conv_content($list[$i]['fa_content'], 1); $list[$i]['href'] = G5_BBS_URL . '/faq.php?fm_id=' . $row['fm_id']; } return $list; }
if (USE_G5_THEME) { if (!defined('G5_IS_ADMIN') && defined('G5_THEME_PATH') && is_file(G5_THEME_PATH . '/head.sub.php')) { require_once G5_THEME_PATH . '/head.sub.php'; return; } } } $begin_time = get_microtime(); if (!isset($g5['title'])) { $g5['title'] = $config['cf_title']; $g5_head_title = $g5['title']; } else { // 상태바에 표시될 제목 $g5_head_title = $g5['title'] . ' > ' . $config['cf_title']; } $g5_head_title = apms_get_text($g5_head_title); // 현재 접속자 // 게시판 제목에 ' 포함되면 오류 발생 $g5['lo_location'] = addslashes($g5['title']); if (!$g5['lo_location']) { $g5['lo_location'] = addslashes(clean_xss_tags($_SERVER['REQUEST_URI'])); } $g5['lo_url'] = addslashes(clean_xss_tags($_SERVER['REQUEST_URI'])); if (strstr($g5['lo_url'], '/' . G5_ADMIN_DIR . '/') || $is_admin == 'super') { $g5['lo_url'] = ''; } /* // 만료된 페이지로 사용하시는 경우 header("Cache-Control: no-cache"); // HTTP/1.1 header("Expires: 0"); // rfc2616 - Section 14.21 header("Pragma: no-cache"); // HTTP/1.0
if ($is_seometa == 'page' || $is_seometa == 'content') { // 페이지 $seometa['subject'] = $at['subject']; $seometa['description'] = $seo_page_desc; $seometa['creator'] = $config['cf_title']; $seometa['keyword'] = ''; $seometa['type'] = 'website'; $seometa['url'] = $is_seometa == 'content' ? G5_BBS_URL . '/content.php?co_id=' . $co_id : G5_BBS_URL . '/page.php?hid=' . $hid . $qstr; $seometa['img']['src'] = $seo_page_img; } } } } } $seometa['title'] = str_replace("\"", "'", $g5_head_title); $seometa['publisher'] = str_replace("\"", "'", apms_get_text($config['cf_title'])); $seometa['creator'] = str_replace("\"", "'", $seometa['creator']); $seometa['description'] = $seometa['description'] ? str_replace("\"", "'", $seometa['description']) : ''; ?> <meta name="title" content="<?php echo $seometa['title']; ?> " /> <?php if ($seometa['subject']) { ?> <meta name="subject" content="<?php echo str_replace("\"", "'", $seometa['subject']); ?> " /> <?php
// 시작 열을 구함 $result = sql_query(" select * {$sql_common} order by id desc limit {$start_rows}, {$rows} ", false); for ($i = 0; $row = sql_fetch_array($result); $i++) { if (IS_YC && $row['it_id']) { $post = sql_fetch(" select * from {$g5['g5_shop_item_table']} where it_id = '{$row['it_id']}' ", false); $list[$i]['href'] = G5_SHOP_URL . '/item.php?it_id=' . $row['it_id']; $list[$i]['subject'] = apms_get_text($post['it_name']); $list[$i]['content'] = apms_cut_text($post['it_explan'], 300); $list[$i]['hit'] = $post['it_hit']; $list[$i]['date'] = strtotime($post['it_time']); $list[$i]['comment'] = $post['pt_comment']; $list[$i]['img'] = apms_it_thumbnail($post, 0, 0); } else { $post = sql_fetch(" select * from {$g5['write_prefix']}{$row['bo_table']} where wr_id = '{$row['wr_id']}' ", false); $list[$i]['href'] = G5_BBS_URL . '/board.php?bo_table=' . $row['bo_table'] . '&wr_id=' . $row['wr_id']; $list[$i]['subject'] = apms_get_text($post['wr_subject']); // 비밀글은 검색 불가 if (strstr($post['wr_option'], 'secret')) { $post['wr_content'] = '[비밀글 입니다.]'; } $list[$i]['content'] = apms_cut_text($post['wr_content'], 300); $list[$i]['img'] = apms_wr_thumbnail($row['bo_table'], $post, 0, 0); $list[$i]['hit'] = $post['wr_hit']; $list[$i]['comment'] = $post['wr_comment']; $list[$i]['date'] = strtotime($post['wr_datetime']); } } $write_page_rows = G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages']; $list_page = $_SERVER['PHP_SELF'] . '?q=' . urlencode($q) . '&eq=' . $eq . '&page='; $skin_file = $skin_path . '/tag.search.skin.php'; } else {
<div class="div-panel no-animation panel-group at-toggle" id="faq_accordion"> <?php $i = 1; foreach ($faq_list as $key => $v) { if (empty($v)) { continue; } ?> <div class="panel panel-default"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#faq_accordion" href="#faq_collapse<?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>
$result = sql_query($sql); for ($i = 0; $row = sql_fetch_array($result); $i++) { // 검색어까지 링크되면 게시판 부하가 일어남 $list[$idx][$i] = $row; $list[$idx][$i]['href'] = './board.php?bo_table=' . $search_table[$idx] . '&wr_id=' . $row['wr_parent']; if ($row['wr_is_comment']) { $sql2 = " select wr_subject, wr_option from {$tmp_write_table} where wr_id = '{$row['wr_parent']}' "; $row2 = sql_fetch($sql2); //$row['wr_subject'] = $row2['wr_subject']; $row['wr_subject'] = get_text($row2['wr_subject']); } // 비밀글은 검색 불가 if (strstr($row['wr_option'] . $row2['wr_option'], 'secret')) { $row['wr_content'] = '[비밀글 입니다.]'; } $subject = apms_get_text($row['wr_subject']); if (strstr($sfl, 'wr_subject')) { $subject = search_font($stx, $subject); } if ($read_level[$idx] <= $member['mb_level']) { //$content = cut_str(get_text(strip_tags($row['wr_content'])), 300, "…"); //$content = strip_tags($row['wr_content']); $content = apms_cut_text($row['wr_content'], 300); //$content = strip_tags($content); $content = str_replace(' ', '', $content); //$content = cut_str($content, 300, "…"); if (strstr($sfl, 'wr_content')) { $content = search_font($stx, $content); } } else { $content = '';