if ($info['screenshot']) { $screenshot = '<img src="' . $info['screenshot'] . '" alt="' . $name . '">'; } else { $screenshot = '<img src="' . G5_ADMIN_URL . '/img/theme_img.jpg" alt="">'; } $name = get_text($info['theme_name']); if ($info['theme_uri']) { $name = '<a href="' . set_http($info['theme_uri']) . '" target="_blank" class="thdt_home">' . $name . '</a>'; } $maker = get_text($info['maker']); if ($info['maker_uri']) { $maker = '<a href="' . set_http($info['maker_uri']) . '" target="_blank" class="thdt_home">' . $maker . '</a>'; } $license = get_text($info['license']); if ($info['license_uri']) { $license = '<a href="' . set_http($info['license_uri']) . '" target="_blank" class="thdt_home">' . $license . '</a>'; } ?> <div id="theme_detail"> <div class="thdt_img"><?php echo $screenshot; ?> </div> <div class="thdt_if"> <h2><?php echo $name; ?> </h2> <table> <tr>
// 추출하기 $bo_list = $i > 0 ? implode(',', $bo) : $bo[0]; $result = sql_query(" select * from {$g5['board_new_table']} where wr_id = wr_parent and find_in_set(bo_table, '{$bo_list}') and as_secret <> '1' order by bn_id desc limit 0, {$rss_rows} ", false); for ($i = 0; $post = sql_fetch_array($result); $i++) { $tmp_write_table = $g5['write_prefix'] . $post['bo_table']; $row = sql_fetch(" select * from {$tmp_write_table} where wr_id = '{$post['wr_id']}' ", false); if (strstr($row['wr_option'], 'secret')) { continue; } if ($row['as_shingo'] < 0) { continue; } $board = sql_fetch(" select bo_subject from {$g5['board_table']} where bo_table = '{$post['bo_table']}' "); // 링크 for ($i = k; $k <= G5_LINK_COUNT; $k++) { $row['link'][$i] = set_http(get_text($row["wr_link{$k}"])); } if (strstr($row['wr_option'], 'html')) { $html = 1; } else { $html = 0; } $row['wr_content'] = conv_content($row['wr_content'], $html); $file = $head_file = $tail_file = ''; if ($row['as_img'] == "2") { // 본문삽입 $row['wr_content'] = preg_replace_callback("/{이미지\\:([0-9]+)[:]?([^}]*)}/i", "img_insert_content", $row['wr_content']); } else { $tmp = get_file($post['bo_table'], $post['wr_id']); for ($j = 0; $j < count($tmp); $j++) { if (isset($tmp[$j]['source']) && $tmp[$j]['source'] && $tmp[$j]['view']) {
if ($mw_basic[cf_attribute] == 'anonymous') { $ip = ""; } else { if ($view[wr_anonymous]) { $ip = ""; } else { if ($view[mb_id] == $config[cf_admin]) { $ip = ""; } else { // 관리자가 아니라면 IP 주소를 감춘후 보여줍니다. $ip = preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", "\\1.♡.\\3.\\4", $write[wr_ip]); } } } } $shorten = set_http("{$g4[url]}/{$g4[bbs]}/board.php?bo_table={$bo_table}&wr_id={$wr_id}"); if ($mw_basic[cf_shorten]) { $shorten = "{$g4['url']}/{$bo_table}/{$wr_id}"; } if ($mw['config']['cf_seo_url']) { $shorten = mw_seo_url($bo_table, $wr_id); } $new_time = date("Y-m-d H:i:s", $g4[server_time] - $board[bo_new] * 3600); $row = sql_fetch(" select count(*) as cnt from {$write_table} where wr_is_comment = 0 and wr_datetime >= '{$new_time}' "); $new_count = $row[cnt]; // 최고, 그룹관리자라면 글 복사, 이동 가능 $copy_href = $move_href = ""; if ($write[wr_reply] == "" && ($is_admin == "super" || $is_admin == "group")) { $copy_href = "javascript:window.open('{$board_skin_path}/move.php?sw=copy&bo_table={$bo_table}&wr_id={$wr_id}&page={$page}" . $qstr . "', 'boardcopy', 'left=50, top=50, width=500, height=550, scrollbars=1');"; $move_href = "javascript:window.open('{$board_skin_path}/move.php?sw=move&bo_table={$bo_table}&wr_id={$wr_id}&page={$page}" . $qstr . "', 'boardmove', 'left=50, top=50, width=500, height=550, scrollbars=1');"; }
> <?php echo $row[content]; ?> </div> <?php if ($list[$i][trackback]) { echo "<p>" . $list[$i][trackback] . "</p>"; } ?> <?php if ($mw_basic[cf_source_copy]) { // 출처 자동 복사 ?> <?php $copy_url = set_http("{$g4[url]}/{$g4[bbs]}/board.php?bo_table={$bo_table}&wr_id={$wr_id}#c_{$list[$i][wr_id]}"); ?> <script> AutoSourcing.setString(<?php echo $list[$i][wr_id]; ?> , "<?php echo $config[cf_title]; ?> ", "<?php echo $list[$i][wr_name]; ?> ", "<?php echo $copy_url; ?>
* - 이 저작권 표시사항을 저작권자를 제외한 그 누구도 수정할 수 없습니다. */ if (!defined("_GNUBOARD_")) { exit; } // 개별 페이지 접근 불가 // 페이스북 정보 $mw_facebook_config = array(); $mw_facebook_config['appId'] = ''; $mw_facebook_config['secret'] = ''; // 트위터 정보 $mw_twitter_config = array(); $mw_twitter_config['consumer_key'] = ''; $mw_twitter_config['consumer_secret'] = ''; // 트위터 관련 - 수정하지 마세요. $tmp = parse_url($g4['url']); $mw_twitter_config['oauth_callback'] = set_http($tmp['host'] . dirname($_SERVER['SCRIPT_NAME']) . "/twitter-login.php"); // 구글정보 $mw_google_config['client_id'] = ''; $mw_google_config['client_secret'] = ''; $mw_google_config['client_domain'] = ''; // 네이버 정보 $mw_naver_config = array(); $mw_naver_config['client_id'] = ''; $mw_naver_config['client_secret'] = ''; $mw_naver_config['callback'] = set_http($tmp['host'] . dirname($_SERVER['SCRIPT_NAME']) . "/naver-login.php"); // 카카오 정보 $mw_kakao_config = array(); $mw_kakao_config['client_id'] = ''; $mw_kakao_config['callback'] = set_http($tmp['host'] . dirname($_SERVER['SCRIPT_NAME']) . "/kakao-login.php");
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']) . '님의 자기소개'; 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 "_common.php"; include_once "{$g4['path']}/plugin/social-login/_lib.php"; include_once "{$g4['path']}/plugin/social-login/_config.php"; include_once "lib/google/apiClient.php"; include_once "lib/google/contrib/apiOauth2Service.php"; $client = new apiClient(); $client->setApplicationName("Miwit.com Social-login Solution"); // Visit https://code.google.com/apis/console?api=plus to generate your // oauth2_client_id, oauth2_client_secret, and to register your oauth2_redirect_uri. $client->setClientId($mw_google_config[client_id]); $client->setClientSecret($mw_google_config[client_secret]); $client->setRedirectUri(set_http($mw_google_config[client_domain] . $_SERVER[SCRIPT_NAME])); //$client->setDeveloperKey('insert_your_developer_key'); $oauth2 = new apiOauth2Service($client); if (isset($_GET['code'])) { $client->authenticate(); $_SESSION['token'] = $client->getAccessToken(); $redirect = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL)); } if (isset($_SESSION['token'])) { $client->setAccessToken($_SESSION['token']); } if (isset($_REQUEST['logout'])) { unset($_SESSION['token']); $client->revokeToken(); }
function get_sideview($mb_id, $name = '', $email = '', $homepage = '') { global $config; global $g5; global $bo_table, $sca, $is_admin, $member; $email = base64_encode($email); $homepage = set_http(clean_xss_tags($homepage)); $name = preg_replace("/\\'/", "", $name); $name = preg_replace("/\\'/", "", $name); $name = preg_replace("/\"/", """, $name); $title_name = $name; $tmp_name = ""; if ($mb_id) { //$tmp_name = "<a href=\"".G5_BBS_URL."/profile.php?mb_id=".$mb_id."\" class=\"sv_member\" title=\"$name 자기소개\" target=\"_blank\" onclick=\"return false;\">$name</a>"; $tmp_name = '<a href="' . G5_BBS_URL . '/profile.php?mb_id=' . $mb_id . '" class="sv_member" title="' . $name . ' 자기소개" target="_blank" onclick="return false;">'; if ($config['cf_use_member_icon']) { $mb_dir = substr($mb_id, 0, 2); $icon_file = G5_DATA_PATH . '/member/' . $mb_dir . '/' . $mb_id . '.gif'; if (file_exists($icon_file)) { $width = $config['cf_member_icon_width']; $height = $config['cf_member_icon_height']; $icon_file_url = G5_DATA_URL . '/member/' . $mb_dir . '/' . $mb_id . '.gif'; $tmp_name .= '<img src="' . $icon_file_url . '" width="' . $width . '" height="' . $height . '" alt="">'; if ($config['cf_use_member_icon'] == 2) { // 회원아이콘+이름 $tmp_name = $tmp_name . ' ' . $name; } } else { $tmp_name = $tmp_name . " " . $name; } } else { $tmp_name = $tmp_name . ' ' . $name; } $tmp_name .= '</a>'; $title_mb_id = '[' . $mb_id . ']'; } else { if (!$bo_table) { return $name; } $tmp_name = '<a href="' . G5_BBS_URL . '/board.php?bo_table=' . $bo_table . '&sca=' . $sca . '&sfl=wr_name,1&stx=' . $name . '" title="' . $name . ' 이름으로 검색" class="sv_guest" onclick="return false;">' . $name . '</a>'; $title_mb_id = '[비회원]'; } $name = get_text($name); $email = get_text($email); $homepage = get_text($homepage); $str = "<span class=\"sv_wrap\">\n"; $str .= $tmp_name . "\n"; $str2 = "<span class=\"sv\">\n"; if ($mb_id) { $str2 .= "<a href=\"" . G5_BBS_URL . "/memo_form.php?me_recv_mb_id=" . $mb_id . "\" onclick=\"win_memo(this.href); return false;\">쪽지보내기</a>\n"; } if ($email) { $str2 .= "<a href=\"" . G5_BBS_URL . "/formmail.php?mb_id=" . $mb_id . "&name=" . urlencode($name) . "&email=" . $email . "\" onclick=\"win_email(this.href); return false;\">메일보내기</a>\n"; } if ($homepage) { $str2 .= "<a href=\"" . $homepage . "\" target=\"_blank\">홈페이지</a>\n"; } if ($mb_id) { $str2 .= "<a href=\"" . G5_BBS_URL . "/profile.php?mb_id=" . $mb_id . "\" onclick=\"win_profile(this.href); return false;\">자기소개</a>\n"; } if ($bo_table) { if ($mb_id) { $str2 .= "<a href=\"" . G5_BBS_URL . "/board.php?bo_table=" . $bo_table . "&sca=" . $sca . "&sfl=mb_id,1&stx=" . $mb_id . "\">아이디로 검색</a>\n"; } else { $str2 .= "<a href=\"" . G5_BBS_URL . "/board.php?bo_table=" . $bo_table . "&sca=" . $sca . "&sfl=wr_name,1&stx=" . $name . "\">이름으로 검색</a>\n"; } } if ($mb_id) { $str2 .= "<a href=\"" . G5_BBS_URL . "/new.php?mb_id=" . $mb_id . "\">전체게시물</a>\n"; } if ($g5['sms5_use_sideview']) { $mb = get_member($mb_id, " mb_open, mb_sms , mb_hp "); if ($mb['mb_open'] && $mb['mb_sms'] && $mb['mb_hp']) { $str2 .= "<a href=\"" . G5_SMS5_URL . "/?mb_id=" . $mb_id . "\" class=\"win_sms5\" target=\"_blank\">문자보내기</a>\n"; } } if ($is_admin == "super" && $mb_id) { $str2 .= "<a href=\"" . G5_ADMIN_URL . "/member_form.php?w=u&mb_id=" . $mb_id . "\" target=\"_blank\">회원정보변경</a>\n"; $str2 .= "<a href=\"" . G5_ADMIN_URL . "/point_list.php?sfl=mb_id&stx=" . $mb_id . "\" target=\"_blank\">포인트내역</a>\n"; } $str2 .= "</span>\n"; $str .= $str2; $str .= "\n<noscript class=\"sv_nojs\">" . $str2 . "</noscript>"; $str .= "</span>"; return $str; }
$sql = "select * from {$g4['point_table']} "; $sql .= " where mb_id = '{$member['mb_id']}' "; $sql .= " and po_rel_table = '{$bo_table}' "; $sql .= " and po_rel_id = '{$wr_id}' "; $sql .= " and po_rel_action = '링크'"; $tmp = sql_fetch($sql); if (!$tmp && $member[mb_point] + $mw_basic[cf_link_point] < 0) { $str = "보유하신 포인트(" . number_format($member[mb_point]) . ")가 없거나 모자라서 "; $str .= "링크이동(" . number_format($mw_basic[cf_link_point]) . ")이 불가합니다."; $str .= "\\n\\n포인트를 모으신 후 다시 링크를 클릭해 주십시오."; alert_close($str); } if (!$tmp) { insert_point($member[mb_id], $mw_basic[cf_link_point], "{$board['bo_subject']} {$wr_id} 링크클릭", $bo_table, $wr_id, '링크'); } } $sql = " update {$g4[write_prefix]}{$bo_table} set wr_link{$no}_hit = wr_link{$no}_hit + 1 where wr_id = '{$wr_id}' "; sql_query($sql); set_session($ss_name, true); } if ($mw_basic[cf_link_log]) { // 링크 기록 $ll_name = $board[bo_use_name] ? $member[mb_name] : $member[mb_nick]; $sql = "insert into {$mw['link_log_table']}\n set bo_table = '{$bo_table}'\n , wr_id = '{$wr_id}'\n , ll_no = '{$no}'\n , mb_id = '{$member['mb_id']}'\n , ll_name = '{$ll_name}'\n , ll_ip = '{$_SERVER['REMOTE_ADDR']}'\n , ll_datetime = '{$g4['time_ymdhis']}'"; $qry = sql_query($sql); } $url = set_http($write["wr_link{$no}"]); if ($mw_basic['cf_hidden_link'] && $write["wr_hidden_link{$no}"]) { $url = set_http($write["wr_hidden_link{$no}"]); } goto_url($url);
<?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 = get_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("정보공개를 하지 않았습니다."); } $g4[title] = $mb[mb_nick] . "님의 자기소개"; include_once "{$g4['path']}/head.sub.php"; $mb_nick = get_sideview($mb[mb_id], $mb[mb_nick], $mb[mb_email], $mb[mb_homepage], $mb[mb_open]); // 회원가입후 몇일째인지? + 1 은 당일을 포함한다는 뜻 $sql = " select (TO_DAYS('{$g4['time_ymdhis']}') - TO_DAYS('{$mb['mb_datetime']}') + 1) as days "; $row = sql_fetch($sql); $mb_reg_after = $row[days]; $mb_homepage = set_http($mb[mb_homepage]); $mb_profile = $mb[mb_profile] ? conv_content($mb[mb_profile], 0) : "소개 내용이 없습니다."; echo "<script type='text/javascript' src='{$g4['path']}/js/sideview.js'></script>"; $member_skin_path = "{$g4['path']}/skin/member/{$config['cf_member_skin']}"; include_once "{$member_skin_path}/profile.skin.php"; include_once "{$g4['path']}/tail.sub.php";
function eb_nameview($skin_dir, $mb_id, $name = '', $email = '', $homepage = '') { global $config; global $g5; global $bo_table, $sca, $is_admin, $member, $tpl_name, $tpl, $eyoomer; // 익명일 경우, 네임뷰 if ($mb_id == 'anonymous') { $is_anonymous = true; $head['name'] = get_text($name); } else { $following = $eyoomer['following']; if (!$following) { $following = array(); } if (in_array($mb_id, $following)) { $follow = true; } $email = base64_encode($email); $homepage = set_http(clean_xss_tags($homepage)); $name = preg_replace("/\\'/", "", $name); $name = preg_replace("/\\'/", "", $name); $name = preg_replace("/\"/", """, $name); $name = get_text(cut_str($name, $config['cf_cut_name'])); $title_name = $name; $tmp_name = ""; if ($mb_id) { $head['link'] = G5_BBS_URL . '/profile.php?mb_id=' . $mb_id; if ($config['cf_use_member_icon']) { $mb_dir = substr($mb_id, 0, 2); $icon_file = G5_DATA_PATH . '/member/' . $mb_dir . '/' . $mb_id . '.gif'; if (file_exists($icon_file)) { $width = $config['cf_member_icon_width']; $height = $config['cf_member_icon_height']; $icon_file_url = G5_DATA_URL . '/member/' . $mb_dir . '/' . $mb_id . '.gif'; $tmp_name .= '<img src="' . $icon_file_url . '" width="' . $width . '" height="' . $height . '" alt="">'; if ($config['cf_use_member_icon'] == 2) { // 회원아이콘+이름 $tmp_name = $tmp_name . ' ' . $name; } } else { $tmp_name = $tmp_name . " " . $name; } } else { $tmp_name = $tmp_name . ' ' . $name; } $head['name'] = $tmp_name; $head['title'] = '[' . $mb_id . ']'; } else { if (!$bo_table) { return $name; } $head['link'] = G5_BBS_URL . '/board.php?bo_table=' . $bo_table . '&sca=' . $sca . '&sfl=wr_name,1&stx=' . $name; $head['name'] = $name; $head['title'] = '[비회원]'; } $name = get_text($name); $email = get_text($email); $homepage = get_text($homepage); if ($mb_id) { $link['memo'] = G5_BBS_URL . "/memo_form.php?me_recv_mb_id=" . $mb_id; $link['profile'] = G5_BBS_URL . "/profile.php?mb_id=" . $mb_id; $link['article'] = G5_BBS_URL . "/new.php?mb_id=" . $mb_id; $link['userpage'] = G5_URL . "/?" . $mb_id; } if ($email) { $link['email'] = G5_BBS_URL . "/formmail.php?mb_id=" . $mb_id . "&name=" . urlencode($name) . "&email=" . $email; } if ($homepage) { $link['home'] = $homepage; } if ($bo_table) { if ($mb_id) { $link['sid'] = G5_BBS_URL . "/board.php?bo_table=" . $bo_table . "&sca=" . $sca . "&sfl=mb_id,1&stx=" . $mb_id; } else { $link['sname'] = G5_BBS_URL . "/board.php?bo_table=" . $bo_table . "&sca=" . $sca . "&sfl=wr_name,1&stx=" . $name; } } if ($g5['sms5_use_sideview']) { $mb = get_member($mb_id, " mb_open, mb_sms , mb_hp "); if ($mb['mb_open'] && $mb['mb_sms'] && $mb['mb_hp']) { $link['sms'] = G5_SMS5_URL . "/?mb_id=" . $mb_id; } } if ($is_admin == "super" && $mb_id) { $link['info'] = G5_ADMIN_URL . "/member_form.php?w=u&mb_id=" . $mb_id; $link['point'] = G5_ADMIN_URL . "/point_list.php?sfl=mb_id&stx=" . $mb_id; } } $tpl->define(array('pc' => 'skin_pc/nameview/' . $skin_dir . '/nameview.skin.html', 'mo' => 'skin_mo/nameview/' . $skin_dir . '/nameview.skin.html', 'bs' => 'skin_bs/nameview/' . $skin_dir . '/nameview.skin.html')); $tpl->assign(array("head" => $head, "link" => $link, "mb_id" => $mb_id, "email" => $email, "home" => $homepage, "bo_table" => $bo_table, "g5" => $g5, "is_admin" => $is_admin, "follow" => $follow, "is_anonymous" => $is_anonymous)); $tpl->print_($tpl_name); }
function get_sideview($mb_id, $name = '', $email = '', $homepage = '') { global $config; global $g5; global $bo_table, $sca, $is_admin, $member; $email = base64_encode($email); $homepage = set_http(clean_xss_tags($homepage)); $name = preg_replace("/\\'/", "", $name); $name = preg_replace("/\\'/", "", $name); $name = preg_replace("/\"/", """, $name); $title_name = $name; $tmp_name = ""; if ($mb_id) { //$tmp_name = "<a href=\"".G5_BBS_URL."/profile.php?mb_id=".$mb_id."\" class=\"sv_member\" title=\"$name 자기소개\" target=\"_blank\" onclick=\"return false;\">$name</a>"; $tmp_name = '<a href="' . G5_BBS_URL . '/profile.php?mb_id=' . $mb_id . '" class="sv_member" title="' . $name . ' 자기소개" target="_blank" onclick="return false;">'; if ($config['cf_use_member_icon']) { $mb_dir = substr($mb_id, 0, 2); $icon_file = G5_DATA_PATH . '/member/' . $mb_dir . '/' . $mb_id . '.gif'; if (file_exists($icon_file)) { $width = $config['cf_member_icon_width']; $height = $config['cf_member_icon_height']; $icon_file_url = G5_DATA_URL . '/member/' . $mb_dir . '/' . $mb_id . '.gif'; $tmp_name .= '<img src="' . $icon_file_url . '" width="' . $width . '" height="' . $height . '" alt="" style="float: left; margin: 3px;">'; if ($config['cf_use_member_icon'] == 2) { // 회원아이콘+이름 $tmp_name = $tmp_name . ' ' . $name; } } else { $tmp_name = $tmp_name . " " . $name; } } else { $tmp_name = $tmp_name . ' ' . $name; } $tmp_name .= '</a>'; $title_mb_id = '[' . $mb_id . ']'; } else { if (!$bo_table) { return $name; } $tmp_name = '<a href="' . G5_BBS_URL . '/board.php?bo_table=' . $bo_table . '&sca=' . $sca . '&sfl=wr_name,1&stx=' . $name . '" title="' . $name . '" class="tooltip-top" onclick="return false;">' . $name . '</a>'; $title_mb_id = '[비회원]'; } $name = get_text($name); $email = get_text($email); $homepage = get_text($homepage); $str = "<span class=\"sv_wrap\">\n"; $str .= "<div class=\"btn-group\">\n\t <button type=\"button\" class=\"btn btn-default dropdown-toggle\" data-toggle=\"dropdown\">\n\t\t\t" . $tmp_name . "\n\t\t\t<span class=\"caret\"></span>\n\t\t\t</button>\n"; $str2 = "<ul class=\"dropdown-menu\" role=\"menu\">\n"; if ($mb_id) { $str2 .= "<li><a href=\"" . G5_BBS_URL . "/memo_form.php?me_recv_mb_id=" . $mb_id . "\" onclick=\"win_memo(this.href); return false;\"><i class=\"fa fa-envelope-o fa-fw\"></i> 쪽지보내기</a>\n"; } if ($email) { $str2 .= "<li><a href=\"" . G5_BBS_URL . "/formmail.php?mb_id=" . $mb_id . "&name=" . urlencode($name) . "&email=" . $email . "\" onclick=\"win_email(this.href); return false;\"><i class=\"fa fa-mail-forward fa-fw\"></i> 메일보내기</a></li>\n"; } if ($homepage) { $str2 .= "<li><a href=\"" . $homepage . "\" target=\"_blank\"><i class=\"fa fa-home fa-fw\"></i> 홈페이지</a></li>\n"; } if ($mb_id) { $str2 .= "<li><a href=\"" . G5_BBS_URL . "/profile.php?mb_id=" . $mb_id . "\" onclick=\"win_profile(this.href); return false;\"><i class=\"fa fa-child fa-fw\"></i> 자기소개</a></li>\n"; } if ($bo_table) { if ($mb_id) { $str2 .= "<li><a href=\"" . G5_BBS_URL . "/board.php?bo_table=" . $bo_table . "&sca=" . $sca . "&sfl=mb_id,1&stx=" . $mb_id . "\"><i class=\"fa fa-paper-plane-o fa-fw\"></i> 아이디로 검색</a></li>\n"; } else { $str2 .= "<li><a href=\"" . G5_BBS_URL . "/board.php?bo_table=" . $bo_table . "&sca=" . $sca . "&sfl=wr_name,1&stx=" . $name . "\"><i class=\"fa fa-search-plus fa-fw\"></i> 이름으로 검색</a></li>\n"; } } if ($mb_id) { $str2 .= "<li><a href=\"" . G5_BBS_URL . "/new.php?mb_id=" . $mb_id . "\"><i class=\"fa fa-list-alt fa-fw\"></i> 전체게시물</a></li>\n"; } if ($g5['sms5_use_sideview']) { $mb = get_member($mb_id, " mb_open, mb_sms , mb_hp "); if ($mb['mb_open'] && $mb['mb_sms'] && $mb['mb_hp']) { $str2 .= "<li><a href=\"" . G5_SMS5_URL . "/?mb_id=" . $mb_id . "\" class=\"win_sms5\" target=\"_blank\"><i class=\"fa fa-paper-plane-o fa-fw\"></i> 문자보내기</a></li>\n"; } } if ($is_admin == "super" && $mb_id) { $str2 .= "<li><a href=\"" . G5_ADMIN_URL . "/member_form.php?w=u&mb_id=" . $mb_id . "\" target=\"_blank\"><i class=\"fa fa-user-secret fa-fw\"></i> 회원정보변경</a></li>\n"; $str2 .= "<li><a href=\"" . G5_ADMIN_URL . "/point_list.php?sfl=mb_id&stx=" . $mb_id . "\" target=\"_blank\"><i class=\"fa fa-money fa-fw\"></i> 포인트내역</a></li>\n"; } $str2 .= "</ul>\n"; $str .= $str2; $str .= "\n<noscript class=\"sv_nojs\">" . $str2 . "</noscript>"; $str .= "</div></span>"; return $str; }
// 쪽지 $memo_not_read = 0; if ($is_member) { $sql = " select count(*) as cnt "; $sql .= " from {$g5['memo_table']} "; $sql .= " where me_recv_mb_id = '{$member['mb_id']}' "; $sql .= " and substring(me_read_datetime, 1, 1) = '0' "; $row = sql_fetch($sql); $memo_not_read = $row['cnt']; } // 현재 메뉴 찾기 $my_url = null; $menu = null; $is_sidebar = true; if (strlen($_SERVER["REQUEST_URI"]) > 1) { $my_url = set_http($_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]); $sql = " select * from {$g5['menu_table']} where me_use = '1' order by me_order "; $qry = sql_query($sql); while ($row = sql_fetch_array($qry)) { if (strstr($my_url, $row['me_link']) or strstr($my_url, preg_replace("/\\/b\\/([a-zA-Z0-9-_]+)\$/iUs", "/" . G5_BBS_DIR . "/board.php?bo_table=\$1", $row['me_link'])) or strstr($my_url, preg_replace("/\\/b\\/([a-zA-Z0-9-_]+)\$/iUs", "/" . G5_BBS_DIR . "/write.php?bo_table=\$1", $row['me_link'])) or strstr($my_url, str_replace("board.php", "write.php", $row['me_link']))) { $menu = $row; //break; } //$menu = sql_fetch(" select * from {$g5['menu_table']} where me_link like '{$my_url}%' limit 1"); } } $mw5_menu_extend = null; if ($menu) { $mw5_menu_extend = sql_fetch("select * from {$mw5['menu_table']} where me_code = '{$menu['me_code']}' ", false); if ($mw5_menu_extend['me_no_side']) { $is_sidebar = false;
<?php include_once './_common.php'; $html_title = '링크 > ' . conv_subject($write['wr_subject'], 255); if (!($bo_table && $wr_id && $no)) { alert_close('값이 제대로 넘어오지 않았습니다.'); } // SQL Injection 예방 $row = sql_fetch(" select count(*) as cnt from {$g5['write_prefix']}{$bo_table} ", FALSE); if (!$row['cnt']) { alert_close('존재하는 게시판이 아닙니다.'); } if (!$write['wr_link' . $no]) { alert_close('링크가 없습니다.'); } $ss_name = 'ss_link_' . $bo_table . '_' . $wr_id . '_' . $no; if (empty($_SESSION[$ss_name])) { $sql = " update {$g5['write_prefix']}{$bo_table} set wr_link{$no}_hit = wr_link{$no}_hit + 1 where wr_id = '{$wr_id}' "; sql_query($sql); set_session($ss_name, true); } goto_url(set_http($write['wr_link' . $no]));
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) { for ($i = 1; $i <= $tv_idx; $i++) { if (get_session("ss_tv[{$i}]") == $it_id) { $saved = true;
<?php include_once './_common.php'; if (!$is_member) { goto_url(G5_BBS_URL . "/login.php?url=" . urlencode(G5_BBS_URL . "/mypage.php")); } $mb_homepage = set_http(clean_xss_tags($member['mb_homepage'])); $mb_profile = $member['mb_profile'] ? conv_content($member['mb_profile'], 0) : ''; $mb_signature = $member['mb_signature'] ? apms_content(conv_content($member['mb_signature'], 1)) : ''; // Page ID $pid = $pid ? $pid : 'mypage'; $at = apms_page_thema($pid); if (!defined('THEMA_PATH')) { include_once G5_LIB_PATH . '/apms.thema.lib.php'; } $g5['title'] = $member['mb_name'] . '님 마이페이지'; include_once './_head.php'; $skin_path = $member_skin_path; $skin_url = $member_skin_url; // 스킨설정 $wset = G5_IS_MOBILE ? apms_skin_set('member_mobile') : apms_skin_set('member'); $setup_href = ''; if (is_file($skin_path . '/setup.skin.php') && ($is_demo || $is_admin == 'super')) { $setup_href = './skin.setup.php?skin=member'; } include_once $skin_path . '/mypage.skin.php'; include_once './_tail.php';
function get_sideview($mb_id, $name = "", $email = "", $homepage = "") { global $config; global $g4; $email = base64_encode($email); $homepage = set_http($homepage); $name = preg_replace("/\\'/", "", $name); $name = preg_replace("/\\'/", "", $name); $name = preg_replace("/\"/", """, $name); $title_name = $name; $tmp_name = get_text(cut_str($name, $config['cf_cut_name'])); // 설정된 자리수 만큼만 이름 출력 if ($mb_id) { $tmp_name = "<span class='member'>{$tmp_name}</span>"; if ($config['cf_use_member_icon']) { $mb_dir = substr($mb_id, 0, 2); $icon_file = "{$g4['path']}/data/member/{$mb_dir}/{$mb_id}.gif"; //if (file_exists($icon_file) && is_file($icon_file)) { if (file_exists($icon_file)) { //$size = getimagesize($icon_file); //$width = $size[0]; //$height = $size[1]; $width = $config['cf_member_icon_width']; $height = $config['cf_member_icon_height']; $tmp_name = "<img src='{$icon_file}' style='vertical-align:middle; width:{$width}; height:{$height};' alt='{$name}' />"; if ($config['cf_use_member_icon'] == 2) { // 회원아이콘+이름 $tmp_name = $tmp_name . " <span class='member'>{$name}</span>"; } } } $title_mb_id = "[{$mb_id}]"; } else { $tmp_name = "<span class='guest'>{$tmp_name}</span>"; $title_mb_id = "[비회원]"; } $name = get_text($name); $email = get_text($email); $homepage = get_text($homepage); //return "<a href=\"javascript:showSideView(this, '$mb_id', '$name', '$email', '$homepage');\" title=\"{$title_mb_id}{$title_name}\">$tmp_name</a>"; return "<a href='#' class='sidebox' rel='mb_id={$mb_id}&name={$name}&email={$email}&homepage={$homepage}' onclick='return false;'>{$tmp_name}</a>"; }
* * Copyright (c) 2011 Choi Jae-Young <www.miwit.com> * * 저작권 안내 * - 저작권자는 이 프로그램을 사용하므로서 발생하는 모든 문제에 대하여 책임을 지지 않습니다. * - 이 프로그램을 어떠한 형태로든 재배포 및 공개하는 것을 허락하지 않습니다. * - 이 저작권 표시사항을 저작권자를 제외한 그 누구도 수정할 수 없습니다. */ include_once "_common.php"; include_once "_config.php"; include_once "_lib.php"; if ($is_admin != 'super') { alert("접근 권한이 없습니다."); } if ($w != "d" && $ls_url) { $ls_url = set_http($ls_url); $tmp = parse_url($ls_url); if (!$tmp[host]) { alert("URL 이 잘못되었습니다."); } } $path = $mw_logo_planner[logo_path]; @mkdir($path, 0707); @chmod($path, 0707); $indexfile = $path . "/index.php"; $f = @fopen($indexfile, "w"); @fwrite($f, ""); @fclose($f); @chmod($indexfile, 0606); $file_source = ""; $file_name = "";
<?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 = get_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('정보공개를 하지 않았습니다.'); } $g5['title'] = $mb['mb_nick'] . '님의 자기소개'; include_once G5_PATH . '/head.sub.php'; $mb_nick = get_sideview($mb['mb_id'], $mb['mb_nick'], $mb['mb_email'], $mb['mb_homepage'], $mb['mb_open']); // 회원가입후 몇일째인지? + 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($mb['mb_homepage']); $mb_profile = $mb['mb_profile'] ? conv_content($mb['mb_profile'], 0) : '소개 내용이 없습니다.'; include_once $member_skin_path . '/profile.skin.php'; include_once G5_PATH . '/tail.sub.php';
clipBoardView.addEventListener('complete', function (client) { alert("클립보드에 복사되었습니다. \'Ctrl+V\'를 눌러 붙여넣기 해주세요."); }); clipBoardView.glue("post_url_copy"); } $(document).ready(function () { if ($("#post_url").text()) { initClipboard(); } }); </script> <?php if ($mw_basic[cf_source_copy]) { // 출처 자동 복사 $copy_url = $shorten ? $shorten : set_http("{$g4[url]}/{$g4[bbs]}/board.php?bo_table={$bo_table}&wr_id={$wr_id}"); ?> <script src="<?php echo $board_skin_path; ?> /mw.js/autosourcing.open.compact.js"></script> <style> div.autosourcing-stub { display:none } dIV.autosourcing-stub-extra { position:absolute; opacity:0 } </style> <script> AutoSourcing.setTemplate("<p style='margin:11px 0 7px 0;padding:0'> <a href='{link}' target='_blank'> [출처] {title} - {link}</a> </p>"); AutoSourcing.setString(<?php echo $wr_id; ?> ,"<?php
<?php include_once "./_common.php"; $html_title = "{$group['gr_subject']} > {$board['bo_subject']} > " . conv_subject($write[wr_subject], 255) . " > 링크"; if (!($bo_table && $wr_id && $no)) { alert_close("값이 제대로 넘어오지 않았습니다."); } // SQL Injection 예방 $row = sql_fetch(" select count(*) as cnt from {$g4[write_prefix]}{$bo_table} ", FALSE); if (!$row[cnt]) { alert_close("존재하는 게시판이 아닙니다."); } if (!$write["wr_link{$no}"]) { alert_close("링크가 없습니다."); } $ss_name = "ss_link_{$bo_table}_{$wr_id}_{$no}"; if (empty($_SESSION[$ss_name])) { $sql = " update {$g4[write_prefix]}{$bo_table} set wr_link{$no}_hit = wr_link{$no}_hit + 1 where wr_id = '{$wr_id}' "; sql_query($sql); set_session($ss_name, true); } goto_url(set_http($write["wr_link{$no}"]));
function thema_widget_write_list($type, $bo_table, $row, $new = 24, $thumb_width = 0, $thumb_height = 0, $is_create = false, $is_crop = true, $crop_mode = 'center', $is_sharpen = true, $um_value = '80/0.5/3') { global $g5, $is_admin; // 배열전체를 복사 $list = $row; unset($row); $list['bo_table'] = $bo_table; $list['update'] = 0; if ($type == 'tag') { $list['new'] = $list['lastdate'] >= date("Y-m-d H:i:s", G5_SERVER_TIME - $new * 3600) ? true : false; $list['date'] = strtotime($list['lastdate']); $list['name'] = $list['tag']; $list['href'] = G5_BBS_URL . '/tag.php?q=' . urlencode($list['tag']); $list['comment'] = $list['cnt']; } else { if ($type == 'response') { $list['subject'] = get_text($list['wr_subject']); $list['new'] = $list['regdate'] >= date("Y-m-d H:i:s", G5_SERVER_TIME - $new * 3600) ? true : false; $list['date'] = strtotime($list['regdate']); $list['name'] = $list['my_name']; $list['href'] = G5_BBS_URL . '/response.php?id=' . $list['id']; $list['photo'] = apms_photo_url($list['my_id']); //회원사진 $list['comment'] = $list['reply_cnt'] + $list['comment_cnt'] + $list['comment_reply_cnt'] + $list['use_cnt'] + $list['qa_cnt'] + $list['good_cnt'] + $list['nogood_cnt']; } else { if ($type == 'qa') { $list['subject'] = get_text($list['qa_subject']); $list['new'] = $list['qa_datetime'] >= date("Y-m-d H:i:s", G5_SERVER_TIME - $new * 3600) ? true : false; $list['date'] = strtotime($list['qa_datetime']); $list['name'] = $list['qa_name']; $list['href'] = G5_BBS_URL . '/qaview.php?qa_id=' . $list['qa_id']; $list['photo'] = apms_photo_url($list['mb_id']); //회원사진 $list['category'] = $list['qa_category']; $list['comment'] = $list['qa_status'] ? 1 : 0; } else { $list['new'] = $list['wr_datetime'] >= date("Y-m-d H:i:s", G5_SERVER_TIME - $new * 3600) ? true : false; $list['secret'] = strstr($list['wr_option'], "secret") ? true : false; $list['date'] = strtotime($list['wr_datetime']); $list['photo'] = apms_photo_url($list['mb_id']); //회원사진 $list['name'] = $list['wr_name']; $list['category'] = $list['ca_name']; $list['hit'] = $list['wr_hit']; $list['good'] = $list['wr_good']; $list['nogood'] = $list['wr_nogood']; $list['is_lock'] = $list['as_shingo'] < 0 ? true : false; if ($type == 'comment') { $list['reply_name'] = $list['wr_comment_reply'] && $list['as_re_name'] ? $list['as_re_name'] : ''; $list['comment'] = $list['wr_comment'] = 0; if (!$list['secret']) { $tmp_write_table = $g5['write_prefix'] . $bo_table; $post = sql_fetch(" select wr_option from {$tmp_write_table} where wr_id = '{$list['wr_parent']}' ", false); //원글 글옵션 $list['secret'] = strstr($post['wr_option'], "secret") ? true : false; } if ($list['secret']) { $list['subject'] = $list['wr_subject'] = $list['wr_content'] = '비밀댓글입니다.'; } else { if ($list['is_lock']) { $list['subject'] = $list['wr_subject'] = $list['wr_content'] = '잠긴댓글입니다.'; } else { $list['subject'] = apms_cut_text($list['wr_content'], 60); } } $list['href'] = G5_BBS_URL . '/board.php?bo_table=' . $bo_table . '&wr_id=' . $list['wr_parent'] . '#c_' . $list['wr_id']; } else { if ($type == 'post') { $list['update'] = strtotime($list['as_update']); $list['subject'] = get_text($list['wr_subject']); $list['reply'] = strlen($list['wr_reply']); $list['reply_name'] = $list['reply'] && $list['as_re_name'] ? $list['as_re_name'] : ''; $list['href'] = G5_BBS_URL . '/board.php?bo_table=' . $bo_table . '&wr_id=' . $list['wr_parent']; $list['comment'] = $list['wr_comment']; // 링크 for ($i = 1; $i <= G5_LINK_COUNT; $i++) { $list['link'][$i] = set_http(get_text($list["wr_link{$i}"])); $list['link_href'][$i] = G5_BBS_URL . "/link.php?bo_table=" . $bo_table . "&wr_id=" . $list['wr_id'] . "&no=" . $i; $list['link_hit'][$i] = (int) $list["wr_link{$i}_hit"]; } if ($list['secret']) { $list['wr_content'] = '비밀글입니다.'; } else { if ($list['is_lock']) { $list['wr_content'] = '잠긴글입니다.'; } } if (!$list['secret'] && !$list['is_lock'] && $thumb_width > 0) { $list['img'] = apms_wr_thumbnail($bo_table, $list, $thumb_width, $thumb_height, $is_create, $is_crop, $crop_mode, $is_sharpen, $um_value); } } } $list['content'] = $list['wr_content']; $list['wr_content'] = ''; } } } return $list; }
function apms_banner_event_rows($arr) { global $g5, $demo_config; $list = array(); $ev_id = isset($arr['ev_id']) && $arr['ev_id'] ? apms_escape_string($arr['ev_id']) : ''; $type = isset($arr['type']) && $arr['type'] ? apms_escape_string($arr['type']) : ''; $rows = isset($arr['rows']) && $arr['rows'] > 0 ? $arr['rows'] : 8; $sort = isset($arr['sort']) && $arr['sort'] ? $arr['sort'] : ''; $thumb_w = isset($arr['thumb_w']) && $arr['thumb_w'] > 0 ? $arr['thumb_w'] : 0; $thumb_h = isset($arr['thumb_h']) && $arr['thumb_h'] > 0 ? $arr['thumb_h'] : 0; $thumb_no = isset($arr['thumb_no']) && $arr['thumb_no'] ? true : false; $banner = isset($arr['banner']) && $arr['banner'] ? 's' : 'm'; //데모 if (isset($demo_config['ev_id']) && $demo_config['ev_id']) { $ev_id = $demo_config['ev_id']; } // 이벤트 $sql_ev = ''; if ($ev_id) { $sql_ev = isset($arr['except']) && $arr['except'] ? "and find_in_set(ev_id, '{$ev_id}')=0" : "and find_in_set(ev_id, '{$ev_id}')"; } // 타입 $sql_type = $type ? "and ev_type = '{$type}'" : ""; // 정렬 switch ($sort) { case 'rdm': $orderby = 'rand()'; break; case 'asc': $orderby = 'ev_id'; break; default: $orderby = 'ev_id desc'; break; } $sql = " select * from `{$g5['g5_shop_event_table']}` where ev_use = '1' {$sql_ev} {$sql_ex_ev} {$sql_type} order by {$orderby} limit 0, {$rows} "; $result = sql_query($sql, false); $j = 0; for ($i = 0; $row = sql_fetch_array($result); $i++) { if (!is_file(G5_DATA_PATH . '/event/' . $row['ev_id'] . '_' . $banner)) { continue; } $list[$j] = $row; $list[$j]['href'] = $row['ev_href'] ? set_http(get_text($row['ev_href'])) : G5_SHOP_URL . '/event.php?ev_id=' . $row['ev_id']; $list[$j]['subject'] = get_text($row['ev_subject']); $img = apms_thumbnail(G5_DATA_URL . '/event/' . $row['ev_id'] . '_' . $banner, $thumb_w, $thumb_h, false, true); $list[$j]['img'] = $img['src']; $list[$j]['alt'] = $list[$j]['subject']; $j++; } return $list; }
$item_rows = $list_rows * $list_mods; // 페이지가 없으면 첫 페이지 (1 페이지) if ($page < 1) { $page = 1; } // 시작 레코드 구함 $from_record = ($page - 1) * $item_rows; // 전체 페이지 계산 $row2 = sql_fetch(" select count(*) as cnt from `{$g5['g5_shop_event_table']}` where ev_use = '1' {$where} "); $total_count = $row2['cnt']; $total_page = ceil($total_count / $item_rows); // 리스트 $i = 0; $result = sql_query(" select * from `{$g5['g5_shop_event_table']}` where ev_use = '1' {$where} order by ev_id desc limit {$from_record}, {$item_rows} "); while ($row = sql_fetch_array($result)) { $event[$i] = $row; $event[$i]['ev_banner'] = G5_DATA_URL . '/event/' . $row['ev_id'] . '_' . $eimg; $event[$i]['ev_href'] = $row['ev_href'] ? set_http(get_text($row['ev_href'])) : G5_SHOP_URL . '/event.php?ev_id=' . $row['ev_id'] . $qstr; $row2 = sql_fetch(" select count(*) as cnt from `{$g5['g5_shop_event_item_table']}` where ev_id = '{$row['ev_id']}' "); $event[$i]['ev_cnt'] = $row2['cnt']; $i++; } $list_page = $_SERVER['SCRIPT_NAME'] . '?' . $qstr . '&page='; // Button $admin_href = ''; if ($is_admin) { $admin_href = G5_ADMIN_URL . '/shop_admin/itemevent.php'; } include_once $skin_path . '/event.skin.php'; include_once './_tail.php'; }
if ($board['bo_read_level'] >= 2) { die("비회원 읽기가 가능한 게시판만 RSS 지원합니다."); } if (!$board['bo_use_rss_view']) { die("RSS 보기가 금지되어 있습니다."); } $cf_rss_limit = $mw_basic['cf_rss_limit']; if (!$cf_rss_limit) { $cf_rss_limit = 10; } ob_start(); echo "<?xml version=\"1.0\" encoding=\"{$g4['charset']}\"?" . ">\n"; echo "<rss version=\"2.0\">\n"; echo "<channel>\n"; echo "<title>" . addslashes($config['cf_title']) . "</title>\n"; echo "<link>" . set_http($g4['url']) . "</link>\n"; $sql = " select * from {$write_table} where wr_is_comment = 0 order by wr_num limit {$cf_rss_limit}"; $qry = sql_query($sql); while ($write = sql_fetch_array($qry)) { $mw_basic = array(); if ($mw_basic['cf_attribute'] == '1:1') { break; } // 1:1게시판이면 끝! if (strstr($write['wr_option'], "secret")) { continue; } // 비밀글이면 끝! if ($write['wr_singo'] && $write['wr_singo'] >= $mw_basic['cf_singo_number'] && $mw_basic['cf_singo_write_block']) { continue; }