2022-09-17 20:50:50 +09:00
|
|
|
<?php
|
2024-09-23 11:07:19 +09:00
|
|
|
include_once "./_common.php";
|
2022-09-17 20:50:50 +09:00
|
|
|
|
2024-10-05 07:34:26 +09:00
|
|
|
include_once G5_PATH . "/head.sub.php";
|
2022-09-17 20:50:50 +09:00
|
|
|
|
|
|
|
|
if ($is_guest) {
|
2024-09-19 20:57:39 +09:00
|
|
|
$href = './login.php?' . $qstr . '&url=' . urlencode('./board.php?bo_table=' . $bo_table . '&wr_id=' . $wr_id);
|
|
|
|
|
$href2 = str_replace('&', '&', $href);
|
|
|
|
|
echo <<<HEREDOC
|
2022-09-17 20:50:50 +09:00
|
|
|
<script>
|
|
|
|
|
alert('회원만 접근 가능합니다.');
|
|
|
|
|
opener.location.href = '$href2';
|
|
|
|
|
window.close();
|
|
|
|
|
</script>
|
|
|
|
|
<noscript>
|
|
|
|
|
<p>회원만 접근 가능합니다.</p>
|
|
|
|
|
<a href="$href">로그인하기</a>
|
|
|
|
|
</noscript>
|
|
|
|
|
HEREDOC;
|
2024-09-19 20:57:39 +09:00
|
|
|
exit;
|
2022-09-17 20:50:50 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
echo <<<HEREDOC
|
|
|
|
|
<script>
|
|
|
|
|
if (window.name != 'win_scrap') {
|
|
|
|
|
alert('올바른 방법으로 사용해 주십시오.');
|
|
|
|
|
window.close();
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
HEREDOC;
|
|
|
|
|
|
|
|
|
|
if ($write['wr_is_comment'])
|
2024-09-19 20:57:39 +09:00
|
|
|
alert_close('코멘트는 스크랩 할 수 없습니다.');
|
2022-09-17 20:50:50 +09:00
|
|
|
|
2024-09-30 01:58:32 +09:00
|
|
|
$sql = "SELECT count(*) as cnt FROM {$g5['scrap_table']}
|
2022-09-17 20:50:50 +09:00
|
|
|
where mb_id = '{$member['mb_id']}'
|
|
|
|
|
and bo_table = '$bo_table'
|
|
|
|
|
and wr_id = '$wr_id' ";
|
|
|
|
|
$row = sql_fetch($sql);
|
|
|
|
|
if ($row['cnt']) {
|
2024-09-19 20:57:39 +09:00
|
|
|
echo <<<HEREDOC
|
2022-09-17 20:50:50 +09:00
|
|
|
<script>
|
|
|
|
|
if (confirm('이미 스크랩하신 글 입니다.\\n\\n지금 스크랩을 확인하시겠습니까?'))
|
|
|
|
|
document.location.href = './scrap.php';
|
|
|
|
|
else
|
|
|
|
|
window.close();
|
|
|
|
|
</script>
|
|
|
|
|
<noscript>
|
|
|
|
|
<p>이미 스크랩하신 글 입니다.</p>
|
|
|
|
|
<a href="./scrap.php">스크랩 확인하기</a>
|
|
|
|
|
<a href="./board.php?bo_table={$bo_table}&wr_id=$wr_id">돌아가기</a>
|
|
|
|
|
</noscript>
|
|
|
|
|
HEREDOC;
|
2024-09-19 20:57:39 +09:00
|
|
|
exit;
|
2022-09-17 20:50:50 +09:00
|
|
|
}
|
|
|
|
|
|
2024-10-05 07:34:26 +09:00
|
|
|
include_once $member_skin_path . "/scrap_popin.skin.php";
|
2022-09-17 20:50:50 +09:00
|
|
|
|
2024-10-05 07:34:26 +09:00
|
|
|
include_once G5_PATH . "/tail.sub.php";
|