일반게시판 일단 중지
This commit is contained in:
@ -205,7 +205,7 @@ if ($member[mb_id] && ($is_admin == 'super' || $group[gr_admin] == $member[mb_id
|
|||||||
if (!($board[bo_use_comment] && $cwin))
|
if (!($board[bo_use_comment] && $cwin))
|
||||||
include_once("./board_head.php");
|
include_once("./board_head.php");
|
||||||
|
|
||||||
echo "<script type=\"text/javascript\" src=\"$g4[path]/js/sideview.js\"></script>\n";
|
echo "<script src=\"$g4[path]/js/sideview.js\"></script>";
|
||||||
|
|
||||||
if (!($board[bo_use_comment] && $cwin)) {
|
if (!($board[bo_use_comment] && $cwin)) {
|
||||||
// 게시물 아이디가 있다면 게시물 보기를 INCLUDE
|
// 게시물 아이디가 있다면 게시물 보기를 INCLUDE
|
||||||
|
|||||||
@ -121,7 +121,7 @@ else if (strstr($view[wr_option], "html2"))
|
|||||||
$view[content] = conv_content($view[wr_content], $html);
|
$view[content] = conv_content($view[wr_content], $html);
|
||||||
if (strstr($sfl, "content"))
|
if (strstr($sfl, "content"))
|
||||||
$view[content] = search_font($stx, $view[content]);
|
$view[content] = search_font($stx, $view[content]);
|
||||||
$view[content] = preg_replace("/(\<img )([^\>]*)(\>)/i", "\\1 name='target_resize_image[]' onclick='image_window(this)' style='cursor:pointer;' \\2 \\3", $view[content]);
|
$view[content] = preg_replace("/(\<img )([^\>]*)(\>)/i", "\\1 onclick='image_window(this)'", $view[content]);
|
||||||
|
|
||||||
//$view[rich_content] = preg_replace("/{img\:([0-9]+)[:]?([^}]*)}/ie", "view_image(\$view, '\\1', '\\2')", $view[content]);
|
//$view[rich_content] = preg_replace("/{img\:([0-9]+)[:]?([^}]*)}/ie", "view_image(\$view, '\\1', '\\2')", $view[content]);
|
||||||
$view[rich_content] = preg_replace("/{이미지\:([0-9]+)[:]?([^}]*)}/ie", "view_image(\$view, '\\1', '\\2')", $view[content]);
|
$view[rich_content] = preg_replace("/{이미지\:([0-9]+)[:]?([^}]*)}/ie", "view_image(\$view, '\\1', '\\2')", $view[content]);
|
||||||
|
|||||||
12
head.php
12
head.php
@ -20,13 +20,11 @@ if ($config['cf_title'] == $g4['title']) $g4['title'] = '';
|
|||||||
<div id="to_content"><a href="#wrapper">본문 바로가기</a></div>
|
<div id="to_content"><a href="#wrapper">본문 바로가기</a></div>
|
||||||
<div id="logo"><a href="<?=$g4['path']?>/">처음으로</a></div>
|
<div id="logo"><a href="<?=$g4['path']?>/">처음으로</a></div>
|
||||||
|
|
||||||
<div>
|
<ul>
|
||||||
<ul>
|
<li><a href="<?=$g4['path']?>/bbs/login.php">로그인</a></li>
|
||||||
<li><a href="<?=$g4['path']?>/bbs/login.php">로그인</a></li>
|
<li><a href="<?=$g4['path']?>/bbs/register.php">회원가입</a></li>
|
||||||
<li><a href="<?=$g4['path']?>/bbs/register.php">회원가입</a></li>
|
<li><a href="<?=$g4['path']?>/bbs/new.php">최근게시물</a></li>
|
||||||
<li><a href="<?=$g4['path']?>/bbs/new.php">최근게시물</a></li>
|
</ul>
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<form name="fsearchbox" method="get" action="" onsubmit="return fsearchbox_submit(this);">
|
<form name="fsearchbox" method="get" action="" onsubmit="return fsearchbox_submit(this);">
|
||||||
<input type="hidden" name="sfl" value="wr_subject||wr_content">
|
<input type="hidden" name="sfl" value="wr_subject||wr_content">
|
||||||
|
|||||||
66
js/board.js
66
js/board.js
@ -1,69 +1,3 @@
|
|||||||
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
|
|
||||||
function resizeBoardImage(imageWidth, borderColor) {
|
|
||||||
/*
|
|
||||||
var content = document.getElementById("writeContents");
|
|
||||||
if (content) {
|
|
||||||
var target = content.getElementsByTagName("img");
|
|
||||||
if (target) {
|
|
||||||
var imageHeight = 0;
|
|
||||||
|
|
||||||
for(i=0; i<target.length; i++) {
|
|
||||||
// 원래 사이즈를 저장해 놓는다
|
|
||||||
target[i].tmpWidth = target[i].width;
|
|
||||||
target[i].tmpHeight = target[i].height;
|
|
||||||
|
|
||||||
//alert(target[i].width);
|
|
||||||
|
|
||||||
// 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
|
|
||||||
if(target[i].width > imageWidth) {
|
|
||||||
imageHeight = parseFloat(target[i].width / target[i].height)
|
|
||||||
target[i].width = imageWidth;
|
|
||||||
target[i].height = parseInt(imageWidth / imageHeight);
|
|
||||||
|
|
||||||
// 스타일에 적용된 이미지의 폭과 높이를 삭제한다
|
|
||||||
target[i].style.width = '';
|
|
||||||
target[i].style.height = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (borderColor) {
|
|
||||||
target[i].style.borderWidth = '1px';
|
|
||||||
target[i].style.borderStyle = 'solid';
|
|
||||||
target[i].style.borderColor = borderColor;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
var target = document.getElementsByName('target_resize_image[]');
|
|
||||||
var imageHeight = 0;
|
|
||||||
|
|
||||||
if (target) {
|
|
||||||
for(i=0; i<target.length; i++) {
|
|
||||||
// 원래 사이즈를 저장해 놓는다
|
|
||||||
target[i].tmp_width = target[i].width;
|
|
||||||
target[i].tmp_height = target[i].height;
|
|
||||||
// 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
|
|
||||||
if(target[i].width > imageWidth) {
|
|
||||||
imageHeight = parseFloat(target[i].width / target[i].height)
|
|
||||||
target[i].width = imageWidth;
|
|
||||||
target[i].height = parseInt(imageWidth / imageHeight);
|
|
||||||
target[i].style.cursor = 'pointer';
|
|
||||||
|
|
||||||
// 스타일에 적용된 이미지의 폭과 높이를 삭제한다
|
|
||||||
target[i].style.width = '';
|
|
||||||
target[i].style.height = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (borderColor) {
|
|
||||||
target[i].style.borderWidth = '1px';
|
|
||||||
target[i].style.borderStyle = 'solid';
|
|
||||||
target[i].style.borderColor = borderColor;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function getFontSize() {
|
function getFontSize() {
|
||||||
var fontSize = parseInt(get_cookie("ck_fontsize")); // 폰트크기 조절
|
var fontSize = parseInt(get_cookie("ck_fontsize")); // 폰트크기 조절
|
||||||
if (isNaN(fontSize)) { fontSize = 12; }
|
if (isNaN(fontSize)) { fontSize = 12; }
|
||||||
|
|||||||
@ -944,7 +944,7 @@ function view_file_link($file, $width, $height, $content='')
|
|||||||
if (preg_match("/\.({$config['cf_image_extension']})$/i", $file))
|
if (preg_match("/\.({$config['cf_image_extension']})$/i", $file))
|
||||||
// 이미지에 속성을 주지 않는 이유는 이미지 클릭시 원본 이미지를 보여주기 위한것임
|
// 이미지에 속성을 주지 않는 이유는 이미지 클릭시 원본 이미지를 보여주기 위한것임
|
||||||
// 게시판설정 이미지보다 크다면 스킨의 자바스크립트에서 이미지를 줄여준다
|
// 게시판설정 이미지보다 크다면 스킨의 자바스크립트에서 이미지를 줄여준다
|
||||||
return "<img src='{$g4['path']}/data/file/{$board['bo_table']}/".urlencode($file)."' name='target_resize_image[]' onclick='image_window(this);' style='cursor:pointer;' title='$content'>";
|
return "<img src='{$g4['path']}/data/file/{$board['bo_table']}/".urlencode($file)."' onclick='image_window(this);' alt='{$content}'>";
|
||||||
/*
|
/*
|
||||||
// 110106 : FLASH XSS 공격으로 인하여 코드 자체를 막음
|
// 110106 : FLASH XSS 공격으로 인하여 코드 자체를 막음
|
||||||
else if (preg_match("/\.($config[cf_flash_extension])$/i", $file))
|
else if (preg_match("/\.($config[cf_flash_extension])$/i", $file))
|
||||||
|
|||||||
@ -48,10 +48,12 @@ if ($is_nogood) $colspan++;
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<? if ($rss_href || $write_href) {?>
|
||||||
<? if ($rss_href) { ?><a href="<?=$rss_href?>">RSS</a><? } ?>
|
<ul>
|
||||||
<? if ($write_href) { ?><a href="<?=$write_href?>">글쓰기</a><? } ?>
|
<? if ($rss_href) { ?><li><a href="<?=$rss_href?>">RSS</a></li><? } ?>
|
||||||
</div>
|
<? if ($write_href) { ?><li><a href="<?=$write_href?>">글쓰기</a></li><? } ?>
|
||||||
|
</ul>
|
||||||
|
<? } ?>
|
||||||
|
|
||||||
<!-- 게시판 목록 시작 -->
|
<!-- 게시판 목록 시작 -->
|
||||||
<form id="fboardlist" name="fboardlist" method="post">
|
<form id="fboardlist" name="fboardlist" method="post">
|
||||||
@ -130,24 +132,24 @@ for ($i=0; $i<count($list); $i++) {
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<ul>
|
||||||
<? if ($list_href) { ?>
|
<? if ($list_href) { ?>
|
||||||
<a href="<?=$list_href?>">목록</a>
|
<li><a href="<?=$list_href?>">목록</a></li>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
<? if ($is_checkbox) { ?>
|
<? if ($is_checkbox) { ?>
|
||||||
<a href="javascript:select_delete();">선택삭제</a>
|
<li><a href="javascript:select_delete();">선택삭제</a></li>
|
||||||
<a href="javascript:select_copy('copy');">선택복사</a>
|
<li><a href="javascript:select_copy('copy');">선택복사</a></li>
|
||||||
<a href="javascript:select_copy('move');">선택이동</a>
|
<li><a href="javascript:select_copy('move');">선택이동</a></li>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</div>
|
</ul>
|
||||||
|
|
||||||
<div>
|
<ul>
|
||||||
<? if ($write_href) { ?><a href="<?=$write_href?>">글쓰기</a><? } ?>
|
<li><? if ($write_href) { ?><a href="<?=$write_href?>">글쓰기</a><? } ?></li>
|
||||||
</div>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 페이지 -->
|
<!-- 페이지 -->
|
||||||
<div>
|
<div id="pg">
|
||||||
<? if ($prev_part_href) { echo '<a href="'.$prev_part_href.'">이전검색</a>'; } ?>
|
<? if ($prev_part_href) { echo '<a href="'.$prev_part_href.'">이전검색</a>'; } ?>
|
||||||
<?=$write_pages?>
|
<?=$write_pages?>
|
||||||
<? if ($next_part_href) { echo '<a href="'.$next_part_href.'">다음검색</a>'; } ?>
|
<? if ($next_part_href) { echo '<a href="'.$next_part_href.'">다음검색</a>'; } ?>
|
||||||
|
|||||||
@ -3,6 +3,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- 링크 버튼 -->
|
<!-- 링크 버튼 -->
|
||||||
|
<? if ($update_href || $deleter_href) {?>
|
||||||
<ul>
|
<ul>
|
||||||
<? if ($update_href) { ?>
|
<? if ($update_href) { ?>
|
||||||
<li><a href="<?=$update_href?>">수정</a></li>
|
<li><a href="<?=$update_href?>">수정</a></li>
|
||||||
@ -11,6 +12,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
|||||||
<li><a href="<?=$delete_href?>">삭제</a></li>
|
<li><a href="<?=$delete_href?>">삭제</a></li>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
<? } ?>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<?
|
<?
|
||||||
@ -110,40 +112,34 @@ ob_end_flush();
|
|||||||
<ul>
|
<ul>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<div>
|
<section>
|
||||||
<?
|
<h2>본문</h2>
|
||||||
// 파일 출력
|
<div>
|
||||||
for ($i=0; $i<=count($view['file']); $i++) {
|
<?
|
||||||
if ($view['file'][$i]['view'])
|
// 파일 출력
|
||||||
echo $view['file'][$i]['view'];
|
for ($i=0; $i<=count($view['file']); $i++) {
|
||||||
}
|
if ($view['file'][$i]['view'])
|
||||||
?>
|
echo $view['file'][$i]['view'];
|
||||||
</div>
|
}
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
|
||||||
<p><?=$view['content'];?></p>
|
<p><?=$view['content'];?></p>
|
||||||
|
<?//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우?>
|
||||||
|
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
|
||||||
|
|
||||||
<?//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우?>
|
<? if ($is_signature) { ?><p><?=$signature?></p><? } ?>
|
||||||
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
|
|
||||||
|
|
||||||
<? if ($is_signature) { ?><p><?=$signature?></p><? } ?>
|
<? if ($scrap_href || $trackback_url || $good_href || $nogood_href) { ?>
|
||||||
|
<ul>
|
||||||
|
<? if ($scrap_href) { ?><li><a href="javascript:;" onclick="win_scrap('$scrap_href');">스크랩</a></li><? } ?>
|
||||||
|
<? if ($trackback_url) { ?><li><a href="javascript:trackback_send_server('<?=$trackback_url?>');">트랙백주소</a></li><?}?>
|
||||||
|
<? if ($good_href) {?><li>추천 <?=number_format($view['wr_good'])?> <a href="<?=$good_href?>" target="hiddenframe">추천</a></li><? } ?>
|
||||||
|
<? if ($nogood_href) {?><li>비추천 <?=number_format($view['wr_nogood'])?> <a href="<?=$nogood_href?>" target="hiddenframe">비추천</a></li><? } ?>
|
||||||
|
</ul>
|
||||||
|
<? } ?>
|
||||||
|
|
||||||
<? if ($scrap_href) { ?><a href="javascript:;" onclick="win_scrap('$scrap_href');">스크랩</a><? } ?>
|
</section>
|
||||||
|
|
||||||
<? if ($trackback_url) { ?><a href="javascript:trackback_send_server('<?=$trackback_url?>');">트랙백주소</a><?}?>
|
|
||||||
|
|
||||||
<? if ($good_href) {?>
|
|
||||||
<div>
|
|
||||||
<div>추천 <?=number_format($view['wr_good'])?></div>
|
|
||||||
<div><a href="<?=$good_href?>" target="hiddenframe">추천</a></div>
|
|
||||||
</div>
|
|
||||||
<? } ?>
|
|
||||||
|
|
||||||
<? if ($nogood_href) {?>
|
|
||||||
<div>
|
|
||||||
<div>비추천 <?=number_format($view['wr_nogood'])?></div>
|
|
||||||
<div><a href="<?=$nogood_href?>" target="hiddenframe">비추천</a></div>
|
|
||||||
</div>
|
|
||||||
<? } ?>
|
|
||||||
|
|
||||||
<?
|
<?
|
||||||
// 코멘트 입출력
|
// 코멘트 입출력
|
||||||
@ -152,15 +148,15 @@ ob_end_flush();
|
|||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<div>
|
<ul>
|
||||||
<? if ($prev_href) { ?><a href="<?=$prev_href?>">이전</a><? } ?>
|
<? if ($prev_href) { ?><li><a href="<?=$prev_href?>">이전</a></li><? } ?>
|
||||||
<? if ($next_href) { ?><a href="<?=$next_href?>">다음</a><? } ?>
|
<? if ($next_href) { ?><li><a href="<?=$next_href?>">다음</a></li><? } ?>
|
||||||
</div>
|
</ul>
|
||||||
|
|
||||||
<!-- 링크 버튼 -->
|
<!-- 링크 버튼 -->
|
||||||
<div>
|
<ul>
|
||||||
<?=$link_buttons?>
|
<?=$link_buttons?>
|
||||||
</div>
|
</ul>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function file_download(link, file) {
|
function file_download(link, file) {
|
||||||
@ -170,9 +166,8 @@ function file_download(link, file) {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script src="<?=$g4['path']?>/js/board.js"></script>
|
<script src="<?=$g4['path']?>/js/board.js"></script>
|
||||||
<script>
|
|
||||||
window.onload=function() {
|
|
||||||
resizeBoardImage(<?=(int)$board['bo_image_width']?>);
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<!-- 게시글 보기 끝 -->
|
<!-- 게시글 보기 끝 -->
|
||||||
|
|
||||||
|
<script>
|
||||||
|
//이미지등비율리사이즈 스크립트 추가 요망ㅎ
|
||||||
|
</script>
|
||||||
@ -38,11 +38,13 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
|
|||||||
<dt>작성일</dt>
|
<dt>작성일</dt>
|
||||||
<dd><time datetime="<?=date('Y-m-d\TH:i:s+09:00', strtotime($list[$i]['datetime']))?>"><?=$list[$i]['datetime']?></time></dd>
|
<dd><time datetime="<?=date('Y-m-d\TH:i:s+09:00', strtotime($list[$i]['datetime']))?>"><?=$list[$i]['datetime']?></time></dd>
|
||||||
</dl>
|
</dl>
|
||||||
<div>
|
<? if($list[$i]['is_reply'] || $list[$i]['is_edit'] || $list[$i]['is_del']) { ?>
|
||||||
<? if ($list[$i]['is_reply']) { ?><a href="javascript:comment_box('<?=$comment_id?>', 'c');">답변</a><? } ?>
|
<ul>
|
||||||
<? if ($list[$i]['is_edit']) { ?><a href="javascript:comment_box('<?=$comment_id?>', 'cu');">수정</a><? } ?>
|
<? if ($list[$i]['is_reply']) { ?><li><a href="javascript:comment_box('<?=$comment_id?>', 'c');">답변</a></li><? } ?>
|
||||||
<? if ($list[$i]['is_del']) { ?><a href="javascript:comment_delete('<?=$list[$i]['del_link']?>');">삭제</a><? } ?>
|
<? if ($list[$i]['is_edit']) { ?><li><a href="javascript:comment_box('<?=$comment_id?>', 'cu');">수정</a></li><? } ?>
|
||||||
</div>
|
<? if ($list[$i]['is_del']) { ?><li><a href="javascript:comment_delete('<?=$list[$i]['del_link']?>');">삭제</a></li><? } ?>
|
||||||
|
</ul>
|
||||||
|
<? } ?>
|
||||||
</header>
|
</header>
|
||||||
<!-- 댓글 출력 -->
|
<!-- 댓글 출력 -->
|
||||||
<p><?=$str?></p>
|
<p><?=$str?></p>
|
||||||
|
|||||||
@ -341,8 +341,8 @@ function fwrite_submit(f)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
document.getElementById('btn_submit').disabled = true;
|
//document.getElementById('btn_submit').disabled = true;
|
||||||
document.getElementById('btn_list').disabled = true;
|
//document.getElementById('btn_list').disabled = true;
|
||||||
|
|
||||||
<?
|
<?
|
||||||
if ($g4['https_url'])
|
if ($g4['https_url'])
|
||||||
|
|||||||
Reference in New Issue
Block a user