update compatible avocado personal and typo

This commit is contained in:
Amberstone 2024-10-05 07:34:26 +09:00
parent 9a4169f181
commit 7b636e5003
Signed by: amber
GPG key ID: 094B0E55F98D8BF1
97 changed files with 585 additions and 295 deletions

View file

@ -49,6 +49,7 @@ if (!defined('_GNUBOARD_'))
$('#gnb .check').addClass('on').parents('li').addClass('on').find('.gnb_2dul').show(); $('#gnb .check').addClass('on').parents('li').addClass('on').find('.gnb_2dul').show();
}); });
</script><?php </script>
include_once(G5_PATH . '/tail.sub.php'); <?php
include_once G5_PATH . "/tail.sub.php";

View file

@ -1,6 +1,6 @@
<?php <?php
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_LIB_PATH . '/json.lib.php'); include_once G5_LIB_PATH . "/json.lib.php";
set_session('ss_admin_token', ''); set_session('ss_admin_token', '');

View file

@ -1,4 +1,4 @@
<?php <?php
define('G5_IS_ADMIN', true); define('G5_IS_ADMIN', true);
include_once "../../common.php"; include_once "../../common.php";
include_once(G5_ADMIN_PATH . '/admin.lib.php'); include_once G5_ADMIN_PATH . "/admin.lib.php";

View file

@ -5,7 +5,7 @@ include_once "./_common.php";
auth_check($auth[$sub_menu], 'w'); auth_check($auth[$sub_menu], 'w');
$g5['title'] = '게시판 복사'; $g5['title'] = '게시판 복사';
include_once(G5_PATH . '/head.sub.php'); include_once G5_PATH . "/head.sub.php";
?> ?>
<script src="<?php echo G5_ADMIN_URL ?>/js/admin.js?ver=<?php echo G5_JS_VER; ?>"></script> <script src="<?php echo G5_ADMIN_URL ?>/js/admin.js?ver=<?php echo G5_JS_VER; ?>"></script>
@ -78,5 +78,5 @@ include_once(G5_PATH . '/head.sub.php');
<?php <?php
include_once(G5_PATH . '/tail.sub.php'); include_once G5_PATH . "/tail.sub.php";
?> ?>

View file

