diff --git a/bbs/list.php b/bbs/list.php index 3dd6b3834..1e939b0fd 100644 --- a/bbs/list.php +++ b/bbs/list.php @@ -27,7 +27,7 @@ if ($sca || $stx) if (!$spt) $spt = $min_spt; - $sql_search .= " and (wr_num between {$spt} and {($spt + $config[cf_search_part])}) "; + $sql_search .= " and (wr_num between {$spt} and ({$spt} + {$config[cf_search_part]})) "; // 원글만 얻는다. (코멘트의 내용도 검색하기 위함) $sql = " select distinct wr_parent from {$write_table} where {$sql_search} "; diff --git a/bbs/view.php b/bbs/view.php index 68ded6517..345b21e59 100644 --- a/bbs/view.php +++ b/bbs/view.php @@ -87,8 +87,8 @@ else if (!$write[mb_id]) { // 회원이 쓴 글이 아니라면 // 최고, 그룹관리자라면 글 복사, 이동 가능 $copy_href = $move_href = ''; if ($write[wr_reply] == '' && ($is_admin == 'super' || $is_admin == 'group')) { - $copy_href = 'javascript:win_open('./move.php?sw=copy&bo_table=$bo_table&wr_id=$wr_id&page=$page".$qstr."', 'boardcopy', 'left=50, top=50, width=500, height=550, scrollbars=1');'; - $move_href = 'javascript:win_open('./move.php?sw=move&bo_table=$bo_table&wr_id=$wr_id&page=$page".$qstr."', 'boardmove', 'left=50, top=50, width=500, height=550, scrollbars=1');'; + $copy_href = 'javascript:win_open(\'./move.php?sw=copy&bo_table='.$bo_table.'&wr_id='.$wr_id.'&page='.$page.$qstr.'\', \'boardcopy\', \'left=50, top=50, width=500, height=550, scrollbars=1\');'; + $move_href = 'javascript:win_open(\'./move.php?sw=move&bo_table='.$bo_table.'&wr_id='.$wr_id.'&page='.$page.$qstr.'\', \'boardmove\', \'left=50, top=50, width=500, height=550, scrollbars=1\');'; } $scrap_href = ''; diff --git a/bbs/write.php b/bbs/write.php index e0c54492d..acbc489fa 100644 --- a/bbs/write.php +++ b/bbs/write.php @@ -166,7 +166,7 @@ else if ($w == 'r') if ($group[gr_use_access]) { if (!$member[mb_id]) - alert('접근 권한이 없습니다.'.PHP_EOL.PHP_EOL.'회원이시라면 로그인 후 이용해 보십시오.', 'login.php?'.$qstr.'&url='.urlencode($_SERVER[PHP_SELF]?bo_table=$bo_table)); + alert('접근 권한이 없습니다.'.PHP_EOL.PHP_EOL.'회원이시라면 로그인 후 이용해 보십시오.', 'login.php?'.$qstr.'&url='.urlencode($_SERVER[PHP_SELF].'?bo_table='.$bo_table)); if ($is_admin == 'super' || $group[gr_admin] == $member[mb_id] || $board[bo_admin] == $member[mb_id]) ; // 통과 diff --git a/bbs/write_update.php b/bbs/write_update.php index 777d4f72b..cf8271f2c 100644 --- a/bbs/write_update.php +++ b/bbs/write_update.php @@ -416,7 +416,7 @@ else if ($w == 'u') $sql = " update {$write_table} set ca_name = '{$ca_name}', - wr_option = '{$html,$secret,$mail}', + wr_option = '{$html},{$secret},{$mail}', wr_subject = '{$wr_subject}', wr_content = '{$wr_content}', wr_link1 = '{$wr_link1}', diff --git a/head.php b/head.php index fe808875d..38ca2301f 100644 --- a/head.php +++ b/head.php @@ -16,14 +16,19 @@ if ($config['cf_title'] == $g4['title']) $g4['title'] = '';
작업 중입니다. 일부 기능은 정상적으로 동작하지 않을 수 있습니다.