부디 부탁하나 있어서여 ^0^

2005.05.16
{{[[안녕하세요
처음 올리는글인데 부탁글부터 올려서 죄송합니다.
자아소개부터 하겠습니다,
고향은 중국 연변이고 현재 일본에서 유학하고 있습니다,]]}}

{{[[대류커뮤니티에서 많은 유용정보 우선 감사드립니다,,,
vol.22 웹진형 최근게시물 - 가로형태를 다운받아서 홈피에 적용할려고 하니...파일 언어가 엉망이되여서 쯥--::
지금 쓰고 있는 컴퓨터OS가 중국어 버젼이여서 언어가 깨지는데여 ㅠㅠ

Word 메모장이라던가 알포라던가 될수 있는 방법 다 썼지만 그냥 서구라파 언어로 표시되는 바람에 ㅠㅠ]]}}
[showandhide|자세한 내용 보기|원래대로 숨기기|8714|<?
// ÀÚ½ÅÀÇ °èÁ¤¿¡ ¸Â°Ô ¼³Á¤ÇØ ÁÖ¼¼¿ä.

        $µðºñÈ£½ºÆ® = "localhost";  //µðºñ È£½ºÆ®¸¦ Àû½À´Ï´Ù.
        $µðºñ¾ÆÀ̵ð = "";           // µðºñ¾ÆÀ̵𸦠Àû½À´Ï´Ù.
        $µðºñºñ¹Ð¹øÈ£ = "";         // µðºñºñ¹Ð¹øÈ£¸¦ Àû½À´Ï´Ù.
        $µðºñ³×ÀÓ = "";             // µðºñ³×ÀÓÀ» Àû½À´Ï´Ù.
        $Á¦·Îº¸µå°æ·Î = "";         // Á¦·Îº¸µå°¡ ¼³Ä¡µÇ¾î ÀÖ´Â °æ·Î¸¦ Àû½À´Ï´Ù. ³¡¿¡ /´Â ³ÖÁö ¸¶¼¼¿ä.

// ´Ù½ÃÇѹø À§ ¼³Á¤ÀÌ ¸Â´ÂÁö È®ÀÎÇϼ¼¿ä.
// ´Ù¸¥°Ç ¼Õµ¥Áö ¾Ê¾Æµµ µË´Ï´Ù. À§ÀÇ DB Á¤º¸¸¸ ÀûÀ¸¸é µË´Ï´Ù.



//°Ô½ÃÆÇÀ̸§, ¸®½ºÆ®°¹¼ö, ¹Ú½ºÁ¦¸ñ, ÄÚ¸àÆ®À¯¹«, ±Û¾´ÀÌÀ¯¹«, ³¯Â¥À¯¹«, ¸®½ºÆ®Á¦¸ñ±ÛÀÚ¼ö, ¸®½ºÆ®º»¹®±ÛÀÚ¼ö, newÀ̹ÌÁöÀ¯¹«, ¸®½ºÆ®³ôÀÌ, À̹ÌÁö³ÐÀÌ, À̹ÌÁö³ôÀÌ, À̹ÌÁö/Á¦¸ñ/º»¹®Ãâ·Â°¹¼ö
function dasom_webjin_right($id, $number, $title, $set_comment, $set_name, $set_date, $list_title, $list_memo, $set_new, $list_height, $img_width, $img_height, $change_point)


{
        global $µðºñÈ£½ºÆ®,$µðºñ¾ÆÀ̵ð,$µðºñºñ¹Ð¹øÈ£,$µðºñ³×ÀÓ,$Á¦·Îº¸µå°æ·Î,$Á¦¸ñ±æÀÌ,$¿Ãµå¾ÆÀÌÄÜ,$´º¾ÆÀÌÄÜ;
        $µðºñÁ¢¼Ó=mysql_connect($µðºñÈ£½ºÆ®,$µðºñ¾ÆÀ̵ð,$µðºñºñ¹Ð¹øÈ£);
        mysql_select_db($µðºñ³×ÀÓ,$µðºñÁ¢¼Ó);
        $result=mysql_query("select * from zetyx_board_$id where is_secret=0 order by no desc limit $number",$µðºñÁ¢¼Ó) or die(mysql_error());


// »ó´Ü µµÆ® ¹Ú½º ½ÃÀÛ

echo("<table border=0 width=100% cellspacing=0 cellpadding=0>");
echo("<TR>");
echo("<TD>");
echo("<TABLE cellSpacing=0 cellPadding=0 width=100% border=0>");
echo("<TBODY>");
echo("<TR>");
echo("<TD width=100% height=1 background=$Á¦·Îº¸µå°æ·Î/latest_skin/dasom_webjin_n/images/dot_bar.gif> </TD>");
echo("</TR>");
echo("<TR>");
echo("<TD width=100% height=28>    $title</TD>");
echo("</TR>");
echo("<TR>");
echo("<TD width=100% height=1 background=$Á¦·Îº¸µå°æ·Î/latest_skin/dasom_webjin_n/images/dot_bar.gif> </TD>");
echo("</TR>");
echo("<TR>");
echo("<TD width=100% height=3 bgcolor=#F5F5F5> </TD>");
echo("</TR>");
echo("<TR>");
echo("<TD width=100% height=5> </TD>");
echo("</TR>");
echo("</TBODY>");
echo("</TABLE>");
echo("</TD>");
echo("</TR>");
echo("</table>");

// »ó´Ü µµÆ® ¹Ú½º ³¡

$change_count = 0; // by wolf


while($data=mysql_fetch_array($result))

{

        $change_count = $change_count + 1;  //À̹ÌÁö/Á¦¸ñ/º»¹® Ãâ·Â°ü·Ã

        if($set_name == 1){
                $name = stripslashes($data[name]);
                $name = "by ".$name."";
        }
//        $data[memo] = del_html(stripslashes($data[memo]));  // º»¹® htmlÅÂ±× ¸·±â.
        $data[memo] = strip_tags(stripslashes($data[memo])); // º»¹® htmlÅÂ±× »èÁ¦
        $data[memo]=cut_str($data[memo],$list_memo); // ¸®½ºÆ® º»¹® ±ÛÀÚ¼öÀÔ´Ï´Ù.

//        $data[memo] = str_replace( "<", "<",$data[memo]);
//        $data[memo] = str_replace( ">", ">",$data[memo]);

        $data[subject] = stripslashes($data[subject]);
        $data[subject] = strip_tags(stripslashes($data[subject])); // ¸®½ºÆ® Á¦¸ñ htmlÅÂ±× »èÁ¦
        $data[subject]=cut_str($data[subject],$list_title); // ¸®½ºÆ® Á¦¸ñ ±ÛÀÚ¼öÀÔ´Ï´Ù.

        if (  ($data[total_comment] > 0 ) && ($set_comment == 1)  )    // ÄÚ¸àÆ® À¯¹«¼³Á¤
                $data[total_comment]= " + ".$data[total_comment]."";
        else $data[total_comment]=" ";

        if ($set_date == 1 )                    // ³¯Â¥À¯¹« ¼³Á¤
                $reg_date = " ".date("Y.m.d",$data[reg_date])." ";
        else $reg_date =" ";
                echo(" ");

        $passtime = (mktime()-$data[reg_date])/3600;

        if(($passtime <48) && ($set_new == 1)) {
                $data[subject] = "".$data[subject]." $data[total_comment] $name "; // »õ ±Û(new) ¾ÆÀÌÄÜ Ãâ·Â
        }else{
                $data[subject] = "".$data[subject]." $data[total_comment] $name";
        }

if ($change_point >= $change_count) {

        if (!stripslashes($data[file_name2]))

        {

// À̹ÌÁö Ãâ·ÁµÇÁö ¾ÊÀ» ¶§

                echo " <style>
                .dasom_subject {font-family:verdana,µ¸¿ò;font-size:9pt;color:#666666;}
                .dasom_title {font-family:verdana,µ¸¿ò;font-size:9pt;color:#333333;}
                </style>";
                echo("<table border='0' cellpadding='0' cellspacing='0'  width='100%' height='$list_height' style=padding-left:5px;padding-right:5px;>");
                echo("<tr>");
                echo("<td width='100%' class=dasom_title height=20 valign='top'> ".stripslashes($data[subject])."");
                echo(" ".$reg_date."</td>");
                echo("</tr>");
                echo("<tr>");
                echo("<td width='100%' valign=top class=dasom_subject style=text-align:justify;>".stripslashes($data[memo])."</td>");
                echo("</tr>");
                echo("<tr>");
                echo("<td width='100%' height='10' background='$Á¦·Îº¸µå°æ·Î/latest_skin/dasom_webjin_n/images/dot_garo.gif'>");// µµÆ®(Á¡¼±) À̹ÌÁö Ãâ·Â
                echo("</td>");
                echo("</tr>");
                echo("</table>");


        }else{

// À̹ÌÁö Ãâ·Â µÉ ¶§

                echo "<style>
                .dasom_subject {font-family:verdana,µ¸¿ò;font-size:9pt;color:#666666;}
                .dasom_title {font-family:verdana,µ¸¿ò;font-size:9pt;color:#333333;}
                .dasom_h {font-family:verdana,µ¸¿ò;font-size:9pt;color:royalblue;height:20;}
                .dasom_c {font-family:tahoma;font-size:7pt;color:green;height:20;}
                </style>";
                echo("<table border='0' cellpadding='0' cellspacing='0'  width='100%' height='$list_height' style=padding-left:5px;padding-right:5px;>");
             echo("<tr>");
                echo("<td valign='top' style='padding-top:5;'>".stripslashes($data[subject])." ".$reg_date."<br>".stripslashes($data[memo])."</td>");
                echo("</tr>");
                echo("<tr>");
                echo("<td width='100%' height='10' colspan=2 background='$Á¦·Îº¸µå°æ·Î/latest_skin/dasom_webjin_n/images/dot_garo.gif'>");// µµÆ®(Á¡¼±) À̹ÌÁö Ãâ·Â
                echo("</td>");
                echo("</tr>");
                echo("</table>");
        } //if¹®ÀÇ ³¡

} else { // by wolf - start

echo " <style>
.dasom_subject {font-family:verdana,µ¸¿ò;font-size:9pt;color:#666666;}
.dasom_title {font-family:verdana,µ¸¿ò;font-size:9pt;color:#333333;}
</style>";

echo("<table border='0' cellpadding='0' cellspacing='0' width='100%' style=padding-left:5px;padding-right:5px;>");
echo("<tr>");
echo("<td width='100%' class=dasom_title height=20> ".stripslashes($data[subject])."");
echo(" ".$reg_date."</td>");
echo("</tr>");
echo("</table>");

} // by wolf - end

} // while¹® ³¡


} // ÇÔ¼ö ³¡|showandhide]

원본소스 어떻게 그냥 게시판에 올려줄수 없습니까? 무리한 부탁인지  
좋은 하루가 되세요
  • 현미녹차 2005.05.16 10:06
    지나가다가..... 그것은 한글이 깨지는 것 같습니다. 그냥 깨지는 글씨는 지우시고 하시는 것은 어떠신지요?

    주석 부분과 텍스트 부분만 한글일테니 말이죠~~
  • 대류 2005.05.16 11:27
    중문OS 라도 한글언어팩설치하면 보이지 않나요?
    한글언어팩 설치해보세요...
    아니면 위에 현미녹차님말씀처럼 깨지는 글씨는 한글일테니 삭제하셔도 됩니다.
  • 천하일꾼 2005.05.16 13:06
    한글어팩 해봤어요 안됩디다....

    음 {
    global $µðºñÈ£½ºÆ®,$µðºñ¾ÆÀ̵ð,$µðºñºñ¹Ð¹øÈ£,$µðºñ³×ÀÓ,$Á¦·Îº¸µå°æ·Î,$Á¦¸ñ±æÀÌ,$¿Ãµå¾ÆÀÌÄÜ,$´º¾ÆÀÌÄÜ;
    $µðºñÁ¢¼Ó=mysql_connect($µðºñÈ£½ºÆ®,$µðºñ¾ÆÀ̵ð,$µðºñºñ¹Ð¹øÈ£);
    mysql_select_db($µðºñ³×ÀÓ,$µðºñÁ¢¼Ó);
    $result=mysql_query("select * from zetyx_board_$id where is_secret=0 order by no desc limit $number",$µðºñÁ¢¼Ó) or die(mysql_error());
    여기 요부분도 필요없다면 깨지는글 다 지우고 해봐야겠습니다 감사합니다,
    현미녹차님 대류님 좋은 하루 보내세요

List of Articles
번호 제목 글쓴이 날짜 조회 수
1292 질문이있는데요... Sverd 2003.01.24 6721
1291 안녕하세혀? ^0^;; 음악태그에 관해서..(인사차질문 ^^) 2 rulrulara 2003.01.24 6603
1290 안녕하세요... 홍석만 2003.01.24 6590
1289 근데요..... 1 홍석만 2003.01.24 4894
1288 저기요.... 정혜린 2003.01.25 4941
1287 이미지 저장을 완벽하게 막는 방법은 없을까요 ? 1 박제현 2003.01.31 4726
1286 안녕하세요~^^ 1 이옥현 2003.02.03 6765
1285 홈피 테두리 사이즈는 어케 조정하는지요? 2 정성희 2003.02.05 4244
1284 wo.to 같은 주소 짧게 해주는곳 중에 2 루팡30 2003.02.06 3255
1283 넘 간단한 질문인가..ㅡㅡ;게시판에 관해.. 1 팔콘213 2003.02.07 2884
1282 최근게시물... 2 yjylove 2003.02.08 2935
1281 최근게시물에 관한 질문입니다~!! 제발 필독!! 2 『PDS.K』 2003.02.09 3380
1280 게시판넣을때 .. 3 오유 2003.02.09 3003
1279 스킨질문~ 1 물고기 2003.02.10 2269
1278 도와주세요..최근게시물.. 2 yjylove 2003.02.11 2742
1277 최근게시물 제목 질문 ! 꼭 좀 ~ 1 아짱이 2003.02.11 2239
1276 최근 게시물 스킨에서 날짜 모양 바꾸는 법 좀 알려주세요 1 이덕수 2003.02.14 2224
1275 나모에 클립아트가 없어요(-_-;;) 1 우라누스03 2003.02.19 2041
1274 노프레임첫페이지에서 일반게시물 출력 -_-;; 2 하종근 2003.02.19 14
1273 최근게시물때문에요. 2 음.. 2003.02.19 2006
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 65 Next
/ 65