팁텍 뷰어에서의 새창
본문
gnu/lib/gnuboard.lib.php 파일을 여신후, 라인 '514-520' 부분에 아래 코드를 수정.....
$width = $size[0];
$height = $size[1];
if (preg_match($cfg[image_extension], $file))
return "<center><a href='javascript:void(0);' onclick=\"var win = window.open('', 'img', 'width=$source_width,height=$source_height'); win.document.write('<img src=./data/file/$board[bo_table]/$file onclick=window.close() style=position:absolute;top:0pt;left:0pt; border=0>');\"><img src='./data/file/$board[bo_table]/$file' width='$width' height='$height' border=0 alt='새창열기'></a></center><p>";
else if (preg_match($cfg[flash_extension], $file))
return "<embed src='./data/file/$board[bo_table]/$file' width='$width' height='$height'></embed><p>";
else if (preg_match($cfg[movie_extension], $file))
return "<embed src='./data/file/$board[bo_table]/$file'></embed><p>";
}
$width = $size[0];
$height = $size[1];
if (preg_match($cfg[image_extension], $file))
return "<center><a href='javascript:void(0);' onclick=\"var win = window.open('', 'img', 'width=$source_width,height=$source_height'); win.document.write('<img src=./data/file/$board[bo_table]/$file onclick=window.close() style=position:absolute;top:0pt;left:0pt; border=0>');\"><img src='./data/file/$board[bo_table]/$file' width='$width' height='$height' border=0 alt='새창열기'></a></center><p>";
else if (preg_match($cfg[flash_extension], $file))
return "<embed src='./data/file/$board[bo_table]/$file' width='$width' height='$height'></embed><p>";
else if (preg_match($cfg[movie_extension], $file))
return "<embed src='./data/file/$board[bo_table]/$file'></embed><p>";
}
까만도둑님의 댓글
까만도둑쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일이건 익스 전용소스라 제가 적용을 안하고 있습니다. emoticon_002emoticon_001emoticon_001
제 홈에서는 익스 전용소스가 적용된 곳이 한군데도 없습니다.
홈페이지 운영의 기본 원칙중 하나입니다. ^^