Merge branch 'master' of github.com:gnuboard/g5

This commit is contained in:
thisgun
2018-08-24 09:35:49 +09:00
36 changed files with 88 additions and 63 deletions

View File

@ -14,11 +14,11 @@ if (!$bo_table) { alert('게시판 TABLE명은 반드시 입력하세요.'); }
if (!preg_match("/^([A-Za-z0-9_]{1,20})$/", $bo_table)) { alert('게시판 TABLE명은 공백없이 영문자, 숫자, _ 만 사용 가능합니다. (20자 이내)'); } if (!preg_match("/^([A-Za-z0-9_]{1,20})$/", $bo_table)) { alert('게시판 TABLE명은 공백없이 영문자, 숫자, _ 만 사용 가능합니다. (20자 이내)'); }
if (!$_POST['bo_subject']) { alert('게시판 제목을 입력하세요.'); } if (!$_POST['bo_subject']) { alert('게시판 제목을 입력하세요.'); }
$_POST['bo_include_head'] = preg_replace("#[\\\]+$#", "", substr($_POST['bo_include_head'], 0, 255)); $bo_include_head = preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($bo_include_head, 0, 255));
$_POST['bo_include_tail'] = preg_replace("#[\\\]+$#", "", substr($_POST['bo_include_tail'], 0, 255)); $bo_include_tail = preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($bo_include_tail, 0, 255));
// 관리자가 자동등록방지를 사용해야 할 경우 // 관리자가 자동등록방지를 사용해야 할 경우
if ($board && ($board['bo_include_head'] !== $_POST['bo_include_head'] || $board['bo_include_tail'] !== $_POST['bo_include_tail']) && function_exists('get_admin_captcha_by') && get_admin_captcha_by()){ if ($board && ($board['bo_include_head'] !== $bo_include_head || $board['bo_include_tail'] !== $bo_include_tail) && 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()) {
@ -26,7 +26,7 @@ if ($board && ($board['bo_include_head'] !== $_POST['bo_include_head'] || $board
} }
} }
if ($file = $_POST['bo_include_head']) { if ($file = $bo_include_head) {
$file_ext = pathinfo($file, PATHINFO_EXTENSION); $file_ext = pathinfo($file, PATHINFO_EXTENSION);
if( ! $file_ext || ! in_array($file_ext, array('php', 'htm', 'html')) || ! preg_match('/^.*\.(php|htm|html)$/i', $file) ) { if( ! $file_ext || ! in_array($file_ext, array('php', 'htm', 'html')) || ! preg_match('/^.*\.(php|htm|html)$/i', $file) ) {
@ -35,7 +35,7 @@ if ($file = $_POST['bo_include_head']) {
$_POST['bo_include_head'] = $file; $_POST['bo_include_head'] = $file;
} }
if ($file = $_POST['bo_include_tail']) { if ($file = $bo_include_tail) {
$file_ext = pathinfo($file, PATHINFO_EXTENSION); $file_ext = pathinfo($file, PATHINFO_EXTENSION);
if( ! $file_ext || ! in_array($file_ext, array('php', 'htm', 'html')) || ! preg_match('/^.*\.(php|htm|html)$/i', $file) ) { if( ! $file_ext || ! in_array($file_ext, array('php', 'htm', 'html')) || ! preg_match('/^.*\.(php|htm|html)$/i', $file) ) {
@ -44,11 +44,11 @@ if ($file = $_POST['bo_include_tail']) {
$_POST['bo_include_tail'] = $file; $_POST['bo_include_tail'] = $file;
} }
if(!is_include_path_check($_POST['bo_include_head'], 1)) { if(!is_include_path_check($bo_include_head, 1)) {
alert('상단 파일 경로에 포함시킬수 없는 문자열이 있습니다.'); alert('상단 파일 경로에 포함시킬수 없는 문자열이 있습니다.');
} }
if(!is_include_path_check($_POST['bo_include_tail'], 1)) { if(!is_include_path_check($bo_include_tail, 1)) {
alert('하단 파일 경로에 포함시킬수 없는 문자열이 있습니다.'); alert('하단 파일 경로에 포함시킬수 없는 문자열이 있습니다.');
} }
@ -125,8 +125,8 @@ $sql_common = " gr_id = '{$_POST['gr_id']}',
// 최고 관리자인 경우에만 수정가능 // 최고 관리자인 경우에만 수정가능
if ($is_admin === 'super'){ if ($is_admin === 'super'){
$sql_common .= " bo_include_head = '{$_POST['bo_include_head']}', $sql_common .= " bo_include_head = '".$bo_include_head."',
bo_include_tail = '{$_POST['bo_include_tail']}', bo_include_tail = '".$bo_include_tail."',
bo_content_head = '{$_POST['bo_content_head']}', bo_content_head = '{$_POST['bo_content_head']}',
bo_content_tail = '{$_POST['bo_content_tail']}', bo_content_tail = '{$_POST['bo_content_tail']}',
bo_mobile_content_head = '{$_POST['bo_mobile_content_head']}', bo_mobile_content_head = '{$_POST['bo_mobile_content_head']}',

View File

@ -12,7 +12,7 @@ $sound_only = '';
if ($w == '') { if ($w == '') {
$gr_id_attr = 'required'; $gr_id_attr = 'required';
$sound_only = '<strong class="sound_only"> 필수</strong>'; $sound_only = '<strong class="sound_only"> 필수</strong>';
$gr['gr_use_access'] = 0; $gr = array('gr_use_access' => 0);
$html_title .= ' 생성'; $html_title .= ' 생성';
} else if ($w == 'u') { } else if ($w == 'u') {
$gr_id_attr = 'readonly'; $gr_id_attr = 'readonly';

View File

@ -16,7 +16,9 @@ if (!preg_match("/^([A-Za-z0-9_]{1,10})$/", $_POST['gr_id']))
if (!$gr_subject) alert('그룹 제목을 입력하세요.'); if (!$gr_subject) alert('그룹 제목을 입력하세요.');
$sql_common = " gr_subject = '{$_POST['gr_subject']}', $gr_subject = isset($_POST['gr_subject']) ? strip_tags($_POST['gr_subject']) : '';
$sql_common = " gr_subject = '{$gr_subject}',
gr_device = '{$_POST['gr_device']}', gr_device = '{$_POST['gr_device']}',
gr_admin = '{$_POST['gr_admin']}', gr_admin = '{$_POST['gr_admin']}',
gr_1_subj = '{$_POST['gr_1_subj']}', gr_1_subj = '{$_POST['gr_1_subj']}',

View File

@ -19,10 +19,11 @@ for ($i=0; $i<$count; $i++)
{ {
$k = $_POST['chk'][$i]; $k = $_POST['chk'][$i];
$gr_id = $_POST['group_id'][$k]; $gr_id = $_POST['group_id'][$k];
$gr_subject = strip_tags($_POST['gr_subject'][$k]);
if($_POST['act_button'] == '선택수정') { if($_POST['act_button'] == '선택수정') {
$sql = " update {$g5['group_table']} $sql = " update {$g5['group_table']}
set gr_subject = '{$_POST['gr_subject'][$k]}', set gr_subject = '{$gr_subject}',
gr_device = '{$_POST['gr_device'][$k]}', gr_device = '{$_POST['gr_device'][$k]}',
gr_admin = '{$_POST['gr_admin'][$k]}', gr_admin = '{$_POST['gr_admin'][$k]}',
gr_use_access = '{$_POST['gr_use_access'][$k]}', gr_use_access = '{$_POST['gr_use_access'][$k]}',

View File

@ -49,9 +49,11 @@ if ($w == "u")
else else
{ {
$html_title .= ' 입력'; $html_title .= ' 입력';
$co['co_html'] = 2; $co = array(
$co['co_skin'] = 'basic'; 'co_html' => 2,
$co['co_mobile_skin'] = 'basic'; 'co_skin' => 'basic',
'co_mobile_skin' => 'basic'
);
} }
include_once (G5_ADMIN_PATH.'/admin.head.php'); include_once (G5_ADMIN_PATH.'/admin.head.php');

View File

@ -20,8 +20,12 @@ if ($w == "" || $w == "u")
$co_row = sql_fetch($sql); $co_row = sql_fetch($sql);
} }
$co_subject = strip_tags($co_subject);
$co_include_head = preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($co_include_head, 0, 255));
$co_include_tail = preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($co_include_tail, 0, 255));
// 관리자가 자동등록방지를 사용해야 할 경우 // 관리자가 자동등록방지를 사용해야 할 경우
if (($co_row['co_include_head'] !== $_POST['co_include_head'] || $co_row['co_include_tail'] !== $_POST['co_include_tail']) && function_exists('get_admin_captcha_by') && get_admin_captcha_by()){ if (($co_row['co_include_head'] !== $co_include_head || $co_row['co_include_tail'] !== $co_include_tail) && 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()) {

View File

@ -21,6 +21,7 @@ if ($w == "u")
else else
{ {
$html_title .= ' 입력'; $html_title .= ' 입력';
$fm = array();
} }
$g5['title'] = $html_title.' 관리'; $g5['title'] = $html_title.' 관리';

View File

@ -18,6 +18,8 @@ check_admin_token();
if ($fm_himg_del) @unlink(G5_DATA_PATH."/faq/{$fm_id}_h"); if ($fm_himg_del) @unlink(G5_DATA_PATH."/faq/{$fm_id}_h");
if ($fm_timg_del) @unlink(G5_DATA_PATH."/faq/{$fm_id}_t"); if ($fm_timg_del) @unlink(G5_DATA_PATH."/faq/{$fm_id}_t");
$fm_subject = strip_tags($fm_subject);
$sql_common = " set fm_subject = '$fm_subject', $sql_common = " set fm_subject = '$fm_subject',
fm_head_html = '$fm_head_html', fm_head_html = '$fm_head_html',
fm_tail_html = '$fm_tail_html', fm_tail_html = '$fm_tail_html',

View File

@ -109,7 +109,7 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
<tr> <tr>
<th scope="row"><label for="nw_subject">팝업 제목<strong class="sound_only"> 필수</strong></label></th> <th scope="row"><label for="nw_subject">팝업 제목<strong class="sound_only"> 필수</strong></label></th>
<td> <td>
<input type="text" name="nw_subject" value="<?php echo stripslashes($nw['nw_subject']) ?>" id="nw_subject" required class="frm_input required" size="80"> <input type="text" name="nw_subject" value="<?php echo get_sanitize_input($nw['nw_subject']); ?>" id="nw_subject" required class="frm_input required" size="80">
</td> </td>
</tr> </tr>
<tr> <tr>

View File

@ -12,6 +12,8 @@ else
check_admin_token(); check_admin_token();
$nw_subject = isset($_POST['nw_subject']) ? strip_tags($_POST['nw_subject']) : '';
$sql_common = " nw_device = '{$_POST['nw_device']}', $sql_common = " nw_device = '{$_POST['nw_device']}',
nw_begin_time = '{$_POST['nw_begin_time']}', nw_begin_time = '{$_POST['nw_begin_time']}',
nw_end_time = '{$_POST['nw_end_time']}', nw_end_time = '{$_POST['nw_end_time']}',
@ -20,7 +22,7 @@ $sql_common = " nw_device = '{$_POST['nw_device']}',
nw_top = '{$_POST['nw_top']}', nw_top = '{$_POST['nw_top']}',
nw_height = '{$_POST['nw_height']}', nw_height = '{$_POST['nw_height']}',
nw_width = '{$_POST['nw_width']}', nw_width = '{$_POST['nw_width']}',
nw_subject = '{$_POST['nw_subject']}', nw_subject = '{$nw_subject}',
nw_content = '{$_POST['nw_content']}', nw_content = '{$_POST['nw_content']}',
nw_content_html = '{$_POST['nw_content_html']}' "; nw_content_html = '{$_POST['nw_content_html']}' ";

View File

@ -6,9 +6,9 @@ auth_check($auth[$sub_menu], 'w');
check_admin_token(); check_admin_token();
$mb_id = $_POST['mb_id']; $mb_id = strip_tags($_POST['mb_id']);
$po_point = $_POST['po_point']; $po_point = strip_tags($_POST['po_point']);
$po_content = $_POST['po_content']; $po_content = strip_tags($_POST['po_content']);
$expire = preg_replace('/[^0-9]/', '', $_POST['po_expire_term']); $expire = preg_replace('/[^0-9]/', '', $_POST['po_expire_term']);
$mb = get_member($mb_id); $mb = get_member($mb_id);

View File

@ -12,8 +12,11 @@ $error_msg = '';
$qaconfig = get_qa_config(); $qaconfig = get_qa_config();
$qa_include_head = preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($qa_include_head, 0, 255));
$qa_include_tail = preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($qa_include_tail, 0, 255));
// 관리자가 자동등록방지를 사용해야 할 경우 // 관리자가 자동등록방지를 사용해야 할 경우
if ($board && ($qaconfig['qa_include_head'] !== $_POST['qa_include_head'] || $qaconfig['qa_include_tail'] !== $_POST['qa_include_tail']) && function_exists('get_admin_captcha_by') && get_admin_captcha_by()){ if ($board && ($qaconfig['qa_include_head'] !== $qa_include_head || $qaconfig['qa_include_tail'] !== $qa_include_tail) && 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()) {

View File

@ -27,7 +27,7 @@ $vnum = $total_count - (($page-1) * $page_size);
include_once(G5_ADMIN_PATH.'/admin.head.php'); include_once(G5_ADMIN_PATH.'/admin.head.php');
?> ?>
<form name="search_form" method="get" action="<?echo $_SERVER['SCRIPT_NAME']?>" class="local_sch01 local_sch" > <form name="search_form" method="get" action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" class="local_sch01 local_sch" >
<label for="st" class="sound_only">검색대상</label> <label for="st" class="sound_only">검색대상</label>
<select name="st" id="st"> <select name="st" id="st">
<option value="hs_name"<?php echo get_selected('hs_name', $st); ?>>이름</option> <option value="hs_name"<?php echo get_selected('hs_name', $st); ?>>이름</option>

View File

@ -21,6 +21,8 @@ if ($w=='u') // 업데이트
if (!strlen(trim($bk_name))) if (!strlen(trim($bk_name)))
alert('이름을 입력해주세요'); alert('이름을 입력해주세요');
$bk_name = strip_tags($bk_name);
if ($bk_hp == '') if ($bk_hp == '')
alert('휴대폰번호만 입력 가능합니다.'); alert('휴대폰번호만 입력 가능합니다.');
/* /*

View File

@ -30,7 +30,7 @@ if ($w == 'u' && is_numeric($bk_no)) {
$g5['title'] .= '수정'; $g5['title'] .= '수정';
} }
else { else {
$write['bg_no'] = $bg_no; $write = array('bg_no' => (int) $bg_no);
$g5['title'] .= '추가'; $g5['title'] .= '추가';
} }
@ -43,12 +43,12 @@ include_once(G5_ADMIN_PATH."/admin.head.php");
?> ?>
<form name="book_form" id="book_form" method="post" action="./num_book_update.php"> <form name="book_form" id="book_form" method="post" action="./num_book_update.php">
<input type="hidden" name="w" value="<?php echo $w?>"> <input type="hidden" name="w" value="<?php echo get_sanitize_input($w); ?>">
<input type="hidden" name="page" value="<?php echo $page?>"> <input type="hidden" name="page" value="<?php echo get_sanitize_input($page); ?>">
<input type="hidden" name="ap" value="<?php echo $ap?>"> <input type="hidden" name="ap" value="<?php echo get_sanitize_input($ap); ?>">
<input type="hidden" name="bk_no" value="<?php echo $write['bk_no']?>"> <input type="hidden" name="bk_no" value="<?php echo $write['bk_no']?>">
<input type="hidden" name="mb_id" id="mb_id" value="<?php echo $write['mb_id']?>"> <input type="hidden" name="mb_id" id="mb_id" value="<?php echo $write['mb_id']?>">
<input type="hidden" name="get_bg_no" value="<?php echo $bg_no?>"> <input type="hidden" name="get_bg_no" value="<?php echo get_sanitize_input($bg_no); ?>">
<div class="tbl_frm01 tbl_wrap"> <div class="tbl_frm01 tbl_wrap">
<table> <table>
@ -74,7 +74,7 @@ include_once(G5_ADMIN_PATH."/admin.head.php");
</tr> </tr>
<tr> <tr>
<th scope="row"><label for="bk_name">이름<strong class="sound_only"> 필수</strong></label></th> <th scope="row"><label for="bk_name">이름<strong class="sound_only"> 필수</strong></label></th>
<td><input type="text" name="bk_name" id="bk_name" maxlength="50" value="<?php echo $write['bk_name']?>" required class="frm_input required"></td> <td><input type="text" name="bk_name" id="bk_name" maxlength="50" value="<?php echo get_sanitize_input($write['bk_name']); ?>" required class="frm_input required"></td>
</tr> </tr>
<tr> <tr>
<th scope="row"><label for="bk_hp">휴대폰번호<strong class="sound_only"> 필수</strong></label></th> <th scope="row"><label for="bk_hp">휴대폰번호<strong class="sound_only"> 필수</strong></label></th>
@ -187,14 +187,12 @@ function book_submit(){
if($check_msg.size()> 0) if($check_msg.size()> 0)
$check_msg.remove(); $check_msg.remove();
// $("#exist_msg").text("<?php echo $exist_msg_2; ?>");
is_submit = true; is_submit = true;
} else { } else {
if($check_msg.size() < 1) if($check_msg.size() < 1)
$("input#bk_hp").after("<div id=\"hp_check_el\"><h3>이 번호를 쓰는 회원 정보</h3><ul></ul></div>"); $("input#bk_hp").after("<div id=\"hp_check_el\"><h3>이 번호를 쓰는 회원 정보</h3><ul></ul></div>");
$("#hp_check_el").find("ul").html( list_text ); $("#hp_check_el").find("ul").html( list_text );
// $("#exist_msg").html("<?php echo $exist_msg_1 ?>");
if(confirm("회원 정보에 중복 휴대폰 번호가 있습니다.수정하실 경우 회원정보에 반영되지 않습니다.\n수정하시겠습니까?")) if(confirm("회원 정보에 중복 휴대폰 번호가 있습니다.수정하실 경우 회원정보에 반영되지 않습니다.\n수정하시겠습니까?"))
is_submit = true; is_submit = true;

View File

@ -12,14 +12,13 @@ if (!$is_member && $config['cf_formmail_is_member'])
$email_enc = new str_encrypt(); $email_enc = new str_encrypt();
$to = $email_enc->decrypt($to); $to = $email_enc->decrypt($to);
if (substr_count($to, "@") > 1)
alert_close('한번에 한사람에게만 메일을 발송할 수 있습니다.');
if (!chk_captcha()) { if (!chk_captcha()) {
alert('자동등록방지 숫자가 틀렸습니다.'); alert('자동등록방지 숫자가 틀렸습니다.');
} }
if (!preg_match("/([0-9a-zA-Z_-]+)@([0-9a-zA-Z_-]+)\.([0-9a-zA-Z_-]+)/", $to)){
alert_close('E-mail 주소가 형식에 맞지 않아서, 메일을 보낼수 없습니다.');
}
$file = array(); $file = array();
for ($i=1; $i<=$attach; $i++) { for ($i=1; $i<=$attach; $i++) {

View File

@ -72,7 +72,7 @@ if ($auto_login) {
// 3.27 // 3.27
// 자동로그인 --------------------------- // 자동로그인 ---------------------------
// 쿠키 한달간 저장 // 쿠키 한달간 저장
$key = md5($_SERVER['SERVER_ADDR'] . $_SERVER['REMOTE_ADDR'] . $_SERVER['HTTP_USER_AGENT'] . $mb['mb_password']); $key = md5($_SERVER['SERVER_ADDR'] . $_SERVER['SERVER_SOFTWARE'] . $_SERVER['HTTP_USER_AGENT'] . $mb['mb_password']);
set_cookie('ck_mb_id', $mb['mb_id'], 86400 * 31); set_cookie('ck_mb_id', $mb['mb_id'], 86400 * 31);
set_cookie('ck_auto', $key, 86400 * 31); set_cookie('ck_auto', $key, 86400 * 31);
// 자동로그인 end --------------------------- // 자동로그인 end ---------------------------

View File

@ -24,6 +24,10 @@ $url = clean_xss_tags($_GET['url']);
// url 체크 // url 체크
check_url_host($url, '', G5_URL, true); check_url_host($url, '', G5_URL, true);
if( preg_match('#^/{3,}#', $url) ){
$url = preg_replace('#^/{3,}#', '/', $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');

View File

@ -374,7 +374,7 @@ if ($_SESSION['ss_mb_id']) { // 로그인중이라면
$sql = " select mb_password, mb_intercept_date, mb_leave_date, mb_email_certify from {$g5['member_table']} where mb_id = '{$tmp_mb_id}' "; $sql = " select mb_password, mb_intercept_date, mb_leave_date, mb_email_certify from {$g5['member_table']} where mb_id = '{$tmp_mb_id}' ";
$row = sql_fetch($sql); $row = sql_fetch($sql);
if($row['mb_password']){ if($row['mb_password']){
$key = md5($_SERVER['SERVER_ADDR'] . $_SERVER['REMOTE_ADDR'] . $_SERVER['HTTP_USER_AGENT'] . $row['mb_password']); $key = md5($_SERVER['SERVER_ADDR'] . $_SERVER['SERVER_SOFTWARE'] . $_SERVER['HTTP_USER_AGENT'] . $row['mb_password']);
// 쿠키에 저장된 키와 같다면 // 쿠키에 저장된 키와 같다면
$tmp_key = get_cookie('ck_auto'); $tmp_key = get_cookie('ck_auto');
if ($tmp_key === $key && $tmp_key) { if ($tmp_key === $key && $tmp_key) {
@ -621,6 +621,7 @@ if(!empty($extend_file) && is_array($extend_file)) {
foreach($extend_file as $file) { foreach($extend_file as $file) {
include_once(G5_EXTEND_PATH.'/'.$file); include_once(G5_EXTEND_PATH.'/'.$file);
} }
unset($file);
} }
unset($extend_file); unset($extend_file);

View File

@ -5,7 +5,7 @@
********************/ ********************/
define('G5_VERSION', '그누보드5'); define('G5_VERSION', '그누보드5');
define('G5_GNUBOARD_VER', '5.3.1.5'); define('G5_GNUBOARD_VER', '5.3.1.6');
// 이 상수가 정의되지 않으면 각각의 개별 페이지는 별도로 실행될 수 없음 // 이 상수가 정의되지 않으면 각각의 개별 페이지는 별도로 실행될 수 없음
define('_GNUBOARD_', true); define('_GNUBOARD_', true);

View File

@ -1,10 +1,20 @@
function kakaolink_send(text, url) function kakaolink_send(text, url, image)
{ {
if( image === undefined ){
image = '';
}
// 카카오톡 링크 버튼을 생성합니다. 처음 한번만 호출하면 됩니다. // 카카오톡 링크 버튼을 생성합니다. 처음 한번만 호출하면 됩니다.
Kakao.Link.sendTalkLink({ Kakao.Link.sendDefault({
webLink : { objectType: 'feed',
text: String(text), content: {
url: url // 앱 설정의 웹 플랫폼에 등록한 도메인의 URL이어야 합니다. title: String(text),
} description: url,
imageUrl: image,
link: {
mobileWebUrl: url,
webUrl: url // 앱 설정의 웹 플랫폼에 등록한 도메인의 URL이어야 합니다.
}
}
}); });
} }

View File

@ -3269,7 +3269,7 @@ class str_encrypt
function __construct($salt='') function __construct($salt='')
{ {
if(!$salt) if(!$salt)
$this->salt = md5(preg_replace('/[^0-9A-Za-z]/', substr(G5_MYSQL_USER, -1), G5_MYSQL_PASSWORD)); $this->salt = md5(preg_replace('/[^0-9A-Za-z]/', substr(G5_MYSQL_USER, -1), $_SERVER['SERVER_SOFTWARE'].$_SERVER['DOCUMENT_ROOT']));
else else
$this->salt = $salt; $this->salt = $salt;
@ -3288,12 +3288,12 @@ class str_encrypt
$result .= $char; $result .= $char;
} }
return base64_encode($result); return strtr(base64_encode($result) , '+/=', '._-');
} }
function decrypt($str) { function decrypt($str) {
$result = ''; $result = '';
$str = base64_decode($str); $str = base64_decode(strtr($str, '._-', '+/='));
$length = strlen($str); $length = strlen($str);
for($i=0; $i<$length; $i++) { for($i=0; $i<$length; $i++) {
@ -3438,7 +3438,7 @@ function is_include_path_check($path='', $is_input='')
if( $path ){ if( $path ){
if ($is_input){ if ($is_input){
if( stripos($path, 'php://') !== false || stripos($path, 'zlib://') !== false || stripos($path, 'bzip2://') !== false || stripos($path, 'zip://') !== false || stripos($path, 'data:text/') !== false || stripos($path, 'data://') !== false ){ if( stripos($path, 'php:') !== false || stripos($path, 'zlib:') !== false || stripos($path, 'bzip2:') !== false || stripos($path, 'zip:') !== false || stripos($path, 'data:') !== false || stripos($path, 'phar:') !== false ){
return false; return false;
} }
@ -3478,7 +3478,7 @@ function is_include_path_check($path='', $is_input='')
return false; return false;
} }
if( preg_match('/\/data\/(file|editor|qa|cache|member|member_image|session|tmp)\/[A-Za-z0-9_]{1,20}\//i', $path) ){ if( preg_match('/\/data\/(file|editor|qa|cache|member|member_image|session|tmp)\/[A-Za-z0-9_]{1,20}\//i', str_replace('\\', '/', $path)) ){
return false; return false;
} }
} }

View File

@ -76,7 +76,6 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
<?php if ($list[$i]['is_notice']) { ?><strong class="notice_icon"><i class="fa fa-volume-up" aria-hidden="true"></i>공지</strong><?php } ?> <?php if ($list[$i]['is_notice']) { ?><strong class="notice_icon"><i class="fa fa-volume-up" aria-hidden="true"></i>공지</strong><?php } ?>
<?php echo $list[$i]['subject'] ?> <?php echo $list[$i]['subject'] ?>
<?php <?php
// if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count']}.']'; }
// if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; } // if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new']; if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new'];

View File

@ -153,7 +153,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
</section> </section>
<?php } ?> <?php } ?>
<?php if(isset($view['link'][1]) && $view['link'][1]) { ?> <?php if(array_filter($view['link'])) { ?>
<!-- 관련링크 시작 { --> <!-- 관련링크 시작 { -->
<section id="bo_v_link"> <section id="bo_v_link">
<h2>관련링크</h2> <h2>관련링크</h2>

View File

@ -103,7 +103,6 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
<?php if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span><?php echo $list[$i]['comment_cnt']; ?><span class="sound_only">개</span><?php } ?> <?php if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span><?php echo $list[$i]['comment_cnt']; ?><span class="sound_only">개</span><?php } ?>
</a> </a>
<?php <?php
// if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count']}.']'; }
// if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; } // if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new']; if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new'];

View File

@ -153,7 +153,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
</section> </section>
<?php } ?> <?php } ?>
<?php if(isset($view['link'][1]) && $view['link'][1]) { ?> <?php if(array_filter($view['link'])) { ?>
<!-- 관련링크 시작 { --> <!-- 관련링크 시작 { -->
<section id="bo_v_link"> <section id="bo_v_link">
<h2>관련링크</h2> <h2>관련링크</h2>

View File

@ -10,3 +10,5 @@ v.nate.com/
www.microsoft.com/showcase/video.aspx/ www.microsoft.com/showcase/video.aspx/
w.soundcloud.com/ w.soundcloud.com/
www.facebook.com/ www.facebook.com/
kakaotv.daum.net/
v.afree.ca/

View File

@ -23,7 +23,7 @@ $gplus_url = $sns_send.'&amp;sns=gplus';
?> ?>
<?php if(G5_IS_MOBILE && $config['cf_kakao_js_apikey']) { ?> <?php if(G5_IS_MOBILE && $config['cf_kakao_js_apikey']) { ?>
<script src="https://developers.kakao.com/sdk/js/kakao.min.js"></script> <script src="//developers.kakao.com/sdk/js/kakao.min.js"></script>
<script src="<?php echo G5_JS_URL; ?>/kakaolink.js"></script> <script src="<?php echo G5_JS_URL; ?>/kakaolink.js"></script>
<script> <script>
// 사용할 앱의 Javascript 키를 설정해 주세요. // 사용할 앱의 Javascript 키를 설정해 주세요.

View File

@ -114,7 +114,6 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
</a> </a>
<?php <?php
// if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count']}.']'; }
// if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; } // if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
if (isset($list[$i]['icon_file'])) echo rtrim($list[$i]['icon_file']); if (isset($list[$i]['icon_file'])) echo rtrim($list[$i]['icon_file']);
if (isset($list[$i]['icon_link'])) echo rtrim($list[$i]['icon_link']); if (isset($list[$i]['icon_link'])) echo rtrim($list[$i]['icon_link']);

View File

@ -135,7 +135,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
<!-- } 첨부파일 끝 --> <!-- } 첨부파일 끝 -->
<?php } ?> <?php } ?>
<?php if(isset($view['link'][1]) && $view['link'][1]) { ?> <?php if(array_filter($view['link'])) { ?>
<!-- 관련링크 시작 { --> <!-- 관련링크 시작 { -->
<section id="bo_v_link"> <section id="bo_v_link">
<h2>관련링크</h2> <h2>관련링크</h2>

View File

@ -117,7 +117,6 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
<?php echo $list[$i]['subject'] ?> <?php echo $list[$i]['subject'] ?>
<?php if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span><span class="cnt_cmt">+ <?php echo $list[$i]['wr_comment']; ?></span><span class="sound_only">개</span><?php } ?> <?php if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span><span class="cnt_cmt">+ <?php echo $list[$i]['wr_comment']; ?></span><span class="sound_only">개</span><?php } ?>
<?php <?php
// if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count']}.']'; }
// if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; } // if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
if (isset($list[$i]['icon_new'])) echo rtrim($list[$i]['icon_new']); if (isset($list[$i]['icon_new'])) echo rtrim($list[$i]['icon_new']);

View File

@ -135,7 +135,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
<!-- } 첨부파일 끝 --> <!-- } 첨부파일 끝 -->
<?php } ?> <?php } ?>
<?php if(isset($view['link'][1]) && $view['link'][1]) { ?> <?php if(array_filter($view['link'])) { ?>
<!-- 관련링크 시작 { --> <!-- 관련링크 시작 { -->
<section id="bo_v_link"> <section id="bo_v_link">
<h2>관련링크</h2> <h2>관련링크</h2>

View File

@ -76,7 +76,6 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
<?php if ($list[$i]['is_notice']) { ?><strong class="notice_icon"><i class="fa fa-volume-up" aria-hidden="true"></i>공지</strong><?php } ?> <?php if ($list[$i]['is_notice']) { ?><strong class="notice_icon"><i class="fa fa-volume-up" aria-hidden="true"></i>공지</strong><?php } ?>
<?php echo $list[$i]['subject'] ?> <?php echo $list[$i]['subject'] ?>
<?php <?php
// if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count']}.']'; }
// if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; } // if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new']; if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new'];

View File

@ -103,7 +103,6 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
<?php if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span><?php echo $list[$i]['comment_cnt']; ?><span class="sound_only">개</span><?php } ?> <?php if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span><?php echo $list[$i]['comment_cnt']; ?><span class="sound_only">개</span><?php } ?>
</a> </a>
<?php <?php
// if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count']}.']'; }
// if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; } // if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new']; if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new'];

View File

@ -114,7 +114,6 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
</a> </a>
<?php <?php
// if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count']}.']'; }
// if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; } // if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
if (isset($list[$i]['icon_file'])) echo rtrim($list[$i]['icon_file']); if (isset($list[$i]['icon_file'])) echo rtrim($list[$i]['icon_file']);
if (isset($list[$i]['icon_link'])) echo rtrim($list[$i]['icon_link']); if (isset($list[$i]['icon_link'])) echo rtrim($list[$i]['icon_link']);

View File

@ -117,7 +117,6 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
<?php echo $list[$i]['subject'] ?> <?php echo $list[$i]['subject'] ?>
<?php if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span><span class="cnt_cmt">+ <?php echo $list[$i]['wr_comment']; ?></span><span class="sound_only">개</span><?php } ?> <?php if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span><span class="cnt_cmt">+ <?php echo $list[$i]['wr_comment']; ?></span><span class="sound_only">개</span><?php } ?>
<?php <?php
// if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count']}.']'; }
// if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; } // if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
if (isset($list[$i]['icon_new'])) echo rtrim($list[$i]['icon_new']); if (isset($list[$i]['icon_new'])) echo rtrim($list[$i]['icon_new']);