From 7af0db96315e9250d91f96c75ab0a16faf2963e7 Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 15 Jan 2015 15:16:02 +0900 Subject: [PATCH 1/9] =?UTF-8?q?=EB=B9=84=EB=B0=80=EB=B2=88=ED=98=B8=20?= =?UTF-8?q?=ED=99=95=EC=9D=B8=EC=97=86=EC=9D=B4=20=ED=9A=8C=EC=9B=90?= =?UTF-8?q?=EC=A0=95=EB=B3=B4=20=EC=88=98=EC=A0=95=ED=95=A0=20=EC=88=98=20?= =?UTF-8?q?=EC=9E=88=EB=8A=94=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/register_form.php | 2 +- bbs/register_form_update.php | 20 +++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/bbs/register_form.php b/bbs/register_form.php index 009d9b6d0..809bcb6ed 100644 --- a/bbs/register_form.php +++ b/bbs/register_form.php @@ -53,7 +53,7 @@ if ($w == "") { if (!$is_member) alert('로그인 후 이용하여 주십시오.', G5_URL); - if ($member['mb_id'] != $mb_id) + if ($member['mb_id'] != $_POST['mb_id']) alert('로그인된 회원과 넘어온 정보가 서로 다릅니다.'); /* diff --git a/bbs/register_form_update.php b/bbs/register_form_update.php index e3c346874..b61081c4e 100644 --- a/bbs/register_form_update.php +++ b/bbs/register_form_update.php @@ -412,7 +412,25 @@ if ($w == '') { set_session('ss_mb_id', ''); alert('회원 정보가 수정 되었습니다.\n\nE-mail 주소가 변경되었으므로 다시 인증하셔야 합니다.', G5_URL); } else { - alert('회원 정보가 수정 되었습니다.', G5_URL); + echo ' + + + + + 회원정보수정 + +
+ + + + +
+ + + '; } } ?> From ed41272e810d9111e2df2a7d539090ec150f22f4 Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 22 Jan 2015 09:26:38 +0900 Subject: [PATCH 2/9] =?UTF-8?q?=EA=B8=B0=EB=B3=B8=ED=99=98=EA=B2=BD=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=20=ED=8F=AC=EC=9D=B8=ED=8A=B8=20=EC=9E=85?= =?UTF-8?q?=EB=A0=A5=ED=95=84=EB=93=9C=20=ED=81=AC=EA=B8=B0=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/config_form.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/adm/config_form.php b/adm/config_form.php index aaec76ca8..448919f07 100644 --- a/adm/config_form.php +++ b/adm/config_form.php @@ -264,72 +264,72 @@ if ($config['cf_icode_id'] && $config['cf_icode_pw']) { - 점 + - 점 + - 자리만 표시 + 자리만 표시 - 수정하면 일 동안 바꿀 수 없음 + 수정하면 일 동안 바꿀 수 없음 - 수정하면 일 동안 바꿀 수 없음 + 수정하면 일 동안 바꿀 수 없음 - 일 + - 일 + - 일 + - 일 + - 분 + - 라인 + 라인 - 라인 + 라인 - 라인 + 라인 From de00ac16222733dd71549f6cffef023d83a2d0a4 Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 22 Jan 2015 17:51:24 +0900 Subject: [PATCH 3/9] =?UTF-8?q?1:1=EB=AC=B8=EC=9D=98=20=EB=AA=A8=EB=B0=94?= =?UTF-8?q?=EC=9D=BC=20=EC=8A=A4=ED=82=A8=20=EC=A0=81=EC=9A=A9=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/qahead.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bbs/qahead.php b/bbs/qahead.php index 387a51385..92268c730 100644 --- a/bbs/qahead.php +++ b/bbs/qahead.php @@ -1,8 +1,8 @@ Date: Fri, 23 Jan 2015 09:48:36 +0900 Subject: [PATCH 4/9] =?UTF-8?q?head.sub.php=20=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EB=93=B1=EC=9D=84=20=EC=82=AC=EC=9A=A9=EC=9E=90=EA=B0=80=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=ED=95=A0=20=EC=88=98=20=EC=9E=88=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EC=83=81=EC=88=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/user.config.php | 8 ++++++++ head.sub.php | 6 ++++++ tail.sub.php | 6 ++++++ 3 files changed, 20 insertions(+) create mode 100644 extend/user.config.php diff --git a/extend/user.config.php b/extend/user.config.php new file mode 100644 index 000000000..91e087675 --- /dev/null +++ b/extend/user.config.php @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/head.sub.php b/head.sub.php index 587d438c8..bcfb4b9c2 100644 --- a/head.sub.php +++ b/head.sub.php @@ -4,6 +4,12 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 $begin_time = get_microtime(); +// 사용자가 지정한 head.sub.php 파일이 있다면 include +if(defined('G5_HEAD_SUB_FILE') && is_file(G5_PATH.'/'.G5_HEAD_SUB_FILE)) { + include_once(G5_PATH.'/'.G5_HEAD_SUB_FILE); + return; +} + if (!isset($g5['title'])) { $g5['title'] = $config['cf_title']; $g5_head_title = $g5['title']; diff --git a/tail.sub.php b/tail.sub.php index ec5920f63..4234d2b6b 100644 --- a/tail.sub.php +++ b/tail.sub.php @@ -1,5 +1,11 @@ From be27a72d863ad9a898884f20cafd6a6e9aad1bc2 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 28 Jan 2015 08:54:11 +0900 Subject: [PATCH 5/9] =?UTF-8?q?=EB=B3=B8=EC=9D=B8=ED=99=95=EC=9D=B8=20?= =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=95=88=ED=95=A8=EC=9D=BC=20=EB=95=8C=20?= =?UTF-8?q?=EC=9D=B8=EC=A6=9D=20=EC=84=A4=EC=A0=95=20=EC=B4=88=EA=B8=B0?= =?UTF-8?q?=ED=99=94=EB=90=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/config_form_update.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/adm/config_form_update.php b/adm/config_form_update.php index 33e49d1a4..c82dbd28b 100644 --- a/adm/config_form_update.php +++ b/adm/config_form_update.php @@ -19,6 +19,11 @@ check_token(); if($_POST['cf_cert_use'] && !$_POST['cf_cert_ipin'] && !$_POST['cf_cert_hp']) alert('본인확인을 위해 아이핀 또는 휴대폰 본인학인 서비스를 하나이상 선택해 주십시오'); +if(!$_POST['cf_cert_use']) { + $_POST['cf_cert_ipin'] = ''; + $_POST['cf_cert_hp'] = ''; +} + $sql = " update {$g5['config_table']} set cf_title = '{$_POST['cf_title']}', cf_admin = '{$_POST['cf_admin']}', From 78d87038aaa7c0dd73512bbbccc7616c8c3b7baf Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 28 Jan 2015 10:01:36 +0900 Subject: [PATCH 6/9] =?UTF-8?q?=EC=B4=88=EA=B8=B0=ED=99=94=EB=A9=B4=20?= =?UTF-8?q?=EB=93=B1=EC=9D=98=20=ED=8C=8C=EC=9D=BC=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/config_form.php | 6 +++--- head.php | 6 ++---- index.php | 6 ++---- tail.php | 6 ++---- 4 files changed, 9 insertions(+), 15 deletions(-) diff --git a/adm/config_form.php b/adm/config_form.php index 448919f07..a7401dc2c 100644 --- a/adm/config_form.php +++ b/adm/config_form.php @@ -1085,21 +1085,21 @@ if ($config['cf_icode_id'] && $config['cf_icode_pw']) { - + 초기화면 파일은 index.php 파일과 동일한 위치에 존재해야 합니다.') ?> - + 상단 파일은 head.php 파일과 동일한 위치에 존재해야 합니다.') ?> - + 초기화면 파일은 tail.php 파일과 동일한 위치에 존재해야 합니다.') ?> diff --git a/head.php b/head.php index a489d0dd8..ddbf6470c 100644 --- a/head.php +++ b/head.php @@ -10,10 +10,8 @@ include_once(G5_LIB_PATH.'/connect.lib.php'); include_once(G5_LIB_PATH.'/popular.lib.php'); // 상단 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오. -if ($config['cf_include_head']) { - if (!@include_once($config['cf_include_head'])) { - die('기본환경 설정에서 상단 파일 경로가 잘못 설정되어 있습니다.'); - } +if ($config['cf_include_head'] && is_file(G5_PATH.'/'.$config['cf_include_head']) { + include_once($config['cf_include_head']); return; // 이 코드의 아래는 실행을 하지 않습니다. } diff --git a/index.php b/index.php index b5e308d96..2ba266fb5 100644 --- a/index.php +++ b/index.php @@ -3,10 +3,8 @@ define('_INDEX_', true); include_once('./_common.php'); // 초기화면 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오. -if ($config['cf_include_index']) { - if (!@include_once($config['cf_include_index'])) { - die('기본환경 설정에서 초기화면 파일 경로가 잘못 설정되어 있습니다.'); - } +if ($config['cf_include_index'] && is_file(G5_PATH.'/'.$config['cf_include_index']) { + include_once($config['cf_include_index']); return; // 이 코드의 아래는 실행을 하지 않습니다. } diff --git a/tail.php b/tail.php index aff874a21..2d9b119de 100644 --- a/tail.php +++ b/tail.php @@ -2,10 +2,8 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 // 하단 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오. -if ($config['cf_include_tail']) { - if (!@include_once($config['cf_include_tail'])) { - die('기본환경 설정에서 하단 파일 경로가 잘못 설정되어 있습니다.'); - } +if ($config['cf_include_tail'] && is_file(G5_PATH.'/'.$config['cf_include_tail']) { + include_once($config['cf_include_tail']); return; // 이 코드의 아래는 실행을 하지 않습니다. } From b34d31f6a742fb40334a3302df0b4f6c985af55d Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 28 Jan 2015 10:35:36 +0900 Subject: [PATCH 7/9] =?UTF-8?q?=EA=B2=BD=EB=A1=9C=20=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- head.php | 2 +- index.php | 2 +- tail.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/head.php b/head.php index ddbf6470c..0a889c69e 100644 --- a/head.php +++ b/head.php @@ -10,7 +10,7 @@ include_once(G5_LIB_PATH.'/connect.lib.php'); include_once(G5_LIB_PATH.'/popular.lib.php'); // 상단 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오. -if ($config['cf_include_head'] && is_file(G5_PATH.'/'.$config['cf_include_head']) { +if ($config['cf_include_head'] && is_file(G5_PATH.'/'.$config['cf_include_head'])) { include_once($config['cf_include_head']); return; // 이 코드의 아래는 실행을 하지 않습니다. } diff --git a/index.php b/index.php index 2ba266fb5..8506516af 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ define('_INDEX_', true); include_once('./_common.php'); // 초기화면 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오. -if ($config['cf_include_index'] && is_file(G5_PATH.'/'.$config['cf_include_index']) { +if ($config['cf_include_index'] && is_file(G5_PATH.'/'.$config['cf_include_index'])) { include_once($config['cf_include_index']); return; // 이 코드의 아래는 실행을 하지 않습니다. } diff --git a/tail.php b/tail.php index 2d9b119de..e020a1b11 100644 --- a/tail.php +++ b/tail.php @@ -2,7 +2,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 // 하단 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오. -if ($config['cf_include_tail'] && is_file(G5_PATH.'/'.$config['cf_include_tail']) { +if ($config['cf_include_tail'] && is_file(G5_PATH.'/'.$config['cf_include_tail'])) { include_once($config['cf_include_tail']); return; // 이 코드의 아래는 실행을 하지 않습니다. } From 4fb32fad3742a1c95308ecf39a3f440c35ae2098 Mon Sep 17 00:00:00 2001 From: thisgun Date: Fri, 30 Jan 2015 13:55:24 +0900 Subject: [PATCH 8/9] =?UTF-8?q?SMS5=EC=97=90=EC=84=9C=20=EA=B7=B8=EB=A3=B9?= =?UTF-8?q?=EB=B3=B4=EA=B8=B0=20=ED=8E=98=EC=9D=B4=EC=A7=80=20ajax=20?= =?UTF-8?q?=ED=8C=8C=EB=9D=BC=EB=AF=B8=ED=84=B0=20=EB=8F=99=EC=9E=91=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/sms_admin/ajax.sms_write_person.php | 1 - adm/sms_admin/sms_write.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/adm/sms_admin/ajax.sms_write_person.php b/adm/sms_admin/ajax.sms_write_person.php index d30820d19..98eba4a5a 100644 --- a/adm/sms_admin/ajax.sms_write_person.php +++ b/adm/sms_admin/ajax.sms_write_person.php @@ -134,7 +134,6 @@ while ($res = sql_fetch_array($qry)) array_push($group, $res);
-