diff --git a/bbs/delete_comment.php b/bbs/delete_comment.php index 76d9df224..44a6c1387 100644 --- a/bbs/delete_comment.php +++ b/bbs/delete_comment.php @@ -88,5 +88,5 @@ delete_cache_latest($bo_table); run_event('bbs_delete_comment', $comment_id, $board); -goto_url(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$write['wr_parent'].'&page='.$page. $qstr); +goto_url(short_url_clean(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$write['wr_parent'].'&page='.$page. $qstr)); ?> diff --git a/bbs/new_delete.php b/bbs/new_delete.php index 8148f502d..035653915 100644 --- a/bbs/new_delete.php +++ b/bbs/new_delete.php @@ -8,24 +8,25 @@ if ($is_admin != 'super') $board = array(); $save_bo_table = array(); +$save_wr_id = array(); for($i=0;$i$value) { delete_cache_latest($value); } -run_event('bbs_new_delete', $chk_bn_id, $save_bo_table); +run_event('bbs_new_delete', $chk_bn_id, $save_bo_table, $save_wr_id); goto_url("new.php?sfl=$sfl&stx=$stx&page=$page"); ?> \ No newline at end of file diff --git a/mobile/skin/latest/basic/latest.skin.php b/mobile/skin/latest/basic/latest.skin.php index 5d3d5bb07..b7fbbd5e0 100644 --- a/mobile/skin/latest/basic/latest.skin.php +++ b/mobile/skin/latest/basic/latest.skin.php @@ -10,7 +10,7 @@ add_stylesheet('', 0); $thumb_width = 138; $thumb_height = 80; -$list_count = count($list); +$list_count = (is_array($list) && $list) ? count($list) : 0; $divisor_count = 4; $start_page_num = $list_count ? '1' : '0'; $is_show_next_prev = ($list_count > 4) ? 1 : 0; diff --git a/mobile/skin/latest/comment/latest.skin.php b/mobile/skin/latest/comment/latest.skin.php index c34727592..961c48b0c 100644 --- a/mobile/skin/latest/comment/latest.skin.php +++ b/mobile/skin/latest/comment/latest.skin.php @@ -3,14 +3,14 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 add_stylesheet('', 0); +$list_count = (is_array($list) && $list) ? count($list) : 0; ?>

최신댓글

diff --git a/mobile/skin/latest/notice/latest.skin.php b/mobile/skin/latest/notice/latest.skin.php index eb0c06605..c59f74c6a 100644 --- a/mobile/skin/latest/notice/latest.skin.php +++ b/mobile/skin/latest/notice/latest.skin.php @@ -4,12 +4,13 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 add_stylesheet('', 0); add_javascript('', 10); +$list_count = (is_array($list) && $list) ? count($list) : 0; ?>

    - +
  • "; @@ -35,7 +36,7 @@ add_javascript('', 10); ?>
  • - +
  • 게시물이 없습니다.
diff --git a/skin/latest/basic/latest.skin.php b/skin/latest/basic/latest.skin.php index eb2b00e1e..78b3fc128 100644 --- a/skin/latest/basic/latest.skin.php +++ b/skin/latest/basic/latest.skin.php @@ -3,12 +3,13 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 add_stylesheet('', 0); +$list_count = (is_array($list) && $list) ? count($list) : 0; ?>

    - +
  • 비밀글 "; @@ -40,7 +41,7 @@ add_stylesheet('',