@ -89,7 +89,6 @@ if (!isset($board['bo_mobile_subject'])) {
$required = ""; $required = "";
$readonly = ""; $readonly = "";
if ($w == '') { if ($w == '') {
$html_title .= ' 생성'; $html_title .= ' 생성';
$required = 'required'; $required = 'required';
@ -105,6 +104,7 @@ if ($w == '') {
$board['bo_gallery_height'] = 600; $board['bo_gallery_height'] = 600;
$board['bo_use_dhtml_editor'] = '1';
$board['bo_page_rows'] = $config['cf_page_rows']; $board['bo_page_rows'] = $config['cf_page_rows'];
$board['bo_mobile_page_rows'] = $config['cf_page_rows']; $board['bo_mobile_page_rows'] = $config['cf_page_rows'];
$board['bo_subject_len'] = 60; $board['bo_subject_len'] = 60;
@ -137,7 +137,7 @@ if ($w == '') {
$board['bo_gallery_width'] = 130; $board['bo_gallery_width'] = 130;
if (!$board['bo_table']) if (!$board['bo_table'])
alert('존재하지 않 게시판 입니다.'); alert('존재하지 않 게시판 입니다.');
if ($is_admin == 'group') { if ($is_admin == 'group') {
if ($member['mb_id'] != $group['gr_admin']) if ($member['mb_id'] != $group['gr_admin'])
@ -167,7 +167,6 @@ $pg_anchor = '<ul class="anchor">
</ul>'; </ul>';
?> ?>
<form name="fboardform" id="fboardform" action="./board_form_update.php" onsubmit="return fboardform_submit(this)" <form name="fboardform" id="fboardform" action="./board_form_update.php" onsubmit="return fboardform_submit(this)"
method="post" enctype="multipart/form-data"> method="post" enctype="multipart/form-data">
<input type="hidden" name="w" value="<?php echo $w ?>"> <input type="hidden" name="w" value="<?php echo $w ?>">
@ -382,6 +381,18 @@ $pg_anchor = '<ul class="anchor">
<label for="chk_all_comment_level">전체적용</label> <label for="chk_all_comment_level">전체적용</label>
</td> </td>
</tr> </tr>
<tr>
<th scope="row"><label for="bo_html_level">HTML 쓰기 권한</label></th>
<td>
<?php echo get_member_level_select('bo_html_level', 1, 10, $board['bo_html_level']) ?>
</td>
<td class="td_grpset">
<input type="checkbox" name="chk_grp_html_level" value="1" id="chk_grp_html_level">
<label for="chk_grp_html_level">그룹적용</label>
<input type="checkbox" name="chk_all_html_level" value="1" id="chk_all_html_level">
<label for="chk_all_html_level">전체적용</label>
</td>
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>
@ -600,7 +611,8 @@ $pg_anchor = '<ul class="anchor">
<h2 class="h2_frm">확장 기능 설정</h2> <h2 class="h2_frm">확장 기능 설정</h2>
<?php echo $pg_anchor ?> <?php echo $pg_anchor ?>
<div class="tbl_frm01 tbl_wrap"> <div class="tbl_frm01 tbl_wrap">
<div style="background: #f9f9f9; padding: 8px 16px; border-color: #efeff5; border-style: solid; border-width: 1px 0 1px 0; color: #5b5b5a"> <div
style="background: #f9f9f9; padding: 8px 16px; border-color: #efeff5; border-style: solid; border-width: 1px 0 1px 0; color: #5b5b5a">
게시판 스킨에 확장 기능이 없습니다. 게시판 스킨에 확장 기능이 없습니다.
</div> </div>
</div> </div>

View file

@ -18,7 +18,7 @@ if (!is_file(G5_DATA_PATH . '/cache/browscap_cache.php')) {
exit; exit;
} }
include_once(G5_PLUGIN_PATH . '/browscap/Browscap.php'); include_once G5_PLUGIN_PATH . "/browscap/Browscap.php";
$browscap = new phpbrowscap\Browscap(G5_DATA_PATH . '/cache'); $browscap = new phpbrowscap\Browscap(G5_DATA_PATH . '/cache');
$browscap->doAutoUpdate = false; $browscap->doAutoUpdate = false;
$browscap->cacheFilename = 'browscap_cache.php'; $browscap->cacheFilename = 'browscap_cache.php';

View file

@ -13,7 +13,7 @@ if (!(version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE')
if ($is_admin != 'super') if ($is_admin != 'super')
die('최고관리자만 접근 가능합니다.'); die('최고관리자만 접근 가능합니다.');
include_once(G5_PLUGIN_PATH . '/browscap/Browscap.php'); include_once G5_PLUGIN_PATH . "/browscap/Browscap.php";
$browscap = new phpbrowscap\Browscap(G5_DATA_PATH . '/cache'); $browscap = new phpbrowscap\Browscap(G5_DATA_PATH . '/cache');
$browscap->updateMethod = 'cURL'; $browscap->updateMethod = 'cURL';

View file

@ -52,7 +52,7 @@ if ($w == "u") {
$co['co_mobile_skin'] = 'basic'; $co['co_mobile_skin'] = 'basic';
} }
include_once(G5_ADMIN_PATH . '/admin.head.php'); include_once G5_ADMIN_PATH . "/admin.head.php";
?> ?>
<form name="frmcontentform" action="./contentformupdate.php" onsubmit="return frmcontentform_check(this);" method="post" <form name="frmcontentform" action="./contentformupdate.php" onsubmit="return frmcontentform_check(this);" method="post"
@ -204,5 +204,5 @@ include_once(G5_ADMIN_PATH . '/admin.head.php');
</script> </script>
<?php <?php
include_once(G5_ADMIN_PATH . '/admin.tail.php'); include_once G5_ADMIN_PATH . "/admin.tail.php";
?> ?>

View file

@ -31,7 +31,7 @@ if (!sql_query(" DESCRIBE {$g5['content_table']} ", false)) {
} }
$g5['title'] = '내용관리'; $g5['title'] = '내용관리';
include_once(G5_ADMIN_PATH . '/admin.head.php'); include_once G5_ADMIN_PATH . "/admin.head.php";
$sql_common = " from {$g5['content_table']} where co_subject != '' "; $sql_common = " from {$g5['content_table']} where co_subject != '' ";
@ -107,4 +107,4 @@ $result = sql_query($sql);
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?$qstr&amp;page="); ?> <?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?$qstr&amp;page="); ?>
<?php <?php
include_once(G5_ADMIN_PATH . '/admin.tail.php'); include_once G5_ADMIN_PATH . "/admin.tail.php";

View file

@ -209,6 +209,7 @@ body {
width: 71px; width: 71px;
float: left; float: left;
border: none; border: none;
border-left: 1px solid var(--theme-color-a);
background: var(--theme-color-e); background: var(--theme-color-e);
color: #fff; color: #fff;
cursor: pointer; cursor: pointer;

View file

@ -574,7 +574,7 @@ $editor_list = [];
<br /> <br />
<?php <?php
//------- 메뉴 스킨 확장 설정 처리 부분 //------- 메뉴 스킨 확장 설정 처리 부분
@include_once(G5_PATH . "/skin/menu/" . $de['menu_skin']['cs_value'] . "/admin.setting.php"); @include_once G5_PATH . "/skin/menu/" . $de['menu_skin']['cs_value'] . "/admin.setting.php";
?> ?>
</div> </div>

View file

@ -36,7 +36,7 @@ $mb_zip2 = substr($_POST['mb_zip'], 3);
// 관리자가 자동등록방지를 사용해야 할 경우 ( 회원의 비밀번호 변경시 캡챠를 체크한다 ) // 관리자가 자동등록방지를 사용해야 할 경우 ( 회원의 비밀번호 변경시 캡챠를 체크한다 )
if ($mb_password && function_exists('get_admin_captcha_by') && get_admin_captcha_by()) { if ($mb_password && function_exists('get_admin_captcha_by') && get_admin_captcha_by()) {
include_once(G5_CAPTCHA_PATH . '/captcha.lib.php'); include_once G5_CAPTCHA_PATH . "/captcha.lib.php";
if (!chk_captcha()) { if (!chk_captcha()) {
alert('자동등록방지 숫자가 틀렸습니다.'); alert('자동등록방지 숫자가 틀렸습니다.');

View file

@ -6,7 +6,7 @@ if ($is_admin != 'super')
alert_close('최고관리자만 접근 가능합니다.'); alert_close('최고관리자만 접근 가능합니다.');
$g5['title'] = '메뉴 추가'; $g5['title'] = '메뉴 추가';
include_once(G5_PATH . '/head.sub.php'); include_once G5_PATH . "/head.sub.php";
// 코드 // 코드
if ($new == 'new' || !$code) { if ($new == 'new' || !$code) {

View file

@ -1,7 +1,7 @@
<?php <?php
$sub_menu = "100280"; $sub_menu = "100280";
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_LIB_PATH . '/json.lib.php'); include_once G5_LIB_PATH . "/json.lib.php";
$data = []; $data = [];
$data['error'] = ''; $data['error'] = '';

View file

@ -2,9 +2,9 @@
if (!defined('_GNUBOARD_')) if (!defined('_GNUBOARD_'))
exit; exit;
include_once(G5_LIB_PATH . '/visit.lib.php'); include_once G5_LIB_PATH . "/visit.lib.php";
include_once "./admin.head.php"; include_once "./admin.head.php";
include_once(G5_PLUGIN_PATH . '/jquery-ui/datepicker.php'); include_once G5_PLUGIN_PATH . "/jquery-ui/datepicker.php";
if (empty($fr_date) || !preg_match("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/", $fr_date)) if (empty($fr_date) || !preg_match("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/", $fr_date))
$fr_date = G5_TIME_YMD; $fr_date = G5_TIME_YMD;
@ -34,7 +34,8 @@ $query_string = $qstr ? '?' . $qstr : '';
</form> </form>
<br /> <br />
<ul class="anchor"> <ul class="anchor">
<li <?= $file_data == 'visit_list.php' ? "class='on'" : "" ?>><a href="./visit_list.php<?php echo $query_string ?>">접속자</a> <li <?= $file_data == 'visit_list.php' ? "class='on'" : "" ?>><a
href="./visit_list.php<?php echo $query_string ?>">접속자</a>
</li> </li>
<li <?= $file_data == 'visit_domain.php' ? "class='on'" : "" ?>><a <li <?= $file_data == 'visit_domain.php' ? "class='on'" : "" ?>><a
href="./visit_domain.php<?php echo $query_string ?>">도메인</a></li> href="./visit_domain.php<?php echo $query_string ?>">도메인</a></li>
@ -46,13 +47,16 @@ $query_string = $qstr ? '?' . $qstr : '';
<li <?= $file_data == 'visit_device.php' ? "class='on'" : "" ?>><a <li <?= $file_data == 'visit_device.php' ? "class='on'" : "" ?>><a
href="./visit_device.php<?php echo $query_string ?>">접속기기</a></li> href="./visit_device.php<?php echo $query_string ?>">접속기기</a></li>
<?php } ?> <?php } ?>
<li <?= $file_data == 'visit_hour.php' ? "class='on'" : "" ?>><a href="./visit_hour.php<?php echo $query_string ?>">시간</a> <li <?= $file_data == 'visit_hour.php' ? "class='on'" : "" ?>><a
href="./visit_hour.php<?php echo $query_string ?>">시간</a>
</li> </li>
<li <?= $file_data == 'visit_week.php' ? "class='on'" : "" ?>><a href="./visit_week.php<?php echo $query_string ?>">요일</a> <li <?= $file_data == 'visit_week.php' ? "class='on'" : "" ?>><a
href="./visit_week.php<?php echo $query_string ?>">요일</a>
</li> </li>
<li <?= $file_data == 'visit_date.php' ? "class='on'" : "" ?>><a href="./visit_date.php<?php echo $query_string ?>">일</a> <li <?= $file_data == 'visit_date.php' ? "class='on'" : "" ?>><a href="./visit_date.php<?php echo $query_string ?>">일</a>
</li> </li>
<li <?= $file_data == 'visit_month.php' ? "class='on'" : "" ?>><a href="./visit_month.php<?php echo $query_string ?>">월</a> <li <?= $file_data == 'visit_month.php' ? "class='on'" : "" ?>><a
href="./visit_month.php<?php echo $query_string ?>"></a>
</li> </li>
<li <?= $file_data == 'visit_year.php' ? "class='on'" : "" ?>><a href="./visit_year.php<?php echo $query_string ?>">년</a> <li <?= $file_data == 'visit_year.php' ? "class='on'" : "" ?>><a href="./visit_year.php<?php echo $query_string ?>">년</a>
</li> </li>

View file

@ -1,13 +1,13 @@
<?php <?php
$sub_menu = '200810'; $sub_menu = '200810';
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_PATH . '/lib/visit.lib.php'); include_once G5_PATH . "/lib/visit.lib.php";
auth_check($auth[$sub_menu], 'r'); auth_check($auth[$sub_menu], 'r');
$g5['title'] = '접속자검색'; $g5['title'] = '접속자검색';
include_once "./admin.head.php"; include_once "./admin.head.php";
include_once(G5_PLUGIN_PATH . '/jquery-ui/datepicker.php'); include_once G5_PLUGIN_PATH . "/jquery-ui/datepicker.php";
$colspan = 6; $colspan = 6;
$listall = '<a href="' . $_SERVER['SCRIPT_NAME'] . '">처음</a>'; //페이지 처음으로 (초기화용도) $listall = '<a href="' . $_SERVER['SCRIPT_NAME'] . '">처음</a>'; //페이지 처음으로 (초기화용도)

View file

@ -1,4 +1,4 @@
<?php <?php
if (!defined('_GNUBOARD_')) if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가 exit; // 개별 페이지 접근 불가
include_once(G5_PATH . '/_head.php'); include_once G5_PATH . "/_head.php";

View file

@ -1,4 +1,4 @@
<?php <?php
if (!defined('_GNUBOARD_')) if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가 exit; // 개별 페이지 접근 불가
include_once(G5_PATH . '/head.sub.php'); include_once G5_PATH . "/head.sub.php";

View file

@ -1,4 +1,4 @@
<?php <?php
if (!defined('_GNUBOARD_')) if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가 exit; // 개별 페이지 접근 불가
include_once(G5_PATH . '/_tail.php'); include_once G5_PATH . "/_tail.php";

View file

@ -1,4 +1,4 @@
<?php <?php
if (!defined('_GNUBOARD_')) if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가 exit; // 개별 페이지 접근 불가
include_once(G5_PATH . '/tail.sub.php'); include_once G5_PATH . "/tail.sub.php";

View file

@ -1,6 +1,6 @@
<?php <?php
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_LIB_PATH . '/json.lib.php'); include_once G5_LIB_PATH . "/json.lib.php";
$ss_name = 'ss_comment_token'; $ss_name = 'ss_comment_token';

View file

@ -1,6 +1,6 @@
<?php <?php
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_LIB_PATH . '/register.lib.php'); include_once G5_LIB_PATH . "/register.lib.php";
$mb_email = trim($_POST['reg_mb_email']); $mb_email = trim($_POST['reg_mb_email']);
$mb_id = trim($_POST['reg_mb_id']); $mb_id = trim($_POST['reg_mb_id']);

View file

@ -1,6 +1,6 @@
<?php <?php
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_LIB_PATH . '/register.lib.php'); include_once G5_LIB_PATH . "/register.lib.php";
$mb_hp = trim($_POST['reg_mb_hp']); $mb_hp = trim($_POST['reg_mb_hp']);
$mb_id = trim($_POST['reg_mb_id']); $mb_id = trim($_POST['reg_mb_id']);

View file

@ -1,6 +1,6 @@
<?php <?php
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_LIB_PATH . '/register.lib.php'); include_once G5_LIB_PATH . "/register.lib.php";
$mb_id = trim($_POST['reg_mb_id']); $mb_id = trim($_POST['reg_mb_id']);

View file

@ -1,6 +1,6 @@
<?php <?php
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_LIB_PATH . '/register.lib.php'); include_once G5_LIB_PATH . "/register.lib.php";
$mb_nick = trim($_POST['reg_mb_nick']); $mb_nick = trim($_POST['reg_mb_nick']);
$mb_id = trim($_POST['reg_mb_id']); $mb_id = trim($_POST['reg_mb_id']);

View file

@ -1,6 +1,6 @@
<?php <?php
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_LIB_PATH . "/register.lib.php"); include_once G5_LIB_PATH . "/register.lib.php";
$mb_recommend = trim($_POST["reg_mb_recommend"]); $mb_recommend = trim($_POST["reg_mb_recommend"]);

View file

@ -9,7 +9,7 @@ if ($error) {
} else { } else {
$g5['title'] = "결과안내 페이지"; $g5['title'] = "결과안내 페이지";
} }
include_once(G5_PATH . '/head.sub.php'); include_once G5_PATH . "/head.sub.php";
// 필수 입력입니다. // 필수 입력입니다.
// 양쪽 공백 없애기 // 양쪽 공백 없애기
// 필수 (선택 혹은 입력)입니다. // 필수 (선택 혹은 입력)입니다.
@ -110,5 +110,5 @@ if ($error) {
</noscript> </noscript>
<?php <?php
include_once(G5_PATH . '/tail.sub.php'); include_once G5_PATH . "/tail.sub.php";
?> ?>

View file

@ -1,6 +1,6 @@
<?php <?php
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_PATH . '/head.sub.php'); include_once G5_PATH . "/head.sub.php";
$msg2 = str_replace("\\n", "<br>", $msg); $msg2 = str_replace("\\n", "<br>", $msg);
@ -57,5 +57,5 @@ if ($error) {
</noscript> </noscript>
<?php <?php
include_once(G5_PATH . '/tail.sub.php'); include_once G5_PATH . "/tail.sub.php";
?> ?>

View file

@ -171,7 +171,7 @@ if (isset($wr_id) && $wr_id) {
$g5['title'] = ((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']) . ' ' . $page . ' 페이지'; $g5['title'] = ((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']) . ' ' . $page . ' 페이지';
} }
include_once(G5_PATH . '/head.sub.php'); include_once G5_PATH . "/head.sub.php";
$width = $board['bo_table_width']; $width = $board['bo_table_width'];
if ($width <= 100) if ($width <= 100)
@ -219,25 +219,25 @@ $admin_href = "";
if ($member['mb_id'] && ($is_admin == 'super' || $group['gr_admin'] == $member['mb_id'])) if ($member['mb_id'] && ($is_admin == 'super' || $group['gr_admin'] == $member['mb_id']))
$admin_href = G5_ADMIN_URL . '/board_form.php?w=u&amp;bo_table=' . $bo_table; $admin_href = G5_ADMIN_URL . '/board_form.php?w=u&amp;bo_table=' . $bo_table;
include_once(G5_BBS_PATH . '/board_head.php'); include_once G5_BBS_PATH . "/board_head.php";
// 게시물 아이디가 있다면 게시물 보기를 INCLUDE // 게시물 아이디가 있다면 게시물 보기를 INCLUDE
if (isset($wr_id) && $wr_id) { if (isset($wr_id) && $wr_id) {
include_once(G5_BBS_PATH . '/view.php'); include_once G5_BBS_PATH . "/view.php";
} }
// 전체목록보이기 사용이 "예" 또는 wr_id 값이 없다면 목록을 보임 // 전체목록보이기 사용이 "예" 또는 wr_id 값이 없다면 목록을 보임
//if ($board['bo_use_list_view'] || empty($wr_id)) //if ($board['bo_use_list_view'] || empty($wr_id))
if ($member['mb_level'] >= $board['bo_list_level'] && $board['bo_use_list_view'] || empty($wr_id)) { if ($member['mb_level'] >= $board['bo_list_level'] && $board['bo_use_list_view'] || empty($wr_id)) {
if ($board['bo_type'] == 'mmb') if ($board['bo_type'] == 'mmb')
include_once(G5_BBS_PATH . '/list.mmb.php'); include_once G5_BBS_PATH . "/list.mmb.php";
else else
include_once(G5_BBS_PATH . '/list.php'); include_once G5_BBS_PATH . "/list.php";
} }
include_once(G5_BBS_PATH . '/board_tail.php'); include_once G5_BBS_PATH . "/board_tail.php";
echo "\n<!-- 사용스킨 : " . (G5_IS_MOBILE ? $board['bo_mobile_skin'] : $board['bo_skin']) . " -->\n"; echo "\n<!-- 사용스킨 : " . (G5_IS_MOBILE ? $board['bo_mobile_skin'] : $board['bo_skin']) . " -->\n";
include_once(G5_PATH . '/tail.sub.php'); include_once G5_PATH . "/tail.sub.php";

View file

@ -2,5 +2,20 @@
if (!defined('_GNUBOARD_')) if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가 exit; // 개별 페이지 접근 불가
include_once(G5_BBS_PATH . '/_head.php'); include_once G5_BBS_PATH . '/_head.php';
@include($board['bo_include_head']);
if(is_include_path_check($board['bo_include_head'])) {
@include $board['bo_include_head'];
}
/**
* origin code from https://extrashot.tistory.com
* @author Extra Shot
*/
if ($board['bo_use_pass']) {
//@230623 세션 저장 방식 변경
$ss_bo_name = "bo_pass_{$board["bo_table"]}";
if (!$is_admin && !get_session($ss_bo_name)) {
goto_url("./password.php?w=bs&amp;bo_table={$bo_table}&amp;sfl={$sfl}&amp;stx={$stx}&amp;sop={$sop}&amp;wr_id={$wr_id}&amp;page={$page}");
}
}

View file

@ -2,5 +2,8 @@
if (!defined('_GNUBOARD_')) if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가 exit; // 개별 페이지 접근 불가
@include($board['bo_include_tail']); if(is_include_path_check($board['bo_include_tail'])) {
include_once(G5_BBS_PATH . '/_tail.php'); @include $board['bo_include_tail'];
}
include_once G5_BBS_PATH . '/_tail.php';

View file

@ -1,6 +1,6 @@
<?php <?php
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_PATH . '/head.sub.php'); include_once G5_PATH . "/head.sub.php";
$url1 = clean_xss_tags($url1, 1); $url1 = clean_xss_tags($url1, 1);
$url2 = clean_xss_tags($url2, 1); $url2 = clean_xss_tags($url2, 1);
@ -39,4 +39,4 @@ check_url_host($url3);
</article> </article>
</noscript> </noscript>
<?php <?php
include_once(G5_PATH . '/tail.sub.php'); include_once G5_PATH . "/tail.sub.php";

