답변 1개 / 댓글 2개
채택된 답변
+20 포인트
1) 뷰 페이지 스킨 파일에서 링크 주소 변경
download.php -> download_check.php
2) /bbs/download_check.php 파일 생성
<form action="download.php">
<input type="hidden" name="board" value="<?php echo $board ?>">
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
<input type="password" name="pass">
</form>
3) download.php
if ($pass != "abcd")
alert('비밀번호가 맞지 않습니다.');
답변을 작성하려면 로그인이 필요합니다.
그런데 뷰스킨 파일에 첨부파일 링크는 <a href="<?php echo $view['file'][$i]['href']; ?>" class="view_file_download"> 이런식으로 되어있는데 여기를 수정하는 게 아닌가요? 아무튼 한번 잘 찾아서 적용해보겠습니다! 답변 넘 감사합니다ㅠㅠㅠ