모바일 테스트
@ -5,6 +5,8 @@ define('_GNUBOARD_', 1);
|
||||
if (function_exists("date_default_timezone_set"))
|
||||
date_default_timezone_set("Asia/Seoul");
|
||||
|
||||
define('_MOBILE_AGENT_', 'phone|samsung|lgtel|mobile|skt|nokia|blackberry|android|sony');
|
||||
|
||||
// 디렉토리
|
||||
$g4['bbs'] = 'bbs';
|
||||
$g4['bbs_path'] = $g4['path'].'/'.$g4['bbs'];
|
||||
|
||||
@ -1627,4 +1627,13 @@ function get_selected($field, $value, $first=false)
|
||||
$selected = ($field=="") ? ' selected="selected"' : '';
|
||||
return $selected;
|
||||
}
|
||||
|
||||
|
||||
//모바일 검사
|
||||
function is_mobile() {
|
||||
if ( preg_match('/('._MOBILE_AGENT_.')/i', $_SERVER['HTTP_USER_AGENT']) )
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
?>
|
||||
4
mobile/skin/board/basic/_common.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?
|
||||
$g4_path = '../../..'; // common.php 의 상대 경로
|
||||
include_once($g4_path.'/common.php');
|
||||
?>
|
||||
72
mobile/skin/board/basic/ajax.filter.php
Normal file
@ -0,0 +1,72 @@
|
||||
<?
|
||||
include_once('./_common.php');
|
||||
|
||||
if (!function_exists('convert_charset'))
|
||||
{
|
||||
/*
|
||||
-----------------------------------------------------------
|
||||
Charset 을 변환하는 함수
|
||||
-----------------------------------------------------------
|
||||
iconv 함수가 있으면 iconv 로 변환하고
|
||||
없으면 mb_convert_encoding 함수를 사용한다.
|
||||
둘다 없으면 사용할 수 없다.
|
||||
*/
|
||||
function convert_charset($from_charset, $to_charset, $str)
|
||||
{
|
||||
|
||||
if( function_exists('iconv') )
|
||||
return iconv($from_charset, $to_charset, $str);
|
||||
elseif( function_exists('mb_convert_encoding') )
|
||||
return mb_convert_encoding($str, $to_charset, $from_charset);
|
||||
else
|
||||
die("Not found 'iconv' or 'mbstring' library in server.");
|
||||
}
|
||||
}
|
||||
|
||||
header("Content-Type: text/html; charset={$g4['charset']}");
|
||||
|
||||
$subject = strtolower($_POST['subject']);
|
||||
$content = strtolower(strip_tags($_POST['content']));
|
||||
|
||||
//euc-kr 일 경우 $config['cf_filter'] 를 utf-8로 변환한다.
|
||||
if (strtolower($g4['charset']) == 'euc-kr')
|
||||
{
|
||||
//$subject = convert_charset('utf-8', 'cp949', $subject);
|
||||
//$content = convert_charset('utf-8', 'cp949', $content);
|
||||
$config['cf_filter'] = convert_charset('cp949', 'utf-8', $config['cf_filter']);
|
||||
}
|
||||
|
||||
//$filter = explode(",", strtolower(trim($config['cf_filter'])));
|
||||
// strtolower 에 의한 한글 변형으로 아래 코드로 대체 (곱슬최씨님이 알려 주셨습니다.)
|
||||
$filter = explode(",", trim($config['cf_filter']));
|
||||
for ($i=0; $i<count($filter); $i++)
|
||||
{
|
||||
$str = $filter[$i];
|
||||
|
||||
// 제목 필터링 (찾으면 중지)
|
||||
$subj = "";
|
||||
$pos = strpos($subject, $str);
|
||||
if ($pos !== false)
|
||||
{
|
||||
if (strtolower($g4['charset']) == 'euc-kr')
|
||||
$subj = convert_charset('utf-8', 'cp949', $str);//cp949 로 변환해서 반환
|
||||
else
|
||||
$subj = $str;
|
||||
break;
|
||||
}
|
||||
|
||||
// 내용 필터링 (찾으면 중지)
|
||||
$cont = "";
|
||||
$pos = strpos($content, $str);
|
||||
if ($pos !== false)
|
||||
{
|
||||
if (strtolower($g4['charset']) == 'euc-kr')
|
||||
$cont = convert_charset('utf-8', 'cp949', $str);//cp949 로 변환해서 반환
|
||||
else
|
||||
$cont = $str;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
die("{\"subject\":\"$subj\",\"content\":\"$cont\"}");
|
||||
?>
|
||||
BIN
mobile/skin/board/basic/img/btn_admin.gif
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
mobile/skin/board/basic/img/btn_close.gif
Normal file
|
After Width: | Height: | Size: 223 B |
BIN
mobile/skin/board/basic/img/btn_copy.gif
Normal file
|
After Width: | Height: | Size: 400 B |
BIN
mobile/skin/board/basic/img/btn_delete.gif
Normal file
|
After Width: | Height: | Size: 303 B |
BIN
mobile/skin/board/basic/img/btn_down.gif
Normal file
|
After Width: | Height: | Size: 162 B |
BIN
mobile/skin/board/basic/img/btn_file_add.gif
Normal file
|
After Width: | Height: | Size: 159 B |
BIN
mobile/skin/board/basic/img/btn_file_minus.gif
Normal file
|
After Width: | Height: | Size: 155 B |
BIN
mobile/skin/board/basic/img/btn_good.gif
Normal file
|
After Width: | Height: | Size: 246 B |
BIN
mobile/skin/board/basic/img/btn_init.gif
Normal file
|
After Width: | Height: | Size: 157 B |
BIN
mobile/skin/board/basic/img/btn_list.gif
Normal file
|
After Width: | Height: | Size: 285 B |
BIN
mobile/skin/board/basic/img/btn_list_search.gif
Normal file
|
After Width: | Height: | Size: 373 B |
BIN
mobile/skin/board/basic/img/btn_modify.gif
Normal file
|
After Width: | Height: | Size: 298 B |
BIN
mobile/skin/board/basic/img/btn_move.gif
Normal file
|
After Width: | Height: | Size: 410 B |
BIN
mobile/skin/board/basic/img/btn_my_menu.gif
Normal file
|
After Width: | Height: | Size: 630 B |
BIN
mobile/skin/board/basic/img/btn_next.gif
Normal file
|
After Width: | Height: | Size: 333 B |
BIN
mobile/skin/board/basic/img/btn_prev.gif
Normal file
|
After Width: | Height: | Size: 353 B |
BIN
mobile/skin/board/basic/img/btn_reply.gif
Normal file
|
After Width: | Height: | Size: 307 B |
BIN
mobile/skin/board/basic/img/btn_rss.gif
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
mobile/skin/board/basic/img/btn_scrap.gif
Normal file
|
After Width: | Height: | Size: 369 B |
BIN
mobile/skin/board/basic/img/btn_search.gif
Normal file
|
After Width: | Height: | Size: 529 B |
BIN
mobile/skin/board/basic/img/btn_select_copy.gif
Normal file
|
After Width: | Height: | Size: 483 B |
BIN
mobile/skin/board/basic/img/btn_select_delete.gif
Normal file
|
After Width: | Height: | Size: 477 B |
BIN
mobile/skin/board/basic/img/btn_select_move.gif
Normal file
|
After Width: | Height: | Size: 488 B |
BIN
mobile/skin/board/basic/img/btn_trackback.gif
Normal file
|
After Width: | Height: | Size: 374 B |
BIN
mobile/skin/board/basic/img/btn_up.gif
Normal file
|
After Width: | Height: | Size: 158 B |
BIN
mobile/skin/board/basic/img/btn_write.gif
Normal file
|
After Width: | Height: | Size: 590 B |
BIN
mobile/skin/board/basic/img/co_bg.gif
Normal file
|
After Width: | Height: | Size: 124 B |
BIN
mobile/skin/board/basic/img/co_btn_delete.gif
Normal file
|
After Width: | Height: | Size: 161 B |
BIN
mobile/skin/board/basic/img/co_btn_down.gif
Normal file
|
After Width: | Height: | Size: 162 B |
BIN
mobile/skin/board/basic/img/co_btn_good.gif
Normal file
|
After Width: | Height: | Size: 401 B |
BIN
mobile/skin/board/basic/img/co_btn_good2.gif
Normal file
|
After Width: | Height: | Size: 492 B |
BIN
mobile/skin/board/basic/img/co_btn_good_write.gif
Normal file
|
After Width: | Height: | Size: 477 B |
BIN
mobile/skin/board/basic/img/co_btn_good_write2.gif
Normal file
|
After Width: | Height: | Size: 565 B |
BIN
mobile/skin/board/basic/img/co_btn_init.gif
Normal file
|
After Width: | Height: | Size: 157 B |
BIN
mobile/skin/board/basic/img/co_btn_modify.gif
Normal file
|
After Width: | Height: | Size: 164 B |
BIN
mobile/skin/board/basic/img/co_btn_reply.gif
Normal file
|
After Width: | Height: | Size: 251 B |
BIN
mobile/skin/board/basic/img/co_btn_up.gif
Normal file
|
After Width: | Height: | Size: 158 B |
BIN
mobile/skin/board/basic/img/co_btn_write.gif
Normal file
|
After Width: | Height: | Size: 590 B |
BIN
mobile/skin/board/basic/img/co_title_bg.gif
Normal file
|
After Width: | Height: | Size: 51 B |
BIN
mobile/skin/board/basic/img/down.gif
Normal file
|
After Width: | Height: | Size: 175 B |
BIN
mobile/skin/board/basic/img/good_bg.gif
Normal file
|
After Width: | Height: | Size: 406 B |
BIN
mobile/skin/board/basic/img/icon_date.gif
Normal file
|
After Width: | Height: | Size: 73 B |
BIN
mobile/skin/board/basic/img/icon_file.gif
Normal file
|
After Width: | Height: | Size: 209 B |
BIN
mobile/skin/board/basic/img/icon_good.gif
Normal file
|
After Width: | Height: | Size: 242 B |
BIN
mobile/skin/board/basic/img/icon_hot.gif
Normal file
|
After Width: | Height: | Size: 270 B |
BIN
mobile/skin/board/basic/img/icon_link.gif
Normal file
|
After Width: | Height: | Size: 210 B |
BIN
mobile/skin/board/basic/img/icon_new.gif
Normal file
|
After Width: | Height: | Size: 280 B |
BIN
mobile/skin/board/basic/img/icon_nogood.gif
Normal file
|
After Width: | Height: | Size: 240 B |
BIN
mobile/skin/board/basic/img/icon_notice.gif
Normal file
|
After Width: | Height: | Size: 104 B |
BIN
mobile/skin/board/basic/img/icon_reply.gif
Normal file
|
After Width: | Height: | Size: 243 B |
BIN
mobile/skin/board/basic/img/icon_secret.gif
Normal file
|
After Width: | Height: | Size: 208 B |
BIN
mobile/skin/board/basic/img/icon_total.gif
Normal file
|
After Width: | Height: | Size: 229 B |
BIN
mobile/skin/board/basic/img/icon_view.gif
Normal file
|
After Width: | Height: | Size: 198 B |
BIN
mobile/skin/board/basic/img/noimage.gif
Normal file
|
After Width: | Height: | Size: 43 B |
BIN
mobile/skin/board/basic/img/page_begin.gif
Normal file
|
After Width: | Height: | Size: 248 B |
BIN
mobile/skin/board/basic/img/page_end.gif
Normal file
|
After Width: | Height: | Size: 252 B |
BIN
mobile/skin/board/basic/img/page_next.gif
Normal file
|
After Width: | Height: | Size: 231 B |
BIN
mobile/skin/board/basic/img/page_prev.gif
Normal file
|
After Width: | Height: | Size: 230 B |
BIN
mobile/skin/board/basic/img/page_search_next.gif
Normal file
|
After Width: | Height: | Size: 307 B |
BIN
mobile/skin/board/basic/img/page_search_prev.gif
Normal file
|
After Width: | Height: | Size: 315 B |
BIN
mobile/skin/board/basic/img/start.gif
Normal file
|
After Width: | Height: | Size: 176 B |
BIN
mobile/skin/board/basic/img/title_bg.gif
Normal file
|
After Width: | Height: | Size: 102 B |
BIN
mobile/skin/board/basic/img/title_shadow.gif
Normal file
|
After Width: | Height: | Size: 49 B |
BIN
mobile/skin/board/basic/img/up.gif
Normal file
|
After Width: | Height: | Size: 172 B |
BIN
mobile/skin/board/basic/img/view_dot.gif
Normal file
|
After Width: | Height: | Size: 50 B |
297
mobile/skin/board/basic/list.skin.php
Normal file
@ -0,0 +1,297 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
|
||||
$colspan = 5;
|
||||
|
||||
//if ($is_category) $colspan++;
|
||||
if ($is_checkbox) $colspan++;
|
||||
if ($is_good) $colspan++;
|
||||
if ($is_nogood) $colspan++;
|
||||
|
||||
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
|
||||
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
|
||||
?>
|
||||
|
||||
<style>
|
||||
.board_top { clear:both; }
|
||||
|
||||
.board_list { clear:both; width:100%; table-layout:fixed; margin:5px 0 0 0; }
|
||||
.board_list th { font-weight:bold; font-size:12px; }
|
||||
.board_list th { background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x; }
|
||||
.board_list th { white-space:nowrap; height:34px; overflow:hidden; text-align:center; }
|
||||
.board_list th { border-top:1px solid #ddd; border-bottom:1px solid #ddd; }
|
||||
|
||||
.board_list tr.bg0 { background-color:#fafafa; }
|
||||
.board_list tr.bg1 { background-color:#ffffff; }
|
||||
|
||||
.board_list td { padding:.5em; }
|
||||
.board_list td { border-bottom:1px solid #ddd; }
|
||||
.board_list td.num { color:#999999; text-align:center; }
|
||||
.board_list td.checkbox { text-align:center; }
|
||||
.board_list td.subject { overflow:hidden; }
|
||||
.board_list td.name { padding:0 0 0 10px; }
|
||||
.board_list td.datetime { font:normal 11px tahoma; color:#BABABA; text-align:center; }
|
||||
.board_list td.hit { font:normal 11px tahoma; color:#BABABA; text-align:center; }
|
||||
.board_list td.good { font:normal 11px tahoma; color:#BABABA; text-align:center; }
|
||||
.board_list td.nogood { font:normal 11px tahoma; color:#BABABA; text-align:center; }
|
||||
|
||||
.board_list .notice { font-weight:normal; }
|
||||
.board_list .current { font:bold 11px tahoma; color:#E15916; }
|
||||
.board_list .comment { font-family:Tahoma; font-size:10px; color:#EE5A00; }
|
||||
|
||||
.board_button { clear:both; margin:10px 0 0 0; }
|
||||
|
||||
.board_page { clear:both; text-align:center; margin:3px 0 0 0; }
|
||||
.board_page a:link { color:#777; }
|
||||
|
||||
.board_search { text-align:center; margin:10px 0 0 0; }
|
||||
.board_search .stx { height:21px; border:1px solid #9A9A9A; border-right:1px solid #D8D8D8; border-bottom:1px solid #D8D8D8; }
|
||||
</style>
|
||||
|
||||
<!-- 게시판 목록 시작 -->
|
||||
<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0"><tr><td>
|
||||
|
||||
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 -->
|
||||
<div class="board_top">
|
||||
<div style="float:left;">
|
||||
<form name="fcategory" method="get" style="margin:0px;">
|
||||
<? if ($is_category) { ?>
|
||||
<select name=sca onchange="location='<?=$category_location?>'+<?=strtolower($g4['charset'])=='utf-8' ? "encodeURIComponent(this.value)" : "this.value"?>;">
|
||||
<option value=''>전체</option>
|
||||
<?=$category_option?>
|
||||
</select>
|
||||
<? } ?>
|
||||
</form>
|
||||
</div>
|
||||
<div style="float:right;">
|
||||
<img src="<?=$board_skin_path?>/img/icon_total.gif" align="absmiddle" border='0'>
|
||||
<span style="color:#888888; font-weight:bold;">Total <?=number_format($total_count)?></span>
|
||||
<? if ($rss_href) { ?><a href='<?=$rss_href?>'><img src='<?=$board_skin_path?>/img/btn_rss.gif' border='0' align="absmiddle"></a><?}?>
|
||||
<? if ($admin_href) { ?><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/btn_admin.gif" border='0' title="관리자" align="absmiddle"></a><?}?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 제목 -->
|
||||
<form name="fboardlist" method="post">
|
||||
<input type='hidden' name='bo_table' value='<?=$bo_table?>'>
|
||||
<input type='hidden' name='sfl' value='<?=$sfl?>'>
|
||||
<input type='hidden' name='stx' value='<?=$stx?>'>
|
||||
<input type='hidden' name='spt' value='<?=$spt?>'>
|
||||
<input type='hidden' name='page' value='<?=$page?>'>
|
||||
<input type='hidden' name='sw' value=''>
|
||||
|
||||
<table cellspacing="0" cellpadding="0" class="board_list">
|
||||
<col width="50" />
|
||||
<? if ($is_checkbox) { ?><col width="40" /><? } ?>
|
||||
<col />
|
||||
<col width="110" />
|
||||
<col width="40" />
|
||||
<col width="50" />
|
||||
<? if ($is_good) { ?><col width="40" /><? } ?>
|
||||
<? if ($is_nogood) { ?><col width="40" /><? } ?>
|
||||
<tr>
|
||||
<th>번호</th>
|
||||
<? if ($is_checkbox) { ?><th><input onclick="if (this.checked) all_checked(true); else all_checked(false);" type="checkbox"></th><?}?>
|
||||
<th>제 목</th>
|
||||
<th>글쓴이</th>
|
||||
<th><?=subject_sort_link('wr_datetime', $qstr2, 1)?>날짜</a></th>
|
||||
<th><?=subject_sort_link('wr_hit', $qstr2, 1)?>조회</a></th>
|
||||
<? if ($is_good) { ?><th><?=subject_sort_link('wr_good', $qstr2, 1)?>추천</a></th><?}?>
|
||||
<? if ($is_nogood) { ?><th><?=subject_sort_link('wr_nogood', $qstr2, 1)?>비추천</a></th><?}?>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
for ($i=0; $i<count($list); $i++) {
|
||||
$bg = $i%2 ? 0 : 1;
|
||||
?>
|
||||
|
||||
<tr class="bg<?=$bg?>">
|
||||
<td class="num">
|
||||
<?
|
||||
if ($list[$i]['is_notice']) // 공지사항
|
||||
echo "<b>공지</b>";
|
||||
else if ($wr_id == $list[$i]['wr_id']) // 현재위치
|
||||
echo "<span class='current'>{$list[$i]['num']}</span>";
|
||||
else
|
||||
echo $list[$i]['num'];
|
||||
?>
|
||||
</td>
|
||||
<? if ($is_checkbox) { ?><td class="checkbox"><input type=checkbox name=chk_wr_id[] value="<?=$list[$i]['wr_id']?>"></td><? } ?>
|
||||
<td class="subject">
|
||||
<?
|
||||
echo $nobr_begin;
|
||||
echo $list[$i]['reply'];
|
||||
echo $list[$i]['icon_reply'];
|
||||
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> ";
|
||||
}
|
||||
|
||||
if ($list[$i]['is_notice'])
|
||||
echo "<a href='{$list[$i]['href']}'><span class='notice'>{$list[$i]['subject']}</span></a>";
|
||||
else
|
||||
echo "<a href='{$list[$i]['href']}'>{$list[$i]['subject']}</a>";
|
||||
|
||||
if ($list[$i]['comment_cnt'])
|
||||
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]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
|
||||
|
||||
echo " " . $list[$i]['icon_new'];
|
||||
echo " " . $list[$i]['icon_file'];
|
||||
echo " " . $list[$i]['icon_link'];
|
||||
echo " " . $list[$i]['icon_hot'];
|
||||
echo " " . $list[$i]['icon_secret'];
|
||||
echo $nobr_end;
|
||||
?>
|
||||
</td>
|
||||
<td class="name"><?=$list[$i]['name']?></td>
|
||||
<td class="datetime"><?=$list[$i]['datetime2']?></td>
|
||||
<td class="hit"><?=$list[$i]['wr_hit']?></td>
|
||||
<? if ($is_good) { ?><td class="good"><?=$list[$i]['wr_good']?></td><? } ?>
|
||||
<? if ($is_nogood) { ?><td class="nogood"><?=$list[$i]['wr_nogood']?></td><? } ?>
|
||||
</tr>
|
||||
<? } // end for ?>
|
||||
|
||||
<? if (count($list) == 0) { echo "<tr><td colspan='$colspan' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<div class="board_button">
|
||||
<div style="float:left;">
|
||||
<? if ($list_href) { ?>
|
||||
<a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" align="absmiddle" border='0'></a>
|
||||
<? } ?>
|
||||
<? if ($is_checkbox) { ?>
|
||||
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" align="absmiddle" border='0'></a>
|
||||
<a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" align="absmiddle" border='0'></a>
|
||||
<a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" align="absmiddle" border='0'></a>
|
||||
<? } ?>
|
||||
</div>
|
||||
|
||||
<div style="float:right;">
|
||||
<? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border='0'></a><? } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 페이지 -->
|
||||
<div class="board_page">
|
||||
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/page_search_prev.gif' border='0' align=absmiddle title='이전검색'></a>"; } ?>
|
||||
<?
|
||||
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
|
||||
//echo $write_pages;
|
||||
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/page_begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
|
||||
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/page_prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
|
||||
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/page_next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
|
||||
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/page_end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
|
||||
//$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "$1", $write_pages);
|
||||
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><span style=\"color:#4D6185; font-size:12px; text-decoration:underline;\">$1</span></b>", $write_pages);
|
||||
?>
|
||||
<?=$write_pages?>
|
||||
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/page_search_next.gif' border='0' align=absmiddle title='다음검색'></a>"; } ?>
|
||||
</div>
|
||||
|
||||
<!-- 검색 -->
|
||||
<div class="board_search">
|
||||
<form name="fsearch" method="get">
|
||||
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
|
||||
<input type="hidden" name="sca" value="<?=$sca?>">
|
||||
<select name="sfl">
|
||||
<option value="wr_subject">제목</option>
|
||||
<option value="wr_content">내용</option>
|
||||
<option value="wr_subject||wr_content">제목+내용</option>
|
||||
<option value="mb_id,1">회원아이디</option>
|
||||
<option value="mb_id,0">회원아이디(코)</option>
|
||||
<option value="wr_name,1">글쓴이</option>
|
||||
<option value="wr_name,0">글쓴이(코)</option>
|
||||
</select>
|
||||
<input name="stx" class="stx" maxlength="15" itemname="검색어" required value='<?=stripslashes($stx)?>'>
|
||||
<input type="image" src="<?=$board_skin_path?>/img/btn_search.gif" border='0' align="absmiddle">
|
||||
<input type="radio" name="sop" value="and">and
|
||||
<input type="radio" name="sop" value="or">or
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</td></tr></table>
|
||||
|
||||
<script type="text/javascript">
|
||||
if ('<?=$sca?>') document.fcategory.sca.value = '<?=$sca?>';
|
||||
if ('<?=$stx?>') {
|
||||
document.fsearch.sfl.value = '<?=$sfl?>';
|
||||
|
||||
if ('<?=$sop?>' == 'and')
|
||||
document.fsearch.sop[0].checked = true;
|
||||
|
||||
if ('<?=$sop?>' == 'or')
|
||||
document.fsearch.sop[1].checked = true;
|
||||
} else {
|
||||
document.fsearch.sop[0].checked = true;
|
||||
}
|
||||
</script>
|
||||
|
||||
<? if ($is_checkbox) { ?>
|
||||
<script type="text/javascript">
|
||||
function all_checked(sw) {
|
||||
var f = document.fboardlist;
|
||||
|
||||
for (var i=0; i<f.length; i++) {
|
||||
if (f.elements[i].name == "chk_wr_id[]")
|
||||
f.elements[i].checked = sw;
|
||||
}
|
||||
}
|
||||
|
||||
function check_confirm(str) {
|
||||
var f = document.fboardlist;
|
||||
var chk_count = 0;
|
||||
|
||||
for (var i=0; i<f.length; i++) {
|
||||
if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
|
||||
chk_count++;
|
||||
}
|
||||
|
||||
if (!chk_count) {
|
||||
alert(str + "할 게시물을 하나 이상 선택하세요.");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// 선택한 게시물 삭제
|
||||
function select_delete() {
|
||||
var f = document.fboardlist;
|
||||
|
||||
str = "삭제";
|
||||
if (!check_confirm(str))
|
||||
return;
|
||||
|
||||
if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
|
||||
return;
|
||||
|
||||
f.action = "./delete_all.php";
|
||||
f.submit();
|
||||
}
|
||||
|
||||
// 선택한 게시물 복사 및 이동
|
||||
function select_copy(sw) {
|
||||
var f = document.fboardlist;
|
||||
|
||||
if (sw == "copy")
|
||||
str = "복사";
|
||||
else
|
||||
str = "이동";
|
||||
|
||||
if (!check_confirm(str))
|
||||
return;
|
||||
|
||||
var sub_win = window.open("", "move", "left=50, top=50, width=500, height=550, scrollbars=1");
|
||||
|
||||
f.sw.value = sw;
|
||||
f.target = "move";
|
||||
f.action = "./move.php";
|
||||
f.submit();
|
||||
}
|
||||
</script>
|
||||
<? } ?>
|
||||
<!-- 게시판 목록 끝 -->
|
||||
175
mobile/skin/board/basic/view.skin.php
Normal file
@ -0,0 +1,175 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
<div style="height:12px; line-height:1px; font-size:1px;"> </div>
|
||||
|
||||
<!-- 게시글 보기 시작 -->
|
||||
<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0"><tr><td>
|
||||
|
||||
|
||||
<div style="clear:both; height:30px;">
|
||||
<div style="float:left; margin-top:6px;">
|
||||
<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>
|
||||
</div>
|
||||
|
||||
<!-- 링크 버튼 -->
|
||||
<div style="float:right;">
|
||||
<?
|
||||
ob_start();
|
||||
?>
|
||||
<? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin_path/img/btn_copy.gif' border='0' align='absmiddle'></a> "; } ?>
|
||||
<? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin_path/img/btn_move.gif' border='0' align='absmiddle'></a> "; } ?>
|
||||
|
||||
<? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin_path/img/btn_list_search.gif' border='0' align='absmiddle'></a> "; } ?>
|
||||
<? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/btn_list.gif' border='0' align='absmiddle'></a> "; ?>
|
||||
<? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/btn_modify.gif' border='0' align='absmiddle'></a> "; } ?>
|
||||
<? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/btn_delete.gif' border='0' align='absmiddle'></a> "; } ?>
|
||||
<? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin_path/img/btn_reply.gif' border='0' align='absmiddle'></a> "; } ?>
|
||||
<? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin_path/img/btn_write.gif' border='0' align='absmiddle'></a> "; } ?>
|
||||
<?
|
||||
$link_buttons = ob_get_contents();
|
||||
ob_end_flush();
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="border:1px solid #ddd; clear:both; height:34px; background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x;">
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=100%>
|
||||
<tr>
|
||||
<td style="padding:8px 0 0 10px;">
|
||||
<div style="color:#505050; font-size:13px; font-weight:bold; word-break:break-all;">
|
||||
<? if ($is_category) { echo ($category_name ? "[{$view['ca_name']}] " : ""); } ?>
|
||||
<?=cut_hangul_last(get_text($view['wr_subject']))?>
|
||||
</div>
|
||||
</td>
|
||||
<td align="right" style="padding:6px 6px 0 0;" width=120>
|
||||
<? if ($scrap_href) { echo "<a href=\"javascript:;\" onclick=\"win_scrap('$scrap_href');\"><img src='$board_skin_path/img/btn_scrap.gif' border='0' align='absmiddle'></a> "; } ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div style="height:3px; background:url(<?=$board_skin_path?>/img/title_shadow.gif) repeat-x; line-height:1px; font-size:1px;"></div>
|
||||
|
||||
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=<?=$width?>>
|
||||
<tr>
|
||||
<td height=30 background="<?=$board_skin_path?>/img/view_dot.gif" style="color:#888;">
|
||||
<div style="float:left;">
|
||||
글쓴이 :
|
||||
<?=$view[name]?><? if ($is_ip_view) { echo " ($ip)"; } ?>
|
||||
</div>
|
||||
<div style="float:right;">
|
||||
<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_nogood) { ?> <img src="<?=$board_skin_path?>/img/icon_nogood.gif" border='0' align=absmiddle> 비추천 : <?=number_format($view['wr_nogood'])?><? } ?>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
// 가변 파일
|
||||
$cnt = 0;
|
||||
for ($i=0; $i<count($view['file']); $i++) {
|
||||
if ($view['file'][$i]['source'] && !$view['file'][$i]['view']) {
|
||||
$cnt++;
|
||||
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 "<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:#ff6600; font-size:11px;\">[{$view['file'][$i]['download']}]</span>";
|
||||
echo " <span style=\"color:#d3d3d3; font-size:11px;\">DATE : {$view['file'][$i]['datetime']}</span>";
|
||||
echo "</a></td></tr>";
|
||||
}
|
||||
}
|
||||
|
||||
// 링크
|
||||
$cnt = 0;
|
||||
for ($i=1; $i<=$g4['link_count']; $i++) {
|
||||
if ($view['link'][$i]) {
|
||||
$cnt++;
|
||||
$link = cut_str($view['link'][$i], 70);
|
||||
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 "<a href='{$view['link_href'][$i]}' target=_blank>";
|
||||
echo " <span style=\"color:#888;\">{$link}</span>";
|
||||
echo " <span style=\"color:#ff6600; font-size:11px;\">[{$view['link_hit'][$i]}]</span>";
|
||||
echo "</a></td></tr>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td height="150" style="word-break:break-all; padding:10px;">
|
||||
<?
|
||||
// 파일 출력
|
||||
for ($i=0; $i<=count($view['file']); $i++) {
|
||||
if ($view['file'][$i]['view'])
|
||||
echo $view['file'][$i]['view'] . "<p>";
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- 내용 출력 -->
|
||||
<span id="writeContents"><?=$view['content'];?></span>
|
||||
|
||||
<?//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우?>
|
||||
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
|
||||
|
||||
<? 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="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>
|
||||
<? } ?>
|
||||
|
||||
<? 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="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>
|
||||
<? } ?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<? if ($is_signature) { echo "<tr><td align='center' style='border-bottom:1px solid #E7E7E7; padding:5px 0;'>$signature</td></tr>"; } // 서명 출력 ?>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<?
|
||||
// 코멘트 입출력
|
||||
include_once('./view_comment.php');
|
||||
?>
|
||||
|
||||
<div style="height:1px; line-height:1px; font-size:1px; background-color:#ddd; clear:both;"> </div>
|
||||
|
||||
<div style="clear:both; height:43px;">
|
||||
<div style="float:left; margin-top:10px;">
|
||||
<? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin_path/img/btn_prev.gif' border='0' align='absmiddle'></a> "; } ?>
|
||||
<? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin_path/img/btn_next.gif' border='0' align='absmiddle'></a> "; } ?>
|
||||
</div>
|
||||
|
||||
<!-- 링크 버튼 -->
|
||||
<div style="float:right; margin-top:10px;">
|
||||
<?=$link_buttons?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="height:2px; line-height:1px; font-size:1px; background-color:#dedede; clear:both;"> </div>
|
||||
|
||||
</td></tr></table><br>
|
||||
|
||||
<script type="text/javascript">
|
||||
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그래도 다운로드 하시겠습니까?"))<?}?>
|
||||
document.location.href=link;
|
||||
}
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="<?=$g4['path']?>/js/board.js"></script>
|
||||
<script type="text/javascript">
|
||||
window.onload=function() {
|
||||
resizeBoardImage(<?=(int)$board['bo_image_width']?>);
|
||||
drawFont();
|
||||
}
|
||||
</script>
|
||||
<!-- 게시글 보기 끝 -->
|
||||
313
mobile/skin/board/basic/view_comment.skin.php
Normal file
@ -0,0 +1,313 @@
|
||||
<?
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
// 글자수 제한
|
||||
var char_min = parseInt(<?=$comment_min?>); // 최소
|
||||
var char_max = parseInt(<?=$comment_max?>); // 최대
|
||||
</script>
|
||||
|
||||
<!-- 코멘트 리스트 -->
|
||||
<div id="commentContents">
|
||||
<?
|
||||
for ($i=0; $i<count($list); $i++) {
|
||||
$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 width='100%'>
|
||||
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=100%>
|
||||
<tr>
|
||||
<td height=1 colspan=3 bgcolor="#dddddd"><td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=1 colspan=3></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
</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> "; } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 코멘트 출력 -->
|
||||
<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"))
|
||||
$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);
|
||||
// FLASH XSS 공격에 의해 주석 처리 - 110406
|
||||
//$str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp)\:\/\/([^[:space:]]+)\.(swf)\".*\<\/a\>\]/i", "<script>doc_write(flash_movie('$1://$2.$3'));</script>", $str);
|
||||
$str = preg_replace("/\[\<a\s*href\=\"(http|https|ftp)\:\/\/([^[:space:]]+)\.(gif|png|jpg|jpeg|bmp)\"\s*[^\>]*\>[^\s]*\<\/a\>\]/i", "<img src='$1://$2.$3' id='target_resize_image[]' onclick='image_window(this);' border='0'>", $str);
|
||||
echo $str;
|
||||
?>
|
||||
</div>
|
||||
<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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=5 colspan=3></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<? } ?>
|
||||
</div>
|
||||
<!-- 코멘트 리스트 -->
|
||||
|
||||
<? if ($is_comment_write) { ?>
|
||||
<!-- 코멘트 입력 -->
|
||||
<div id=comment_write style="display:none;">
|
||||
<table width=100% border=0 cellpadding=1 cellspacing=0 bgcolor="#dddddd"><tr><td>
|
||||
<form name="fviewcomment" method="post" action="./write_comment_update.php" onsubmit="return fviewcomment_submit(this);" autocomplete="off" style="margin:0px;">
|
||||
<input type=hidden name=w id=w value='c'>
|
||||
<input type=hidden name=bo_table value='<?=$bo_table?>'>
|
||||
<input type=hidden name=wr_id value='<?=$wr_id?>'>
|
||||
<input type=hidden name=comment_id id='comment_id' value=''>
|
||||
<input type=hidden name=sca value='<?=$sca?>' >
|
||||
<input type=hidden name=sfl value='<?=$sfl?>' >
|
||||
<input type=hidden name=stx value='<?=$stx?>'>
|
||||
<input type=hidden name=spt value='<?=$spt?>'>
|
||||
<input type=hidden name=page value='<?=$page?>'>
|
||||
<input type=hidden name=is_good value=''>
|
||||
|
||||
<table width=100% cellpadding=3 height=156 cellspacing=0 bgcolor="#ffffff" style="border:1px solid #fff; background:url(<?=$board_skin_path?>/img/co_bg.gif) x-repeat;">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:5px 0 0 5px;">
|
||||
<span style="cursor: pointer;" onclick="textarea_decrease('wr_content', 8);"><img src="<?=$board_skin_path?>/img/co_btn_up.gif" border='0'></span>
|
||||
<span style="cursor: pointer;" onclick="textarea_original('wr_content', 8);"><img src="<?=$board_skin_path?>/img/co_btn_init.gif" border='0'></span>
|
||||
<span style="cursor: pointer;" onclick="textarea_increase('wr_content', 8);"><img src="<?=$board_skin_path?>/img/co_btn_down.gif" border='0'></span>
|
||||
<? if ($is_guest) { ?>
|
||||
이름 <INPUT type=text maxLength=20 size=10 name="wr_name" itemname="이름" required class=ed>
|
||||
패스워드 <INPUT type=password maxLength=20 size=10 name="wr_password" itemname="패스워드" required class=ed>
|
||||
<? if ($is_guest) { ?>
|
||||
<img id='kcaptcha_image' />
|
||||
<input title="왼쪽의 글자를 입력하세요." type="input" name="wr_key" size="10" itemname="자동등록방지" required class=ed>
|
||||
<?}?>
|
||||
<? } ?>
|
||||
<input type=checkbox id="wr_secret" name="wr_secret" value="secret">비밀글
|
||||
<? if ($comment_min || $comment_max) { ?><span id=char_count></span>글자<?}?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=95%>
|
||||
<textarea id="wr_content" name="wr_content" rows=8 itemname="내용" required
|
||||
<? if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?> style='width:100%; word-break:break-all;' class=tx></textarea>
|
||||
<? if ($comment_min || $comment_max) { ?><script type="text/javascript"> check_byte('wr_content', 'char_count'); </script><?}?>
|
||||
</td>
|
||||
<td width=85 align=center>
|
||||
<div><input type="image" src="<?=$board_skin_path?>/img/co_btn_write.gif" border=0 accesskey='s'></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td></tr></table>
|
||||
</div>
|
||||
|
||||
<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;
|
||||
|
||||
function good_and_write()
|
||||
{
|
||||
var f = document.fviewcomment;
|
||||
if (fviewcomment_submit(f)) {
|
||||
f.is_good.value = 1;
|
||||
f.submit();
|
||||
} else {
|
||||
f.is_good.value = 0;
|
||||
}
|
||||
}
|
||||
|
||||
function fviewcomment_submit(f)
|
||||
{
|
||||
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
|
||||
|
||||
f.is_good.value = 0;
|
||||
|
||||
/*
|
||||
var s;
|
||||
if (s = word_filter_check(document.getElementById('wr_content').value))
|
||||
{
|
||||
alert("내용에 금지단어('"+s+"')가 포함되어있습니다");
|
||||
document.getElementById('wr_content').focus();
|
||||
return false;
|
||||
}
|
||||
*/
|
||||
|
||||
var subject = "";
|
||||
var content = "";
|
||||
$.ajax({
|
||||
url: "<?=$board_skin_path?>/ajax.filter.php",
|
||||
type: "POST",
|
||||
data: {
|
||||
"subject": "",
|
||||
"content": f.wr_content.value
|
||||
},
|
||||
dataType: "json",
|
||||
async: false,
|
||||
cache: false,
|
||||
success: function(data, textStatus) {
|
||||
subject = data.subject;
|
||||
content = data.content;
|
||||
}
|
||||
});
|
||||
|
||||
if (content) {
|
||||
alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
|
||||
f.wr_content.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
// 양쪽 공백 없애기
|
||||
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
|
||||
document.getElementById('wr_content').value = document.getElementById('wr_content').value.replace(pattern, "");
|
||||
if (char_min > 0 || char_max > 0)
|
||||
{
|
||||
check_byte('wr_content', 'char_count');
|
||||
var cnt = parseInt(document.getElementById('char_count').innerHTML);
|
||||
if (char_min > 0 && char_min > cnt)
|
||||
{
|
||||
alert("코멘트는 "+char_min+"글자 이상 쓰셔야 합니다.");
|
||||
return false;
|
||||
} else if (char_max > 0 && char_max < cnt)
|
||||
{
|
||||
alert("코멘트는 "+char_max+"글자 이하로 쓰셔야 합니다.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (!document.getElementById('wr_content').value)
|
||||
{
|
||||
alert("코멘트를 입력하여 주십시오.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (typeof(f.wr_name) != 'undefined')
|
||||
{
|
||||
f.wr_name.value = f.wr_name.value.replace(pattern, "");
|
||||
if (f.wr_name.value == '')
|
||||
{
|
||||
alert('이름이 입력되지 않았습니다.');
|
||||
f.wr_name.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof(f.wr_password) != 'undefined')
|
||||
{
|
||||
f.wr_password.value = f.wr_password.value.replace(pattern, "");
|
||||
if (f.wr_password.value == '')
|
||||
{
|
||||
alert('패스워드가 입력되지 않았습니다.');
|
||||
f.wr_password.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (!check_kcaptcha(f.wr_key)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
jQuery.fn.extend({
|
||||
kcaptcha_load: function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: g4_path+'/'+g4_bbs+'/kcaptcha_session.php',
|
||||
cache: false,
|
||||
async: false,
|
||||
success: function(text) {
|
||||
$('#kcaptcha_image')
|
||||
.attr('src', g4_path+'/'+g4_bbs+'/kcaptcha_image.php?t=' + (new Date).getTime())
|
||||
.css('cursor', '')
|
||||
.attr('title', '');
|
||||
md5_norobot_key = text;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
function comment_box(comment_id, work)
|
||||
{
|
||||
var el_id;
|
||||
// 코멘트 아이디가 넘어오면 답변, 수정
|
||||
if (comment_id)
|
||||
{
|
||||
if (work == 'c')
|
||||
el_id = 'reply_' + comment_id;
|
||||
else
|
||||
el_id = 'edit_' + comment_id;
|
||||
}
|
||||
else
|
||||
el_id = 'comment_write';
|
||||
|
||||
if (save_before != el_id)
|
||||
{
|
||||
if (save_before)
|
||||
{
|
||||
document.getElementById(save_before).style.display = 'none';
|
||||
document.getElementById(save_before).innerHTML = '';
|
||||
}
|
||||
|
||||
document.getElementById(el_id).style.display = '';
|
||||
document.getElementById(el_id).innerHTML = save_html;
|
||||
// 코멘트 수정
|
||||
if (work == 'cu')
|
||||
{
|
||||
document.getElementById('wr_content').value = document.getElementById('save_comment_' + comment_id).value;
|
||||
if (typeof char_count != 'undefined')
|
||||
check_byte('wr_content', 'char_count');
|
||||
if (document.getElementById('secret_comment_'+comment_id).value)
|
||||
document.getElementById('wr_secret').checked = true;
|
||||
else
|
||||
document.getElementById('wr_secret').checked = false;
|
||||
}
|
||||
|
||||
document.getElementById('comment_id').value = comment_id;
|
||||
document.getElementById('w').value = work;
|
||||
|
||||
save_before = el_id;
|
||||
}
|
||||
|
||||
if (typeof(wrestInitialized) != 'undefined')
|
||||
wrestInitialized();
|
||||
|
||||
//jQuery(this).kcaptcha_load();
|
||||
if (comment_id && work == 'c')
|
||||
$.kcaptcha_run();
|
||||
}
|
||||
|
||||
function comment_delete(url)
|
||||
{
|
||||
if (confirm("이 코멘트를 삭제하시겠습니까?")) location.href = url;
|
||||
}
|
||||
|
||||
comment_box('', 'c'); // 코멘트 입력폼이 보이도록 처리하기위해서 추가 (root님)
|
||||
</script>
|
||||
<? } ?>
|
||||
385
mobile/skin/board/basic/write.skin.php
Normal file
@ -0,0 +1,385 @@
|
||||
<?
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if ($is_dhtml_editor) {
|
||||
include_once($g4['path'].'/lib/cheditor4.lib.php');
|
||||
echo "<script src='{$g4['cheditor4_path']}/cheditor.js'></script>";
|
||||
echo cheditor1('wr_content', '100%', '250');
|
||||
}
|
||||
?>
|
||||
|
||||
<div style="height:14px; line-height:1px; font-size:1px;"> </div>
|
||||
|
||||
<style type="text/css">
|
||||
.write_head { height:30px; text-align:center; color:#8492A0; }
|
||||
.field { border:1px solid #ccc; }
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
// 글자수 제한
|
||||
var char_min = parseInt(<?=$write_min?>); // 최소
|
||||
var char_max = parseInt(<?=$write_max?>); // 최대
|
||||
</script>
|
||||
|
||||
<form name="fwrite" method="post" onsubmit="return fwrite_submit(this);" enctype="multipart/form-data" style="margin:0px;">
|
||||
<input type=hidden name=null>
|
||||
<input type=hidden name=w value="<?=$w?>">
|
||||
<input type=hidden name=bo_table value="<?=$bo_table?>">
|
||||
<input type=hidden name=wr_id value="<?=$wr_id?>">
|
||||
<input type=hidden name=sca value="<?=$sca?>">
|
||||
<input type=hidden name=sfl value="<?=$sfl?>">
|
||||
<input type=hidden name=stx value="<?=$stx?>">
|
||||
<input type=hidden name=spt value="<?=$spt?>">
|
||||
<input type=hidden name=sst value="<?=$sst?>">
|
||||
<input type=hidden name=sod value="<?=$sod?>">
|
||||
<input type=hidden name=page value="<?=$page?>">
|
||||
|
||||
<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0><tr><td>
|
||||
|
||||
|
||||
<div style="border:1px solid #ddd; height:34px; background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x;">
|
||||
<div style="font-weight:bold; font-size:14px; margin:7px 0 0 10px;">:: <?=$title_msg?> ::</div>
|
||||
</div>
|
||||
<div style="height:3px; background:url(<?=$board_skin_path?>/img/title_shadow.gif) repeat-x; line-height:1px; font-size:1px;"></div>
|
||||
|
||||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<colgroup width=90>
|
||||
<colgroup width=''>
|
||||
<tr><td colspan="2" style="background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x; height:3px;"></td></tr>
|
||||
<? if ($is_name) { ?>
|
||||
<tr>
|
||||
<td class=write_head>이 름</td>
|
||||
<td><input class='ed' maxlength=20 size=15 name=wr_name itemname="이름" required value="<?=$name?>"></td></tr>
|
||||
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
|
||||
<? } ?>
|
||||
|
||||
<? if ($is_password) { ?>
|
||||
<tr>
|
||||
<td class=write_head>패스워드</td>
|
||||
<td><input class='ed' type=password maxlength=20 size=15 name=wr_password itemname="패스워드" <?=$password_required?>></td></tr>
|
||||
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
|
||||
<? } ?>
|
||||
|
||||
<? if ($is_email) { ?>
|
||||
<tr>
|
||||
<td class=write_head>이메일</td>
|
||||
<td><input class='ed' maxlength=100 size=50 name=wr_email email itemname="이메일" value="<?=$email?>"></td></tr>
|
||||
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
|
||||
<? } ?>
|
||||
|
||||
<? if ($is_homepage) { ?>
|
||||
<tr>
|
||||
<td class=write_head>홈페이지</td>
|
||||
<td><input class='ed' size=50 name=wr_homepage itemname="홈페이지" value="<?=$homepage?>"></td></tr>
|
||||
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
|
||||
<? } ?>
|
||||
|
||||
<?
|
||||
$option = '';
|
||||
$option_hidden = '';
|
||||
if ($is_notice || $is_html || $is_secret || $is_mail) {
|
||||
$option = '';
|
||||
if ($is_notice) {
|
||||
$option .= '<input type=checkbox name=notice value="1" '.$notice_checked.'>공지 ';
|
||||
}
|
||||
|
||||
if ($is_html) {
|
||||
if ($is_dhtml_editor) {
|
||||
$option_hidden .= '<input type=hidden value="html1" name="html">';
|
||||
} else {
|
||||
$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_admin || $is_secret==1) {
|
||||
$option .= '<input type=checkbox value="secret" name="secret" '.$secret_checked.'><span class=w_title>비밀글</span> ';
|
||||
} else {
|
||||
$option_hidden .= '<input type=hidden value="secret" name="secret">';
|
||||
}
|
||||
}
|
||||
|
||||
if ($is_mail) {
|
||||
$option .= '<input type=checkbox value="mail" name="mail" '.$recv_email_checked.'>답변메일받기 ';
|
||||
}
|
||||
}
|
||||
|
||||
echo $option_hidden;
|
||||
if ($option) {
|
||||
?>
|
||||
<tr>
|
||||
<td class=write_head>옵 션</td>
|
||||
<td><?=$option?></td></tr>
|
||||
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
|
||||
<? } ?>
|
||||
|
||||
<? if ($is_category) { ?>
|
||||
<tr>
|
||||
<td class=write_head>분 류</td>
|
||||
<td><select name=ca_name required itemname="분류"><option value="">선택하세요<?=$category_option?></select></td></tr>
|
||||
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
|
||||
<? } ?>
|
||||
|
||||
<tr>
|
||||
<td class=write_head>제 목</td>
|
||||
<td><input class='ed' style="width:100%;" name=wr_subject id="wr_subject" itemname="제목" required value="<?=$subject?>"></td></tr>
|
||||
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
|
||||
<tr>
|
||||
<td class='write_head' style='padding:5 0 5 10;' colspan='2'>
|
||||
<? if ($is_dhtml_editor) { ?>
|
||||
<?=cheditor2('wr_content', $content);?>
|
||||
<? } else { ?>
|
||||
<table width=100% cellpadding=0 cellspacing=0>
|
||||
<tr>
|
||||
<td width=50% align=left valign=bottom>
|
||||
<span style="cursor: pointer;" onclick="textarea_decrease('wr_content', 10);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
|
||||
<span style="cursor: pointer;" onclick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
|
||||
<span style="cursor: pointer;" onclick="textarea_increase('wr_content', 10);"><img src="<?=$board_skin_path?>/img/down.gif"></span></td>
|
||||
<td width=50% align=right><? if ($write_min || $write_max) { ?><span id=char_count></span>글자<?}?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<textarea id="wr_content" name="wr_content" class=tx style='width:100%; word-break:break-all;' rows=10 itemname="내용" required
|
||||
<? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>><?=$content?></textarea>
|
||||
<? if ($write_min || $write_max) { ?><script type="text/javascript"> check_byte('wr_content', 'char_count'); </script><?}?>
|
||||
<? } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan=2 height=1 bgcolor=#dddddd></td></tr>
|
||||
|
||||
<? if ($is_link) { ?>
|
||||
<? for ($i=1; $i<=$g4['link_count']; $i++) { ?>
|
||||
<tr>
|
||||
<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>
|
||||
</tr>
|
||||
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
|
||||
<? } ?>
|
||||
<? } ?>
|
||||
|
||||
<? if ($is_file) { ?>
|
||||
<tr>
|
||||
<td class=write_head>
|
||||
<table cellpadding=0 cellspacing=0>
|
||||
<tr>
|
||||
<td class=write_head style="padding-top:10px; line-height:20px;">
|
||||
파일첨부<br>
|
||||
<span onclick="add_file();" style="cursor:pointer;"><img src="<?=$board_skin_path?>/img/btn_file_add.gif"></span>
|
||||
<span onclick="del_file();" style="cursor:pointer;"><img src="<?=$board_skin_path?>/img/btn_file_minus.gif"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style='padding:5 0 5 0;'><table id="variableFiles" cellpadding=0 cellspacing=0></table><?// print_r2($file); ?>
|
||||
<script type="text/javascript">
|
||||
var flen = 0;
|
||||
function add_file(delete_code)
|
||||
{
|
||||
var upload_count = <?=(int)$board['bo_upload_count']?>;
|
||||
if (upload_count && flen >= upload_count)
|
||||
{
|
||||
alert("이 게시판은 "+upload_count+"개 까지만 파일 업로드가 가능합니다.");
|
||||
return;
|
||||
}
|
||||
|
||||
var objTbl;
|
||||
var objRow;
|
||||
var objCell;
|
||||
if (document.getElementById)
|
||||
objTbl = document.getElementById("variableFiles");
|
||||
else
|
||||
objTbl = document.all["variableFiles"];
|
||||
|
||||
objRow = objTbl.insertRow(objTbl.rows.length);
|
||||
objCell = objRow.insertCell(0);
|
||||
|
||||
objCell.innerHTML = "<input type='file' class='ed' name='bf_file[]' title='파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능'>";
|
||||
if (delete_code)
|
||||
objCell.innerHTML += delete_code;
|
||||
else
|
||||
{
|
||||
<? if ($is_file_content) { ?>
|
||||
objCell.innerHTML += "<br><input type='text' class='ed' size=50 name='bf_content[]' title='업로드 이미지 파일에 해당 되는 내용을 입력하세요.'>";
|
||||
<? } ?>
|
||||
;
|
||||
}
|
||||
|
||||
flen++;
|
||||
}
|
||||
|
||||
<?=$file_script; //수정시에 필요한 스크립트?>
|
||||
|
||||
function del_file()
|
||||
{
|
||||
// file_length 이하로는 필드가 삭제되지 않아야 합니다.
|
||||
var file_length = <?=(int)$file_length?>;
|
||||
var objTbl = document.getElementById("variableFiles");
|
||||
if (objTbl.rows.length - 1 > file_length)
|
||||
{
|
||||
objTbl.deleteRow(objTbl.rows.length - 1);
|
||||
flen--;
|
||||
}
|
||||
}
|
||||
</script></td>
|
||||
</tr>
|
||||
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
|
||||
<? } ?>
|
||||
|
||||
<? if ($is_guest) { ?>
|
||||
<tr>
|
||||
<td class=write_head><img id='kcaptcha_image' /></td>
|
||||
<td><input class='ed' type=input size=10 name=wr_key itemname="자동등록방지" required> 왼쪽의 글자를 입력하세요.</td>
|
||||
</tr>
|
||||
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
|
||||
<? } ?>
|
||||
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="100%" align="center" valign="top" style="padding-top:30px;">
|
||||
<input type=image id="btn_submit" src="<?=$board_skin_path?>/img/btn_write.gif" border=0 accesskey='s'>
|
||||
<a href="./board.php?bo_table=<?=$bo_table?>"><img id="btn_list" src="<?=$board_skin_path?>/img/btn_list.gif" border=0></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr></table>
|
||||
</form>
|
||||
|
||||
<script type="text/javascript" src="<?=$g4['path']?>/js/jquery.kcaptcha.js"></script>
|
||||
<script type="text/javascript">
|
||||
<?
|
||||
// 관리자라면 분류 선택에 '공지' 옵션을 추가함
|
||||
if ($is_admin)
|
||||
{
|
||||
echo "
|
||||
if (typeof(document.fwrite.ca_name) != 'undefined')
|
||||
{
|
||||
document.fwrite.ca_name.options.length += 1;
|
||||
document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].value = '공지';
|
||||
document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].text = '공지';
|
||||
}";
|
||||
}
|
||||
?>
|
||||
|
||||
with (document.fwrite)
|
||||
{
|
||||
if (typeof(wr_name) != "undefined")
|
||||
wr_name.focus();
|
||||
else if (typeof(wr_subject) != "undefined")
|
||||
wr_subject.focus();
|
||||
else if (typeof(wr_content) != "undefined")
|
||||
wr_content.focus();
|
||||
|
||||
if (typeof(ca_name) != "undefined")
|
||||
if (w.value == "u")
|
||||
ca_name.value = "<?=$write['ca_name']?>";
|
||||
}
|
||||
|
||||
function html_auto_br(obj)
|
||||
{
|
||||
if (obj.checked) {
|
||||
result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
|
||||
if (result)
|
||||
obj.value = "html2";
|
||||
else
|
||||
obj.value = "html1";
|
||||
}
|
||||
else
|
||||
obj.value = "";
|
||||
}
|
||||
|
||||
function fwrite_submit(f)
|
||||
{
|
||||
/*
|
||||
var s = "";
|
||||
if (s = word_filter_check(f.wr_subject.value)) {
|
||||
alert("제목에 금지단어('"+s+"')가 포함되어있습니다");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (s = word_filter_check(f.wr_content.value)) {
|
||||
alert("내용에 금지단어('"+s+"')가 포함되어있습니다");
|
||||
return false;
|
||||
}
|
||||
*/
|
||||
|
||||
if (document.getElementById('char_count')) {
|
||||
if (char_min > 0 || char_max > 0) {
|
||||
var cnt = parseInt(document.getElementById('char_count').innerHTML);
|
||||
if (char_min > 0 && char_min > cnt) {
|
||||
alert("내용은 "+char_min+"글자 이상 쓰셔야 합니다.");
|
||||
return false;
|
||||
}
|
||||
else if (char_max > 0 && char_max < cnt) {
|
||||
alert("내용은 "+char_max+"글자 이하로 쓰셔야 합니다.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (document.getElementById('tx_wr_content')) {
|
||||
if (!ed_wr_content.outputBodyText()) {
|
||||
alert('내용을 입력하십시오.');
|
||||
ed_wr_content.returnFalse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
<?
|
||||
if ($is_dhtml_editor) echo cheditor3('wr_content');
|
||||
?>
|
||||
|
||||
var subject = "";
|
||||
var content = "";
|
||||
$.ajax({
|
||||
url: "<?=$board_skin_path?>/ajax.filter.php",
|
||||
type: "POST",
|
||||
data: {
|
||||
"subject": f.wr_subject.value,
|
||||
"content": f.wr_content.value
|
||||
},
|
||||
dataType: "json",
|
||||
async: false,
|
||||
cache: false,
|
||||
success: function(data, textStatus) {
|
||||
subject = data.subject;
|
||||
content = data.content;
|
||||
}
|
||||
});
|
||||
|
||||
if (subject) {
|
||||
alert("제목에 금지단어('"+subject+"')가 포함되어있습니다");
|
||||
f.wr_subject.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (content) {
|
||||
alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
|
||||
if (typeof(ed_wr_content) != "undefined")
|
||||
ed_wr_content.returnFalse();
|
||||
else
|
||||
f.wr_content.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!check_kcaptcha(f.wr_key)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
document.getElementById('btn_submit').disabled = true;
|
||||
document.getElementById('btn_list').disabled = true;
|
||||
|
||||
<?
|
||||
if ($g4['https_url'])
|
||||
echo "f.action = '{$g4['https_url']}/{$g4['bbs']}/write_update.php';";
|
||||
else
|
||||
echo "f.action = './write_update.php';";
|
||||
?>
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="<?=$g4['path']?>/js/board.js"></script>
|
||||
<script type="text/javascript"> window.onload=function() { drawFont(); } </script>
|
||||
4
mobile/skin/board/neo/_common.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?
|
||||
$g4_path = '../../..'; // common.php 의 상대 경로
|
||||
include_once($g4_path.'/common.php');
|
||||
?>
|
||||
BIN
mobile/skin/board/neo/img/btn_admin.gif
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
mobile/skin/board/neo/img/btn_close.gif
Normal file
|
After Width: | Height: | Size: 223 B |
BIN
mobile/skin/board/neo/img/btn_copy.gif
Normal file
|
After Width: | Height: | Size: 400 B |
BIN
mobile/skin/board/neo/img/btn_delete.gif
Normal file
|
After Width: | Height: | Size: 303 B |
BIN
mobile/skin/board/neo/img/btn_down.gif
Normal file
|
After Width: | Height: | Size: 162 B |
BIN
mobile/skin/board/neo/img/btn_file_add.gif
Normal file
|
After Width: | Height: | Size: 159 B |
BIN
mobile/skin/board/neo/img/btn_file_minus.gif
Normal file
|
After Width: | Height: | Size: 155 B |
BIN
mobile/skin/board/neo/img/btn_good.gif
Normal file
|
After Width: | Height: | Size: 246 B |
BIN
mobile/skin/board/neo/img/btn_init.gif
Normal file
|
After Width: | Height: | Size: 157 B |
BIN
mobile/skin/board/neo/img/btn_list.gif
Normal file
|
After Width: | Height: | Size: 285 B |
BIN
mobile/skin/board/neo/img/btn_list_search.gif
Normal file
|
After Width: | Height: | Size: 373 B |
BIN
mobile/skin/board/neo/img/btn_modify.gif
Normal file
|
After Width: | Height: | Size: 298 B |
BIN
mobile/skin/board/neo/img/btn_move.gif
Normal file
|
After Width: | Height: | Size: 410 B |
BIN
mobile/skin/board/neo/img/btn_my_menu.gif
Normal file
|
After Width: | Height: | Size: 630 B |
BIN
mobile/skin/board/neo/img/btn_next.gif
Normal file
|
After Width: | Height: | Size: 333 B |
BIN
mobile/skin/board/neo/img/btn_prev.gif
Normal file
|
After Width: | Height: | Size: 353 B |
BIN
mobile/skin/board/neo/img/btn_reply.gif
Normal file
|
After Width: | Height: | Size: 307 B |
BIN
mobile/skin/board/neo/img/btn_rss.gif
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
mobile/skin/board/neo/img/btn_scrap.gif
Normal file
|
After Width: | Height: | Size: 369 B |
BIN
mobile/skin/board/neo/img/btn_search.gif
Normal file
|
After Width: | Height: | Size: 529 B |
BIN
mobile/skin/board/neo/img/btn_select_copy.gif
Normal file
|
After Width: | Height: | Size: 483 B |
BIN
mobile/skin/board/neo/img/btn_select_delete.gif
Normal file
|
After Width: | Height: | Size: 477 B |
BIN
mobile/skin/board/neo/img/btn_select_move.gif
Normal file
|
After Width: | Height: | Size: 488 B |
BIN
mobile/skin/board/neo/img/btn_trackback.gif
Normal file
|
After Width: | Height: | Size: 374 B |
BIN
mobile/skin/board/neo/img/btn_up.gif
Normal file
|
After Width: | Height: | Size: 158 B |
BIN
mobile/skin/board/neo/img/btn_write.gif
Normal file
|
After Width: | Height: | Size: 590 B |