View file

@ -32,6 +32,6 @@ for ($i = 0; $row = sql_fetch_array($result); $i++) {
$list[$i]['num'] = sprintf('%03d', $i + 1); $list[$i]['num'] = sprintf('%03d', $i + 1);
} }
include_once($connect_skin_path . '/current_connect.skin.php'); include_once $connect_skin_path . "/current_connect.skin.php";
include_once "./_tail.php"; include_once "./_tail.php";

View file

@ -1,6 +1,6 @@
<?php <?php
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_CAPTCHA_PATH . '/captcha.lib.php'); include_once G5_CAPTCHA_PATH . "/captcha.lib.php";
if (!$config['cf_email_use']) if (!$config['cf_email_use'])
alert_close('환경설정에서 \"메일발송 사용\"에 체크하셔야 메일을 발송할 수 있습니다.\\n\\n관리자에게 문의하시기 바랍니다.'); alert_close('환경설정에서 \"메일발송 사용\"에 체크하셔야 메일을 발송할 수 있습니다.\\n\\n관리자에게 문의하시기 바랍니다.');
@ -25,7 +25,7 @@ if ($sendmail_count > 3)
alert_close('한번 접속후 일정수의 메일만 발송할 수 있습니다.\\n\\n계속해서 메일을 보내시려면 다시 로그인 또는 접속하여 주십시오.'); alert_close('한번 접속후 일정수의 메일만 발송할 수 있습니다.\\n\\n계속해서 메일을 보내시려면 다시 로그인 또는 접속하여 주십시오.');
$g5['title'] = '메일 쓰기'; $g5['title'] = '메일 쓰기';
include_once(G5_PATH . '/head.sub.php'); include_once G5_PATH . "/head.sub.php";
$email_enc = new str_encrypt(); $email_enc = new str_encrypt();
$email_dec = $email_enc->decrypt($email); $email_dec = $email_enc->decrypt($email);
@ -47,6 +47,6 @@ if (!isset($type))
$type_checked[0] = $type_checked[1] = $type_checked[2] = ""; $type_checked[0] = $type_checked[1] = $type_checked[2] = "";
$type_checked[$type] = 'checked'; $type_checked[$type] = 'checked';
include_once($member_skin_path . '/formmail.skin.php'); include_once $member_skin_path . "/formmail.skin.php";
include_once(G5_PATH . '/tail.sub.php'); include_once G5_PATH . "/tail.sub.php";

View file

@ -1,7 +1,7 @@
<?php <?php
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_CAPTCHA_PATH . '/captcha.lib.php'); include_once G5_CAPTCHA_PATH . "/captcha.lib.php";
include_once(G5_LIB_PATH . '/mailer.lib.php'); include_once G5_LIB_PATH . "/mailer.lib.php";
if (!$config['cf_email_use']) if (!$config['cf_email_use'])
alert('환경설정에서 "메일발송 사용"에 체크하셔야 메일을 발송할 수 있습니다.\\n\\n관리자에게 문의하시기 바랍니다.'); alert('환경설정에서 "메일발송 사용"에 체크하셔야 메일을 발송할 수 있습니다.\\n\\n관리자에게 문의하시기 바랍니다.');
@ -51,8 +51,8 @@ if (!empty($file)) {
//$html_title = $tmp_to . "님께 메일발송"; //$html_title = $tmp_to . "님께 메일발송";
$html_title = '메일 발송중'; $html_title = '메일 발송중';
include_once(G5_PATH . '/head.sub.php'); include_once G5_PATH . "/head.sub.php";
alert_close('메일을 정상적으로 발송하였습니다.'); alert_close('메일을 정상적으로 발송하였습니다.');
include_once(G5_PATH . '/tail.sub.php'); include_once G5_PATH . "/tail.sub.php";

View file

@ -11,7 +11,7 @@ if (defined('G5_THEME_PATH')) {
} }
if (G5_IS_MOBILE) { if (G5_IS_MOBILE) {
include_once(G5_MOBILE_PATH . '/group.php'); include_once G5_MOBILE_PATH . "/group.php";
return; return;
} }
@ -20,7 +20,7 @@ if (!$is_admin && $group['gr_device'] == 'mobile')
$g5['title'] = $group['gr_subject']; $g5['title'] = $group['gr_subject'];
include_once "./_head.php"; include_once "./_head.php";
include_once(G5_LIB_PATH . '/latest.lib.php'); include_once G5_LIB_PATH . "/latest.lib.php";
?> ?>

View file

@ -251,4 +251,4 @@ if ($board['bo_use_rss_view']) {
} }
$stx = get_text(stripslashes($stx)); $stx = get_text(stripslashes($stx));
include_once($board_skin_path . '/list.skin.php'); include_once $board_skin_path . "/list.skin.php";

View file

@ -265,4 +265,4 @@ if ($board['bo_use_rss_view']) {
} }
$stx = get_text(stripslashes($stx)); $stx = get_text(stripslashes($stx));
include_once($board_skin_path . '/list.skin.php'); include_once $board_skin_path . "/list.skin.php";

View file

@ -19,6 +19,6 @@ check_url_host($url);
$url = get_text($url); $url = get_text($url);
include_once($member_skin_path . '/member_confirm.skin.php'); include_once $member_skin_path . "/member_confirm.skin.php";
include_once "./_tail.sub.php"; include_once "./_tail.sub.php";

View file

@ -1,6 +1,6 @@
<?php <?php
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_CAPTCHA_PATH . '/captcha.lib.php'); include_once G5_CAPTCHA_PATH . "/captcha.lib.php";
if ($is_guest) if ($is_guest)
alert('회원만 이용하실 수 있습니다.'); alert('회원만 이용하실 수 있습니다.');

View file

@ -13,7 +13,7 @@ if ($is_admin != 'board' && $is_admin != 'group' && $is_admin != 'super')
alert_close("게시판 관리자 이상 접근이 가능합니다."); alert_close("게시판 관리자 이상 접근이 가능합니다.");
$g5['title'] = '게시물 ' . $act; $g5['title'] = '게시물 ' . $act;
include_once(G5_PATH . '/head.sub.php'); include_once G5_PATH . "/head.sub.php";
$wr_id_list = ''; $wr_id_list = '';
if ($wr_id) if ($wr_id)
@ -154,7 +154,8 @@ for ($i = 0; $row = sql_fetch_array($result); $i++) {
f.action = './move_update.php'; f.action = './move_update.php';
return true; return true;
} }
</script><?php </script>
<?php
EventHandler::triggerEvent("gnuboard.bbs.move_html_footer"); EventHandler::triggerEvent("gnuboard.bbs.move_html_footer");

View file

@ -111,6 +111,6 @@ for ($i = 0; $row = sql_fetch_array($result); $i++) {
$write_pages = get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "?gr_id=$gr_id&amp;view=$view&amp;mb_id=$mb_id&amp;page="); $write_pages = get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "?gr_id=$gr_id&amp;view=$view&amp;mb_id=$mb_id&amp;page=");
include_once($new_skin_path . '/new.skin.php'); include_once $new_skin_path . "/new.skin.php";
include_once "./_tail.php"; include_once "./_tail.php";

View file

@ -28,6 +28,14 @@ switch ($w) {
$return_url = './board.php?bo_table=' . $bo_table; $return_url = './board.php?bo_table=' . $bo_table;
} }
break; break;
case 'p':
// 비밀번호 창에서 로그인 하는 경우 관리자 또는 자신의 글이면 바로 글보기로 감
if ($is_admin || ($member['mb_id'] == $write['mb_id'] && $write['mb_id']))
goto_url(G5_HTTP_BBS_URL . '/board.php?bo_table=' . $bo_table . '&amp;wr_id=' . $wr_id);
else {
$action = https_url(G5_BBS_DIR) . '/password_check.php';
$return_url = G5_HTTP_BBS_URL . '/board.php?bo_table=' . $bo_table;
}
case 'sc': case 'sc':
// 비밀번호 창에서 로그인 하는 경우 관리자 또는 자신의 글이면 바로 글보기로 감 // 비밀번호 창에서 로그인 하는 경우 관리자 또는 자신의 글이면 바로 글보기로 감
if ($is_admin || ($member['mb_id'] == $write['mb_id'] && $write['mb_id'])) if ($is_admin || ($member['mb_id'] == $write['mb_id'] && $write['mb_id']))
@ -50,7 +58,7 @@ switch ($w) {
alert('w 값이 제대로 넘어오지 않았습니다.'); alert('w 값이 제대로 넘어오지 않았습니다.');
} }
include_once(G5_PATH . '/head.sub.php'); include_once G5_PATH . "/head.sub.php";
//if ($board['bo_include_head']) { @include ($board['bo_include_head']); } //if ($board['bo_include_head']) { @include ($board['bo_include_head']); }
//if ($board['bo_content_head']) { echo stripslashes($board['bo_content_head']); } //if ($board['bo_content_head']) { echo stripslashes($board['bo_content_head']); }
@ -64,11 +72,70 @@ $row = sql_fetch($sql);
$g5['title'] = get_text($row['wr_subject']); $g5['title'] = get_text($row['wr_subject']);
$delete_str = ""; $delete_str = "";
if ($w == 'x') $delete_str = ""; if ($w == 'x')
if ($w == 'u') $g5['title'] = "{$delete_str}글 수정"; $delete_str = "";
else if ($w == 'd' || $w == 'x') $g5['title'] = "{$delete_str}글 삭제"; if ($w == 'u')
$g5['title'] = "{$delete_str}글 수정";
else if ($w == 'd' || $w == 'x')
$g5['title'] = "{$delete_str}글 삭제";
include_once $member_skin_path . '/password.skin.php'; if (is_include_path_check("{$member_skin_path}/password.skin.php")) {
include_once "{$member_skin_path}/password.skin.php";
} else {
add_stylesheet('<link rel="stylesheet" href="' . G5_CSS_URL . '/style.basic.css">', 0);
?>
<!-- 비밀번호 확인 시작 { -->
<div id="password_box">
<h1 class="ui-btn point">비밀번호 확인</h1>
<div class="descript theme-box">
<p>
<?php if ($w == 'u') { ?>
<strong>작성자만 글을 수정할 있습니다.</strong>
작성자 본인이라면, 작성시 입력한 비밀번호를 입력하여 글을 수정할 있습니다.
<?php } else if ($w == 'd' || $w == 'x') { ?>
<strong>작성자만 글을 삭제할 있습니다.</strong>
작성자 본인이라면, 작성시 입력한 비밀번호를 입력하여 글을 삭제할 있습니다.
<?php } else if ($w == 'bs') {
} else if ($w == 'p') { ?>
<strong>보호글입니다.</strong>
열람을 위해 비밀번호를 입력 주세요.
<?php } else { ?>
<strong>비밀글 기능으로 보호된 글입니다.</strong>
작성자와 관리자만 열람하실 있습니다. 본인이라면 비밀번호를 입력하세요.
<?php } ?>
</p>
<div class="pass-form">
<form name="fboardpassword" action="<?php echo $action; ?>" method="post">
<input type="hidden" name="w" value="<?php echo $w ?>">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
<input type="hidden" name="comment_id" value="<?php echo $comment_id ?>">
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
<input type="hidden" name="stx" value="<?php echo $stx ?>">
<input type="hidden" name="page" value="<?php echo $page ?>">
<fieldset class="box-pw">
<?php if ($w == 'p') { ?>
<input type="text" name="wr_password" id="password_wr_password" required class="frm_input required" size="15"
maxlength="20">
<?php } else { ?>
<input type="password" name="wr_password" id="password_wr_password" required class="frm_input required"
size="15" maxlength="20">
<?php } ?>
</fieldset>
<fieldset class="box-btn">
<input type="submit" value="확인" class="btn_submit ui-btn">
</fieldset>
</form>
</div>
</div>
<div class="btn_confirm">
<a href="<?php echo $return_url ?>" class="ui-btn">이전으로 돌아가기</a>
</div>
</div>
<!-- } 비밀번호 확인 -->
<?php
}
//if ($board['bo_content_tail']) { echo stripslashes($board['bo_content_tail']); } //if ($board['bo_content_tail']) { echo stripslashes($board['bo_content_tail']); }
//if ($board['bo_include_tail']) { @include ($board['bo_include_tail']); } //if ($board['bo_include_tail']) { @include ($board['bo_include_tail']); }

