그누보드5 코어 수정 방법

최고관리자 0 1,463 2019.09.30 17:01

 

 주의사항 : 제시된 줄 수는 그누보드5.2.2버전 기준이므로 빌더 종류나 버전에 따라 줄 수가 다를 수 있고, 내용도 다를 수 있습니다. 그럴때는 해당내용을 직접 찾아주셔야 합니다.

 

 

[코어수정]

 

 

//----------------------------------------------------------------------//

//----------------------------------------------------------------------//

//----------------------------------------------------------------------//

//--------------------  bbs/login_check.php파일 ------------------------//

//----------------------------------------------------------------------//

//----------------------------------------------------------------------//

//----------------------------------------------------------------------//

 

 

 

*** 43번째 줄 쯤에 아래의 내용을 찾음

 

set_session('ss_mb_key', md5($mb['mb_datetime'] . $_SERVER['REMOTE_ADDR'] . $_SERVER['HTTP_USER_AGENT']));

 

*** 이 내용 아래에 다음의 한 줄을 추가

 

if(preg_match("/GNUPUSH/", $_SERVER['HTTP_USER_AGENT'])) sync_device_memb_id_webview_login($mb['mb_id']);

 

 

 

//----------------------------------------------------------------------//

//----------------------------------------------------------------------//

//----------------------------------------------------------------------//

//------------------  bbs/memo_form_update.php파일 ---------------------//

//----------------------------------------------------------------------//

//----------------------------------------------------------------------//

//----------------------------------------------------------------------//

 

 

*** 62번째줄 쯤에 아래의 내용을 찾음

 

// 쪽지 INSERT

$sql = " insert into {$g5['memo_table']} ( me_id, me_recv_mb_id, me_send_mb_id, me_send_datetime, me_memo ) values ( '$me_id', '$recv_mb_id', '{$member['mb_id']}', '".G5_TIME_YMDHIS."', '{$_POST['me_memo']}' ) ";

sql_query($sql);

 

*** 이 내용 다음에 아래의 내용을 추가

 

send_push_new_memo($recv_mb_id,$member['mb_id'],$_POST['me_memo'],$me_id);

 

 

 

//----------------------------------------------------------------------//

//----------------------------------------------------------------------//

//----------------------------------------------------------------------//

//----------------  bbs/register_form_update.php파일 -------------------//

//----------------------------------------------------------------------//

//----------------------------------------------------------------------//

//----------------------------------------------------------------------//

 

(1) 회원가입시 동기화 처리

 

*** 287번째줄에 아래 내용을 찾음.

 

// 메일인증 사용하지 않는 경우에만 로그인

if (!$config['cf_use_email_certify'])

        set_session('ss_mb_id', $mb_id);

 

*** 이 내용을 아래 내용으로 바꿈

 

// 메일인증 사용하지 않는 경우에만 로그인

if (!$config['cf_use_email_certify']){

set_session('ss_mb_id', $mb_id);

if(preg_match("/GNUPUSH/", $_SERVER['HTTP_USER_AGENT'])) sync_device_memb_id_webview_login($mb_id);

}

 

//----------------------------------------------------------------------//

//----------------------------------------------------------------------//

//----------------------------------------------------------------------//

//----------------  bbs/write_comment_update.php파일 -------------------//

//----------------------------------------------------------------------//

//----------------------------------------------------------------------//

//----------------------------------------------------------------------//

 

 

*** 190번째줄쯤

 

// 포인트 부여

insert_point($member['mb_id'], $board['bo_comment_point'], "{$board['bo_subject']} {$wr_id}-{$comment_id} 댓글쓰기", $bo_table, $comment_id, '댓글');

 

*** 이 내용 다음에 아래의 내용을 추가

 

$gnu_config = get_gnupushapp_config();

send_push_new_comment($write_table,$bo_table,$board['bo_subject'],$board[$gnu_config['board_grant_c']],$wr_id,$comment_id,$tmp_comment,$tmp_comment_reply,$wr['ca_name'],$wr_secret,$wr_content,$mb_id,$wr_name);

 

 

 

//----------------------------------------------------------------------//

//----------------------------------------------------------------------//

//----------------------------------------------------------------------//

//--------------------  bbs/write_update.php파일 -----------------------//

//----------------------------------------------------------------------//

//----------------------------------------------------------------------//

//----------------------------------------------------------------------//

 

 

 

*** 730번째줄쯤 아래의 내용을 찾는다.

 

// 자동저장된 레코드를 삭제한다.

sql_query(" delete from {$g5['autosave_table']} where as_uid = '{$uid}' ");

//------------------------------------------------------------------------------

 

 

*** 이 다음줄에 아래의 내용을 추가

 

if($w == '' || $w == 'r') {

$gnu_config = get_gnupushapp_config();

send_push_new_post($write_table,$bo_table,$board['bo_subject'],$board[$gnu_config['board_grant_c']],$wr_id,$wr_num,$wr_reply,$ca_name,$secret,get_text(stripslashes($wr_subject)),conv_unescape_nl(stripslashes($wr_content)),$member['mb_id'],$wr_name,$row['cnt']);

}

 

 

 

 

 

 

 

 

//----------------------------------------------------------------------//

//----------------------------------------------------------------------//

//----------------------------------------------------------------------//

//--------------------  bbs/qawrite_update.php파일 ----------------------//

//----------------------------------------------------------------------//

//----------------------------------------------------------------------//

//----------------------------------------------------------------------//

 

 

*** 320번째 줄에 아래 내용을 찾음

 

// SMS 알림

if($config['cf_sms_use'] == 'icode' && $qaconfig['qa_use_sms']) {

 

*** 이 내용을 아래의 내용으로 바꿈!!!

 

$go_sms = true;

 

$thumb_src = "none";

 

if($upload[1]['file']){

$thumb_src = $upload[1]['file'];

}else if($upload[2]['file']){

$thumb_src = $upload[2]['file'];

}

 

if($w == '' || $w == 'r') {

$ex_md_id = check_device_exist($config['cf_admin'],"notice");

if($ex_md_id){

$go_sms = false;

send_push_new_qa($w,$qa_id,get_text(stripslashes($qa_subject)),conv_unescape_nl(stripslashes($qa_content)),$member['mb_id'],$config['cf_admin'],$qaconfig['qa_title'],$thumb_src,$member['mb_nick']);

}

}elseif($w == 'a') {

$ex_md_id = check_device_exist($write['mb_id'],"myreply");

if($ex_md_id){

$go_sms = false;

send_push_new_qa($w,$qa_id,get_text(stripslashes($qa_subject)),conv_unescape_nl(stripslashes($qa_content)),$config['cf_admin'],$write['mb_id'],$qaconfig['qa_title'],$thumb_src,$member['mb_nick']);

}

}

 

// SMS 알림

if($go_sms && $config['cf_sms_use'] == 'icode' && $qaconfig['qa_use_sms']) {

 

 

 

-----------------------------------------------------------------------------

코어수정 끝

-----------------------------------------------------------------------------

 

 

 

 

Comments