±Ã±ÝÇؼ¿ä~
<?
// ÀÚ½ÅÀÇ °èÁ¤¿¡ ¸Â°Ô ¼³Á¤ÇØ ÁÖ¼¼¿ä.
$µðºñÈ£½ºÆ® = "localhost"; //µðºñ È£½ºÆ®¸¦ Àû½À´Ï´Ù.
$µðºñ¾ÆÀ̵ð = "****"; // µðºñ¾ÆÀ̵𸦠Àû½À´Ï´Ù.
$µðºñºñ¹Ð¹øÈ£ = "****"; // µðºñºñ¹Ð¹øÈ£¸¦ Àû½À´Ï´Ù.
$µðºñ³×ÀÓ = "****"; // µðºñ³×ÀÓÀ» Àû½À´Ï´Ù.
$Á¦·Îº¸µå°æ·Î = "http://happy-korea.com/board"; // Á¦·Îº¸µå°¡ ¼³Ä¡µÇ¾î ÀÖ´Â »ó´ë°æ·Î¸¦ Àû½À´Ï´Ù. ³¡¿¡ /´Â ³ÖÁö ¸¶¼¼¿ä.
// ´Ù½ÃÇѹø À§ ¼³Á¤ÀÌ ¸Â´ÂÁö È®ÀÎÇϼ¼¿ä.
//°Ô½ÃÆÇÀ̸§, ¸®½ºÆ®°¹¼ö, ¹Ú½ºÁ¦¸ñ, ÄÚ¸àÆ®À¯¹«, ±Û¾´ÀÌÀ¯¹«, ³¯Â¥À¯¹«, ¸®½ºÆ®Á¦¸ñ±ÛÀÚ¼ö, ¸®½ºÆ®º»¹®±ÛÀÚ¼ö, newÀ̹ÌÁöÀ¯¹«, ¸®½ºÆ®³ôÀÌ, À̹ÌÁö³ÐÀÌ, À̹ÌÁö³ôÀÌ, À̹ÌÁö/Á¦¸ñ/º»¹®Ãâ·Â°¹¼ö, Ä«Å×°í¸® Ãâ·ÂÀ¯¹«
function xen040($id, $number, $title, $set_comment, $set_name, $set_date, $list_title, $list_memo, $set_new, $list_height, $img_width, $img_height, $change_point, $show_category)
{
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());
$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 = "<font color=gray style=font-size:13pt;font-family:±¼¸²;>by ".$name."</font>";
}
// $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("m.d",$data[reg_date])."]";
else $reg_date =" ";
echo(" ");
$passtime = (mktime()-$data[reg_date])/3600;
if(($passtime <48) && ($set_new == 1)) {
$data[subject] = "<b>".$category."</b><font color=#212163><b>".$data[subject]."</b></font><font color=gray style=font-size:13pt;font-family:±¼¸²;>$data[total_comment] </font>$name"; //new ¾ÆÀÌÄÜ °æ·Î¸¦ Àڽſ¡ ¸Â°Ô ¼öÁ¤Çϼ¼¿ä.
}else{
$data[subject] = "<b>".$category."</b><font color=#212163><b>".$data[subject]."</b></font><font color=gray style=font-size:13pt;font-family:±¼¸²;>$data[total_comment] </font>$name";
}
if ($change_point >= $change_count) {
if (!stripslashes($data[file_name1]))
{
//÷ºÎ À̹ÌÁö°¡ ¾øÀ» °æ¿ì Ãâ·ÂÇÏ´Â ºÎºÐ
echo " <style>
.memo {font-family:±¼¸²Ã¼;font-size:9pt;color:black;}
.title {font-family:±¼¸²Ã¼;font-size:14pt;color:blue;text-indent:10m;}
</style>";
echo("<table border='0' cellpadding='0' cellspacing='0' width='100%' height='$list_height' style=padding-left:0px;padding-right:0px;>");
echo("<tr>");
echo("<td width='100%' class=title height=20 valign='top' span style='letter-spacing:2px'>".stripslashes($data[subject])." ");
echo("<font color=gray style=font-size:7pt;font-family:±¼¸²;> ".$reg_date."</font></td>");
echo("</tr>");
echo("<tr>");
echo("<td width='100%' valign=top class=memo style=text-align:justify;><font color=#6f6f6f>".stripslashes($data[memo])."</font></td>");
echo("</tr>");
echo("<tr>");
echo("<td width='100%' height='5' background='../board/latest_skin/xen040/images/dot.gif'>");//Á¡¼±À̹ÌÁö°¡ ÀÖ´Â °æ·Î¸¦ Àڽſ¡ ¸Â°Ô ¼öÁ¤Çϼ¼¿ä.
echo("</td>");
echo("</tr>");
echo("</table>");
}else{
//÷ºÎ À̹ÌÁö°¡ ÀÖÀ» °æ¿ì Ãâ·ÂÇÏ´Â ºÎºÐ
echo "<style>
.memo {font-family:±¼¸²Ã¼;font-size:9pt;color:black;}
.title {font-family:±¼¸²Ã¼;font-size:14pt;color:blue;text-indent:10m;}
</style>";
echo("<table border='0' cellpadding='0' cellspacing='0' width='100%' height='$list_height' style=padding-left:0px;padding-right:0px;>");
echo("<tr>");
echo("<td align=right rowspan=2> </td>");
echo("<td width='100%' colspan=2 class=title height=20 valign='top' span style='letter-spacing:2px'>".stripslashes($data[subject])." ");
echo("<font color=gray style=font-size:7pt;font-family:±¼¸²;> ".$reg_date."</font></td>");
echo("</tr>");
echo("<tr>");
echo("<td width='100%' valign=top class=memo style=text-align:justify;><font color=#6f6f6f>".stripslashes($data[memo])."</font></td>");
echo("</tr>");
echo("<tr>");
echo("<td width='100%' height='3' colspan=2 background='http://www.happy-korea.com/board/latest_skin/xen040/images/dot.gif' >");//Á¡¼±À̹ÌÁö°¡ ÀÖ´Â °æ·Î¸¦ Àڽſ¡ ¸Â°Ô ¼öÁ¤Çϼ¼¿ä.
echo("</td>");
echo("</tr>");
echo("</table>");
} //if¹®ÀÇ ³¡
} else { // by wolf - start
echo " <style>
.memo {font-family:±¼¸²Ã¼;font-size:9pt;color:black;}
.title {font-family:±¼¸²Ã¼;font-size:14pt;color:blue;text-indent:10m;}
</style>";
echo("<table border='0' cellpadding='0' cellspacing='0' width='100%' style=padding-left:0px;padding-right:0px;>");
echo("<tr>");
echo("<td width='100%' class=title height=20 span style='letter-spacing:2px'> ".stripslashes($data[subject])." ");
echo("<font color=gray style=font-size:7pt;font-family:±¼¸²;> ".$reg_date."</font></td>");
echo("</tr>");
echo("</table>");
} // by wolf - end
} // while ¹®ÀÇ ³¡
} // ÇÔ¼öÀÇ ³¡
------
www.happy-korea.com
ÀÇ ¸ÞÀÎ ÃֱٰԽù° ¼Ò½ºÀÔ´Ï´Ù.
À§ÀÇ ¸ÞÀÎ »çÀÌÆ®¸¦ º¸½Ã¸é Á¦¸ñ(»ó´ÜÀÇ ÆĶõ±Û¾¾ 14Æ÷ÀÎÆ®)ÀÇ ±ÛÀÚ °£°ÝÀÌ
¸¹ÀÌ ¹ú¾îÁ® ÀÖ½À´Ï´Ù.
ÀÌ °£°ÝÀ» ÁÙÀÌ´Â ¼Ò½º or ¹æ¹ýÀ» ¾Ë·ÁÁÖ¼¼¿ä.
±×·³ ÁÁÀº ÇÏ·ç µÇ¼¼¿ä.
writer ip : 61.255.37.191 , modify 211.111.3.122 , 2005/02/17 (15:03:10)
ÄÄÇ»Áî´åÄÄ(´ëÇ¥ ÀåÁ¤ÁÖ) ÀÎõ±¤¿ª½Ã µ¿±¸ ¹æÃà·Î83¹ø±æ 23, 24µ¿ 333È£
»ç¾÷ÀÚµî·Ï¹øÈ£ 137-05-83351, Åë½ÅÆǸŠÀÎõ µ¿±¸ 03-78È£, °³ÀÎÁ¤º¸Ã¥ÀÓÀÚ ÀåÁ¤ÁÖ