From 7ef2029a316d154db3ac98e57382634953a97e00 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 2 Feb 2015 13:35:15 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B7=B8=EB=88=84=EB=B3=B4=EB=93=9C=205.0.29?= =?UTF-8?q?=20=EC=88=98=EC=A0=95=EB=82=B4=EC=97=AD=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitattributes | 2 ++ adm/config_form.php | 32 ++++++++++++------------- adm/config_form_update.php | 5 ++++ adm/sms_admin/ajax.sms_write_person.php | 1 - adm/sms_admin/sms_write.php | 2 +- bbs/qahead.php | 4 ++-- bbs/register_form.php | 2 +- bbs/register_form_update.php | 20 +++++++++++++++- extend/user.config.php | 8 +++++++ head.php | 6 ++--- head.sub.php | 6 +++++ index.php | 6 ++--- tail.php | 6 ++--- tail.sub.php | 6 +++++ 14 files changed, 72 insertions(+), 34 deletions(-) create mode 100644 .gitattributes create mode 100644 extend/user.config.php diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..596615322 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +.gitattributes export-ignore +.gitignore export-ignore diff --git a/adm/config_form.php b/adm/config_form.php index aaec76ca8..a7401dc2c 100644 --- a/adm/config_form.php +++ b/adm/config_form.php @@ -264,72 +264,72 @@ if ($config['cf_icode_id'] && $config['cf_icode_pw']) { - 점 + - 점 + - 자리만 표시 + 자리만 표시 - 수정하면 일 동안 바꿀 수 없음 + 수정하면 일 동안 바꿀 수 없음 - 수정하면 일 동안 바꿀 수 없음 + 수정하면 일 동안 바꿀 수 없음 - 일 + - 일 + - 일 + - 일 + - 분 + - 라인 + 라인 - 라인 + 라인 - 라인 + 라인 @@ -1085,21 +1085,21 @@ if ($config['cf_icode_id'] && $config['cf_icode_pw']) { - + 초기화면 파일은 index.php 파일과 동일한 위치에 존재해야 합니다.') ?> - + 상단 파일은 head.php 파일과 동일한 위치에 존재해야 합니다.') ?> - + 초기화면 파일은 tail.php 파일과 동일한 위치에 존재해야 합니다.') ?> 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']}', 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);
- + + + +
+ + + '; } } ?> 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.php b/head.php index a489d0dd8..0a889c69e 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/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/index.php b/index.php index b5e308d96..8506516af 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..e020a1b11 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; // 이 코드의 아래는 실행을 하지 않습니다. } 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 @@