사용자단 따옴표 수정
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
@ -14,12 +14,12 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
|
||||
<div id="commentContents">
|
||||
<?
|
||||
for ($i=0; $i<count($list); $i++) {
|
||||
$comment_id = $list[$i][wr_id];
|
||||
$comment_id = $list[$i]['wr_id'];
|
||||
?>
|
||||
<a name="c_<?=$comment_id?>"></a>
|
||||
<table width=100% cellpadding=0 cellspacing=0 border=0>
|
||||
<tr>
|
||||
<td><? for ($k=0; $k<strlen($list[$i][wr_comment_reply]); $k++) echo " "; ?></td>
|
||||
<td><? for ($k=0; $k<strlen($list[$i]['wr_comment_reply']); $k++) echo " "; ?></td>
|
||||
<td width='100%'>
|
||||
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=100%>
|
||||
@ -33,14 +33,14 @@ for ($i=0; $i<count($list); $i++) {
|
||||
<td valign=top>
|
||||
<div style="height:28px; background:url(<?=$board_skin_path?>/img/co_title_bg.gif); clear:both; line-height:28px;">
|
||||
<div style="float:left; margin:2px 0 0 2px;">
|
||||
<strong><?=$list[$i][name]?></strong>
|
||||
<span style="color:#888888; font-size:11px;"><?=$list[$i][datetime]?></span>
|
||||
<strong><?=$list[$i]['name']?></strong>
|
||||
<span style="color:#888888; font-size:11px;"><?=$list[$i]['datetime']?></span>
|
||||
</div>
|
||||
<div style="float:right; margin-top:5px;">
|
||||
<? if ($is_ip_view) { echo " <span style=\"color:#B2B2B2; font-size:11px;\">{$list[$i][ip]}</span>"; } ?>
|
||||
<? if ($list[$i][is_reply]) { echo "<a href=\"javascript:comment_box('{$comment_id}', 'c');\"><img src='$board_skin_path/img/co_btn_reply.gif' border=0 align=absmiddle alt='답변'></a> "; } ?>
|
||||
<? if ($list[$i][is_edit]) { echo "<a href=\"javascript:comment_box('{$comment_id}', 'cu');\"><img src='$board_skin_path/img/co_btn_modify.gif' border=0 align=absmiddle alt='수정'></a> "; } ?>
|
||||
<? if ($list[$i][is_del]) { echo "<a href=\"javascript:comment_delete('{$list[$i][del_link]}');\"><img src='$board_skin_path/img/co_btn_delete.gif' border=0 align=absmiddle alt='삭제'></a> "; } ?>
|
||||
<? if ($is_ip_view) { echo " <span style=\"color:#B2B2B2; font-size:11px;\">{$list[$i]['ip']}</span>"; } ?>
|
||||
<? if ($list[$i]['is_reply']) { echo "<a href=\"javascript:comment_box('{$comment_id}', 'c');\"><img src='$board_skin_path/img/co_btn_reply.gif' border=0 align=absmiddle alt='답변'></a> "; } ?>
|
||||
<? if ($list[$i]['is_edit']) { echo "<a href=\"javascript:comment_box('{$comment_id}', 'cu');\"><img src='$board_skin_path/img/co_btn_modify.gif' border=0 align=absmiddle alt='수정'></a> "; } ?>
|
||||
<? if ($list[$i]['is_del']) { echo "<a href=\"javascript:comment_delete('{$list[$i]['del_link']}');\"><img src='$board_skin_path/img/co_btn_delete.gif' border=0 align=absmiddle alt='삭제'></a> "; } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@ -48,9 +48,9 @@ for ($i=0; $i<count($list); $i++) {
|
||||
<!-- 코멘트 출력 -->
|
||||
<div style='line-height:20px; padding:7px; word-break:break-all; overflow:hidden; clear:both; '>
|
||||
<?
|
||||
if (strstr($list[$i][wr_option], "secret")) echo "<span style='color:#ff6600;'>*</span> ";
|
||||
$str = $list[$i][content];
|
||||
if (strstr($list[$i][wr_option], "secret"))
|
||||
if (strstr($list[$i]['wr_option'], "secret")) echo "<span style='color:#ff6600;'>*</span> ";
|
||||
$str = $list[$i]['content'];
|
||||
if (strstr($list[$i]['wr_option'], "secret"))
|
||||
$str = "<span class='small' style='color:#ff6600;'>$str</span>";
|
||||
|
||||
$str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp|mms)\:\/\/([^[:space:]]+)\.(mp3|wma|wmv|asf|asx|mpg|mpeg)\".*\<\/a\>\]/i", "<script>doc_write(obj_movie('$1://$2.$3'));</script>", $str);
|
||||
@ -60,12 +60,12 @@ for ($i=0; $i<count($list); $i++) {
|
||||
echo $str;
|
||||
?>
|
||||
</div>
|
||||
<? if ($list[$i][trackback]) { echo "<p>".$list[$i][trackback]."</p>"; } ?>
|
||||
<? if ($list[$i]['trackback']) { echo "<p>".$list[$i]['trackback']."</p>"; } ?>
|
||||
<span id='edit_<?=$comment_id?>' style='display:none;'></span><!-- 수정 -->
|
||||
<span id='reply_<?=$comment_id?>' style='display:none;'></span><!-- 답변 -->
|
||||
</div>
|
||||
<input type=hidden id='secret_comment_<?=$comment_id?>' value="<?=strstr($list[$i][wr_option],"secret")?>">
|
||||
<textarea id='save_comment_<?=$comment_id?>' style='display:none;'><?=get_text($list[$i][content1], 0)?></textarea></td>
|
||||
<input type=hidden id='secret_comment_<?=$comment_id?>' value="<?=strstr($list[$i]['wr_option'],"secret")?>">
|
||||
<textarea id='save_comment_<?=$comment_id?>' style='display:none;'><?=get_text($list[$i]['content1'], 0)?></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=5 colspan=3></td>
|
||||
@ -129,7 +129,7 @@ for ($i=0; $i<count($list); $i++) {
|
||||
</td></tr></table>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="<?="$g4[path]/js/jquery.kcaptcha.js"?>"></script>
|
||||
<script type="text/javascript" src="<?=$g4['path']?>/js/jquery.kcaptcha.js"></script>
|
||||
<script type="text/javascript">
|
||||
var save_before = '';
|
||||
var save_html = document.getElementById('comment_write').innerHTML;
|
||||
|
||||
Reference in New Issue
Block a user