diff --git a/adm/board_list.php b/adm/board_list.php
index 94b1b1415..96de20f05 100644
--- a/adm/board_list.php
+++ b/adm/board_list.php
@@ -148,7 +148,7 @@ $colspan = 16;
-
+
|
diff --git a/adm/qa_config.php b/adm/qa_config.php
index f3e297e02..c33410152 100644
--- a/adm/qa_config.php
+++ b/adm/qa_config.php
@@ -92,6 +92,12 @@ if(empty($qaconfig)) {
$qaconfig = get_qa_config();
}
+
+// 관리자 이메일필드 추가
+if(!isset($qaconfig['qa_admin_email'])) {
+ sql_query(" ALTER TABLE `{$g5['qa_config_table']}`
+ ADD `qa_admin_email` varchar(255) NOT NULL DEFAULT '' AFTER `qa_admin_hp` ", true);
+}
?>
|
+
+ |
+
+
+
+ |
+
|
diff --git a/adm/qa_config_update.php b/adm/qa_config_update.php
index d89563753..7564d68dc 100644
--- a/adm/qa_config_update.php
+++ b/adm/qa_config_update.php
@@ -20,6 +20,7 @@ $sql = " update {$g5['qa_config_table']}
qa_use_sms = '{$_POST['qa_use_sms']}',
qa_send_number = '{$_POST['qa_send_number']}',
qa_admin_hp = '{$_POST['qa_admin_hp']}',
+ qa_admin_email = '{$_POST['qa_admin_email']}',
qa_use_editor = '{$_POST['qa_use_editor']}',
qa_subject_len = '{$_POST['qa_subject_len']}',
qa_mobile_subject_len = '{$_POST['qa_mobile_subject_len']}',
diff --git a/bbs/qawrite_update.php b/bbs/qawrite_update.php
index b88f36572..396080891 100644
--- a/bbs/qawrite_update.php
+++ b/bbs/qawrite_update.php
@@ -325,6 +325,16 @@ if($w == 'a' && $write['qa_email_recv'] && trim($write['qa_email'])) {
mailer($config['cf_title'], $admin['mb_email'], $write['qa_email'], $subject, $content, 1);
}
+// 문의글등록 이메일전송
+if(($w == '' || $w == 'r') && trim($qaconfig['qa_admin_email'])) {
+ include_once(G5_LIB_PATH.'/mailer.lib.php');
+
+ $subject = $config['cf_title'].' '.$qaconfig['qa_title'].' 질문 알림 메일';
+ $content = conv_content($qa_content, $qa_html);
+
+ mailer($config['cf_title'], $write['qa_email'], $qaconfig['qa_admin_email'], $subject, $content, 1);
+}
+
if($w == 'a')
$result_url = G5_BBS_URL.'/qaview.php?qa_id='.$qa_id.$qstr;
else if($w == 'u' && $write['qa_type'])
diff --git a/css/admin.css b/css/admin.css
index 9dd1551f5..2838e7e7e 100644
--- a/css/admin.css
+++ b/css/admin.css
@@ -339,6 +339,9 @@ tfoot td {font-weight:bold;text-align:center}
.mb_intercept_msg {color:#f59fe4}
#point_mng {margin-top:50px}
+/* 게시판관리 목록 */
+#fboardlist .bo_subject {width:90%}
+
/* 게시판추가/수정 */
#anc_bo_extra .td_grpset label {width:auto}
#anc_bo_extra .td_grpset input {margin:0}
diff --git a/install/gnuboard5.sql b/install/gnuboard5.sql
index 93739d0f8..4fd0372c6 100644
--- a/install/gnuboard5.sql
+++ b/install/gnuboard5.sql
@@ -721,6 +721,7 @@ CREATE TABLE IF NOT EXISTS `g5_qa_config` (
`qa_use_sms` tinyint(4) NOT NULL DEFAULT '0',
`qa_send_number` varchar(255) NOT NULL DEFAULT '0',
`qa_admin_hp` varchar(255) NOT NULL DEFAULT '',
+ `qa_admin_email` varchar(255) NOT NULL DEFAULT '',
`qa_use_editor` tinyint(4) NOT NULL DEFAULT '0',
`qa_subject_len` int(11) NOT NULL DEFAULT '0',
`qa_mobile_subject_len` int(11) NOT NULL DEFAULT '0',
|