View file

@ -2,7 +2,7 @@
include_once "./_common.php"; include_once "./_common.php";
if ($w == 's') { if ($w == 's') {
$qstr = 'bo_table=' . $bo_table . '&amp;sfl=' . $sfl . '&amp;stx=' . $stx . '&amp;sop=' . $sop . '&amp;wr_id=' . $wr_id . '&amp;page=' . $page; $qstr = "bo_table={$bo_table}&amp;sfl={$sfl}&amp;stx={$stx}&amp;sop={$sop}&amp;wr_id={$wr_id}&amp;page={$page}";
$wr = get_write($write_table, $wr_id); $wr = get_write($write_table, $wr_id);
if (!$wr['wr_password'] && $wr['mb_id']) { if (!$wr['wr_password'] && $wr['mb_id']) {
@ -23,7 +23,7 @@ if ($w == 's') {
set_session($ss_name, TRUE); set_session($ss_name, TRUE);
} else if ($w == 'p') { } else if ($w == 'p') {
$qstr = 'bo_table=' . $bo_table . '&amp;sfl=' . $sfl . '&amp;stx=' . $stx . '&amp;sop=' . $sop . '&amp;wr_id=' . $wr_id . '&amp;page=' . $page; $qstr = "bo_table={$bo_table}&amp;sfl={$sfl}&amp;stx={$stx}&amp;sop={$sop}&amp;wr_id={$wr_id}&amp;page={$page}";
$wr = get_write($write_table, $wr_id); $wr = get_write($write_table, $wr_id);
@ -39,7 +39,7 @@ if ($w == 's') {
set_session($ss_name, TRUE); set_session($ss_name, TRUE);
} else if ($w == 'sc') { } else if ($w == 'sc') {
$qstr = 'bo_table=' . $bo_table . '&amp;sfl=' . $sfl . '&amp;stx=' . $stx . '&amp;sop=' . $sop . '&amp;wr_id=' . $wr_id . '&amp;page=' . $page; $qstr = "bo_table={$bo_table}&amp;sfl={$sfl}&amp;stx={$stx}&amp;sop={$sop}&amp;wr_id={$wr_id}&amp;page={$page}";
$wr = get_write($write_table, $wr_id); $wr = get_write($write_table, $wr_id);
if (!$wr['wr_password'] && $wr['mb_id']) { if (!$wr['wr_password'] && $wr['mb_id']) {
@ -57,9 +57,8 @@ if ($w == 's') {
$ss_name = 'ss_secret_comment_' . $bo_table . '_' . $wr['wr_id']; $ss_name = 'ss_secret_comment_' . $bo_table . '_' . $wr['wr_id'];
//set_session("ss_secret", "$bo_table|$wr['wr_num']"); //set_session("ss_secret", "$bo_table|$wr['wr_num']");
set_session($ss_name, TRUE); set_session($ss_name, TRUE);
} else if ($w == 'bs') { } else if ($w == 'bs') {
$qstr = 'bo_table=' . $bo_table . '&amp;sfl=' . $sfl . '&amp;stx=' . $stx . '&amp;sop=' . $sop . '&amp;wr_id=' . $wr_id . '&amp;page=' . $page; $qstr = "bo_table={$bo_table}&amp;sfl={$sfl}&amp;stx={$stx}&amp;sop={$sop}&amp;wr_id={$wr_id}&amp;page={$page}";
$bo = sql_fetch("SELECT bo_pass FROM {$g5['board_table']} where bo_table='{$bo_table}'"); $bo = sql_fetch("SELECT bo_pass FROM {$g5['board_table']} where bo_table='{$bo_table}'");
$pw = get_encrypt_string($bo['bo_pass']); $pw = get_encrypt_string($bo['bo_pass']);
if (!check_password($wr_password, $pw)) { if (!check_password($wr_password, $pw)) {

View file

@ -1,15 +1,15 @@
<?php <?php
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_CAPTCHA_PATH . '/captcha.lib.php'); include_once G5_CAPTCHA_PATH . "/captcha.lib.php";
if ($is_member) { if ($is_member) {
alert("이미 로그인중입니다."); alert("이미 로그인중입니다.");
} }
$g5['title'] = '회원정보 찾기'; $g5['title'] = '회원정보 찾기';
include_once(G5_PATH . '/head.sub.php'); include_once G5_PATH . "/head.sub.php";
$action_url = G5_HTTPS_BBS_URL . "/password_lost2.php"; $action_url = G5_HTTPS_BBS_URL . "/password_lost2.php";
include_once($member_skin_path . '/password_lost.skin.php'); include_once $member_skin_path . "/password_lost.skin.php";
include_once(G5_PATH . '/tail.sub.php'); include_once G5_PATH . "/tail.sub.php";

View file

@ -5,7 +5,7 @@ if ($is_guest)
alert_close('회원만 조회하실 수 있습니다.'); alert_close('회원만 조회하실 수 있습니다.');
$g5['title'] = get_text($member['mb_nick']) . ' 님의 포인트 내역'; $g5['title'] = get_text($member['mb_nick']) . ' 님의 포인트 내역';
include_once(G5_PATH . '/head.sub.php'); include_once G5_PATH . "/head.sub.php";
$list = []; $list = [];
@ -23,6 +23,6 @@ if ($page < 1) {
} // 페이지가 없으면 첫 페이지 (1 페이지) } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함 $from_record = ($page - 1) * $rows; // 시작 열을 구함
include_once($member_skin_path . '/point.skin.php'); include_once $member_skin_path . "/point.skin.php";
include_once(G5_PATH . '/tail.sub.php'); include_once G5_PATH . "/tail.sub.php";

View file

@ -2,9 +2,9 @@
$g5['title'] = "설문조사"; $g5['title'] = "설문조사";
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_LIB_PATH . '/poll.lib.php'); include_once G5_LIB_PATH . "/poll.lib.php";
include_once(G5_PATH . '/head.sub.php'); include_once G5_PATH . "/head.sub.php";
echo poll('basic', $po_id); echo poll('basic', $po_id);
include_once(G5_PATH . '/tail.sub.php'); include_once G5_PATH . "/tail.sub.php";

View file

@ -1,6 +1,6 @@
<?php <?php
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_LIB_PATH . '/mailer.lib.php'); include_once G5_LIB_PATH . "/mailer.lib.php";
if ($w == '') { if ($w == '') {
$po_id = $_POST['po_id']; $po_id = $_POST['po_id'];

View file

@ -1,6 +1,6 @@
<?php <?php
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_CAPTCHA_PATH . '/captcha.lib.php'); include_once G5_CAPTCHA_PATH . "/captcha.lib.php";
$po = sql_fetch("SELECT * FROM {$g5['poll_table']} where po_id = '{$po_id}' "); $po = sql_fetch("SELECT * FROM {$g5['poll_table']} where po_id = '{$po_id}' ");
if (!$po['po_id']) if (!$po['po_id'])
@ -109,10 +109,10 @@ if (preg_match('#^theme/(.+)$#', $skin_dir, $match)) {
} }
} }
include_once(G5_PATH . '/head.sub.php'); include_once G5_PATH . "/head.sub.php";
if (!file_exists($poll_skin_path . '/poll_result.skin.php')) if (!file_exists($poll_skin_path . '/poll_result.skin.php'))
die('skin error'); die('skin error');
include_once($poll_skin_path . '/poll_result.skin.php'); include_once $poll_skin_path . "/poll_result.skin.php";
include_once(G5_PATH . '/tail.sub.php'); include_once G5_PATH . "/tail.sub.php";

View file

@ -15,9 +15,9 @@ if (!$mb['mb_open'] && $is_admin != 'super' && $member['mb_id'] != $mb_id)
alert_close('정보공개를 하지 않았습니다.'); alert_close('정보공개를 하지 않았습니다.');
$g5['title'] = $mb['mb_nick'] . '님의 자기소개'; $g5['title'] = $mb['mb_nick'] . '님의 자기소개';
include_once(G5_PATH . '/head.sub.php'); include_once G5_PATH . "/head.sub.php";
$mb_nick = get_sideview($mb['mb_id'], get_text($mb['mb_nick']), $mb['mb_email'], $mb['mb_homepage'], $mb['mb_open']); $mb_nick = get_sideview($mb['mb_id'], get_text($mb['mb_nick']), $mb['mb_email'], $mb['mb_homepage']);
// 회원가입후 몇일째인지? + 1 은 당일을 포함한다는 뜻 // 회원가입후 몇일째인지? + 1 은 당일을 포함한다는 뜻
$sql = " select (TO_DAYS('" . G5_TIME_YMDHIS . "') - TO_DAYS('{$mb['mb_datetime']}') + 1) as days "; $sql = " select (TO_DAYS('" . G5_TIME_YMDHIS . "') - TO_DAYS('{$mb['mb_datetime']}') + 1) as days ";
@ -27,6 +27,6 @@ $mb_reg_after = $row['days'];
$mb_homepage = set_http(get_text(clean_xss_tags($mb['mb_homepage']))); $mb_homepage = set_http(get_text(clean_xss_tags($mb['mb_homepage'])));
$mb_profile = $mb['mb_profile'] ? conv_content($mb['mb_profile'], 0) : '소개 내용이 없습니다.'; $mb_profile = $mb['mb_profile'] ? conv_content($mb['mb_profile'], 0) : '소개 내용이 없습니다.';
include_once($member_skin_path . '/profile.skin.php'); include_once $member_skin_path . "/profile.skin.php";
include_once(G5_PATH . '/tail.sub.php'); include_once G5_PATH . "/tail.sub.php";

View file

@ -1,5 +1,5 @@
<?php <?php
include_once('./_common.php'); include_once "./_common.php";
if ($is_guest) if ($is_guest)
alert('회원이시라면 로그인 후 이용해 주십시오.', G5_URL); alert('회원이시라면 로그인 후 이용해 주십시오.', G5_URL);

View file

@ -324,7 +324,7 @@ EventHandler::triggerEvent("gnuboard.bbs.qawrite_update", $qa_id, $write, $w, $q
// 답변 이메일전송 // 답변 이메일전송
if ($w == 'a' && $write['qa_email_recv'] && trim($write['qa_email'])) { if ($w == 'a' && $write['qa_email_recv'] && trim($write['qa_email'])) {
include_once(G5_LIB_PATH . '/mailer.lib.php'); include_once G5_LIB_PATH . "/mailer.lib.php";
$subject = $config['cf_title'] . ' ' . $qaconfig['qa_title'] . ' 답변 알림 메일'; $subject = $config['cf_title'] . ' ' . $qaconfig['qa_title'] . ' 답변 알림 메일';
$content = nl2br(conv_unescape_nl(stripslashes($qa_content))); $content = nl2br(conv_unescape_nl(stripslashes($qa_content)));
@ -334,7 +334,7 @@ if ($w == 'a' && $write['qa_email_recv'] && trim($write['qa_email'])) {
// 문의글등록 이메일전송 // 문의글등록 이메일전송
if (($w == '' || $w == 'r') && trim($qaconfig['qa_admin_email'])) { if (($w == '' || $w == 'r') && trim($qaconfig['qa_admin_email'])) {
include_once(G5_LIB_PATH . '/mailer.lib.php'); include_once G5_LIB_PATH . "/mailer.lib.php";
$subject = $config['cf_title'] . ' ' . $qaconfig['qa_title'] . ' 질문 알림 메일'; $subject = $config['cf_title'] . ' ' . $qaconfig['qa_title'] . ' 질문 알림 메일';
$content = nl2br(conv_unescape_nl(stripslashes($qa_content))); $content = nl2br(conv_unescape_nl(stripslashes($qa_content)));

View file

@ -21,6 +21,6 @@ goto_url(G5_BBS_URL . '/register_form.php');
//include_once "./_head.php"; //include_once "./_head.php";
//$register_action_url = G5_BBS_URL.'/register_form.php'; //$register_action_url = G5_BBS_URL.'/register_form.php';
//include_once($member_skin_path.'/register.skin.php'); //include_once $member_skin_path."/register.skin.php";
//include_once "./_tail.php"; //include_once "./_tail.php";

View file

@ -1,6 +1,6 @@
<?php <?php
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_CAPTCHA_PATH . '/captcha.lib.php'); include_once G5_CAPTCHA_PATH . "/captcha.lib.php";
$g5['title'] = '메일인증 메일주소 변경'; $g5['title'] = '메일인증 메일주소 변경';
include_once "./_head.php"; include_once "./_head.php";

View file

@ -1,7 +1,7 @@
<?php <?php
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_CAPTCHA_PATH . '/captcha.lib.php'); include_once G5_CAPTCHA_PATH . "/captcha.lib.php";
include_once(G5_LIB_PATH . '/mailer.lib.php'); include_once G5_LIB_PATH . "/mailer.lib.php";
$mb_id = substr(clean_xss_tags($_POST['mb_id']), 0, 20); $mb_id = substr(clean_xss_tags($_POST['mb_id']), 0, 20);
$mb_email = get_email_address(trim($_POST['mb_email'])); $mb_email = get_email_address(trim($_POST['mb_email']));

View file

@ -166,7 +166,7 @@ if ($w == '' || $w == 'u') {
} }
// 사용자 코드 실행 // 사용자 코드 실행
@include_once($member_skin_path . '/register_form_update.head.skin.php'); @include_once $member_skin_path . "/register_form_update.head.skin.php";
//=============================================================== //===============================================================
// 본인확인 // 본인확인
@ -442,7 +442,7 @@ if ($config['cf_use_email_certify'] && $old_email != $mb_email) {
// 사용자 코드 실행 // 사용자 코드 실행
@include_once($member_skin_path . '/register_form_update.tail.skin.php'); @include_once $member_skin_path . "/register_form_update.tail.skin.php";
unset($_SESSION['ss_cert_type']); unset($_SESSION['ss_cert_type']);
unset($_SESSION['ss_cert_no']); unset($_SESSION['ss_cert_no']);

View file

@ -10,5 +10,5 @@ if (!$mb['mb_id'])
$g5['title'] = '회원가입이 완료되었습니다.'; $g5['title'] = '회원가입이 완료되었습니다.';
include_once "./_head.php"; include_once "./_head.php";
include_once($member_skin_path . '/register_result.skin.php'); include_once $member_skin_path . "/register_result.skin.php";
include_once "./_tail.php"; include_once "./_tail.php";

View file

@ -5,7 +5,7 @@ if (!$is_member)
alert_close('회원만 조회하실 수 있습니다.'); alert_close('회원만 조회하실 수 있습니다.');
$g5['title'] = get_text($member['mb_nick']) . '님의 스크랩'; $g5['title'] = get_text($member['mb_nick']) . '님의 스크랩';
include_once(G5_PATH . '/head.sub.php'); include_once G5_PATH . "/head.sub.php";
$sql_common = " from {$g5['scrap_table']} where mb_id = '{$member['mb_id']}' "; $sql_common = " from {$g5['scrap_table']} where mb_id = '{$member['mb_id']}' ";
$sql_order = " ORDER BY ms_id DESC "; $sql_order = " ORDER BY ms_id DESC ";
@ -56,6 +56,6 @@ for ($i = 0; $row = sql_fetch_array($result); $i++) {
$list[$i]['del_href'] = './scrap_delete.php?ms_id=' . $row['ms_id'] . '&amp;page=' . $page; $list[$i]['del_href'] = './scrap_delete.php?ms_id=' . $row['ms_id'] . '&amp;page=' . $page;
} }
include_once($member_skin_path . '/scrap.skin.php'); include_once $member_skin_path . "/scrap.skin.php";
include_once(G5_PATH . '/tail.sub.php'); include_once G5_PATH . "/tail.sub.php";

View file

@ -1,7 +1,7 @@
<?php <?php
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_PATH . '/head.sub.php'); include_once G5_PATH . "/head.sub.php";
if ($is_guest) { if ($is_guest) {
$href = './login.php?' . $qstr . '&amp;url=' . urlencode('./board.php?bo_table=' . $bo_table . '&amp;wr_id=' . $wr_id); $href = './login.php?' . $qstr . '&amp;url=' . urlencode('./board.php?bo_table=' . $bo_table . '&amp;wr_id=' . $wr_id);
@ -54,6 +54,6 @@ HEREDOC;
exit; exit;
} }
include_once($member_skin_path . '/scrap_popin.skin.php'); include_once $member_skin_path . "/scrap_popin.skin.php";
include_once(G5_PATH . '/tail.sub.php'); include_once G5_PATH . "/tail.sub.php";

View file

@ -1,7 +1,7 @@
<?php <?php
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_PATH . '/head.sub.php'); include_once G5_PATH . "/head.sub.php";
if (!$is_member) { if (!$is_member) {
$href = './login.php?' . $qstr . '&amp;url=' . urlencode('./board.php?bo_table=' . $bo_table . '&amp;wr_id=' . $wr_id); $href = './login.php?' . $qstr . '&amp;url=' . urlencode('./board.php?bo_table=' . $bo_table . '&amp;wr_id=' . $wr_id);

View file

@ -234,6 +234,6 @@ if (!$sfl)
if (!$sop) if (!$sop)
$sop = 'or'; $sop = 'or';
include_once($search_skin_path . '/search.skin.php'); include_once $search_skin_path . "/search.skin.php";
include_once "./_tail.php"; include_once "./_tail.php";

View file

@ -7,7 +7,7 @@ $sop = strtolower($sop);
if ($sop != 'and' && $sop != 'or') if ($sop != 'and' && $sop != 'or')
$sop = 'and'; $sop = 'and';
@include_once($board_skin_path . '/view.head.skin.php'); @include_once $board_skin_path . "/view.head.skin.php";
$sql_search = ""; $sql_search = "";
// 검색이면 // 검색이면
@ -136,5 +136,5 @@ if ($board['bo_use_signature'] && $view['mb_id']) {
$signature = conv_content($signature, 1); $signature = conv_content($signature, 1);
} }
include_once($board_skin_path . '/view.skin.php'); include_once $board_skin_path . "/view.skin.php";
@include_once($board_skin_path . '/view.tail.skin.php'); @include_once $board_skin_path . "/view.tail.skin.php";

View file

@ -1,14 +1,14 @@
<?php <?php
if (!defined('_GNUBOARD_')) if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가 exit; // 개별 페이지 접근 불가
include_once(G5_CAPTCHA_PATH . '/captcha.lib.php'); include_once G5_CAPTCHA_PATH . "/captcha.lib.php";
$captcha_html = ""; $captcha_html = "";
if ($is_guest && $board['bo_comment_level'] < 2) { if ($is_guest && $board['bo_comment_level'] < 2) {
$captcha_html = captcha_html('_comment'); $captcha_html = captcha_html('_comment');
} }
@include_once($board_skin_path . '/view_comment.head.skin.php'); @include_once $board_skin_path . "/view_comment.head.skin.php";
$list = []; $list = [];
@ -109,9 +109,9 @@ if ($is_admin) {
$comment_max = (int) $board['bo_comment_max']; $comment_max = (int) $board['bo_comment_max'];
} }
include_once($board_skin_path . '/view_comment.skin.php'); include_once $board_skin_path . "/view_comment.skin.php";
if (!$member['mb_id']) // 비회원일 경우에만 if (!$member['mb_id']) // 비회원일 경우에만
echo '<script src="' . G5_JS_URL . '/md5.js"></script>' . "\n"; echo '<script src="' . G5_JS_URL . '/md5.js"></script>' . "\n";
@include_once($board_skin_path . '/view_comment.tail.skin.php'); @include_once $board_skin_path . "/view_comment.tail.skin.php";

View file

@ -2,7 +2,7 @@
include_once "./_common.php"; include_once "./_common.php";
$g5['title'] = '이미지 크게보기'; $g5['title'] = '이미지 크게보기';
include_once(G5_PATH . '/head.sub.php'); include_once G5_PATH . "/head.sub.php";
$filename = $_GET['fn']; $filename = $_GET['fn'];
$bo_table = $_GET['bo_table']; $bo_table = $_GET['bo_table'];
@ -106,5 +106,5 @@ if (is_file($filepath)) {
</script> </script>
<?php <?php
include_once(G5_PATH . '/tail.sub.php'); include_once G5_PATH . "/tail.sub.php";
?> ?>

View file

@ -7,7 +7,7 @@ if (!(version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE')
// Browscap 캐시 파일이 있으면 실행 // Browscap 캐시 파일이 있으면 실행
if (defined('G5_VISIT_BROWSCAP_USE') && G5_VISIT_BROWSCAP_USE && is_file(G5_DATA_PATH . '/cache/browscap_cache.php')) { if (defined('G5_VISIT_BROWSCAP_USE') && G5_VISIT_BROWSCAP_USE && is_file(G5_DATA_PATH . '/cache/browscap_cache.php')) {
include_once(G5_PLUGIN_PATH . '/browscap/Browscap.php'); include_once G5_PLUGIN_PATH . "/browscap/Browscap.php";
$browscap = new phpbrowscap\Browscap(G5_DATA_PATH . '/cache'); $browscap = new phpbrowscap\Browscap(G5_DATA_PATH . '/cache');
$browscap->doAutoUpdate = false; $browscap->doAutoUpdate = false;

View file

@ -19,7 +19,7 @@ if (get_cookie('ck_visit_ip') != $_SERVER['REMOTE_ADDR']) {
$vi_os = ''; $vi_os = '';
$vi_device = ''; $vi_device = '';
if (version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE') && G5_BROWSCAP_USE) { if (version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE') && G5_BROWSCAP_USE) {
include_once(G5_BBS_PATH . '/visit_browscap.inc.php'); include_once G5_BBS_PATH . "/visit_browscap.inc.php";
} }
$sql = " insert {$g5['visit_table']} ( vi_id, vi_ip, vi_date, vi_time, vi_referer, vi_agent, vi_browser, vi_os, vi_device ) values ( '{$vi_id}', '{$remote_addr}', '" . G5_TIME_YMD . "', '" . G5_TIME_HIS . "', '{$referer}', '{$user_agent}', '{$vi_browser}', '{$vi_os}', '{$vi_device}' ) "; $sql = " insert {$g5['visit_table']} ( vi_id, vi_ip, vi_date, vi_time, vi_referer, vi_agent, vi_browser, vi_os, vi_device ) values ( '{$vi_id}', '{$remote_addr}', '" . G5_TIME_YMD . "', '" . G5_TIME_HIS . "', '{$referer}', '{$user_agent}', '{$vi_browser}', '{$vi_os}', '{$vi_device}' ) ";

View file

@ -1,7 +1,7 @@
<?php <?php
define('G5_CAPTCHA', true); define('G5_CAPTCHA', true);
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_CAPTCHA_PATH . '/captcha.lib.php'); include_once G5_CAPTCHA_PATH . "/captcha.lib.php";
// 토큰체크 // 토큰체크
$comment_token = trim(get_session('ss_comment_token')); $comment_token = trim(get_session('ss_comment_token'));
@ -15,7 +15,7 @@ if (substr_count($wr_content, "&#") > 50) {
exit; exit;
} }
@include_once($board_skin_path . '/write_comment_update.head.skin.php'); @include_once $board_skin_path . "/write_comment_update.head.skin.php";
$w = $_POST["w"]; $w = $_POST["w"];
$wr_name = trim($_POST['wr_name']); $wr_name = trim($_POST['wr_name']);
@ -136,9 +136,19 @@ if ($w == 'c') // 댓글 입력
//$wr_subject = get_text(stripslashes($wr['wr_subject'])); //$wr_subject = get_text(stripslashes($wr['wr_subject']));
$wr_option = "";
if ($wr_secret || $secret || $html) {
$_options = [];
if ($html) $_options[] = $html;
if ($wr_secret || $secret) $_options[] = $wr_secret ? $wr_secret : $secret;
$wr_option = implode(",", $_options);
}
$sql = "INSERT INTO $write_table $sql = "INSERT INTO $write_table
SET ca_name = '{$wr['ca_name']}', SET ca_name = '{$wr['ca_name']}',
wr_option = '$wr_secret', wr_option = '$wr_option',
wr_num = '{$wr['wr_num']}', wr_num = '{$wr['wr_num']}',
wr_reply = '', wr_reply = '',
wr_parent = '$wr_id', wr_parent = '$wr_id',
@ -206,7 +216,7 @@ if ($w == 'c') // 댓글 입력
// 4.00.15 - 메일로 보내는 댓글의 바로가기 링크 수정 // 4.00.15 - 메일로 보내는 댓글의 바로가기 링크 수정
$link_url = G5_BBS_URL . "/board.php?bo_table=" . $bo_table . "&amp;wr_id=" . $wr_id . "&amp;" . $qstr . "#c_" . $comment_id; $link_url = G5_BBS_URL . "/board.php?bo_table=" . $bo_table . "&amp;wr_id=" . $wr_id . "&amp;" . $qstr . "#c_" . $comment_id;
include_once(G5_LIB_PATH . '/mailer.lib.php'); include_once G5_LIB_PATH . "/mailer.lib.php";
ob_start(); ob_start();
include_once "./write_update_mail.php"; include_once "./write_update_mail.php";
@ -310,9 +320,15 @@ if ($w == 'c') // 댓글 입력
if (!$is_admin) if (!$is_admin)
$sql_ip = " , wr_ip = '{$_SERVER['REMOTE_ADDR']}' "; $sql_ip = " , wr_ip = '{$_SERVER['REMOTE_ADDR']}' ";
$sql_secret = ""; $wr_option = "";
if ($wr_secret) if ($wr_secret || $secret || $html) {
$sql_secret = " , wr_option = '$wr_secret' "; $_options = [];
if ($html) $_options[] = $html;
if ($wr_secret || $secret) $_options[] = $wr_secret ? $wr_secret : $secret;
$wr_option = implode(",", $_options);
}
$sql = "UPDATE $write_table $sql = "UPDATE $write_table
SET wr_subject = '$wr_subject', SET wr_subject = '$wr_subject',
@ -329,14 +345,13 @@ if ($w == 'c') // 댓글 입력
wr_10 = '$wr_10', wr_10 = '$wr_10',
wr_option = '$wr_option' wr_option = '$wr_option'
$sql_ip $sql_ip
$sql_secret
WHERE wr_id = '$comment_id' "; WHERE wr_id = '$comment_id' ";
sql_query($sql); sql_query($sql);
} }
// 사용자 코드 실행 // 사용자 코드 실행
@include_once($board_skin_path . '/write_comment_update.skin.php'); @include_once $board_skin_path . "/write_comment_update.skin.php";
@include_once($board_skin_path . '/write_comment_update.tail.skin.php'); @include_once $board_skin_path . "/write_comment_update.tail.skin.php";
delete_cache_latest($bo_table); delete_cache_latest($bo_table);

View file

@ -13,7 +13,7 @@ set_cookie('ck_twitter_checked', false, 86400 * 31);
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
$wr_facebook_user = ""; $wr_facebook_user = "";
if ($_POST['facebook_checked']) { if ($_POST['facebook_checked']) {
include_once(G5_SNS_PATH . "/facebook/src/facebook.php"); include_once G5_SNS_PATH . "/facebook/src/facebook.php";
$facebook = new Facebook(array( $facebook = new Facebook(array(
'appId' => $config['cf_facebook_appid'], 'appId' => $config['cf_facebook_appid'],
@ -53,8 +53,8 @@ if ($_POST['facebook_checked']) {
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
$wr_twitter_user = ""; $wr_twitter_user = "";
if ($_POST['twitter_checked']) { if ($_POST['twitter_checked']) {
include_once(G5_SNS_PATH . "/twitter/twitteroauth/twitteroauth.php"); include_once G5_SNS_PATH . "/twitter/twitteroauth/twitteroauth.php";
include_once(G5_SNS_PATH . "/twitter/twitterconfig.php"); include_once G5_SNS_PATH . "/twitter/twitterconfig.php";
if (!(empty($_SESSION['access_token']) || empty($_SESSION['access_token']['oauth_token']) || empty($_SESSION['access_token']['oauth_token_secret']))) { if (!(empty($_SESSION['access_token']) || empty($_SESSION['access_token']['oauth_token']) || empty($_SESSION['access_token']['oauth_token_secret']))) {
$comment_url = G5_BBS_URL . '/board.php?bo_table=' . $bo_table . '&wr_id=' . $wr['wr_parent'] . '&#c_' . $comment_id; $comment_url = G5_BBS_URL . '/board.php?bo_table=' . $bo_table . '&wr_id=' . $wr['wr_parent'] . '&#c_' . $comment_id;

View file

@ -1,6 +1,6 @@
<?php <?php
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_LIB_PATH . '/json.lib.php'); include_once G5_LIB_PATH . "/json.lib.php";
if (!$bo_table) if (!$bo_table)
die(json_encode(array('error' => '게시판 정보가 올바르지 않습니다.', 'url' => G5_URL))); die(json_encode(array('error' => '게시판 정보가 올바르지 않습니다.', 'url' => G5_URL)));

View file

@ -706,7 +706,7 @@ if (!($w == 'u' || $w == 'cu') && $config['cf_email_use'] && $board['bo_use_emai
$link_url = G5_BBS_URL . '/board.php?bo_table=' . $bo_table . '&amp;wr_id=' . $wr_id . '&amp;' . $qstr; $link_url = G5_BBS_URL . '/board.php?bo_table=' . $bo_table . '&amp;wr_id=' . $wr_id . '&amp;' . $qstr;
include_once(G5_LIB_PATH . '/mailer.lib.php'); include_once G5_LIB_PATH . "/mailer.lib.php";
ob_start(); ob_start();
include_once "./write_update_mail.php"; include_once "./write_update_mail.php";
@ -745,8 +745,8 @@ if (!($w == 'u' || $w == 'cu') && $config['cf_email_use'] && $board['bo_use_emai
} }
// 사용자 코드 실행 // 사용자 코드 실행
@include_once($board_skin_path . '/write_update.skin.php'); @include_once $board_skin_path . "/write_update.skin.php";
@include_once($board_skin_path . '/write_update.tail.skin.php'); @include_once $board_skin_path . "/write_update.tail.skin.php";
delete_cache_latest($bo_table); delete_cache_latest($bo_table);

View file

@ -1,7 +1,7 @@
<?php <?php
include_once "./_common.php"; include_once "./_common.php";
include_once(G5_LIB_PATH . '/naver_syndi.lib.php'); include_once G5_LIB_PATH . "/naver_syndi.lib.php";
include_once(G5_CAPTCHA_PATH . '/captcha.lib.php'); include_once G5_CAPTCHA_PATH . "/captcha.lib.php";
// 토큰체크 // 토큰체크
//check_write_token($bo_table); //check_write_token($bo_table);
@ -125,7 +125,7 @@ for ($i = 1; $i <= 10; $i++) {
} }
} }
@include_once($board_skin_path . '/write_update.head.skin.php'); @include_once $board_skin_path . "/write_update.head.skin.php";
if ($w == '' || $w == 'u') { if ($w == '' || $w == 'u') {
@ -679,7 +679,7 @@ if (!($w == 'u' || $w == 'cu') && $config['cf_email_use'] && $board['bo_use_emai
$link_url = G5_BBS_URL . '/board.php?bo_table=' . $bo_table . '&amp;wr_id=' . $wr_id . '&amp;' . $qstr; $link_url = G5_BBS_URL . '/board.php?bo_table=' . $bo_table . '&amp;wr_id=' . $wr_id . '&amp;' . $qstr;
include_once(G5_LIB_PATH . '/mailer.lib.php'); include_once G5_LIB_PATH . "/mailer.lib.php";
ob_start(); ob_start();
include_once "./write_update_mail.php"; include_once "./write_update_mail.php";
@ -718,8 +718,8 @@ if (!($w == 'u' || $w == 'cu') && $config['cf_email_use'] && $board['bo_use_emai
} }
// 사용자 코드 실행 // 사용자 코드 실행
@include_once($board_skin_path . '/write_update.skin.php'); @include_once $board_skin_path . "/write_update.skin.php";
@include_once($board_skin_path . '/write_update.tail.skin.php'); @include_once $board_skin_path . "/write_update.tail.skin.php";
delete_cache_latest($bo_table); delete_cache_latest($bo_table);

View file

@ -0,0 +1,156 @@
/*
origin source from
https://extrashot.tistory.com/
*/
@charset "utf-8";
#member_page {
position: relative;
overflow: hidden;
max-width: 800px;
margin: 0 auto;
padding-bottom: 80px;
}
#member_page .agree-pannel .theme-box {
height: 300px;
overflow: auto;
}
#member_page .member-title {
font-size: 24px;
padding-top: 20px;
text-align: center;
}
#member_page .member-title * {
display: block;
}
#member_page .member-title span {
font-size: 15px;
font-weight: 600;
}
#member_page .member-contents {
padding-top: 20px;
}
#member_page .member-contents h2 {
font-size: 16px;
line-height: 1.5em;
padding-bottom: 10px;
}
#member_page .member-contents section {
padding-bottom: 30px;
}
#member_page .member-contents .theme-box {
padding: 15px;
line-height: 1.8em;
}
#member_page .check-agree {
padding-top: 10px;
text-align: right;
}
.member-form {
width: 100%;
margin-bottom: 30px;
}
.member-form th {
font-size: 13px;
font-weight: 400;
text-align: left;
}
/*** PASSWORD ***/
#password_box {
display: block;
position: absolute;
top: 50%;
left: 50%;
margin-top: -150px;
margin-left: -150px;
width: 300px;
height: 200px;
}
#password_box h1 {
margin: 0;
height: auto;
padding: 10px;
font-size: 14px;
line-height: 1.1em;
width: 100%;
}
#password_box h1+.theme-box {
border-top-width: 0;
margin-bottom: 3px;
}
#password_box .pass-form {
position: relative;
padding-right: 80px;
margin-top: 10px;
}
#password_box .pass-form fieldset {
display: block;
}
#password_box .pass-form fieldset+fieldset {
margin-top: 3px;
}
#password_box .pass-form .box-btn {
display: block;
position: absolute;
margin: 0;
top: 0;
right: 0;
bottom: 0;
width: 70px;
}
#password_box .pass-form #password_wr_password {
width: 100%;
}
#password_box .pass-form .box-btn .ui-btn {
width: 100%;
height: 100%;
padding: 0;
}
#password_box .btn_confirm .ui-btn {
width: 100%;
}
.mbskin {
padding: 10px;
}
.win_ul {
padding: 5px 0;
overflow: hidden;
}
.win_ul li {
float: left;
width: 50%;
}
.win_ul .ui-btn {
display: block;
}

