팝빌 알림톡 제거 완료

- 광고성 및 회원관리파일(친구톡 코드만 제거) 제외
This commit is contained in:
chym1217
2025-09-18 12:50:17 +09:00
parent 1eee11e433
commit 7e8eff5395
72 changed files with 73 additions and 5462 deletions

View File

@ -43,12 +43,6 @@ if ($w == '')
$from_email = $member['mb_email'] ? $member['mb_email'] : $admin['mb_email'];
mailer($name, $from_email, $admin['mb_email'], '['.$config['cf_title'].'] 설문조사 기타의견 메일', $content, 1);
}
// 알림톡 발송 BEGIN: 기타의견 작성(AD-VO01) -------------------------------------
include_once(G5_KAKAO5_PATH.'/kakao5.lib.php');
$conditions = ['po_id' => $po_id, 'pc_id' => $pc_id]; // 변수 치환 정보
$ad_atk = send_admin_alimtalk('AD-VO01', 'super', $conditions); // 관리자
// 알림톡 발송 END -------------------------------------------------------------
}
else if ($w == 'd')
{

View File

@ -472,25 +472,6 @@ if(($w == '' || $w == 'r') && trim($qaconfig['qa_admin_email'])) {
mailer($config['cf_admin_email_name'], $qa_email, $qaconfig['qa_admin_email'], $subject, $content, 1);
}
// 알림톡 발송 BEGIN: 1:1 문의(CU-IQ01/CU-IQ02/AD-IQ01) -------------------------------------
include_once(G5_KAKAO5_PATH.'/kakao5.lib.php');
$conditions = ['qa_id' => $qa_id, 'qa_name' => $write['qa_name'] ?? $member['mb_nick'], 'mb_name' => $write['qa_name'] ?? $member['mb_nick']]; // 변수 치환 정보
// 답변글은 질문 등록자에게 전송
if ($w == 'a' && !empty($write['qa_hp'])) {
$cu_atk = send_alimtalk_preset('CU-IQ02', ['rcv' => $write['qa_hp'], 'rcvnm' => $write['qa_name']], $conditions); // 회원
}
// 문의글 등록시 질문등록자/관리자에게 전송
if ($w == '' || $w == 'r') {
$ad_atk = send_admin_alimtalk('AD-IQ01', 'super', $conditions); // 관리자
if (!empty($qa_hp)) {
$cu_atk = send_alimtalk_preset('CU-IQ01', ['rcv' => $qa_hp, 'rcvnm' => $member['mb_nick']], $conditions); // 회원
}
}
// 알림톡 발송 END -------------------------------------------------------------
if($w == 'a')
$result_url = G5_BBS_URL.'/qaview.php?qa_id='.$qa_id.$qstr;
else if($w == 'u' && $write['qa_type'])

View File

@ -76,10 +76,6 @@ $mb_addr_jibeon = preg_match("/^(N|R)$/", $mb_addr_jibeon) ? $mb_addr_jibeon : '
$mb_marketing_agree = isset($_POST['mb_marketing_agree']) ? trim($_POST['mb_marketing_agree']) : "0";
$mb_thirdparty_agree = isset($_POST['mb_thirdparty_agree']) ? trim($_POST['mb_thirdparty_agree']) : "0";
$mb_board_post = isset($_POST['mb_board_post']) ? trim($_POST['mb_board_post']) : "0";
$mb_board_reply = isset($_POST['mb_board_reply']) ? trim($_POST['mb_board_reply']) : "0";
$mb_board_comment = isset($_POST['mb_board_comment']) ? trim($_POST['mb_board_comment']) : "0";
$mb_board_recomment = isset($_POST['mb_board_recomment']) ? trim($_POST['mb_board_recomment']) : "0";
run_event('register_form_update_before', $mb_id, $w);
@ -258,11 +254,7 @@ if ($w == '') {
mb_9 = '{$mb_9}',
mb_10 = '{$mb_10}',
mb_marketing_agree = '{$mb_marketing_agree}',
mb_thirdparty_agree = '{$mb_thirdparty_agree}',
mb_board_post = '{$mb_board_post}',
mb_board_reply = '{$mb_board_reply}',
mb_board_comment = '{$mb_board_comment}',
mb_board_recomment = '{$mb_board_recomment}'
mb_thirdparty_agree = '{$mb_thirdparty_agree}'
{$sql_certify} ";
// 이메일 인증을 사용하지 않는다면 이메일 인증시간을 바로 넣는다
@ -366,17 +358,6 @@ if ($w == '') {
insert_member_cert_history($mb_id, $mb_name, $mb_hp, get_session('ss_cert_birth'), get_session('ss_cert_type') ); // 본인인증 후 정보 수정 시 내역 기록
}
// 알림톡 발송 BEGIN: 회원가입 (CU-MB01/AD-MB01) -------------------------------------
include_once(G5_KAKAO5_PATH.'/kakao5.lib.php');
$conditions = ['mb_id' => $mb_id]; // 변수 치환 정보
$ad_atk = send_admin_alimtalk('AD-MB01', 'super', $conditions); // 관리자
// 회원 - 휴대폰 번호가 있을 경우만
if (!empty($mb_hp)) {
$cu_atk = send_alimtalk_preset('CU-MB01', ['rcv' => $mb_hp, 'rcvnm' => $mb_name], $conditions); // 회원
}
// 알림톡 발송 END --------------------------------------------------------
} else if ($w == 'u') {
if (!trim(get_session('ss_mb_id')))
alert('로그인 되어 있지 않습니다.');
@ -465,11 +446,7 @@ if ($w == '') {
mb_9 = '{$mb_9}',
mb_10 = '{$mb_10}',
mb_marketing_agree = '{$mb_marketing_agree}',
mb_thirdparty_agree = '{$mb_thirdparty_agree}',
mb_board_post = '{$mb_board_post}',
mb_board_reply = '{$mb_board_reply}',
mb_board_comment = '{$mb_board_comment}',
mb_board_recomment = '{$mb_board_recomment}'
mb_thirdparty_agree = '{$mb_thirdparty_agree}'
{$sql_password}
{$sql_nick_date}
{$sql_open_date}

View File

@ -260,56 +260,6 @@ if ($w == 'c') // 댓글 입력
}
}
// 알림톡 발송 BEGIN: 새 댓글 작성(CU-BO02,CU-BO03) -------------------------------------
if ($config['cf_kakaotalk_use'] && $board['bo_use_kakaotalk']) {
include_once(G5_KAKAO5_PATH.'/kakao5.lib.php');
// 댓글 작성자 ID (회원/게스트 모두 고려)
$current_mb_id = $member['mb_id'] ?? '';
// 방금 저장된 댓글 레코드 로드 (실패 시 중단)
$comment = get_write($write_table, $comment_id);
if ($comment && !empty($comment['wr_id'])) {
$conditions = ['bo_table' => $bo_table, 'wr_id'=> $wr['wr_id'], 'wr_name_comment' => $comment['wr_name'] ?? '']; // 변수 치환 정보
// 1) 원글 작성자 알림 (CU-BO02)
$post_mb_id = $wr['mb_id'] ?? '';
if ($post_mb_id !== '' && $post_mb_id !== $current_mb_id) {
$mb_post = get_member($post_mb_id);
if (!empty($mb_post['mb_board_comment']) && !empty($mb_post['mb_hp'])) {
$cu_atk = send_alimtalk_preset('CU-BO02', ['rcv' => $mb_post['mb_hp'], 'rcvnm' => ($mb_post['mb_name'] ?? $mb_post['mb_nick'] ?? '')], $conditions);
}
}
// 2) 직속 부모 댓글 작성자 알림 (CU-BO03)
$reply = $comment['wr_comment_reply'] ?? '';
if ($reply !== '') {
$parent_reply_esc = sql_escape_string(substr($reply, 0, -1));
$wr_parent = $wr['wr_id'];
$wr_comment = $comment['wr_comment'];
$sql_parent = "
SELECT wr_id, mb_id
FROM {$write_table}
WHERE wr_parent = {$wr_parent}
AND wr_is_comment = 1
AND wr_comment = {$wr_comment}
AND wr_comment_reply = '{$parent_reply_esc}'
LIMIT 1
";
$pr = sql_fetch($sql_parent);
if (!empty($pr['mb_id']) && $pr['mb_id'] !== $current_mb_id && $pr['mb_id'] !== ($post_mb_id ?: '')) {
$mb_parent = get_member($pr['mb_id']);
if (!empty($mb_parent['mb_board_recomment']) && !empty($mb_parent['mb_hp'])) {
$cu_atk = send_alimtalk_preset('CU-BO03', ['rcv' => $mb_parent['mb_hp'], 'rcvnm' => ($mb_parent['mb_name'] ?? $mb_parent['mb_nick'] ?? '')], $conditions);
}
}
}
}
}
// 알림톡 발송 END ------------------------------------------------------------------
// SNS 등록
include_once("./write_comment_update.sns.php");
if($wr_facebook_user || $wr_twitter_user) {

View File

@ -756,45 +756,6 @@ if (!($w == 'u' || $w == 'cu') && $config['cf_email_use'] && $board['bo_use_emai
}
}
// 알림톡 발송 BEGIN: 새 게시글/답변 작성 (CU-BO01,CU-BO04/AD-BO01,AD-BO02,AD-BO03) -------------------------------------
if ($config['cf_kakaotalk_use'] && $board['bo_use_kakaotalk'])
{
include_once(G5_KAKAO5_PATH.'/kakao5.lib.php');
$conditions = ['bo_table' => $bo_table, 'wr_id' => $wr_id, 'mb_id' => $mb_id]; // 변수 치환 정보
// 새 게시글 작성
if ($w === '') {
// 관리자 알림
$ad_atk_super = send_admin_alimtalk('AD-BO01', 'super', $conditions); // 관리자
$ad_atk_group = send_admin_alimtalk('AD-BO02', 'group', $conditions, ['super']); // 그룹 관리자
$ad_atk_board = send_admin_alimtalk('AD-BO03', 'board', $conditions, ['super', 'group']); // 게시판 관리자
// 작성자 본인 알림
if (!empty($mb_id)) {
$writer = get_member($mb_id);
if ($writer && !empty($writer['mb_board_post']) && !empty($writer['mb_hp'])) {
$cu_atk = send_alimtalk_preset('CU-BO01', ['rcv' => $writer['mb_hp'], 'rcvnm' => ($writer['mb_name'] ?? '')], $conditions); // 회원
}
}
}
// 답변 작성
else if ($w === 'r') {
$parent_mb_id = $wr['mb_id'] ?? '';
if ($parent_mb_id && $parent_mb_id !== ($member['mb_id'] ?? '')) {
$conditions['mb_id'] = $parent_mb_id;
$conditions['wr_subject'] = $wr['wr_subject'];
$writer = get_member($parent_mb_id);
if ($writer && !empty($writer['mb_board_reply']) && !empty($writer['mb_hp'])) {
$cu_atk = send_alimtalk_preset('CU-BO04', ['rcv' => $writer['mb_hp'], 'rcvnm' => ($writer['mb_name'] ?? '')], $conditions); // 회원
}
}
}
}
// 알림톡 발송 END --------------------------------------------------------
// 사용자 코드 실행
@include_once($board_skin_path.'/write_update.skin.php');
@include_once($board_skin_path.'/write_update.tail.skin.php');