alert('회원만 접근 가능합니다.'); opener.location.href = '$href'; window.close(); HEREDOC; exit; } echo << if (window.name != 'win_scrap') { alert('올바른 방법으로 사용해 주십시오.'); window.close(); } HEREDOC; if ($write['wr_is_comment']) alert_close('코멘트는 스크랩 할 수 없습니다.'); $sql = " select count(*) as cnt from {$g4['scrap_table']} where mb_id = '{$member['mb_id']}' and bo_table = '$bo_table' and wr_id = '$wr_id' "; $row = sql_fetch($sql); if ($row['cnt']) { echo << if (confirm('이미 스크랩하신 글 입니다.\\n\\n지금 스크랩을 확인하시겠습니까?')) document.location.href = './scrap.php'; else window.close(); HEREDOC; exit; } include_once($member_skin_path.'/scrap_popin.skin.php'); include_once(G4_PATH.'/tail.sub.php'); ?>