{{[[안녕하세요
처음 올리는글인데 부탁글부터 올려서 죄송합니다.
자아소개부터 하겠습니다,
고향은 중국 연변이고 현재 일본에서 유학하고 있습니다,]]}}
{{[[대류커뮤니티에서 많은 유용정보 우선 감사드립니다,,,
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]
원본소스 어떻게 그냥 게시판에 올려줄수 없습니까? 무리한 부탁인지
좋은 하루가 되세요
처음 올리는글인데 부탁글부터 올려서 죄송합니다.
자아소개부터 하겠습니다,
고향은 중국 연변이고 현재 일본에서 유학하고 있습니다,]]}}
{{[[대류커뮤니티에서 많은 유용정보 우선 감사드립니다,,,
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>
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]
원본소스 어떻게 그냥 게시판에 올려줄수 없습니까? 무리한 부탁인지
좋은 하루가 되세요
주석 부분과 텍스트 부분만 한글일테니 말이죠~~