캐릭터셋 관련 코드 삭제

This commit is contained in:
chicpro
2013-02-01 09:39:59 +09:00
parent 9cdfc4fd67
commit f6962b5877

View File

@ -1,18 +1,11 @@
<?
include_once('./_common.php');
header("Content-Type: text/html; charset={$g4['charset']}");
header("Content-Type: text/html; charset=utf-8");
$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']));
@ -23,10 +16,7 @@ for ($i=0; $i<count($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;
$subj = $str;
break;
}
@ -34,10 +24,7 @@ for ($i=0; $i<count($filter); $i++) {
$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;
$cont = $str;
break;
}
}