ÀÌ»ç±â¢â      2005/02/17 (14:47:52)     2765   
   ±Ã±ÝÇؼ­¿ä~
<?
// ÀÚ½ÅÀÇ °èÁ¤¿¡ ¸Â°Ô ¼³Á¤ÇØ ÁÖ¼¼¿ä.

        $µðºñÈ£½ºÆ® = "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)    
      

       

3744 ȨÆäÀÌÁö ¹é¾÷ ¿äû µå¸³´Ï´Ù. [1] Äí¾Æ 01/31 7080
3743 ftp¹®Àǵ帳´Ï´Ù. [1] ÀÌíÀÌí 01/31 0
3742 ¼­ºñ½º¿¬Àå [1] haeminx 01/31 5313
3741 µµ¸ÞÀÎ Ãß°¡ ¿¬°á ºÎŹ µå¸³´Ï´Ù. [1] ÇÑ´©¸® 01/28 0
3740 Áú¹®ÀÌ ÇÑ°¡Áö ´õ ÀÖ½À´Ï´Ù. ^^ [1] incursion 01/28 5810
3739 ¼­ºñ½º ¸¸·á°¡ (20ÀÏ)ÀÌ Áö³µ½À´Ï´Ù [1] incursion 01/28 0
3738 ftp Á¢¼Ó °èÁ¤¹®ÀÇ [1] ¹Ì·¡À©Ä¡ 01/28 6178
3737 ¾Æ·¡ Áú¹® À̾. [3] healsoft 01/26 5001
3736 mysql ¹öÀü... [2] healsoft 01/26 5002
3735 µµ¸ÞÀÎ ¿¬°á.. [1] jaymz 01/24 0
3734 ¼­¹öÀÌÀü.. [1] ¸·½Ã¹«½º 01/24 0
3733 µµ¸ÞÀο¬°á [1] ³ª¾ß³ª 01/22 5401
3732 À¥È£½ºÆñⰣ¿¬Àå °áÀç¿Ï·á Çß½À´Ï´Ù. [1] joyndvd 01/22 0
3731 ¼­ºñ½º ¿¬Àå [1] °ËÀºÄá 01/22 4969
3730 ¸Õ°¡ ÀÌ»óÇÑ°Å °°Àºµ¥¿ä [1] Çϴóª¶ó¾Æ±â 01/21 5037
FIRST101108109110111112113114121LAST