View file

@ -1,7 +1,7 @@
<?php <?php
if (!defined('_GNUBOARD_')) if (!defined('_GNUBOARD_'))
exit; exit;
include_once(dirname(__FILE__) . '/pbkdf2.compat.php'); include_once dirname(__FILE__) . "/pbkdf2.compat.php";
include_once __DIR__ . "/hook.lib.php"; include_once __DIR__ . "/hook.lib.php";
include_once __DIR__ . '/Hook/hook.class.php'; include_once __DIR__ . '/Hook/hook.class.php';
@ -189,7 +189,7 @@ function alert($msg = '', $url = '', $error = true, $post = false)
if (isset($g5['title'])) { if (isset($g5['title'])) {
$header = $g5['title']; $header = $g5['title'];
} }
include_once(G5_BBS_PATH . '/alert.php'); include_once G5_BBS_PATH . "/alert.php";
exit; exit;
} }
@ -234,7 +234,7 @@ function confirm($msg, $url1 = '', $url2 = '', $url3 = '')
if (isset($g5['title'])) { if (isset($g5['title'])) {
$header = $g5['title']; $header = $g5['title'];
} }
include_once(G5_BBS_PATH . '/confirm.php'); include_once G5_BBS_PATH . "/confirm.php";
exit; exit;
} }
@ -595,8 +595,8 @@ function html_purifier($html)
} }
$safeiframe = implode('|', run_replace('html_purifier_safeiframes', $domains, $html)); $safeiframe = implode('|', run_replace('html_purifier_safeiframes', $domains, $html));
include_once(G5_PLUGIN_PATH . '/htmlpurifier/HTMLPurifier.standalone.php'); include_once G5_PLUGIN_PATH . "/htmlpurifier/HTMLPurifier.standalone.php";
include_once(G5_PLUGIN_PATH . '/htmlpurifier/extend.video.php'); include_once G5_PLUGIN_PATH . "/htmlpurifier/extend.video.php";
$config = HTMLPurifier_Config::createDefault(); $config = HTMLPurifier_Config::createDefault();
// data/cache 디렉토리에 CSS, HTML, URI 디렉토리 등을 만든다. // data/cache 디렉토리에 CSS, HTML, URI 디렉토리 등을 만든다.

