사용자단 따옴표 수정
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
<?
|
<?
|
||||||
$g4_path = "../../.."; // common.php 의 상대 경로
|
$g4_path = '../../..'; // common.php 의 상대 경로
|
||||||
include_once("$g4_path/common.php");
|
include_once($g4_path.'/common.php');
|
||||||
?>
|
?>
|
||||||
@ -1,5 +1,5 @@
|
|||||||
<?
|
<?
|
||||||
include_once("./_common.php");
|
include_once('./_common.php');
|
||||||
|
|
||||||
if (!function_exists('convert_charset'))
|
if (!function_exists('convert_charset'))
|
||||||
{
|
{
|
||||||
@ -23,13 +23,13 @@ if (!function_exists('convert_charset'))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
header("Content-Type: text/html; charset=$g4[charset]");
|
header("Content-Type: text/html; charset={$g4['charset']}");
|
||||||
|
|
||||||
$subject = strtolower($_POST['subject']);
|
$subject = strtolower($_POST['subject']);
|
||||||
$content = strtolower(strip_tags($_POST['content']));
|
$content = strtolower(strip_tags($_POST['content']));
|
||||||
|
|
||||||
//euc-kr 일 경우 $config['cf_filter'] 를 utf-8로 변환한다.
|
//euc-kr 일 경우 $config['cf_filter'] 를 utf-8로 변환한다.
|
||||||
if (strtolower($g4[charset]) == 'euc-kr')
|
if (strtolower($g4['charset']) == 'euc-kr')
|
||||||
{
|
{
|
||||||
//$subject = convert_charset('utf-8', 'cp949', $subject);
|
//$subject = convert_charset('utf-8', 'cp949', $subject);
|
||||||
//$content = convert_charset('utf-8', 'cp949', $content);
|
//$content = convert_charset('utf-8', 'cp949', $content);
|
||||||
@ -48,7 +48,7 @@ for ($i=0; $i<count($filter); $i++)
|
|||||||
$pos = strpos($subject, $str);
|
$pos = strpos($subject, $str);
|
||||||
if ($pos !== false)
|
if ($pos !== false)
|
||||||
{
|
{
|
||||||
if (strtolower($g4[charset]) == 'euc-kr')
|
if (strtolower($g4['charset']) == 'euc-kr')
|
||||||
$subj = convert_charset('utf-8', 'cp949', $str);//cp949 로 변환해서 반환
|
$subj = convert_charset('utf-8', 'cp949', $str);//cp949 로 변환해서 반환
|
||||||
else
|
else
|
||||||
$subj = $str;
|
$subj = $str;
|
||||||
@ -60,7 +60,7 @@ for ($i=0; $i<count($filter); $i++)
|
|||||||
$pos = strpos($content, $str);
|
$pos = strpos($content, $str);
|
||||||
if ($pos !== false)
|
if ($pos !== false)
|
||||||
{
|
{
|
||||||
if (strtolower($g4[charset]) == 'euc-kr')
|
if (strtolower($g4['charset']) == 'euc-kr')
|
||||||
$cont = convert_charset('utf-8', 'cp949', $str);//cp949 로 변환해서 반환
|
$cont = convert_charset('utf-8', 'cp949', $str);//cp949 로 변환해서 반환
|
||||||
else
|
else
|
||||||
$cont = $str;
|
$cont = $str;
|
||||||
|
|||||||
@ -57,7 +57,7 @@ if ($is_nogood) $colspan++;
|
|||||||
<div style="float:left;">
|
<div style="float:left;">
|
||||||
<form name="fcategory" method="get" style="margin:0px;">
|
<form name="fcategory" method="get" style="margin:0px;">
|
||||||
<? if ($is_category) { ?>
|
<? if ($is_category) { ?>
|
||||||
<select name=sca onchange="location='<?=$category_location?>'+<?=strtolower($g4[charset])=='utf-8' ? "encodeURIComponent(this.value)" : "this.value"?>;">
|
<select name=sca onchange="location='<?=$category_location?>'+<?=strtolower($g4['charset'])=='utf-8' ? "encodeURIComponent(this.value)" : "this.value"?>;">
|
||||||
<option value=''>전체</option>
|
<option value=''>전체</option>
|
||||||
<?=$category_option?>
|
<?=$category_option?>
|
||||||
</select>
|
</select>
|
||||||
@ -109,48 +109,48 @@ if ($is_nogood) $colspan++;
|
|||||||
<tr class="bg<?=$bg?>">
|
<tr class="bg<?=$bg?>">
|
||||||
<td class="num">
|
<td class="num">
|
||||||
<?
|
<?
|
||||||
if ($list[$i][is_notice]) // 공지사항
|
if ($list[$i]['is_notice']) // 공지사항
|
||||||
echo "<b>공지</b>";
|
echo "<b>공지</b>";
|
||||||
else if ($wr_id == $list[$i][wr_id]) // 현재위치
|
else if ($wr_id == $list[$i]['wr_id']) // 현재위치
|
||||||
echo "<span class='current'>{$list[$i][num]}</span>";
|
echo "<span class='current'>{$list[$i]['num']}</span>";
|
||||||
else
|
else
|
||||||
echo $list[$i][num];
|
echo $list[$i]['num'];
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
<? if ($is_checkbox) { ?><td class="checkbox"><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"></td><? } ?>
|
<? if ($is_checkbox) { ?><td class="checkbox"><input type=checkbox name=chk_wr_id[] value="<?=$list[$i]['wr_id']?>"></td><? } ?>
|
||||||
<td class="subject">
|
<td class="subject">
|
||||||
<?
|
<?
|
||||||
echo $nobr_begin;
|
echo $nobr_begin;
|
||||||
echo $list[$i][reply];
|
echo $list[$i]['reply'];
|
||||||
echo $list[$i][icon_reply];
|
echo $list[$i]['icon_reply'];
|
||||||
if ($is_category && $list[$i][ca_name]) {
|
if ($is_category && $list[$i]['ca_name']) {
|
||||||
echo "<span class=small><font color=gray>[<a href='{$list[$i][ca_name_href]}'>{$list[$i][ca_name]}</a>]</font></span> ";
|
echo "<span class=small><font color=gray>[<a href='{$list[$i]['ca_name_href']}'>{$list[$i]['ca_name']}</a>]</font></span> ";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($list[$i][is_notice])
|
if ($list[$i]['is_notice'])
|
||||||
echo "<a href='{$list[$i][href]}'><span class='notice'>{$list[$i][subject]}</span></a>";
|
echo "<a href='{$list[$i]['href']}'><span class='notice'>{$list[$i]['subject']}</span></a>";
|
||||||
else
|
else
|
||||||
echo "<a href='{$list[$i][href]}'>{$list[$i][subject]}</a>";
|
echo "<a href='{$list[$i]['href']}'>{$list[$i]['subject']}</a>";
|
||||||
|
|
||||||
if ($list[$i][comment_cnt])
|
if ($list[$i]['comment_cnt'])
|
||||||
echo " <a href=\"{$list[$i][comment_href]}\"><span class='comment'>{$list[$i][comment_cnt]}</span></a>";
|
echo " <a href=\"{$list[$i]['comment_href']}\"><span class='comment'>{$list[$i]['comment_cnt']}</span></a>";
|
||||||
|
|
||||||
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
|
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
|
||||||
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
|
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
|
||||||
|
|
||||||
echo " " . $list[$i][icon_new];
|
echo " " . $list[$i]['icon_new'];
|
||||||
echo " " . $list[$i][icon_file];
|
echo " " . $list[$i]['icon_file'];
|
||||||
echo " " . $list[$i][icon_link];
|
echo " " . $list[$i]['icon_link'];
|
||||||
echo " " . $list[$i][icon_hot];
|
echo " " . $list[$i]['icon_hot'];
|
||||||
echo " " . $list[$i][icon_secret];
|
echo " " . $list[$i]['icon_secret'];
|
||||||
echo $nobr_end;
|
echo $nobr_end;
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
<td class="name"><?=$list[$i][name]?></td>
|
<td class="name"><?=$list[$i]['name']?></td>
|
||||||
<td class="datetime"><?=$list[$i][datetime2]?></td>
|
<td class="datetime"><?=$list[$i]['datetime2']?></td>
|
||||||
<td class="hit"><?=$list[$i][wr_hit]?></td>
|
<td class="hit"><?=$list[$i]['wr_hit']?></td>
|
||||||
<? if ($is_good) { ?><td class="good"><?=$list[$i][wr_good]?></td><? } ?>
|
<? if ($is_good) { ?><td class="good"><?=$list[$i]['wr_good']?></td><? } ?>
|
||||||
<? if ($is_nogood) { ?><td class="nogood"><?=$list[$i][wr_nogood]?></td><? } ?>
|
<? if ($is_nogood) { ?><td class="nogood"><?=$list[$i]['wr_nogood']?></td><? } ?>
|
||||||
</tr>
|
</tr>
|
||||||
<? } // end for ?>
|
<? } // end for ?>
|
||||||
|
|
||||||
|
|||||||
@ -10,7 +10,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
|||||||
<div style="clear:both; height:30px;">
|
<div style="clear:both; height:30px;">
|
||||||
<div style="float:left; margin-top:6px;">
|
<div style="float:left; margin-top:6px;">
|
||||||
<img src="<?=$board_skin_path?>/img/icon_date.gif" align=absmiddle border='0'>
|
<img src="<?=$board_skin_path?>/img/icon_date.gif" align=absmiddle border='0'>
|
||||||
<span style="color:#888888;">작성일 : <?=date("y-m-d H:i", strtotime($view[wr_datetime]))?></span>
|
<span style="color:#888888;">작성일 : <?=date("y-m-d H:i", strtotime($view['wr_datetime']))?></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 링크 버튼 -->
|
<!-- 링크 버튼 -->
|
||||||
@ -39,8 +39,8 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
|||||||
<tr>
|
<tr>
|
||||||
<td style="padding:8px 0 0 10px;">
|
<td style="padding:8px 0 0 10px;">
|
||||||
<div style="color:#505050; font-size:13px; font-weight:bold; word-break:break-all;">
|
<div style="color:#505050; font-size:13px; font-weight:bold; word-break:break-all;">
|
||||||
<? if ($is_category) { echo ($category_name ? "[$view[ca_name]] " : ""); } ?>
|
<? if ($is_category) { echo ($category_name ? "[{$view['ca_name']}] " : ""); } ?>
|
||||||
<?=cut_hangul_last(get_text($view[wr_subject]))?>
|
<?=cut_hangul_last(get_text($view['wr_subject']))?>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td align="right" style="padding:6px 6px 0 0;" width=120>
|
<td align="right" style="padding:6px 6px 0 0;" width=120>
|
||||||
@ -61,9 +61,9 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
|||||||
<?=$view[name]?><? if ($is_ip_view) { echo " ($ip)"; } ?>
|
<?=$view[name]?><? if ($is_ip_view) { echo " ($ip)"; } ?>
|
||||||
</div>
|
</div>
|
||||||
<div style="float:right;">
|
<div style="float:right;">
|
||||||
<img src="<?=$board_skin_path?>/img/icon_view.gif" border='0' align=absmiddle> 조회 : <?=number_format($view[wr_hit])?>
|
<img src="<?=$board_skin_path?>/img/icon_view.gif" border='0' align=absmiddle> 조회 : <?=number_format($view['wr_hit'])?>
|
||||||
<? if ($is_good) { ?> <img src="<?=$board_skin_path?>/img/icon_good.gif" border='0' align=absmiddle> 추천 : <?=number_format($view[wr_good])?><? } ?>
|
<? if ($is_good) { ?> <img src="<?=$board_skin_path?>/img/icon_good.gif" border='0' align=absmiddle> 추천 : <?=number_format($view['wr_good'])?><? } ?>
|
||||||
<? if ($is_nogood) { ?> <img src="<?=$board_skin_path?>/img/icon_nogood.gif" border='0' align=absmiddle> 비추천 : <?=number_format($view[wr_nogood])?><? } ?>
|
<? if ($is_nogood) { ?> <img src="<?=$board_skin_path?>/img/icon_nogood.gif" border='0' align=absmiddle> 비추천 : <?=number_format($view['wr_nogood'])?><? } ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
@ -72,30 +72,30 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
|||||||
<?
|
<?
|
||||||
// 가변 파일
|
// 가변 파일
|
||||||
$cnt = 0;
|
$cnt = 0;
|
||||||
for ($i=0; $i<count($view[file]); $i++) {
|
for ($i=0; $i<count($view['file']); $i++) {
|
||||||
if ($view[file][$i][source] && !$view[file][$i][view]) {
|
if ($view['file'][$i]['source'] && !$view['file'][$i]['view']) {
|
||||||
$cnt++;
|
$cnt++;
|
||||||
echo "<tr><td height=30 background=\"$board_skin_path/img/view_dot.gif\">";
|
echo "<tr><td height=30 background=\"$board_skin_path/img/view_dot.gif\">";
|
||||||
echo " <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle border='0'>";
|
echo " <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle border='0'>";
|
||||||
echo "<a href=\"javascript:file_download('{$view[file][$i][href]}', '".urlencode($view[file][$i][source])."');\" title='{$view[file][$i][content]}'>";
|
echo "<a href=\"javascript:file_download('{$view['file'][$i]['href']}', '".urlencode($view['file'][$i]['source'])."');\" title='{$view['file'][$i]['content']}'>";
|
||||||
echo " <span style=\"color:#888;\">{$view[file][$i][source]} ({$view[file][$i][size]})</span>";
|
echo " <span style=\"color:#888;\">{$view['file'][$i]['source']} ({$view['file'][$i]['size']})</span>";
|
||||||
echo " <span style=\"color:#ff6600; font-size:11px;\">[{$view[file][$i][download]}]</span>";
|
echo " <span style=\"color:#ff6600; font-size:11px;\">[{$view['file'][$i]['download']}]</span>";
|
||||||
echo " <span style=\"color:#d3d3d3; font-size:11px;\">DATE : {$view[file][$i][datetime]}</span>";
|
echo " <span style=\"color:#d3d3d3; font-size:11px;\">DATE : {$view['file'][$i]['datetime']}</span>";
|
||||||
echo "</a></td></tr>";
|
echo "</a></td></tr>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 링크
|
// 링크
|
||||||
$cnt = 0;
|
$cnt = 0;
|
||||||
for ($i=1; $i<=$g4[link_count]; $i++) {
|
for ($i=1; $i<=$g4['link_count']; $i++) {
|
||||||
if ($view[link][$i]) {
|
if ($view['link'][$i]) {
|
||||||
$cnt++;
|
$cnt++;
|
||||||
$link = cut_str($view[link][$i], 70);
|
$link = cut_str($view['link'][$i], 70);
|
||||||
echo "<tr><td height=30 background=\"$board_skin_path/img/view_dot.gif\">";
|
echo "<tr><td height=30 background=\"$board_skin_path/img/view_dot.gif\">";
|
||||||
echo " <img src='{$board_skin_path}/img/icon_link.gif' align=absmiddle border='0'>";
|
echo " <img src='{$board_skin_path}/img/icon_link.gif' align=absmiddle border='0'>";
|
||||||
echo "<a href='{$view[link_href][$i]}' target=_blank>";
|
echo "<a href='{$view['link_href'][$i]}' target=_blank>";
|
||||||
echo " <span style=\"color:#888;\">{$link}</span>";
|
echo " <span style=\"color:#888;\">{$link}</span>";
|
||||||
echo " <span style=\"color:#ff6600; font-size:11px;\">[{$view[link_hit][$i]}]</span>";
|
echo " <span style=\"color:#ff6600; font-size:11px;\">[{$view['link_hit'][$i]}]</span>";
|
||||||
echo "</a></td></tr>";
|
echo "</a></td></tr>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -104,28 +104,28 @@ for ($i=1; $i<=$g4[link_count]; $i++) {
|
|||||||
<td height="150" style="word-break:break-all; padding:10px;">
|
<td height="150" style="word-break:break-all; padding:10px;">
|
||||||
<?
|
<?
|
||||||
// 파일 출력
|
// 파일 출력
|
||||||
for ($i=0; $i<=count($view[file]); $i++) {
|
for ($i=0; $i<=count($view['file']); $i++) {
|
||||||
if ($view[file][$i][view])
|
if ($view['file'][$i]['view'])
|
||||||
echo $view[file][$i][view] . "<p>";
|
echo $view['file'][$i]['view'] . "<p>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- 내용 출력 -->
|
<!-- 내용 출력 -->
|
||||||
<span id="writeContents"><?=$view[content];?></span>
|
<span id="writeContents"><?=$view['content'];?></span>
|
||||||
|
|
||||||
<?//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우?>
|
<?//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우?>
|
||||||
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
|
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
|
||||||
|
|
||||||
<? if ($nogood_href) {?>
|
<? if ($nogood_href) {?>
|
||||||
<div style="width:72px; height:55px; background:url(<?=$board_skin_path?>/img/good_bg.gif) no-repeat; text-align:center; float:right;">
|
<div style="width:72px; height:55px; background:url(<?=$board_skin_path?>/img/good_bg.gif) no-repeat; text-align:center; float:right;">
|
||||||
<div style="color:#888; margin:7px 0 5px 0;">비추천 : <?=number_format($view[wr_nogood])?></div>
|
<div style="color:#888; margin:7px 0 5px 0;">비추천 : <?=number_format($view['wr_nogood'])?></div>
|
||||||
<div><a href="<?=$nogood_href?>" target="hiddenframe"><img src="<?=$board_skin_path?>/img/icon_nogood.gif" border='0' align="absmiddle"></a></div>
|
<div><a href="<?=$nogood_href?>" target="hiddenframe"><img src="<?=$board_skin_path?>/img/icon_nogood.gif" border='0' align="absmiddle"></a></div>
|
||||||
</div>
|
</div>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
|
|
||||||
<? if ($good_href) {?>
|
<? if ($good_href) {?>
|
||||||
<div style="width:72px; height:55px; background:url(<?=$board_skin_path?>/img/good_bg.gif) no-repeat; text-align:center; float:right;">
|
<div style="width:72px; height:55px; background:url(<?=$board_skin_path?>/img/good_bg.gif) no-repeat; text-align:center; float:right;">
|
||||||
<div style="color:#888; margin:7px 0 5px 0;"><span style='color:crimson;'>추천 : <?=number_format($view[wr_good])?></span></div>
|
<div style="color:#888; margin:7px 0 5px 0;"><span style='color:crimson;'>추천 : <?=number_format($view['wr_good'])?></span></div>
|
||||||
<div><a href="<?=$good_href?>" target="hiddenframe"><img src="<?=$board_skin_path?>/img/icon_good.gif" border='0' align="absmiddle"></a></div>
|
<div><a href="<?=$good_href?>" target="hiddenframe"><img src="<?=$board_skin_path?>/img/icon_good.gif" border='0' align="absmiddle"></a></div>
|
||||||
</div>
|
</div>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
@ -138,7 +138,7 @@ for ($i=1; $i<=$g4[link_count]; $i++) {
|
|||||||
|
|
||||||
<?
|
<?
|
||||||
// 코멘트 입출력
|
// 코멘트 입출력
|
||||||
include_once("./view_comment.php");
|
include_once('./view_comment.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div style="height:1px; line-height:1px; font-size:1px; background-color:#ddd; clear:both;"> </div>
|
<div style="height:1px; line-height:1px; font-size:1px; background-color:#ddd; clear:both;"> </div>
|
||||||
@ -161,15 +161,15 @@ include_once("./view_comment.php");
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function file_download(link, file) {
|
function file_download(link, file) {
|
||||||
<? if ($board[bo_download_point] < 0) { ?>if (confirm("'"+decodeURIComponent(file)+"' 파일을 다운로드 하시면 포인트가 차감(<?=number_format($board[bo_download_point])?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?"))<?}?>
|
<? if ($board['bo_download_point'] < 0) { ?>if (confirm("'"+decodeURIComponent(file)+"' 파일을 다운로드 하시면 포인트가 차감(<?=number_format($board['bo_download_point'])?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?"))<?}?>
|
||||||
document.location.href=link;
|
document.location.href=link;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/javascript" src="<?="$g4[path]/js/board.js"?>"></script>
|
<script type="text/javascript" src="<?=$g4['path']?>/js/board.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.onload=function() {
|
window.onload=function() {
|
||||||
resizeBoardImage(<?=(int)$board[bo_image_width]?>);
|
resizeBoardImage(<?=(int)$board['bo_image_width']?>);
|
||||||
drawFont();
|
drawFont();
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?
|
<?
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
@ -14,12 +14,12 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
|
|||||||
<div id="commentContents">
|
<div id="commentContents">
|
||||||
<?
|
<?
|
||||||
for ($i=0; $i<count($list); $i++) {
|
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>
|
<a name="c_<?=$comment_id?>"></a>
|
||||||
<table width=100% cellpadding=0 cellspacing=0 border=0>
|
<table width=100% cellpadding=0 cellspacing=0 border=0>
|
||||||
<tr>
|
<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%'>
|
<td width='100%'>
|
||||||
|
|
||||||
<table border=0 cellpadding=0 cellspacing=0 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>
|
<td valign=top>
|
||||||
<div style="height:28px; background:url(<?=$board_skin_path?>/img/co_title_bg.gif); clear:both; line-height:28px;">
|
<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;">
|
<div style="float:left; margin:2px 0 0 2px;">
|
||||||
<strong><?=$list[$i][name]?></strong>
|
<strong><?=$list[$i]['name']?></strong>
|
||||||
<span style="color:#888888; font-size:11px;"><?=$list[$i][datetime]?></span>
|
<span style="color:#888888; font-size:11px;"><?=$list[$i]['datetime']?></span>
|
||||||
</div>
|
</div>
|
||||||
<div style="float:right; margin-top:5px;">
|
<div style="float:right; margin-top:5px;">
|
||||||
<? if ($is_ip_view) { echo " <span style=\"color:#B2B2B2; font-size:11px;\">{$list[$i][ip]}</span>"; } ?>
|
<? 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_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_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 ($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>
|
||||||
</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; '>
|
<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> ";
|
if (strstr($list[$i]['wr_option'], "secret")) echo "<span style='color:#ff6600;'>*</span> ";
|
||||||
$str = $list[$i][content];
|
$str = $list[$i]['content'];
|
||||||
if (strstr($list[$i][wr_option], "secret"))
|
if (strstr($list[$i]['wr_option'], "secret"))
|
||||||
$str = "<span class='small' style='color:#ff6600;'>$str</span>";
|
$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);
|
$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;
|
echo $str;
|
||||||
?>
|
?>
|
||||||
</div>
|
</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='edit_<?=$comment_id?>' style='display:none;'></span><!-- 수정 -->
|
||||||
<span id='reply_<?=$comment_id?>' style='display:none;'></span><!-- 답변 -->
|
<span id='reply_<?=$comment_id?>' style='display:none;'></span><!-- 답변 -->
|
||||||
</div>
|
</div>
|
||||||
<input type=hidden id='secret_comment_<?=$comment_id?>' value="<?=strstr($list[$i][wr_option],"secret")?>">
|
<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>
|
<textarea id='save_comment_<?=$comment_id?>' style='display:none;'><?=get_text($list[$i]['content1'], 0)?></textarea></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td height=5 colspan=3></td>
|
<td height=5 colspan=3></td>
|
||||||
@ -129,7 +129,7 @@ for ($i=0; $i<count($list); $i++) {
|
|||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
</div>
|
</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">
|
<script type="text/javascript">
|
||||||
var save_before = '';
|
var save_before = '';
|
||||||
var save_html = document.getElementById('comment_write').innerHTML;
|
var save_html = document.getElementById('comment_write').innerHTML;
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
<?
|
<?
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
if ($is_dhtml_editor) {
|
if ($is_dhtml_editor) {
|
||||||
include_once("$g4[path]/lib/cheditor4.lib.php");
|
include_once($g4['path'].'/lib/cheditor4.lib.php');
|
||||||
echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
|
echo "<script src='{$g4['cheditor4_path']}/cheditor.js'></script>";
|
||||||
echo cheditor1('wr_content', '100%', '250');
|
echo cheditor1('wr_content', '100%', '250');
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@ -76,32 +76,32 @@ var char_max = parseInt(<?=$write_max?>); // 최대
|
|||||||
<? } ?>
|
<? } ?>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
$option = "";
|
$option = '';
|
||||||
$option_hidden = "";
|
$option_hidden = '';
|
||||||
if ($is_notice || $is_html || $is_secret || $is_mail) {
|
if ($is_notice || $is_html || $is_secret || $is_mail) {
|
||||||
$option = "";
|
$option = '';
|
||||||
if ($is_notice) {
|
if ($is_notice) {
|
||||||
$option .= "<input type=checkbox name=notice value='1' $notice_checked>공지 ";
|
$option .= '<input type=checkbox name=notice value="1" '.$notice_checked.'>공지 ';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($is_html) {
|
if ($is_html) {
|
||||||
if ($is_dhtml_editor) {
|
if ($is_dhtml_editor) {
|
||||||
$option_hidden .= "<input type=hidden value='html1' name='html'>";
|
$option_hidden .= '<input type=hidden value="html1" name="html">';
|
||||||
} else {
|
} else {
|
||||||
$option .= "<input onclick='html_auto_br(this);' type=checkbox value='$html_value' name='html' $html_checked><span class=w_title>html</span> ";
|
$option .= '<input onclick="html_auto_br(this);" type=checkbox value="'.$html_value.'" name="html" '.$html_checked.'><span class=w_title>html</span> ';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($is_secret) {
|
if ($is_secret) {
|
||||||
if ($is_admin || $is_secret==1) {
|
if ($is_admin || $is_secret==1) {
|
||||||
$option .= "<input type=checkbox value='secret' name='secret' $secret_checked><span class=w_title>비밀글</span> ";
|
$option .= '<input type=checkbox value="secret" name="secret" '.$secret_checked.'><span class=w_title>비밀글</span> ';
|
||||||
} else {
|
} else {
|
||||||
$option_hidden .= "<input type=hidden value='secret' name='secret'>";
|
$option_hidden .= '<input type=hidden value="secret" name="secret">';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($is_mail) {
|
if ($is_mail) {
|
||||||
$option .= "<input type=checkbox value='mail' name='mail' $recv_email_checked>답변메일받기 ";
|
$option .= '<input type=checkbox value="mail" name="mail" '.$recv_email_checked.'>답변메일받기 ';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,7 +148,7 @@ if ($option) {
|
|||||||
<tr><td colspan=2 height=1 bgcolor=#dddddd></td></tr>
|
<tr><td colspan=2 height=1 bgcolor=#dddddd></td></tr>
|
||||||
|
|
||||||
<? if ($is_link) { ?>
|
<? if ($is_link) { ?>
|
||||||
<? for ($i=1; $i<=$g4[link_count]; $i++) { ?>
|
<? for ($i=1; $i<=$g4['link_count']; $i++) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class=write_head>링크 #<?=$i?></td>
|
<td class=write_head>링크 #<?=$i?></td>
|
||||||
<td><input type='text' class='ed' size=50 name='wr_link<?=$i?>' itemname='링크 #<?=$i?>' value='<?=$write["wr_link{$i}"]?>'></td>
|
<td><input type='text' class='ed' size=50 name='wr_link<?=$i?>' itemname='링크 #<?=$i?>' value='<?=$write["wr_link{$i}"]?>'></td>
|
||||||
@ -175,7 +175,7 @@ if ($option) {
|
|||||||
var flen = 0;
|
var flen = 0;
|
||||||
function add_file(delete_code)
|
function add_file(delete_code)
|
||||||
{
|
{
|
||||||
var upload_count = <?=(int)$board[bo_upload_count]?>;
|
var upload_count = <?=(int)$board['bo_upload_count']?>;
|
||||||
if (upload_count && flen >= upload_count)
|
if (upload_count && flen >= upload_count)
|
||||||
{
|
{
|
||||||
alert("이 게시판은 "+upload_count+"개 까지만 파일 업로드가 가능합니다.");
|
alert("이 게시판은 "+upload_count+"개 까지만 파일 업로드가 가능합니다.");
|
||||||
@ -229,7 +229,7 @@ if ($option) {
|
|||||||
<tr>
|
<tr>
|
||||||
<td class=write_head>트랙백주소</td>
|
<td class=write_head>트랙백주소</td>
|
||||||
<td><input class='ed' size=50 name=wr_trackback itemname="트랙백" value="<?=$trackback?>">
|
<td><input class='ed' size=50 name=wr_trackback itemname="트랙백" value="<?=$trackback?>">
|
||||||
<? if ($w=="u") { ?><input type=checkbox name="re_trackback" value="1">핑 보냄<? } ?></td>
|
<? if ($w=='u') { ?><input type=checkbox name="re_trackback" value="1">핑 보냄<? } ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
|
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
@ -255,7 +255,7 @@ if ($option) {
|
|||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<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">
|
<script type="text/javascript">
|
||||||
<?
|
<?
|
||||||
// 관리자라면 분류 선택에 '공지' 옵션을 추가함
|
// 관리자라면 분류 선택에 '공지' 옵션을 추가함
|
||||||
@ -380,8 +380,8 @@ function fwrite_submit(f)
|
|||||||
document.getElementById('btn_list').disabled = true;
|
document.getElementById('btn_list').disabled = true;
|
||||||
|
|
||||||
<?
|
<?
|
||||||
if ($g4[https_url])
|
if ($g4['https_url'])
|
||||||
echo "f.action = '$g4[https_url]/$g4[bbs]/write_update.php';";
|
echo "f.action = '{$g4['https_url']}/{$g4['bbs']}/write_update.php';";
|
||||||
else
|
else
|
||||||
echo "f.action = './write_update.php';";
|
echo "f.action = './write_update.php';";
|
||||||
?>
|
?>
|
||||||
@ -390,5 +390,5 @@ function fwrite_submit(f)
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/javascript" src="<?="$g4[path]/js/board.js"?>"></script>
|
<script type="text/javascript" src="<?=$g4['path']?>/js/board.js"></script>
|
||||||
<script type="text/javascript"> window.onload=function() { drawFont(); } </script>
|
<script type="text/javascript"> window.onload=function() { drawFont(); } </script>
|
||||||
|
|||||||
Reference in New Issue
Block a user