유니코드 변환한..카페에서.. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

유니코드 변환한..카페에서.. 정보

유니코드 변환한..카페에서..

본문

<?
$g4_path = ".";
include_once("$g4_path/_common.php");
$g4[title] = "";
include_once("$g4[cafe_path]/make/make_head.php");
//접근 권한 체크
if (!$member[mb_id]) {
alert_close("로그인 후 이용하세요.", "$g4[path]");
}
else if ($member[mb_id] != $gr_id) {
alert_close("잘못된 접근 입니다.", "$g4[path]");
}
else if ($member[mb_id] == $group[gr_id]) {
alert_close("이미 카페를 생성하였습니다.", "$g4[path]");
}
else if ($member[mb_id] == 'adm') {
alert_close("카페를 생성할 수 없는 회원 아이디 입니다.", "$g4[path]");
}
else if ($member[mb_id] == 'bbs') {
alert_close("카페를 생성할 수 없는 회원 아이디 입니다.", "$g4[path]");
}
else if ($member[mb_id] == 'img') {
alert_close("카페를 생성할 수 없는 회원 아이디 입니다.", "$g4[path]");
}
else if ($member[mb_id] == 'lib') {
alert_close("카페를 생성할 수 없는 회원 아이디 입니다.", "$g4[path]");
}
else if ($member[mb_id] == 'make') {
alert_close("카페를 생성할 수 없는 회원 아이디 입니다.", "$g4[path]");
}
else if ($member[mb_id] == 'skin') {
alert_close("카페를 생성할 수 없는 회원 아이디 입니다.", "$g4[path]");
}
?>
<table width="570" cellpadding="0" cellspacing="0" border="0" align="center" valign="top">
<form name=fmakeform method=post action="javascript:fmakeform_submit(document.fmakeform)" enctype="multipart/form-data">
<input type=hidden name="w"    value="<?=$w?>">
<input type=hidden name="gr_id"    value="<?=$gr_id?>">
 <tr><td height="20"></td></tr>
 <tr>
  <td height="30"><span class="cafe_m_s">카페 생성하기</span></td>
 </tr>
 <tr>
  <td height="30"><span class="cafe_m_s">카페 생성하기</span></td>
 </tr>
 <tr>
  <td height="10"></td>
 </tr>
 <tr>
  <td style='border:3px solid #F8F8F8;' width="570">
   <table style='border:1px solid #EEEEEE;' width="570" cellpadding="0" cellspacing="0" border="0" align="center" valign="top">
    <tr>
     <td width="10" height="30"></td>
     <td width="100" height="30"><img src="<?=$g4['cafe_path']?>/bbs/img/icon_arrow.gif"> <span class="cafe_m_s">카페이름</span></td>
     <td width="450" height="30">
<input type=text class=ed name=gr_subject style="width:100%;" maxlength=120 itemname='카페이름' required value='<?=$group['gr_subject']?>'></td>
     <td width="10" height="30"></td>
    </tr>
    <tr>
     <td width="10"></td>
     <td background="<?=$g4['cafe_path']?>/bbs/img/lh_bg.gif" width="550" height="1" colspan="5"></td>
     <td width="10"></td>
    </tr>
    <tr>
     <td width="10" height="30"></td>
     <td width="100" height="30"><img src="<?=$g4['cafe_path']?>/bbs/img/icon_arrow.gif"> <span class="cafe_m_s">카페ID</span></td>
     <td width="450" height="30"><?=$cafe_domain?>/<?=$member['mb_id']?></td>
     <td width="10" height="30"></td>
    </tr>
    <tr>
     <td width="10"></td>
     <td background="<?=$g4['cafe_path']?>/bbs/img/lh_bg.gif" width="550" height="1" colspan="5"></td>
     <td width="10"></td>
    </tr>
    <tr>
     <td width="10" height="30"></td>
     <td width="100" height="30"><img src="<?=$g4['cafe_path']?>/bbs/img/icon_arrow.gif"> <span class="cafe_m_s">카페분류</span></td>
     <td width="450" height="30">
<select name=gr_4 required itemname="분류">
    <option value='ct0'>또래/띠</option>
    <option value='ct1'>지역</option>
    <option value='ct2'>동창/동문/동아리</option>
    <option value='ct3'>친목</option>
    <option value='ct4'>가족/연인</option>
    <option value='ct5'>스터디</option>
    <option value='ct6'>회사</option>
    <option value='ct7'>게임</option>
    <option value='ct8'>교육</option>
    <option value='ct9'>만화/애니</option>
    <option value='ct10'>스포츠/레저</option>
    <option value='ct11'>비즈니스/재테크</option>
    <option value='ct12'>생활/건강</option>
    <option value='ct13'>여성/결혼/육아</option>
    <option value='ct14'>드라마/영화</option>
    <option value='ct15'>문학/예술</option>
    <option value='ct16'>사회/종교/봉사</option>
    <option value='ct17'>취미</option>
    <option value='ct18'>컴퓨터/인터넷</option>
    <option value='ct19'>팬클럽</option>
    <option value='ct20'>미디어/연예</option>
    <option value='ct21'>음악</option>
</select></td>
     <td width="10" height="30"></td>
    </tr>
    <tr>
     <td width="10"></td>
     <td background="<?=$g4['cafe_path']?>/bbs/img/lh_bg.gif" width="550" height="1" colspan="5"></td>
     <td width="10"></td>
    </tr>
    <tr>
     <td width="10" height="60"></td>
     <td width="100" height="60"><img src="<?=$g4['cafe_path']?>/bbs/img/icon_arrow.gif"> <span class="cafe_m_s">카페설명</span></td>
     <td width="450" height="60">