View file

@ -15,7 +15,7 @@ function connect($skin_dir = 'basic')
$connect_skin_url = G5_SKIN_URL . '/connect/' . $skin_dir; $connect_skin_url = G5_SKIN_URL . '/connect/' . $skin_dir;
ob_start(); ob_start();
include_once($connect_skin_path . '/connect.skin.php'); include_once $connect_skin_path . "/connect.skin.php";
$content = ob_get_contents(); $content = ob_get_contents();
ob_end_clean(); ob_end_clean();

View file

@ -18,8 +18,8 @@ if (!function_exists('get_called_class')) {
} }
} }
include_once(dirname(__FILE__) . '/Hook/hook.class.php'); include_once dirname(__FILE__) . "/Hook/hook.class.php";
include_once(dirname(__FILE__) . '/Hook/hook.extends.class.php'); include_once dirname(__FILE__) . "/Hook/hook.extends.class.php";
function get_hook_class() function get_hook_class()
{ {

View file

@ -35,9 +35,9 @@ function outlogin($skin_dir = 'basic')
ob_start(); ob_start();
if ($is_member) if ($is_member)
include_once($outlogin_skin_path . '/outlogin.skin.2.php'); include_once $outlogin_skin_path . "/outlogin.skin.2.php";
else // 로그인 전이라면 else // 로그인 전이라면
include_once($outlogin_skin_path . '/outlogin.skin.1.php'); include_once $outlogin_skin_path . "/outlogin.skin.1.php";
$content = ob_get_contents(); $content = ob_get_contents();
ob_end_clean(); ob_end_clean();

View file

@ -22,10 +22,9 @@ function poll($skin_dir = 'basic', $po_id = false)
$po = sql_fetch("SELECT * FROM {$g5['poll_table']} where po_id = '$po_id' "); $po = sql_fetch("SELECT * FROM {$g5['poll_table']} where po_id = '$po_id' ");
ob_start(); ob_start();
include_once($poll_skin_path . '/poll.skin.php'); include_once $poll_skin_path . "/poll.skin.php";
$content = ob_get_contents(); $content = ob_get_contents();
ob_end_clean(); ob_end_clean();
return $content; return $content;
} }
?>

