댓글 새창 사용 제거
This commit is contained in:
@ -1,16 +1,8 @@
|
||||
<?
|
||||
include_once('./_common.php');
|
||||
|
||||
$cwin = "";
|
||||
if (isset($_GET['cwin']) && $_GET['cwin']) {
|
||||
$cwin = $_GET['cwin'];
|
||||
}
|
||||
|
||||
if (!$board['bo_table']) {
|
||||
if ($cwin) // 코멘트 보기
|
||||
alert_close('존재하지 않는 게시판입니다.', $g4['path']);
|
||||
else
|
||||
alert('존재하지 않는 게시판입니다.', $g4['path']);
|
||||
alert('존재하지 않는 게시판입니다.', $g4['path']);
|
||||
}
|
||||
|
||||
if (isset($write['wr_is_comment']) && $write['wr_is_comment']) {
|
||||
@ -19,10 +11,7 @@ if (isset($write['wr_is_comment']) && $write['wr_is_comment']) {
|
||||
|
||||
if (!$bo_table) {
|
||||
$msg = "bo_table 값이 넘어오지 않았습니다.\\n\\nboard.php?bo_table=code 와 같은 방식으로 넘겨 주세요.";
|
||||
if ($cwin) // 코멘트 보기
|
||||
alert_close($msg);
|
||||
else
|
||||
alert($msg);
|
||||
alert($msg);
|
||||
}
|
||||
|
||||
// wr_id 값이 있으면 글읽기
|
||||
@ -30,20 +19,14 @@ if (isset($wr_id) && $wr_id) {
|
||||
// 글이 없을 경우 해당 게시판 목록으로 이동
|
||||
if (!$write['wr_id']) {
|
||||
$msg = '글이 존재하지 않습니다.'.PHP_EOL.PHP_EOL.'글이 삭제되었거나 이동된 경우입니다.';
|
||||
if ($cwin)
|
||||
alert_close($msg);
|
||||
else
|
||||
alert($msg, './board.php?bo_table='.$bo_table);
|
||||
alert($msg, './board.php?bo_table='.$bo_table);
|
||||
}
|
||||
|
||||
// 그룹접근 사용
|
||||
if (isset($group['gr_use_access']) && $group['gr_use_access']) {
|
||||
if ($is_guest) {
|
||||
$msg = "비회원은 이 게시판에 접근할 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.";
|
||||
if ($cwin)
|
||||
alert_close($msg);
|
||||
else
|
||||
alert($msg, './login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode('./board.php?bo_table='.$bo_table.'&wr_id='.$wr_id));
|
||||
alert($msg, './login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode('./board.php?bo_table='.$bo_table.'&wr_id='.$wr_id));
|
||||
}
|
||||
|
||||
// 그룹관리자 이상이라면 통과
|
||||
@ -195,26 +178,21 @@ $admin_href = "";
|
||||
if ($member['mb_id'] && ($is_admin == 'super' || $group['gr_admin'] == $member['mb_id']))
|
||||
$admin_href = $g4['admin_path'].'/board_form.php?w=u&bo_table='.$bo_table;
|
||||
|
||||
if (!($board['bo_use_comment'] && $cwin))
|
||||
include_once('./board_head.php');
|
||||
include_once('./board_head.php');
|
||||
|
||||
echo '<script src="'.$g4['path'].'/js/sideview.js"></script>';
|
||||
|
||||
if (!($board['bo_use_comment'] && $cwin)) {
|
||||
// 게시물 아이디가 있다면 게시물 보기를 INCLUDE
|
||||
if (isset($wr_id) && $wr_id) {
|
||||
include_once('./view.php');
|
||||
}
|
||||
|
||||
// 전체목록보이기 사용이 "예" 또는 wr_id 값이 없다면 목록을 보임
|
||||
//if ($board['bo_use_list_view'] || empty($wr_id))
|
||||
if ($member['mb_level'] >= $board['bo_list_level'] && $board['bo_use_list_view'] || empty($wr_id))
|
||||
include_once ('./list.php');
|
||||
|
||||
include_once('./board_tail.php');
|
||||
// 게시물 아이디가 있다면 게시물 보기를 INCLUDE
|
||||
if (isset($wr_id) && $wr_id) {
|
||||
include_once('./view.php');
|
||||
}
|
||||
else
|
||||
include_once('./view_comment.php');
|
||||
|
||||
// 전체목록보이기 사용이 "예" 또는 wr_id 값이 없다면 목록을 보임
|
||||
//if ($board['bo_use_list_view'] || empty($wr_id))
|
||||
if ($member['mb_level'] >= $board['bo_list_level'] && $board['bo_use_list_view'] || empty($wr_id))
|
||||
include_once ('./list.php');
|
||||
|
||||
include_once('./board_tail.php');
|
||||
|
||||
echo "\\n<!-- 사용스킨 : {$board['bo_skin']} -->\\n";
|
||||
|
||||
|
||||
@ -83,5 +83,5 @@ sql_query(" delete from {$g4[board_new_table]} where bo_table = '{$bo_table}' an
|
||||
// 4.1
|
||||
@include_once($board_skin_path.'/delete_comment.tail.skin.php');
|
||||
|
||||
goto_url('./board.php?bo_table='.$bo_table.'&wr_id='.$write[wr_parent].'&cwin='.$cwin.'&page='.$page. $qstr);
|
||||
goto_url('./board.php?bo_table='.$bo_table.'&wr_id='.$write[wr_parent].'&page='.$page. $qstr);
|
||||
?>
|
||||
|
||||
@ -62,7 +62,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
if ($row['mb_id'] == $member['mb_id'] || $is_admin)
|
||||
{
|
||||
$list[$i]['del_link'] = './delete_comment.php?bo_table='.$bo_table.'&comment_id='.$row['wr_id'].'&token='.$token.'&cwin='.$cwin.'&page='.$page.$qstr;
|
||||
$list[$i]['del_link'] = './delete_comment.php?bo_table='.$bo_table.'&comment_id='.$row['wr_id'].'&token='.$token.'&page='.$page.$qstr;
|
||||
$list[$i]['is_edit'] = true;
|
||||
$list[$i]['is_del'] = true;
|
||||
}
|
||||
@ -70,7 +70,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
else
|
||||
{
|
||||
if (!$row['mb_id']) {
|
||||
$list[$i]['del_link'] = './password.php?w=x&bo_table='.$bo_table.'&comment_id='.$row['wr_id'].'&cwin='.$cwin.'&page='.$page.$qstr;
|
||||
$list[$i]['del_link'] = './password.php?w=x&bo_table='.$bo_table.'&comment_id='.$row['wr_id'].'&page='.$page.$qstr;
|
||||
$list[$i]['is_del'] = true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -8,10 +8,7 @@ set_session('ss_wr_id', $wr_id);
|
||||
|
||||
// 090713
|
||||
if (!$board['bo_table']) {
|
||||
if ($cwin) // 코멘트 보기
|
||||
alert_close('존재하지 않는 게시판입니다.', $g4['path']);
|
||||
else
|
||||
alert('존재하지 않는 게시판입니다.', $g4['path']);
|
||||
alert('존재하지 않는 게시판입니다.', $g4['path']);
|
||||
}
|
||||
|
||||
if (!$bo_table) {
|
||||
|
||||
@ -339,5 +339,5 @@ else if ($w == 'cu') // 코멘트 수정
|
||||
@include_once($board_skin_path.'/write_comment_update.skin.php');
|
||||
@include_once($board_skin_path.'/write_comment_update.tail.skin.php');
|
||||
|
||||
goto_url('./board.php?bo_table='.$bo_table.'&wr_id='.$wr[wr_parent].'&page='.$page.$qstr.'&cwin='.$cwin.'#c_'.$comment_id);
|
||||
goto_url('./board.php?bo_table='.$bo_table.'&wr_id='.$wr[wr_parent].'&page='.$page.$qstr.'&#c_'.$comment_id);
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user