<textarea name="gr_7" class="comment" style="width:450px;height:48px;word-break:break-all;" required itemname="카페설명"><?=$group['gr_7']?></textarea></td>
     <td width="10" height="60"></td>
    </tr>
    <tr>
     <td width="10"></td>
     <td background="<?=$g4['cafe_path']?>/bbs/img/lh_bg.gif" width="550" height="1" colspan="5"></td>
     <td width="10"></td>
    </tr>
    <tr>
     <td width="10" height="30"></td>
     <td width="100" height="30"><img src="<?=$g4['cafe_path']?>/bbs/img/icon_arrow.gif"> <span class="cafe_m_s">회원공개정보</span></td>
     <td width="450" height="30">
<input type=checkbox name=cd_openname value="1">실명 <input type=checkbox name=cd_opensex value="1">성별 <input type=checkbox name=cd_openage value="1">나이 <input type=checkbox name=cd_openregion value="1">지역 <input type=checkbox name=cd_openemail value="1">이메일 <input type=checkbox name=cd_opentel value="1">연락처</td>
     <td width="10" height="30"></td>
    </tr>
    <tr>
     <td width="10"></td>
     <td background="<?=$g4['cafe_path']?>/bbs/img/lh_bg.gif" width="550" height="1" colspan="5"></td>
     <td width="10"></td>
    </tr>
    <tr>
     <td width="10" height="100"></td>
     <td width="100" height="100"><img src="<?=$g4['cafe_path']?>/bbs/img/icon_arrow.gif"> <span class="cafe_m_s">회원가입질문</span></td>
     <td width="450" height="100">
<table width="450" height="100" cellpadding="0" cellspacing="0" border="0" align="center">
 <tr><td height="5"></td></tr>
 <tr>
  <td width="450" height="24">
<input type=text class=ed name=cd_q1 style="width:100%;" maxlength=120 itemname='질문1' value='<?=$cafe_design['cd_q1']?>'></td>
 </tr>
 <tr>
  <td width="450" height="24">
<input type=text class=ed name=cd_q2 style="width:100%;" maxlength=120 itemname='질문2' value='<?=$cafe_design['cd_q2']?>'></td>
 </tr>
 <tr>
  <td width="450" height="24">
<input type=text class=ed name=cd_q3 style="width:100%;" maxlength=120 itemname='질문3' value='<?=$cafe_design['cd_q3']?>'></td>
 </tr>
 <tr><td height="5"></td></tr>
</table></td>
     <td width="10" height="100"></td>
    </tr>
   </table></td>
 </tr>
 <tr>
  <td height="50" align="center">
<INPUT type=image src="<?=$g4['cafe_path']?>/make/img/btn_make.gif" border="0" accesskey='s'></td>
 </tr>
</form>
</table>
<script language="JavaScript">
function fmakeform_submit(f)
{
    f.action = "./cafe_make_update.php";
    f.submit();
}
</script>
<?
include_once("$g4[cafe_path]/make/make_tail.php");
?>
 
 
 
유니코드 변환한 카페에서 카페 생성시
뜨는 경고창 생성 완료 메시지등.
이 외계어로 나오던데.. 해결 방법 없을가요?
mysql 5.0이상 버전 사용 하고 있던터라..
common.php
어떤님 팁 적용 후 파일 인클루드 해서 쓰구 있는데.
 
경고창도 한글로 표기 하는 방법 없을 가요?
 
또한.. 카페 생성시.
유니코드 변환 버전만.
페이지가 백 되던데. 왜 그런지
일반 버전에선. 카페 생성시 걍 생성 되었습니다,.
하구 닫아 지지만.
유니코드 변환 버전은 그렇지 않네요.
  • 복사

댓글 전체

http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=2497
이 팁을 참고하시고,

make_head.php 파일에

include_once("$g4[path]/head.sub.php");

이렇게 한줄 넣어보세요...
Warning: include_once(/head.sub.php) [function.include-once]: failed to open stream: No such file or directory in /home2/edm/www/gb4/cafe/make/cafe_make.php on line 3

Warning: include_once() [function.include]: Failed opening '/head.sub.php' for inclusion (include_path='.:/usr/local/lib/php') in /home2/edm/www/gb4/cafe/make/cafe_make.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /home2/edm/www/gb4/cafe/make/cafe_make.php:3) in /home2/edm/www/gb4/common.php on line 8

Warning: Cannot modify header information - headers already sent by (output started at /home2/edm/www/gb4/cafe/make/cafe_make.php:3) in /home2/edm/www/gb4/head.sub.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /home2/edm/www/gb4/cafe/make/cafe_make.php:3) in /home2/edm/www/gb4/head.sub.php on line 34

Warning: Cannot modify header information - headers already sent by (output started at /home2/edm/www/gb4/cafe/make/cafe_make.php:3) in /home2/edm/www/gb4/head.sub.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /home2/edm/www/gb4/cafe/make/cafe_make.php:3) in /home2/edm/www/gb4/head.sub.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /home2/edm/www/gb4/cafe/make/cafe_make.php:3) in /home2/edm/www/gb4/head.sub.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home2/edm/www/gb4/cafe/make/cafe_make.php:3) in /home2/edm/www/gb4/head.sub.php on line 38

이런 에러 발생여
위 방법으로 에러가 나온다면

include_once("$g4[path]/head.sub.php");
이거 대신에

header("Content-Type: text/html; charset=$g4[charset]");

또는

header("Content-Type: text/html; charset=utf-8");

이렇게 넣어보세요 ... ^^
© SIRSOFT
현재 페이지 제일 처음으로