View file

@ -26,7 +26,7 @@ function popular($skin_dir = 'basic', $pop_cnt = 7, $date_cnt = 3)
$popular_skin_url = G5_SKIN_URL . '/popular/' . $skin_dir; $popular_skin_url = G5_SKIN_URL . '/popular/' . $skin_dir;
ob_start(); ob_start();
include_once($popular_skin_path . '/popular.skin.php'); include_once $popular_skin_path . "/popular.skin.php";
$content = ob_get_contents(); $content = ob_get_contents();
ob_end_clean(); ob_end_clean();

View file

@ -23,7 +23,7 @@ function visit($skin_dir = 'basic')
$visit_skin_url = G5_SKIN_URL . '/visit/' . $skin_dir; $visit_skin_url = G5_SKIN_URL . '/visit/' . $skin_dir;
ob_start(); ob_start();
include_once($visit_skin_path . '/visit.skin.php'); include_once $visit_skin_path . "/visit.skin.php";
$content = ob_get_contents(); $content = ob_get_contents();
ob_end_clean(); ob_end_clean();

View file

@ -1,6 +1,6 @@
<?php <?php
include_once "_common.php"; include_once "_common.php";
include_once(dirname(__FILE__).'/kcaptcha_config.php'); include_once dirname(__FILE__) . "/kcaptcha_config.php";
include_once "captcha.lib.php"; include_once "captcha.lib.php";
while (true) { while (true) {
@ -8,7 +8,8 @@ while(true){
for ($i = 0; $i < $length; $i++) { for ($i = 0; $i < $length; $i++) {
$keystring .= $allowed_symbols[mt_rand(0, strlen($allowed_symbols) - 1)]; $keystring .= $allowed_symbols[mt_rand(0, strlen($allowed_symbols) - 1)];
} }
if(!preg_match('/cp|cb|ck|c6|c9|rn|rm|mm|co|do|cl|db|qp|qb|dp|ww/', $keystring)) break; if (!preg_match('/cp|cb|ck|c6|c9|rn|rm|mm|co|do|cl|db|qp|qb|dp|ww/', $keystring))
break;
} }
if ($keystring && function_exists('get_string_encrypt')) { if ($keystring && function_exists('get_string_encrypt')) {

View file

@ -44,7 +44,7 @@ exit;
*/ */
$g5['title'] = '트위터 콜백'; $g5['title'] = '트위터 콜백';
include_once(G5_PATH.'/head.sub.php'); include_once G5_PATH . "/head.sub.php";
if (200 == $connection->http_code) { if (200 == $connection->http_code) {
$content = $connection->get('account/verify_credentials'); $content = $connection->get('account/verify_credentials');
@ -84,4 +84,4 @@ EOT;
} }
include_once(G5_PATH.'/tail.sub.php'); include_once G5_PATH . "/tail.sub.php";

View file

@ -1,7 +1,8 @@
<?php <?php
include_once "./_common.php"; include_once "./_common.php";
if (!$board['bo_use_sns']) return; if (!$board['bo_use_sns'])
return;
?> ?>
<ul id="bo_vc_sns"> <ul id="bo_vc_sns">
@ -12,8 +13,8 @@ if (!$board['bo_use_sns']) return;
if ($config['cf_twitter_key']) { if ($config['cf_twitter_key']) {
$twitter_user = get_session("ss_twitter_user"); $twitter_user = get_session("ss_twitter_user");
if (!$twitter_user) { if (!$twitter_user) {
include_once(G5_SNS_PATH."/twitter/twitteroauth/twitteroauth.php"); include_once G5_SNS_PATH . "/twitter/twitteroauth/twitteroauth.php";
include_once(G5_SNS_PATH."/twitter/twitterconfig.php"); include_once G5_SNS_PATH . "/twitter/twitterconfig.php";
$twitter_user = false; $twitter_user = false;
/* /*

View file

@ -1,7 +1,7 @@
<?php <?php
if (!defined("_GNUBOARD_")) if (!defined("_GNUBOARD_"))
exit; // 개별 페이지 접근 불가 exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH . '/thumbnail.lib.php'); include_once G5_LIB_PATH . "/thumbnail.lib.php";
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="' . $board_skin_url . '/style.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $board_skin_url . '/style.css">', 0);
@ -84,7 +84,7 @@ add_stylesheet('<link rel="stylesheet" href="' . $board_skin_url . '/style.css">
</div> </div>
<?php <?php
// 코멘트 입출력 // 코멘트 입출력
include_once(G5_BBS_PATH . '/view_comment.php'); include_once G5_BBS_PATH . "/view_comment.php";
?> ?>
<!-- 링크 버튼 시작 { --> <!-- 링크 버튼 시작 { -->
<div id="bo_v_bot"> <div id="bo_v_bot">

View file

@ -1,3 +1,3 @@
<?php <?php
include_once "../../../../common.php"; include_once "../../../../common.php";
include_once($board_skin_path.'/_setting.php'); include_once $board_skin_path . "/_setting.php";

View file

@ -36,9 +36,15 @@ $default_font = hex2rgba($default_font['cs_value'], $default_font['cs_etc_1']);
</script> </script>
<style> <style>
:root { :root {
--pannel-line: <?= $color_line_color ?>; --pannel-line:
--pannel-bak: <?= $color_bak_off ?>; <?= $color_line_color ?>
--pannel-bak-over: <?= $color_bak_over ?>; ;
--pannel-bak:
<?= $color_bak_off ?>
;
--pannel-bak-over:
<?= $color_bak_over ?>
;
} }
</style> </style>
<div class="loading"> <div class="loading">
@ -169,7 +175,7 @@ $default_font = hex2rgba($default_font['cs_value'], $default_font['cs_etc_1']);
<div class='char-body-list'> <div class='char-body-list'>
<?php if ($body_cnt > 0 && $write['wr_2'] != '') { <?php if ($body_cnt > 0 && $write['wr_2'] != '') {
// 전신 리스트 출력 (단, 추가로 등록한 전신이 있을 경우에만) // 전신 리스트 출력 (단, 추가로 등록한 전신이 있을 경우에만)
include_once($board_skin_path . "/view_body.skin.php"); include_once $board_skin_path . "/view_body.skin.php";
} }
?> ?>
</div> </div>

View file

@ -1,7 +1,7 @@
<?php <?php
if (!defined('_GNUBOARD_')) if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가 exit; // 개별 페이지 접근 불가
include_once(G5_PLUGIN_PATH . '/jquery-ui/datepicker.php'); // 달력 include_once G5_PLUGIN_PATH . "/jquery-ui/datepicker.php"; // 달력
// 게시물 목록을 불러온다. // 게시물 목록을 불러온다.

View file

@ -1,7 +1,7 @@
<?php <?php
if (!defined('_GNUBOARD_')) if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가 exit; // 개별 페이지 접근 불가
include_once($board_skin_path . '/_setting.php'); include_once $board_skin_path . "/_setting.php";
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="' . $board_skin_url . '/style.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $board_skin_url . '/style.css">', 0);
@ -144,9 +144,9 @@ if ($w == '') {
<?php } <?php }
if ($type == 'pair') { if ($type == 'pair') {
include_once($board_skin_path . "/write.pair.skin.php"); include_once $board_skin_path . "/write.pair.skin.php";
} else { } else {
include_once($board_skin_path . "/write.character.skin.php"); include_once $board_skin_path . "/write.character.skin.php";
} }
if ($is_guest) { //자동등록방지 ?> if ($is_guest) { //자동등록방지 ?>

View file

@ -1,8 +1,8 @@
<?php <?php
if (!defined('_GNUBOARD_')) if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가 exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH . '/thumbnail.lib.php'); include_once G5_LIB_PATH . "/thumbnail.lib.php";
include_once($board_skin_path . '/emoticon/_setting.emoticon.php'); include_once $board_skin_path . "/emoticon/_setting.emoticon.php";
add_stylesheet('<link rel="stylesheet" href="' . $board_skin_url . '/style.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $board_skin_url . '/style.css">', 0);
set_session('ss_bo_table', $_REQUEST['bo_table']); set_session('ss_bo_table', $_REQUEST['bo_table']);
@ -29,7 +29,8 @@ $owner_behind = $owner_behind['cs_etc_4'];
<?php if ($is_category) { ?> <?php if ($is_category) { ?>
<nav class="board-category"> <nav class="board-category">
<ul> <ul>
<li><a href="./board.php?bo_table=<?= $bo_table ?>" class="ui-btn <?= !$sca || $sca == '' ? 'point' : 'etc' ?>">ALL</a> <li><a href="./board.php?bo_table=<?= $bo_table ?>"
class="ui-btn <?= !$sca || $sca == '' ? 'point' : 'etc' ?>">ALL</a>
</li> </li>
<?php echo $category_list ?> <?php echo $category_list ?>
</ul> </ul>

View file

@ -9,7 +9,7 @@ $wr_num = $wr['wr_num'];
if (!$wr_num) if (!$wr_num)
$wr_num = $comment['wr_num']; $wr_num = $comment['wr_num'];
include_once($board_skin_path . '/write_update.inc.php'); include_once $board_skin_path . "/write_update.inc.php";
if ($w != 'cu') { if ($w != 'cu') {
$sql = " update {$write_table} $sql = " update {$write_table}

View file

@ -9,7 +9,7 @@ if (!$wr_num)
if ($w == 'u') { if ($w == 'u') {
include_once($board_skin_path . '/write_update.inc.php'); include_once $board_skin_path . "/write_update.inc.php";
$sql = " update {$write_table} $sql = " update {$write_table}
set wr_id = '{$wr_id}' set wr_id = '{$wr_id}'
{$customer_sql} {$customer_sql}

View file

@ -1,7 +1,7 @@
<?php <?php
if (!defined('_GNUBOARD_')) if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가 exit; // 개별 페이지 접근 불가
//include_once($board_skin_path."/moonday.php"); // 석봉운님의 음력날짜 함수 //include_once $board_skin_path."/moonday.php"; // 석봉운님의 음력날짜 함수
if (preg_match('/%/', $width)) { if (preg_match('/%/', $width)) {
$col_width = "14%"; //표의 가로 폭이 100보다 크면 픽셀값입력 $col_width = "14%"; //표의 가로 폭이 100보다 크면 픽셀값입력

View file

@ -13,19 +13,23 @@ else if ($w == 'd' || $w == 'x')
add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css">', 0);
?> ?>
<!-- 비밀번호 확인 시작 { --> <!-- 비밀번호 확인 시작 { -->
<div id="password_box" class="theme-box"> <div id="password_box">
<h1>비밀번호 확인</h1> <h1 class="ui-btn point">비밀번호 확인</h1>
<hr class="line" /> <div class="descript theme-box">
<div class="descript">
<p> <p>
<?php if ($w == 'u') { ?> <?php if ($w == 'u') { ?>
<strong class="txt-point">작성자만 글을 수정할 있습니다.</strong> <strong>작성자만 글을 수정할 있습니다.</strong>
작성자 본인이라면, 작성시 입력한 비밀번호를 입력하여 글을 수정할 있습니다. 작성자 본인이라면, 작성시 입력한 비밀번호를 입력하여 글을 수정할 있습니다.
<?php } else if ($w == 'd' || $w == 'x') { ?> <?php } else if ($w == 'd' || $w == 'x') { ?>
<strong class="txt-point">작성자만 글을 삭제할 있습니다.</strong> <strong>작성자만 글을 삭제할 있습니다.</strong>
작성자 본인이라면, 작성시 입력한 비밀번호를 입력하여 글을 삭제할 있습니다. 작성자 본인이라면, 작성시 입력한 비밀번호를 입력하여 글을 삭제할 있습니다.
<?php } else if ($w == 'bs') {
} else if ($w == 'p') { ?>
<strong>보호글입니다.</strong>
열람을 위해 비밀번호를 입력 주세요.
<?php } else { ?> <?php } else { ?>
<strong class="txt-point">비밀글 기능으로 보호된 글입니다.</strong> <strong>비밀글 기능으로 보호된 글입니다.</strong>
작성자와 관리자만 열람하실 있습니다. 본인이라면 비밀번호를 입력하세요. 작성자와 관리자만 열람하실 있습니다. 본인이라면 비밀번호를 입력하세요.
<?php } ?> <?php } ?>
</p> </p>
@ -39,16 +43,20 @@ add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css"
<input type="hidden" name="stx" value="<?php echo $stx ?>"> <input type="hidden" name="stx" value="<?php echo $stx ?>">
<input type="hidden" name="page" value="<?php echo $page ?>"> <input type="hidden" name="page" value="<?php echo $page ?>">
<fieldset class="box-pw"> <fieldset class="box-pw">
<?php if ($w == 'p') { ?>
<input type="text" name="wr_password" id="password_wr_password" required class="frm_input required" size="15"
maxlength="20">
<?php } else { ?>
<input type="password" name="wr_password" id="password_wr_password" required class="frm_input required" <input type="password" name="wr_password" id="password_wr_password" required class="frm_input required"
size="15" maxLength="20"> size="15" maxlength="20">
<?php } ?>
</fieldset> </fieldset>
<fieldset class="box-btn"> <fieldset class="box-btn">
<button type="submit" class="point ui-btn">확인</button> <input type="submit" value="확인" class="btn_submit ui-btn">
</fieldset> </fieldset>
</form> </form>
</div> </div>
</div> </div>
<hr class="line" />
<div class="btn_confirm"> <div class="btn_confirm">
<a href="<?php echo $return_url ?>" class="ui-btn">이전으로 돌아가기</a> <a href="<?php echo $return_url ?>" class="ui-btn">이전으로 돌아가기</a>
</div> </div>

View file

@ -33,4 +33,4 @@ add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.B.
<?php } ?> <?php } ?>
</style> </style>
<?php @include_once($menu_skin_path . '/menu.cmm.inc.php'); ?> <?php @include_once $menu_skin_path . "/menu.cmm.inc.php"; ?>

View file

@ -33,4 +33,4 @@ add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.L.
<?php } ?> <?php } ?>
</style> </style>
<?php @include_once($menu_skin_path . '/menu.cmm.inc.php'); ?> <?php @include_once $menu_skin_path . "/menu.cmm.inc.php"; ?>

View file

@ -33,4 +33,4 @@ add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.R.
<?php } ?> <?php } ?>
</style> </style>
<?php @include_once($menu_skin_path . '/menu.cmm.inc.php'); ?> <?php @include_once $menu_skin_path . "/menu.cmm.inc.php"; ?>

View file

@ -33,4 +33,4 @@ add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.T.
<?php } ?> <?php } ?>
</style> </style>
<?php @include_once($menu_skin_path . '/menu.cmm.inc.php'); ?> <?php @include_once $menu_skin_path . "/menu.cmm.inc.php"; ?>

View file

@ -1,7 +1,7 @@
<?php <?php
if (!defined("_GNUBOARD_")) if (!defined("_GNUBOARD_"))
exit; // 개별 페이지 접근 불가 exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH . '/thumbnail.lib.php'); include_once G5_LIB_PATH . "/thumbnail.lib.php";
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="' . $qa_skin_url . '/style.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $qa_skin_url . '/style.css">', 0);
@ -101,9 +101,9 @@ add_stylesheet('<link rel="stylesheet" href="' . $qa_skin_url . '/style.css">',
// 질문글에서 답변이 있으면 답변 출력, 답변이 없고 관리자이면 답변등록폼 출력 // 질문글에서 답변이 있으면 답변 출력, 답변이 없고 관리자이면 답변등록폼 출력
if (!$view['qa_type']) { if (!$view['qa_type']) {
if ($view['qa_status'] && $answer['qa_id']) if ($view['qa_status'] && $answer['qa_id'])
include_once($qa_skin_path . '/view.answer.skin.php'); include_once $qa_skin_path . "/view.answer.skin.php";
else else
include_once($qa_skin_path . '/view.answerform.skin.php'); include_once $qa_skin_path . "/view.answerform.skin.php";
} }
?> ?>