Compare commits

...
4 Commits
Author SHA1 Message Date
thisgun 34d50021eb Merge branch '54' of github.com:gnuboard/g5 into 54 2019-11-26 19:05:44 +09:00
thisgun e07f3275b7 인덱스 페이지에 코드 추가 2019-11-26 18:37:15 +09:00
thisgun 5f25f6efa7 버전 5.4.0.9 수정 2019-11-26 18:20:49 +09:00
thisgun 9858f457aa 훅 이벤트 추가 및 오류 수정 2019-11-26 18:20:24 +09:00
9 changed files with 23 additions and 15 deletions
+4
View File
@@ -83,6 +83,8 @@ if(isset($_POST['js']) && $_POST['js'] === "on") {
$row = sql_fetch($sql);
$count = $row['count'];
run_event('bbs_increase_good_json', $bo_table, $wr_id, $good);
print_result($error, $count);
}
@@ -147,6 +149,8 @@ if(isset($_POST['js']) && $_POST['js'] === "on") {
$status = '비추천';
$href = get_pretty_url($bo_table, $wr_id);
run_event('bbs_increase_good_html', $bo_table, $wr_id, $good, $href);
alert("이 글을 $status 하셨습니다.", '', false);
}
+4 -5
View File
@@ -76,7 +76,8 @@ for ($i=0; $i<count($member_list['id']); $i++) {
// 보내는 회원 쪽지 INSERT
$sql = " insert into {$g5['memo_table']} ( me_recv_mb_id, me_send_mb_id, me_send_datetime, me_memo, me_read_datetime, me_send_id, me_type , me_send_ip ) values ( '$recv_mb_id', '{$member['mb_id']}', '".G5_TIME_YMDHIS."', '{$_POST['me_memo']}', '0000-00-00 00:00:00', '$me_id', 'send', '{$_SERVER['REMOTE_ADDR']}' ) ";
sql_query($sql);
$member_list['me_id'][$i] = $me_id;
}
// 실시간 쪽지 알림 기능
@@ -93,16 +94,14 @@ if ($member_list) {
$redirect_url = G5_HTTP_BBS_URL."/memo.php?kind=send";
$str_nick_list = implode(',', $member_list['nick']);
run_event('memo_form_update_after', $member_list, $str_nick_list, $redirect_url);
run_event('memo_form_update_after', $member_list, $str_nick_list, $redirect_url, $_POST['me_memo']);
alert($str_nick_list." 님께 쪽지를 전달하였습니다.", $redirect_url, false);
} else {
$redirect_url = G5_HTTP_BBS_URL."/memo_form.php";
run_event('memo_form_update_failed', $member_list, $redirect_url);
exit;
run_event('memo_form_update_failed', $member_list, $redirect_url, $_POST['me_memo']);
alert("회원아이디 오류 같습니다.", $redirect_url, false);
}
+1
View File
@@ -14,6 +14,7 @@ $msg = array();
// 1:1문의 설정값
$qaconfig = get_qa_config();
$qa_id = isset($qa_id) ? (int) $qa_id : 0;
if(trim($qaconfig['qa_category'])) {
if($w != 'a') {
+1 -1
View File
@@ -5,7 +5,7 @@
********************/
define('G5_VERSION', '그누보드5');
define('G5_GNUBOARD_VER', '5.4.0.8');
define('G5_GNUBOARD_VER', '5.4.0.9');
// 이 상수가 정의되지 않으면 각각의 개별 페이지는 별도로 실행될 수 없음
define('_GNUBOARD_', true);
+4 -2
View File
@@ -24,7 +24,9 @@ include_once(G5_PATH.'/head.php');
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 사용방법 : latest(스킨, 게시판아이디, 출력라인, 글자수);
// 테마의 스킨을 사용하려면 theme/basic 과 같이 지정
echo latest('pic_list', 'free', 4, 23);
echo latest('pic_list', 'free', 4, 23); // 최소설치시 자동생성되는 자유게시판
echo latest('pic_list', 'qa', 4, 23); // 최소설치시 자동생성되는 질문답변게시판
echo latest('pic_list', 'notice', 4, 23); // 최소설치시 자동생성되는 공지사항게시판
?>
</div>
<div class="latest_wr">
@@ -33,7 +35,7 @@ include_once(G5_PATH.'/head.php');
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 사용방법 : latest(스킨, 게시판아이디, 출력라인, 글자수);
// 테마의 스킨을 사용하려면 theme/basic 과 같이 지정
echo latest('pic_block', 'gallery', 4, 23);
echo latest('pic_block', 'gallery', 4, 23); // 최소설치시 자동생성되는 갤러리게시판
?>
<!-- } 사진 최신글2 끝 -->
</div>
+1 -1
View File
@@ -75,7 +75,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
<?php } ?>
<div class="bo_cnt">
<?php if ($list[$i]['is_notice']) { ?>
<?php if ($list[$i]['is_notice'] || ($is_category && $list[$i]['ca_name'])) { ?>
<div class="bo_cate_ico">
<?php if ($list[$i]['is_notice']) { ?><strong class="notice_icon">공지</strong><?php } ?>
<?php if ($is_category && $list[$i]['ca_name']) { ?>
+2 -2
View File
@@ -470,9 +470,9 @@ function fregisterform_submit(f)
jQuery(function($){
//tooltip
$(".tooltip_icon").click(function(){
$(document).on("click", ".tooltip_icon", function(e){
$(this).next(".tooltip").fadeIn(400).css("display","inline-block");
}).mouseout(function(){
}).on("mouseout", ".tooltip_icon", function(e){
$(this).next(".tooltip").fadeOut();
});
});
+4 -2
View File
@@ -17,7 +17,9 @@ include_once(G5_THEME_PATH.'/head.php');
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 사용방법 : latest(스킨, 게시판아이디, 출력라인, 글자수);
// 테마의 스킨을 사용하려면 theme/basic 과 같이 지정
echo latest('theme/pic_list', 'free', 4, 23);
echo latest('theme/pic_list', 'free', 4, 23); // 최소설치시 자동생성되는 자유게시판
echo latest('theme/pic_list', 'qa', 4, 23); // 최소설치시 자동생성되는 질문답변게시판
echo latest('theme/pic_list', 'notice', 4, 23); // 최소설치시 자동생성되는 공지사항게시판
?>
</div>
<div class="latest_wr">
@@ -26,7 +28,7 @@ include_once(G5_THEME_PATH.'/head.php');
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 사용방법 : latest(스킨, 게시판아이디, 출력라인, 글자수);
// 테마의 스킨을 사용하려면 theme/basic 과 같이 지정
echo latest('theme/pic_block', 'gallery', 4, 23);
echo latest('theme/pic_block', 'gallery', 4, 23); // 최소설치시 자동생성되는 갤러리게시판
?>
<!-- } 사진 최신글2 끝 -->
</div>
@@ -470,9 +470,9 @@ function fregisterform_submit(f)
jQuery(function($){
//tooltip
$(".tooltip_icon").click(function(){
$(document).on("click", ".tooltip_icon", function(e){
$(this).next(".tooltip").fadeIn(400).css("display","inline-block");
}).mouseout(function(){
}).on("mouseout", ".tooltip_icon", function(e){
$(this).next(".tooltip").fadeOut();
});
});