- +
  • 게시물이 없습니다.
  • diff --git a/skin/latest/notice/latest.skin.php b/skin/latest/notice/latest.skin.php index eb0c06605..c59f74c6a 100644 --- a/skin/latest/notice/latest.skin.php +++ b/skin/latest/notice/latest.skin.php @@ -4,12 +4,13 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 add_stylesheet('', 0); add_javascript('', 10); +$list_count = (is_array($list) && $list) ? count($list) : 0; ?>

      - +
    • "; @@ -35,7 +36,7 @@ add_javascript('', 10); ?>
    • - +
    • 게시물이 없습니다.
    diff --git a/skin/latest/pic_block/latest.skin.php b/skin/latest/pic_block/latest.skin.php index c19ef5c08..791e2b48b 100644 --- a/skin/latest/pic_block/latest.skin.php +++ b/skin/latest/pic_block/latest.skin.php @@ -6,13 +6,14 @@ include_once(G5_LIB_PATH.'/thumbnail.lib.php'); add_stylesheet('', 0); $thumb_width = 210; $thumb_height = 150; +$list_count = (is_array($list) && $list) ? count($list) : 0; ?>

      - +
    • 게시물이 없습니다.
    diff --git a/skin/latest/pic_list/latest.skin.php b/skin/latest/pic_list/latest.skin.php index 57dcec5bb..1a8a08ed4 100644 --- a/skin/latest/pic_list/latest.skin.php +++ b/skin/latest/pic_list/latest.skin.php @@ -6,13 +6,14 @@ include_once(G5_LIB_PATH.'/thumbnail.lib.php'); add_stylesheet('', 0); $thumb_width = 297; $thumb_height = 212; +$list_count = (is_array($list) && $list) ? count($list) : 0; ?>

      - +
    • 게시물이 없습니다.
    diff --git a/theme/basic/mobile/skin/latest/basic/latest.skin.php b/theme/basic/mobile/skin/latest/basic/latest.skin.php index 5d3d5bb07..b7fbbd5e0 100644 --- a/theme/basic/mobile/skin/latest/basic/latest.skin.php +++ b/theme/basic/mobile/skin/latest/basic/latest.skin.php @@ -10,7 +10,7 @@ add_stylesheet('', 0); $thumb_width = 138; $thumb_height = 80; -$list_count = count($list); +$list_count = (is_array($list) && $list) ? count($list) : 0; $divisor_count = 4; $start_page_num = $list_count ? '1' : '0'; $is_show_next_prev = ($list_count > 4) ? 1 : 0; diff --git a/theme/basic/mobile/skin/latest/comment/latest.skin.php b/theme/basic/mobile/skin/latest/comment/latest.skin.php index c34727592..961c48b0c 100644 --- a/theme/basic/mobile/skin/latest/comment/latest.skin.php +++ b/theme/basic/mobile/skin/latest/comment/latest.skin.php @@ -3,14 +3,14 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 add_stylesheet('', 0); +$list_count = (is_array($list) && $list) ? count($list) : 0; ?>

    최신댓글

    • @@ -24,7 +24,7 @@ add_stylesheet('', 게시물이 없습니다.
    • '.PHP_EOL; ?>
    diff --git a/theme/basic/mobile/skin/latest/notice/latest.skin.php b/theme/basic/mobile/skin/latest/notice/latest.skin.php index eb0c06605..c59f74c6a 100644 --- a/theme/basic/mobile/skin/latest/notice/latest.skin.php +++ b/theme/basic/mobile/skin/latest/notice/latest.skin.php @@ -4,12 +4,13 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 add_stylesheet('', 0); add_javascript('', 10); +$list_count = (is_array($list) && $list) ? count($list) : 0; ?>

      - +
    • "; @@ -35,7 +36,7 @@ add_javascript('', 10); ?>
    • - +
    • 게시물이 없습니다.
    diff --git a/theme/basic/skin/latest/basic/latest.skin.php b/theme/basic/skin/latest/basic/latest.skin.php index eb2b00e1e..78b3fc128 100644 --- a/theme/basic/skin/latest/basic/latest.skin.php +++ b/theme/basic/skin/latest/basic/latest.skin.php @@ -3,12 +3,13 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 add_stylesheet('', 0); +$list_count = (is_array($list) && $list) ? count($list) : 0; ?>

      - +
    • 비밀글 "; @@ -40,7 +41,7 @@ add_stylesheet('',
    - +
  • 게시물이 없습니다.
  • diff --git a/theme/basic/skin/latest/notice/latest.skin.php b/theme/basic/skin/latest/notice/latest.skin.php index eb0c06605..c59f74c6a 100644 --- a/theme/basic/skin/latest/notice/latest.skin.php +++ b/theme/basic/skin/latest/notice/latest.skin.php @@ -4,12 +4,13 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 add_stylesheet('', 0); add_javascript('', 10); +$list_count = (is_array($list) && $list) ? count($list) : 0; ?>

      - +
    • "; @@ -35,7 +36,7 @@ add_javascript('', 10); ?>
    • - +
    • 게시물이 없습니다.
    diff --git a/theme/basic/skin/latest/pic_block/latest.skin.php b/theme/basic/skin/latest/pic_block/latest.skin.php index c19ef5c08..791e2b48b 100644 --- a/theme/basic/skin/latest/pic_block/latest.skin.php +++ b/theme/basic/skin/latest/pic_block/latest.skin.php @@ -6,13 +6,14 @@ include_once(G5_LIB_PATH.'/thumbnail.lib.php'); add_stylesheet('', 0); $thumb_width = 210; $thumb_height = 150; +$list_count = (is_array($list) && $list) ? count($list) : 0; ?>

      - +
    • 게시물이 없습니다.
    diff --git a/theme/basic/skin/latest/pic_list/latest.skin.php b/theme/basic/skin/latest/pic_list/latest.skin.php index 57dcec5bb..1a8a08ed4 100644 --- a/theme/basic/skin/latest/pic_list/latest.skin.php +++ b/theme/basic/skin/latest/pic_list/latest.skin.php @@ -6,13 +6,14 @@ include_once(G5_LIB_PATH.'/thumbnail.lib.php'); add_stylesheet('', 0); $thumb_width = 297; $thumb_height = 212; +$list_count = (is_array($list) && $list) ? count($list) : 0; ?>

      - +
    • 게시물이 없습니다.