Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ada8f28aae | ||
|
|
11afc52b84 | ||
|
|
d9c3f0e66c | ||
|
|
49da5c33df | ||
|
|
29250f264a | ||
|
|
df00641290 | ||
|
|
a05a1403f5 | ||
|
|
c5817594d0 | ||
|
|
68a9e45337 | ||
|
|
b8da0f0890 | ||
|
|
62ff45b31f | ||
|
|
918ad48675 | ||
|
|
e5128bf02e |
No files matched your search
+10
-1
@@ -554,9 +554,18 @@ function admin_check_xss_params($params)
|
|||||||
|
|
||||||
if (is_array($value)) {
|
if (is_array($value)) {
|
||||||
admin_check_xss_params($value);
|
admin_check_xss_params($value);
|
||||||
} else if ((preg_match('/<\s?[^\>]*\/?\s?>/i', $value) && (preg_match('/script.*?\/script/ius', $value) || preg_match('/(onload|onerror)=.*/ius', $value))) || preg_match('/^(?=.*token\()(?=.*xmlhttprequest\()(?=.*send\().*$/im', $value) || (preg_match('/(onload|onerror|focus)=.*/ius', $value) && preg_match('/(eval|expression|exec|prompt)(\s*)\((.*)\)/ius', $value))) {
|
} else if (
|
||||||
|
(preg_match('/<\s?[^\>]*\/?\s?>/i', $value) && (preg_match('/script.*?\/script/ius', $value) || preg_match('/on[a-z]+=*/ius', $value))) || preg_match('/^(?=.*token\()(?=.*xmlhttprequest\()(?=.*send\().*$/im', $value) ||
|
||||||
|
(preg_match('/(on[a-z]+|focus)=.*/ius', $value) && preg_match('/(eval|atob|fetch|expression|exec|prompt)(\s*)\((.*)\)/ius', $value))) {
|
||||||
alert('요청 쿼리에 잘못된 스크립트문장이 있습니다.\\nXSS 공격일수도 있습니다.', G5_URL);
|
alert('요청 쿼리에 잘못된 스크립트문장이 있습니다.\\nXSS 공격일수도 있습니다.', G5_URL);
|
||||||
die();
|
die();
|
||||||
|
} else if (preg_match('/atob\s*\(\s*[\'"]?([a-zA-Z0-9+\/=]+)[\'"]?\s*\)/ius', $value, $matches)) {
|
||||||
|
$decoded = base64_decode($matches[1], true);
|
||||||
|
if ($decoded && preg_match('/(eval|fetch|script|alert|settimeout|setinterval)/ius', $decoded)) {
|
||||||
|
// error_log("Base64 XSS 시도 감지: key=$key, decoded=$decoded, IP=" . $_SERVER['REMOTE_ADDR']);
|
||||||
|
alert('Base64로 인코딩된 위험한 스크립트가 발견되었습니다.', G5_URL);
|
||||||
|
die();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1558,6 +1558,16 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<div id="config_captcha_wrap" style="display:none">
|
||||||
|
<h2>캡챠입력</h2>
|
||||||
|
<?php
|
||||||
|
require_once G5_CAPTCHA_PATH . '/captcha.lib.php';
|
||||||
|
$captcha_html = captcha_html();
|
||||||
|
$captcha_js = chk_captcha_js();
|
||||||
|
echo $captcha_html;
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="btn_fixed_top btn_confirm">
|
<div class="btn_fixed_top btn_confirm">
|
||||||
<input type="submit" value="확인" class="btn_submit btn" accesskey="s">
|
<input type="submit" value="확인" class="btn_submit btn" accesskey="s">
|
||||||
</div>
|
</div>
|
||||||
@@ -1629,10 +1639,61 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 각 요소의 초기값 저장
|
||||||
|
var initialValues = {
|
||||||
|
cf_admin: $('#cf_admin').val(),
|
||||||
|
cf_analytics: $('#cf_analytics').val(),
|
||||||
|
cf_add_meta: $('#cf_add_meta').val(),
|
||||||
|
cf_add_script: $('#cf_add_script').val()
|
||||||
|
};
|
||||||
|
|
||||||
|
function check_config_captcha_open() {
|
||||||
|
var isChanged = false;
|
||||||
|
|
||||||
|
// 현재 값이 있는 경우에만 변경 여부 체크
|
||||||
|
if ($('#cf_admin').val()) {
|
||||||
|
isChanged = isChanged || $('#cf_admin').val() !== initialValues.cf_admin;
|
||||||
|
}
|
||||||
|
if ($('#cf_analytics').val()) {
|
||||||
|
isChanged = isChanged || $('#cf_analytics').val() !== initialValues.cf_analytics;
|
||||||
|
}
|
||||||
|
if ($('#cf_add_meta').val()) {
|
||||||
|
isChanged = isChanged || $('#cf_add_meta').val() !== initialValues.cf_add_meta;
|
||||||
|
}
|
||||||
|
if ($('#cf_add_script').val()) {
|
||||||
|
isChanged = isChanged || $('#cf_add_script').val() !== initialValues.cf_add_script;
|
||||||
|
}
|
||||||
|
|
||||||
|
var $wrap = $("#config_captcha_wrap"),
|
||||||
|
tooptipid = "mp_captcha_tooltip",
|
||||||
|
$p_text = $("<p>", {id:tooptipid, style:"font-size:0.95em;letter-spacing:-0.1em"}).html("중요정보를 수정할 경우 캡챠를 입력해야 합니다."),
|
||||||
|
$children = $wrap.children(':first'),
|
||||||
|
is_invisible_recaptcha = $("#captcha").hasClass("invisible_recaptcha");
|
||||||
|
|
||||||
|
if(isChanged){
|
||||||
|
$wrap.show();
|
||||||
|
if(! is_invisible_recaptcha) {
|
||||||
|
$wrap.css("margin-top","1em");
|
||||||
|
if(! $("#"+tooptipid).length){ $children.after($p_text) }
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$wrap.hide();
|
||||||
|
if($("#"+tooptipid).length && ! is_invisible_recaptcha){ $children.next("#"+tooptipid).remove(); }
|
||||||
|
}
|
||||||
|
|
||||||
|
return isChanged;
|
||||||
|
}
|
||||||
|
|
||||||
function fconfigform_submit(f) {
|
function fconfigform_submit(f) {
|
||||||
var current_user_ip = "<?php echo $_SERVER['REMOTE_ADDR']; ?>";
|
var current_user_ip = "<?php echo $_SERVER['REMOTE_ADDR']; ?>";
|
||||||
var cf_intercept_ip_val = f.cf_intercept_ip.value;
|
var cf_intercept_ip_val = f.cf_intercept_ip.value;
|
||||||
|
|
||||||
|
if (check_config_captcha_open()){
|
||||||
|
jQuery("html, body").scrollTop(jQuery("#config_captcha_wrap").offset().top);
|
||||||
|
|
||||||
|
<?php echo $captcha_js; // 캡챠 사용시 자바스크립트에서 입력된 캡챠를 검사함 ?>
|
||||||
|
}
|
||||||
|
|
||||||
if (cf_intercept_ip_val && current_user_ip) {
|
if (cf_intercept_ip_val && current_user_ip) {
|
||||||
var cf_intercept_ips = cf_intercept_ip_val.split("\n");
|
var cf_intercept_ips = cf_intercept_ip_val.split("\n");
|
||||||
|
|
||||||
@@ -1653,6 +1714,22 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
|||||||
f.action = "./config_form_update.php";
|
f.action = "./config_form_update.php";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
jQuery(function($){
|
||||||
|
$("#captcha_key").prop('required', false).removeAttr("required").removeClass("required");
|
||||||
|
|
||||||
|
// 최고관리자 변경시
|
||||||
|
$(document).on('change', '#cf_admin', check_config_captcha_open);
|
||||||
|
|
||||||
|
// 방문자분석 스크립트 변경시
|
||||||
|
$(document).on('input', '#cf_analytics', check_config_captcha_open);
|
||||||
|
|
||||||
|
// 추가 메타태그 변경시
|
||||||
|
$(document).on('input', '#cf_add_meta', check_config_captcha_open);
|
||||||
|
|
||||||
|
// 추가 script, css 변경시
|
||||||
|
$(document).on('input', '#cf_add_script', check_config_captcha_open);
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ if ($is_admin != 'super') {
|
|||||||
alert('최고관리자만 접근 가능합니다.');
|
alert('최고관리자만 접근 가능합니다.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$sql = " select * from {$g5['config_table']} limit 1";
|
||||||
|
$ori_config = sql_fetch($sql);
|
||||||
|
|
||||||
$cf_title = isset($_POST['cf_title']) ? strip_tags(clean_xss_attributes($_POST['cf_title'])) : '';
|
$cf_title = isset($_POST['cf_title']) ? strip_tags(clean_xss_attributes($_POST['cf_title'])) : '';
|
||||||
$cf_admin = isset($_POST['cf_admin']) ? clean_xss_tags($_POST['cf_admin'], 1, 1) : '';
|
$cf_admin = isset($_POST['cf_admin']) ? clean_xss_tags($_POST['cf_admin'], 1, 1) : '';
|
||||||
|
|
||||||
@@ -185,6 +188,33 @@ if (!$_POST['cf_cert_use']) {
|
|||||||
$_POST['cf_cert_simple'] = '';
|
$_POST['cf_cert_simple'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 관리자가 자동등록방지를 사용해야 할 경우 ( 기본환경설정에서 최고관리자, 방문자분석 스크립트, 추가 메타태그, 추가 script, css 변경시 )
|
||||||
|
$check_captcha = 0;
|
||||||
|
|
||||||
|
if ($cf_admin && $ori_config['cf_admin'] !== $cf_admin) {
|
||||||
|
$check_captcha = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($_POST['cf_analytics'] && $ori_config['cf_analytics'] !== stripslashes($_POST['cf_analytics'])) {
|
||||||
|
$check_captcha = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($_POST['cf_add_meta'] && $ori_config['cf_add_meta'] !== stripslashes($_POST['cf_add_meta'])) {
|
||||||
|
$check_captcha = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($_POST['cf_add_script'] && $ori_config['cf_add_script'] !== stripslashes($_POST['cf_add_script'])) {
|
||||||
|
$check_captcha = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($check_captcha) {
|
||||||
|
include_once(G5_CAPTCHA_PATH . '/captcha.lib.php');
|
||||||
|
|
||||||
|
if (!chk_captcha()) {
|
||||||
|
alert('자동등록방지 숫자가 틀렸습니다.');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$sql = " update {$g5['config_table']}
|
$sql = " update {$g5['config_table']}
|
||||||
set cf_title = '{$cf_title}',
|
set cf_title = '{$cf_title}',
|
||||||
cf_admin = '{$cf_admin}',
|
cf_admin = '{$cf_admin}',
|
||||||
@@ -346,6 +376,10 @@ if (isset($_POST['cf_bbs_rewrite'])) {
|
|||||||
g5_delete_all_cache();
|
g5_delete_all_cache();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (function_exists('get_admin_captcha_by')) {
|
||||||
|
get_admin_captcha_by('remove');
|
||||||
|
}
|
||||||
|
|
||||||
run_event('admin_config_form_update');
|
run_event('admin_config_form_update');
|
||||||
|
|
||||||
update_rewrite_rules();
|
update_rewrite_rules();
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ $mb_certify = isset($_POST['mb_certify']) ? preg_replace('/[^0-9a-z_]/i', ''
|
|||||||
$mb_zip = isset($_POST['mb_zip']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['mb_zip']) : '';
|
$mb_zip = isset($_POST['mb_zip']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['mb_zip']) : '';
|
||||||
|
|
||||||
// 관리자가 자동등록방지를 사용해야 할 경우 ( 회원의 비밀번호 변경시 캡챠를 체크한다 )
|
// 관리자가 자동등록방지를 사용해야 할 경우 ( 회원의 비밀번호 변경시 캡챠를 체크한다 )
|
||||||
if ($mb_password && function_exists('get_admin_captcha_by') && get_admin_captcha_by()) {
|
if ($mb_password) {
|
||||||
include_once(G5_CAPTCHA_PATH . '/captcha.lib.php');
|
include_once(G5_CAPTCHA_PATH . '/captcha.lib.php');
|
||||||
|
|
||||||
if (!chk_captcha()) {
|
if (!chk_captcha()) {
|
||||||
|
|||||||
@@ -46,13 +46,13 @@ include_once(G5_PLUGIN_PATH.'/jquery-ui/datepicker.php');
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<form name="fcouponform" action="./couponformupdate.php" method="post" onsubmit="return form_check(this);">
|
<form name="fcouponform" action="./couponformupdate.php" method="post" onsubmit="return form_check(this);">
|
||||||
<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="cp_id" value="<?php echo $cp_id; ?>">
|
<input type="hidden" name="cp_id" value="<?php echo get_sanitize_input($cp_id); ?>">
|
||||||
<input type="hidden" name="sst" value="<?php echo $sst; ?>">
|
<input type="hidden" name="sst" value="<?php echo get_sanitize_input($sst); ?>">
|
||||||
<input type="hidden" name="sod" value="<?php echo $sod; ?>">
|
<input type="hidden" name="sod" value="<?php echo get_sanitize_input($sod); ?>">
|
||||||
<input type="hidden" name="sfl" value="<?php echo $sfl; ?>">
|
<input type="hidden" name="sfl" value="<?php echo get_sanitize_input($sfl); ?>">
|
||||||
<input type="hidden" name="stx" value="<?php echo $stx; ?>">
|
<input type="hidden" name="stx" value="<?php echo get_sanitize_input($stx); ?>">
|
||||||
<input type="hidden" name="page" value="<?php echo $page;?>">
|
<input type="hidden" name="page" value="<?php echo get_sanitize_input($page);?>">
|
||||||
|
|
||||||
<div class="tbl_frm01 tbl_wrap">
|
<div class="tbl_frm01 tbl_wrap">
|
||||||
<table>
|
<table>
|
||||||
|
|||||||
@@ -68,10 +68,10 @@ $listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">전체목
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form name="flist" class="local_sch01 local_sch">
|
<form name="flist" class="local_sch01 local_sch">
|
||||||
<input type="hidden" name="doc" value="<?php echo $doc; ?>">
|
<input type="hidden" name="doc" value="<?php echo get_sanitize_input($doc); ?>">
|
||||||
<input type="hidden" name="sort1" value="<?php echo $sort1; ?>">
|
<input type="hidden" name="sort1" value="<?php echo get_sanitize_input($sort1); ?>">
|
||||||
<input type="hidden" name="sort2" value="<?php echo $sort2; ?>">
|
<input type="hidden" name="sort2" value="<?php echo get_sanitize_input($sort2); ?>">
|
||||||
<input type="hidden" name="page" value="<?php echo $page; ?>">
|
<input type="hidden" name="page" value="<?php echo get_sanitize_input($page); ?>">
|
||||||
|
|
||||||
<label for="sel_ca_id" class="sound_only">검색대상</label>
|
<label for="sel_ca_id" class="sound_only">검색대상</label>
|
||||||
<select name="sel_ca_id" id="sel_ca_id">
|
<select name="sel_ca_id" id="sel_ca_id">
|
||||||
|
|||||||
@@ -67,10 +67,10 @@ $listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">전체목
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form name="flist" class="local_sch01 local_sch">
|
<form name="flist" class="local_sch01 local_sch">
|
||||||
<input type="hidden" name="doc" value="<?php echo $doc; ?>">
|
<input type="hidden" name="doc" value="<?php echo get_sanitize_input($doc); ?>">
|
||||||
<input type="hidden" name="sort1" value="<?php echo $sort1; ?>">
|
<input type="hidden" name="sort1" value="<?php echo get_sanitize_input($sort1); ?>">
|
||||||
<input type="hidden" name="sort2" value="<?php echo $sort2; ?>">
|
<input type="hidden" name="sort2" value="<?php echo get_sanitize_input($sort2); ?>">
|
||||||
<input type="hidden" name="page" value="<?php echo $page; ?>">
|
<input type="hidden" name="page" value="<?php echo get_sanitize_input($page); ?>">
|
||||||
|
|
||||||
<label for="sel_ca_id" class="sound_only">분류선택</label>
|
<label for="sel_ca_id" class="sound_only">분류선택</label>
|
||||||
<select name="sel_ca_id" id="sel_ca_id">
|
<select name="sel_ca_id" id="sel_ca_id">
|
||||||
|
|||||||
@@ -74,10 +74,10 @@ $listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">전체목
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form name="flist" class="local_sch01 local_sch">
|
<form name="flist" class="local_sch01 local_sch">
|
||||||
<input type="hidden" name="doc" value="<?php echo $doc; ?>">
|
<input type="hidden" name="doc" value="<?php echo get_sanitize_input($doc); ?>">
|
||||||
<input type="hidden" name="sort1" value="<?php echo $sort1; ?>">
|
<input type="hidden" name="sort1" value="<?php echo get_sanitize_input($sort1); ?>">
|
||||||
<input type="hidden" name="sort2" value="<?php echo $sort2; ?>">
|
<input type="hidden" name="sort2" value="<?php echo get_sanitize_input($sort2); ?>">
|
||||||
<input type="hidden" name="page" value="<?php echo $page; ?>">
|
<input type="hidden" name="page" value="<?php echo get_sanitize_input($page); ?>">
|
||||||
|
|
||||||
<label for="sel_field" class="sound_only">검색대상</label>
|
<label for="sel_field" class="sound_only">검색대상</label>
|
||||||
<select name="sel_field" id="sel_field">
|
<select name="sel_field" id="sel_field">
|
||||||
|
|||||||
@@ -85,8 +85,8 @@ $listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">전체목
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form name="flist" class="local_sch01 local_sch">
|
<form name="flist" class="local_sch01 local_sch">
|
||||||
<input type="hidden" name="doc" value="<?php echo $doc; ?>">
|
<input type="hidden" name="doc" value="<?php echo get_sanitize_input($doc); ?>">
|
||||||
<input type="hidden" name="page" value="<?php echo $page; ?>">
|
<input type="hidden" name="page" value="<?php echo get_sanitize_input($page); ?>">
|
||||||
|
|
||||||
<label for="sca" class="sound_only">분류선택</label>
|
<label for="sca" class="sound_only">분류선택</label>
|
||||||
<select name="sca" id="sca">
|
<select name="sca" id="sca">
|
||||||
|
|||||||
@@ -69,10 +69,10 @@ $listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">전체목
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form name="flist" class="local_sch01 local_sch">
|
<form name="flist" class="local_sch01 local_sch">
|
||||||
<input type="hidden" name="doc" value="<?php echo $doc; ?>">
|
<input type="hidden" name="doc" value="<?php echo get_sanitize_input($doc); ?>">
|
||||||
<input type="hidden" name="sort1" value="<?php echo $sort1; ?>">
|
<input type="hidden" name="sort1" value="<?php echo get_sanitize_input($sort1); ?>">
|
||||||
<input type="hidden" name="sort2" value="<?php echo $sort2; ?>">
|
<input type="hidden" name="sort2" value="<?php echo get_sanitize_input($sort2); ?>">
|
||||||
<input type="hidden" name="page" value="<?php echo $page; ?>">
|
<input type="hidden" name="page" value="<?php echo get_sanitize_input($page); ?>">
|
||||||
|
|
||||||
<label for="sel_ca_id" class="sound_only">분류선택</label>
|
<label for="sel_ca_id" class="sound_only">분류선택</label>
|
||||||
<select name="sel_ca_id" id="sel_ca_id">
|
<select name="sel_ca_id" id="sel_ca_id">
|
||||||
|
|||||||
@@ -160,11 +160,11 @@ if( function_exists('pg_setting_check') ){
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form name="frmorderlist" class="local_sch01 local_sch">
|
<form name="frmorderlist" class="local_sch01 local_sch">
|
||||||
<input type="hidden" name="doc" value="<?php echo $doc; ?>">
|
<input type="hidden" name="doc" value="<?php echo get_sanitize_input($doc); ?>">
|
||||||
<input type="hidden" name="sort1" value="<?php echo $sort1; ?>">
|
<input type="hidden" name="sort1" value="<?php echo get_sanitize_input($sort1); ?>">
|
||||||
<input type="hidden" name="sort2" value="<?php echo $sort2; ?>">
|
<input type="hidden" name="sort2" value="<?php echo get_sanitize_input($sort2); ?>">
|
||||||
<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="save_search" value="<?php echo $search; ?>">
|
<input type="hidden" name="save_search" value="<?php echo get_sanitize_input($search); ?>">
|
||||||
|
|
||||||
<label for="sel_field" class="sound_only">검색대상</label>
|
<label for="sel_field" class="sound_only">검색대상</label>
|
||||||
<select name="sel_field" id="sel_field">
|
<select name="sel_field" id="sel_field">
|
||||||
|
|||||||
@@ -58,8 +58,8 @@ $listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">전체목
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form name="flist" class="local_sch01 local_sch">
|
<form name="flist" class="local_sch01 local_sch">
|
||||||
<input type="hidden" name="doc" value="<?php echo $doc; ?>">
|
<input type="hidden" name="doc" value="<?php echo get_sanitize_input($doc); ?>">
|
||||||
<input type="hidden" name="page" value="<?php echo $page; ?>">
|
<input type="hidden" name="page" value="<?php echo get_sanitize_input($page); ?>">
|
||||||
|
|
||||||
<label for="sel_ca_id" class="sound_only">검색대상</label>
|
<label for="sel_ca_id" class="sound_only">검색대상</label>
|
||||||
<select name="sel_ca_id" id="sel_ca_id">
|
<select name="sel_ca_id" id="sel_ca_id">
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
|
|
||||||
$comment_id = isset($_REQUEST['comment_id']) ? (int) $_REQUEST['comment_id'] : 0;
|
$comment_id = isset($_REQUEST['comment_id']) ? (int) $_REQUEST['comment_id'] : 0;
|
||||||
|
$token = isset($_REQUEST['token']) ? clean_xss_tags($_REQUEST['token']) : 0;
|
||||||
|
|
||||||
$delete_comment_token = get_session('ss_delete_comment_'.$comment_id.'_token');
|
$delete_comment_token = get_session('ss_delete_comment_'.$comment_id.'_token');
|
||||||
set_session('ss_delete_comment_'.$comment_id.'_token', '');
|
set_session('ss_delete_comment_'.$comment_id.'_token', '');
|
||||||
|
|||||||
+2
-2
@@ -23,7 +23,7 @@ switch ($w) {
|
|||||||
break;
|
break;
|
||||||
case 's' :
|
case 's' :
|
||||||
// 비밀번호 창에서 로그인 하는 경우 관리자 또는 자신의 글이면 바로 글보기로 감
|
// 비밀번호 창에서 로그인 하는 경우 관리자 또는 자신의 글이면 바로 글보기로 감
|
||||||
if ($is_admin || ($member['mb_id'] == $write['mb_id'] && $write['mb_id']))
|
if ($is_admin || (isset($write['mb_id']) && $write['mb_id'] && $member['mb_id'] == $write['mb_id']))
|
||||||
goto_url(short_url_clean(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id));
|
goto_url(short_url_clean(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id));
|
||||||
else {
|
else {
|
||||||
$action = https_url(G5_BBS_DIR).'/password_check.php';
|
$action = https_url(G5_BBS_DIR).'/password_check.php';
|
||||||
@@ -32,7 +32,7 @@ switch ($w) {
|
|||||||
break;
|
break;
|
||||||
case 'sc' :
|
case 'sc' :
|
||||||
// 비밀번호 창에서 로그인 하는 경우 관리자 또는 자신의 글이면 바로 글보기로 감
|
// 비밀번호 창에서 로그인 하는 경우 관리자 또는 자신의 글이면 바로 글보기로 감
|
||||||
if ($is_admin || ($member['mb_id'] == $write['mb_id'] && $write['mb_id']))
|
if ($is_admin || (isset($write['mb_id']) && $write['mb_id'] && $member['mb_id'] == $write['mb_id']))
|
||||||
goto_url(short_url_clean(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id));
|
goto_url(short_url_clean(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id));
|
||||||
else {
|
else {
|
||||||
$action = https_url(G5_BBS_DIR).'/password_check.php';
|
$action = https_url(G5_BBS_DIR).'/password_check.php';
|
||||||
|
|||||||
@@ -338,7 +338,7 @@ if ($w == '') {
|
|||||||
$sql_nick_date = " , mb_nick_date = '".G5_TIME_YMD."' ";
|
$sql_nick_date = " , mb_nick_date = '".G5_TIME_YMD."' ";
|
||||||
|
|
||||||
$sql_open_date = "";
|
$sql_open_date = "";
|
||||||
if ($mb_open_default != $mb_open)
|
if (isset($mb_open_default) && $mb_open_default != $mb_open)
|
||||||
$sql_open_date = " , mb_open_date = '".G5_TIME_YMD."' ";
|
$sql_open_date = " , mb_open_date = '".G5_TIME_YMD."' ";
|
||||||
|
|
||||||
// 이전 메일주소와 수정한 메일주소가 틀리다면 인증을 다시 해야하므로 값을 삭제
|
// 이전 메일주소와 수정한 메일주소가 틀리다면 인증을 다시 해야하므로 값을 삭제
|
||||||
@@ -531,7 +531,7 @@ if ($config['cf_use_email_certify'] && $old_email != $mb_email) {
|
|||||||
|
|
||||||
|
|
||||||
// 신규회원 쿠폰발생
|
// 신규회원 쿠폰발생
|
||||||
if($w == '' && $default['de_member_reg_coupon_use'] && $default['de_member_reg_coupon_term'] > 0 && $default['de_member_reg_coupon_price'] > 0) {
|
if($w == '' && isset($default['de_member_reg_coupon_use']) && $default['de_member_reg_coupon_use'] && $default['de_member_reg_coupon_term'] > 0 && $default['de_member_reg_coupon_price'] > 0) {
|
||||||
$j = 0;
|
$j = 0;
|
||||||
$create_coupon = false;
|
$create_coupon = false;
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ if (isset($_SESSION['ss_mb_reg']))
|
|||||||
$mb = get_member($_SESSION['ss_mb_reg']);
|
$mb = get_member($_SESSION['ss_mb_reg']);
|
||||||
|
|
||||||
// 회원정보가 없다면 초기 페이지로 이동
|
// 회원정보가 없다면 초기 페이지로 이동
|
||||||
if (!$mb['mb_id'])
|
if (!(isset($mb['mb_id']) && $mb['mb_id']))
|
||||||
goto_url(G5_URL);
|
goto_url(G5_URL);
|
||||||
|
|
||||||
$g5['title'] = '회원가입 완료';
|
$g5['title'] = '회원가입 완료';
|
||||||
|
|||||||
@@ -685,7 +685,7 @@ sql_query(" delete from {$g5['autosave_table']} where as_uid = '{$uid}' ");
|
|||||||
|
|
||||||
// 비밀글이라면 세션에 비밀글의 아이디를 저장한다. 자신의 글은 다시 비밀번호를 묻지 않기 위함
|
// 비밀글이라면 세션에 비밀글의 아이디를 저장한다. 자신의 글은 다시 비밀번호를 묻지 않기 위함
|
||||||
if ($secret) {
|
if ($secret) {
|
||||||
if (! $wr_num) {
|
if (!(isset($wr_num) && $wr_num)) {
|
||||||
$write = get_write($write_table, $wr_id, true);
|
$write = get_write($write_table, $wr_id, true);
|
||||||
$wr_num = $write['wr_num'];
|
$wr_num = $write['wr_num'];
|
||||||
}
|
}
|
||||||
|
|||||||
+37
-40
@@ -585,45 +585,6 @@ if (isset($_SESSION['ss_mb_id']) && $_SESSION['ss_mb_id']) { // 로그인중이
|
|||||||
// 자동로그인 end ---------------------------------------
|
// 자동로그인 end ---------------------------------------
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** @var array $write 글 데이터 */
|
|
||||||
$write = array();
|
|
||||||
/** @var string $write_table 게시판 테이블 전체이름 */
|
|
||||||
$write_table = '';
|
|
||||||
if ($bo_table) {
|
|
||||||
$board = get_board_db($bo_table, true);
|
|
||||||
if (isset($board['bo_table']) && $board['bo_table']) {
|
|
||||||
set_cookie("ck_bo_table", $board['bo_table'], 86400 * 1);
|
|
||||||
$gr_id = $board['gr_id'];
|
|
||||||
// 게시판 테이블 전체이름
|
|
||||||
$write_table = $g5['write_prefix'] . $bo_table;
|
|
||||||
|
|
||||||
if (isset($wr_id) && $wr_id) {
|
|
||||||
$write = get_write($write_table, $wr_id);
|
|
||||||
} else if (isset($wr_seo_title) && $wr_seo_title) {
|
|
||||||
$write = get_content_by_field($write_table, 'bbs', 'wr_seo_title', generate_seo_title($wr_seo_title));
|
|
||||||
if (isset($write['wr_id'])) {
|
|
||||||
$wr_id = (int) $write['wr_id'];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 게시판에서 사용하는 에디터를 설정
|
|
||||||
if (isset($board['bo_select_editor']) && $board['bo_select_editor']) {
|
|
||||||
$config['cf_editor'] = $board['bo_select_editor'];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($gr_id && !is_array($gr_id)) {
|
|
||||||
$group = get_group($gr_id, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($config['cf_editor']) {
|
|
||||||
define('G5_EDITOR_LIB', G5_EDITOR_PATH."/{$config['cf_editor']}/editor.lib.php");
|
|
||||||
} else {
|
|
||||||
define('G5_EDITOR_LIB', G5_LIB_PATH."/editor.lib.php");
|
|
||||||
}
|
|
||||||
|
|
||||||
// 회원, 비회원 구분
|
// 회원, 비회원 구분
|
||||||
$is_member = $is_guest = false;
|
$is_member = $is_guest = false;
|
||||||
$is_admin = '';
|
$is_admin = '';
|
||||||
@@ -637,7 +598,6 @@ if (isset($member['mb_id']) && $member['mb_id']) {
|
|||||||
$member['mb_level'] = 1; // 비회원의 경우 회원레벨을 가장 낮게 설정
|
$member['mb_level'] = 1; // 비회원의 경우 회원레벨을 가장 낮게 설정
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($is_admin != 'super') {
|
if ($is_admin != 'super') {
|
||||||
// 접근가능 IP
|
// 접근가능 IP
|
||||||
$cf_possible_ip = trim($config['cf_possible_ip']);
|
$cf_possible_ip = trim($config['cf_possible_ip']);
|
||||||
@@ -677,6 +637,43 @@ if ($is_admin != 'super') {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @var array $write 글 데이터 */
|
||||||
|
$write = array();
|
||||||
|
/** @var string $write_table 게시판 테이블 전체이름 */
|
||||||
|
$write_table = '';
|
||||||
|
if ($bo_table) {
|
||||||
|
$board = get_board_db($bo_table, true);
|
||||||
|
if (isset($board['bo_table']) && $board['bo_table']) {
|
||||||
|
set_cookie("ck_bo_table", $board['bo_table'], 86400 * 1);
|
||||||
|
$gr_id = $board['gr_id'];
|
||||||
|
// 게시판 테이블 전체이름
|
||||||
|
$write_table = $g5['write_prefix'] . $bo_table;
|
||||||
|
|
||||||
|
if (isset($wr_id) && $wr_id) {
|
||||||
|
$write = get_write($write_table, $wr_id);
|
||||||
|
} else if (isset($wr_seo_title) && $wr_seo_title) {
|
||||||
|
$write = get_content_by_field($write_table, 'bbs', 'wr_seo_title', generate_seo_title($wr_seo_title));
|
||||||
|
if (isset($write['wr_id'])) {
|
||||||
|
$wr_id = (int) $write['wr_id'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 게시판에서 사용하는 에디터를 설정
|
||||||
|
if (isset($board['bo_select_editor']) && $board['bo_select_editor']) {
|
||||||
|
$config['cf_editor'] = $board['bo_select_editor'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($gr_id && !is_array($gr_id)) {
|
||||||
|
$group = get_group($gr_id, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($config['cf_editor']) {
|
||||||
|
define('G5_EDITOR_LIB', G5_EDITOR_PATH."/{$config['cf_editor']}/editor.lib.php");
|
||||||
|
} else {
|
||||||
|
define('G5_EDITOR_LIB', G5_LIB_PATH."/editor.lib.php");
|
||||||
|
}
|
||||||
|
|
||||||
// 테마경로
|
// 테마경로
|
||||||
if(defined('_THEME_PREVIEW_') && _THEME_PREVIEW_ === true)
|
if(defined('_THEME_PREVIEW_') && _THEME_PREVIEW_ === true)
|
||||||
|
|||||||
@@ -24,6 +24,9 @@
|
|||||||
var width = $this.width();
|
var width = $this.width();
|
||||||
|
|
||||||
$img.each(function() {
|
$img.each(function() {
|
||||||
|
|
||||||
|
if ($(this).attr("loading") === "lazy") return; // loading="lazy" 속성이 있는 경우 건너뜀
|
||||||
|
|
||||||
if($(this).data("width") == undefined)
|
if($(this).data("width") == undefined)
|
||||||
$(this).data("width", $(this).width());
|
$(this).data("width", $(this).width());
|
||||||
|
|
||||||
@@ -73,6 +76,9 @@
|
|||||||
var width = $this.width();
|
var width = $this.width();
|
||||||
|
|
||||||
$img.each(function() {
|
$img.each(function() {
|
||||||
|
|
||||||
|
if ($(this).attr("loading") === "lazy") return; // loading="lazy" 속성이 있는 경우 건너뜀
|
||||||
|
|
||||||
$(this).removeAttr("width")
|
$(this).removeAttr("width")
|
||||||
.removeAttr("height")
|
.removeAttr("height")
|
||||||
.css("width","")
|
.css("width","")
|
||||||
|
|||||||
@@ -361,12 +361,6 @@
|
|||||||
<Execution method="windowOpen" value="Embed" />
|
<Execution method="windowOpen" value="Embed" />
|
||||||
</Attribute>
|
</Attribute>
|
||||||
</Button>
|
</Button>
|
||||||
<Button name="Map" tooltip="지도">
|
|
||||||
<Attribute class="cheditor-tb-bg" width="23" height="23">
|
|
||||||
<Icon position="694" width="16" class="cheditor-tb-icon" />
|
|
||||||
<Execution method="windowOpen" value="GoogleMap" />
|
|
||||||
</Attribute>
|
|
||||||
</Button>
|
|
||||||
</Group>
|
</Group>
|
||||||
<Group name="PageBreak">
|
<Group name="PageBreak">
|
||||||
<Button name="PageBreak" tooltip="인쇄 쪽 나눔">
|
<Button name="PageBreak" tooltip="인쇄 쪽 나눔">
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
define('G5_VERSION', '그누보드5');
|
define('G5_VERSION', '그누보드5');
|
||||||
define('G5_GNUBOARD_VER', '5.6.10');
|
define('G5_GNUBOARD_VER', '5.6.12');
|
||||||
// 그누보드5.4.5.5 버전과 영카트5.4.5.5.1 버전을 합쳐서 그누보드5.4.6 버전에서 시작함 (kagla-210617)
|
// 그누보드5.4.5.5 버전과 영카트5.4.5.5.1 버전을 합쳐서 그누보드5.4.6 버전에서 시작함 (kagla-210617)
|
||||||
// G5_YOUNGCART_VER 이 상수를 사용하는 곳이 있으므로 주석 처리 해제함
|
// G5_YOUNGCART_VER 이 상수를 사용하는 곳이 있으므로 주석 처리 해제함
|
||||||
// 그누보드5.4.6 이상 버전 부터는 영카트를 그누보드에 포함하여 배포하므로 영카트5의 버전은 의미가 없습니다.
|
// 그누보드5.4.6 이상 버전 부터는 영카트를 그누보드에 포함하여 배포하므로 영카트5의 버전은 의미가 없습니다.
|
||||||
|
|||||||
Reference in new issue
Block a user