first commit
4
skin/board/shop_board/_common.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?
|
||||
$g4_path = "../../.."; // common.php 의 상대 경로
|
||||
include_once("$g4_path/common.php");
|
||||
?>
|
||||
72
skin/board/shop_board/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\"}");
|
||||
?>
|
||||
3
skin/board/shop_board/delete.head.skin.php
Normal file
@ -0,0 +1,3 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
8
skin/board/shop_board/delete.skin.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 자신만의 코드를 넣어주세요.
|
||||
|
||||
// 이 스킨을 실행 후 bbs/delete.php 의 아래 루틴을 실행할 필요가 없을 경우에는 아래의 주석을 해제하세요.
|
||||
// goto_url("./board.php?bo_table=$bo_table&page=$page" . $qstr);
|
||||
?>
|
||||
3
skin/board/shop_board/delete.tail.skin.php
Normal file
@ -0,0 +1,3 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
3
skin/board/shop_board/delete_all.head.skin.php
Normal file
@ -0,0 +1,3 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
5
skin/board/shop_board/delete_all.skin.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 자신만의 코드를 넣어주세요.
|
||||
?>
|
||||
3
skin/board/shop_board/delete_all.tail.skin.php
Normal file
@ -0,0 +1,3 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
3
skin/board/shop_board/download.head.skin.php
Normal file
@ -0,0 +1,3 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
5
skin/board/shop_board/download.skin.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 자신만의 코드를 넣어주세요.
|
||||
?>
|
||||
3
skin/board/shop_board/download.tail.skin.php
Normal file
@ -0,0 +1,3 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
BIN
skin/board/shop_board/img/admin_button.gif
Normal file
|
After Width: | Height: | Size: 259 B |
BIN
skin/board/shop_board/img/begin.gif
Normal file
|
After Width: | Height: | Size: 56 B |
BIN
skin/board/shop_board/img/bg_linein.gif
Normal file
|
After Width: | Height: | Size: 49 B |
BIN
skin/board/shop_board/img/btn_.psd
Normal file
BIN
skin/board/shop_board/img/btn_admin.gif
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
skin/board/shop_board/img/btn_c_del.gif
Normal file
|
After Width: | Height: | Size: 279 B |
BIN
skin/board/shop_board/img/btn_c_down.gif
Normal file
|
After Width: | Height: | Size: 125 B |
BIN
skin/board/shop_board/img/btn_c_modify.gif
Normal file
|
After Width: | Height: | Size: 283 B |
BIN
skin/board/shop_board/img/btn_c_ok.gif
Normal file
|
After Width: | Height: | Size: 946 B |
BIN
skin/board/shop_board/img/btn_c_reply.gif
Normal file
|
After Width: | Height: | Size: 279 B |
BIN
skin/board/shop_board/img/btn_c_start.gif
Normal file
|
After Width: | Height: | Size: 124 B |
BIN
skin/board/shop_board/img/btn_c_up.gif
Normal file
|
After Width: | Height: | Size: 125 B |
BIN
skin/board/shop_board/img/btn_c_write.gif
Normal file
|
After Width: | Height: | Size: 551 B |
BIN
skin/board/shop_board/img/btn_close.gif
Normal file
|
After Width: | Height: | Size: 223 B |
BIN
skin/board/shop_board/img/btn_comment_del.gif
Normal file
|
After Width: | Height: | Size: 278 B |
BIN
skin/board/shop_board/img/btn_comment_delete.gif
Normal file
|
After Width: | Height: | Size: 278 B |
BIN
skin/board/shop_board/img/btn_comment_insert.gif
Normal file
|
After Width: | Height: | Size: 397 B |
BIN
skin/board/shop_board/img/btn_comment_modify.gif
Normal file
|
After Width: | Height: | Size: 271 B |
BIN
skin/board/shop_board/img/btn_comment_reply.gif
Normal file
|
After Width: | Height: | Size: 272 B |
BIN
skin/board/shop_board/img/btn_comment_update.gif
Normal file
|
After Width: | Height: | Size: 271 B |
BIN
skin/board/shop_board/img/btn_copy.gif
Normal file
|
After Width: | Height: | Size: 400 B |
BIN
skin/board/shop_board/img/btn_copy_all.gif
Normal file
|
After Width: | Height: | Size: 221 B |
BIN
skin/board/shop_board/img/btn_del.gif
Normal file
|
After Width: | Height: | Size: 374 B |
BIN
skin/board/shop_board/img/btn_delete.gif
Normal file
|
After Width: | Height: | Size: 303 B |
BIN
skin/board/shop_board/img/btn_delete_all.gif
Normal file
|
After Width: | Height: | Size: 217 B |
BIN
skin/board/shop_board/img/btn_down.gif
Normal file
|
After Width: | Height: | Size: 162 B |
BIN
skin/board/shop_board/img/btn_file_add.gif
Normal file
|
After Width: | Height: | Size: 159 B |
BIN
skin/board/shop_board/img/btn_file_minus.gif
Normal file
|
After Width: | Height: | Size: 155 B |
BIN
skin/board/shop_board/img/btn_good.gif
Normal file
|
After Width: | Height: | Size: 246 B |
BIN
skin/board/shop_board/img/btn_init.gif
Normal file
|
After Width: | Height: | Size: 157 B |
BIN
skin/board/shop_board/img/btn_list.gif
Normal file
|
After Width: | Height: | Size: 285 B |
BIN
skin/board/shop_board/img/btn_list_search.gif
Normal file
|
After Width: | Height: | Size: 373 B |
BIN
skin/board/shop_board/img/btn_modify.gif
Normal file
|
After Width: | Height: | Size: 298 B |
BIN
skin/board/shop_board/img/btn_move.gif
Normal file
|
After Width: | Height: | Size: 410 B |
BIN
skin/board/shop_board/img/btn_move_all.gif
Normal file
|
After Width: | Height: | Size: 217 B |
BIN
skin/board/shop_board/img/btn_my_menu.gif
Normal file
|
After Width: | Height: | Size: 630 B |
BIN
skin/board/shop_board/img/btn_next.gif
Normal file
|
After Width: | Height: | Size: 333 B |
BIN
skin/board/shop_board/img/btn_nogood.gif
Normal file
|
After Width: | Height: | Size: 443 B |
BIN
skin/board/shop_board/img/btn_prev.gif
Normal file
|
After Width: | Height: | Size: 353 B |
BIN
skin/board/shop_board/img/btn_reply.gif
Normal file
|
After Width: | Height: | Size: 307 B |
BIN
skin/board/shop_board/img/btn_rss.gif
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
skin/board/shop_board/img/btn_s_copy.gif
Normal file
|
After Width: | Height: | Size: 435 B |
BIN
skin/board/shop_board/img/btn_s_del.gif
Normal file
|
After Width: | Height: | Size: 441 B |
BIN
skin/board/shop_board/img/btn_s_move.gif
Normal file
|
After Width: | Height: | Size: 439 B |
BIN
skin/board/shop_board/img/btn_scrap.gif
Normal file
|
After Width: | Height: | Size: 369 B |
BIN
skin/board/shop_board/img/btn_search.gif
Normal file
|
After Width: | Height: | Size: 529 B |
BIN
skin/board/shop_board/img/btn_search_list.gif
Normal file
|
After Width: | Height: | Size: 420 B |
BIN
skin/board/shop_board/img/btn_search_next.gif
Normal file
|
After Width: | Height: | Size: 229 B |
BIN
skin/board/shop_board/img/btn_search_prev.gif
Normal file
|
After Width: | Height: | Size: 229 B |
BIN
skin/board/shop_board/img/btn_select_copy.gif
Normal file
|
After Width: | Height: | Size: 483 B |
BIN
skin/board/shop_board/img/btn_select_delete.gif
Normal file
|
After Width: | Height: | Size: 477 B |
BIN
skin/board/shop_board/img/btn_select_move.gif
Normal file
|
After Width: | Height: | Size: 488 B |
BIN
skin/board/shop_board/img/btn_trackback.gif
Normal file
|
After Width: | Height: | Size: 374 B |
BIN
skin/board/shop_board/img/btn_up.gif
Normal file
|
After Width: | Height: | Size: 158 B |
BIN
skin/board/shop_board/img/btn_update.gif
Normal file
|
After Width: | Height: | Size: 365 B |
BIN
skin/board/shop_board/img/btn_write.gif
Normal file
|
After Width: | Height: | Size: 590 B |
BIN
skin/board/shop_board/img/co_bg.gif
Normal file
|
After Width: | Height: | Size: 124 B |
BIN
skin/board/shop_board/img/co_btn_delete.gif
Normal file
|
After Width: | Height: | Size: 161 B |
BIN
skin/board/shop_board/img/co_btn_down.gif
Normal file
|
After Width: | Height: | Size: 162 B |
BIN
skin/board/shop_board/img/co_btn_good.gif
Normal file
|
After Width: | Height: | Size: 401 B |
BIN
skin/board/shop_board/img/co_btn_good2.gif
Normal file
|
After Width: | Height: | Size: 492 B |
BIN
skin/board/shop_board/img/co_btn_good_write.gif
Normal file
|
After Width: | Height: | Size: 477 B |
BIN
skin/board/shop_board/img/co_btn_good_write2.gif
Normal file
|
After Width: | Height: | Size: 565 B |
BIN
skin/board/shop_board/img/co_btn_init.gif
Normal file
|
After Width: | Height: | Size: 157 B |
BIN
skin/board/shop_board/img/co_btn_modify.gif
Normal file
|
After Width: | Height: | Size: 164 B |
BIN
skin/board/shop_board/img/co_btn_reply.gif
Normal file
|
After Width: | Height: | Size: 251 B |
BIN
skin/board/shop_board/img/co_btn_up.gif
Normal file
|
After Width: | Height: | Size: 158 B |
BIN
skin/board/shop_board/img/co_btn_write.gif
Normal file
|
After Width: | Height: | Size: 590 B |
BIN
skin/board/shop_board/img/co_point.gif
Normal file
|
After Width: | Height: | Size: 63 B |
BIN
skin/board/shop_board/img/co_title_bg.gif
Normal file
|
After Width: | Height: | Size: 51 B |
BIN
skin/board/shop_board/img/com_del.gif
Normal file
|
After Width: | Height: | Size: 54 B |
BIN
skin/board/shop_board/img/com_edit.gif
Normal file
|
After Width: | Height: | Size: 55 B |
BIN
skin/board/shop_board/img/comment.gif
Normal file
|
After Width: | Height: | Size: 92 B |
BIN
skin/board/shop_board/img/comment_bg.gif
Normal file
|
After Width: | Height: | Size: 47 B |
BIN
skin/board/shop_board/img/comment_left.gif
Normal file
|
After Width: | Height: | Size: 59 B |
BIN
skin/board/shop_board/img/comment_right.gif
Normal file
|
After Width: | Height: | Size: 59 B |
BIN
skin/board/shop_board/img/copy_btn.gif
Normal file
|
After Width: | Height: | Size: 221 B |
BIN
skin/board/shop_board/img/delete_btn.gif
Normal file
|
After Width: | Height: | Size: 217 B |
BIN
skin/board/shop_board/img/dot_bg.gif
Normal file
|
After Width: | Height: | Size: 43 B |
BIN
skin/board/shop_board/img/dot_bg_1.gif
Normal file
|
After Width: | Height: | Size: 43 B |
BIN
skin/board/shop_board/img/down.gif
Normal file
|
After Width: | Height: | Size: 175 B |
BIN
skin/board/shop_board/img/end.gif
Normal file
|
After Width: | Height: | Size: 56 B |
BIN
skin/board/shop_board/img/file_icon.gif
Normal file
|
After Width: | Height: | Size: 125 B |
BIN
skin/board/shop_board/img/file_icon_01.gif
Normal file
|
After Width: | Height: | Size: 73 B |
BIN
skin/board/shop_board/img/file_icon_02.gif
Normal file
|
After Width: | Height: | Size: 75 B |
BIN
skin/board/shop_board/img/good.gif
Normal file
|
After Width: | Height: | Size: 150 B |
BIN
skin/board/shop_board/img/good_bg.gif
Normal file
|
After Width: | Height: | Size: 406 B |
BIN
skin/board/shop_board/img/gray_line.gif
Normal file
|
After Width: | Height: | Size: 45 B |
BIN
skin/board/shop_board/img/icon_admin.gif
Normal file
|
After Width: | Height: | Size: 194 B |