미채택 완료

링크를 클릭하면 백지만 나와요.

2017-05-18 (목) 13:55:14 4,534

링크를 클릭하면 동영상이 다운로드 되야 되는데 백지로 나옵니다.

해결책 좀 알려주3...

https://www.xxxxxx.com/bbs/link.php?bo_table=xxxxxx&wr_id=481&no=1 

|

답변 3개 / 댓글 3개

호 마이 갓

누가  

goto_url(set_http($write['wr_link'.$no])); 를 빼먹었네요. -.-; 누구 짓이지? 

<?php
include_once('./_common.php');

$html_title = '링크 &gt; '.conv_subject($write['wr_subject'], 255);

if (!($bo_table && $wr_id && $no))
    alert_close('값이 제대로 넘어오지 않았습니다.');

// SQL Injection 예방
$row = sql_fetch(" select count(*) as cnt from {$g5['write_prefix']}{$bo_table} ", FALSE);
if (!$row['cnt'])
    alert_close('존재하는 게시판이 아닙니다.');

if (!$write['wr_link'.$no])
    alert_close('링크가 없습니다.');

@include_once($board_skin_path.'/link.head.skin.php');

$ss_name = 'ss_link_'.$bo_table.'_'.$wr_id.'_'.$no;
if (empty($_SESSION[$ss_name]))
{
    $sql = " update {$g5['write_prefix']}{$bo_table} set wr_link{$no}_hit = wr_link{$no}_hit + 1 where wr_id = '{$wr_id}' ";
    sql_query($sql);

    set_session($ss_name, true);

    // 새글 업데이트
    $as_link = (int)$write['wr_link1_hit'] + (int)$write['wr_link2_hit'] + 1;
    sql_query(" update {$g5['board_new_table']} set as_link = '{$as_link}' where bo_table = '{$bo_table}' and wr_id = '{$wr_id}' ", false);
}

@include_once($board_skin_path.'/link.tail.skin.php');

?>

link.php 입니다. 

답변에 대한 댓글 1개

link.php 위 내용만 봐서는 오류가 없는데요 ㅎㅎ
관련파일들을 새로 올려 테스트해 보시죠.

위 링크가 맞나요?

접근거부했다는 메시지가 나오네요.

답변에 대한 댓글 2개

아뇨 제가 임의로 바꿨습니다.
네 그렇다면 백지가 나오는 주된 이유는 어딘가 소스상에 오류가 있어 그럴텐데 저 정도 정보로는 알 수 없겠네요.

답변을 작성하려면 로그인이 필요합니다.