$code = "notice";
$num_per_page = 10;
$page_per_block = 10;
include "../includes/header.inc";
include "../includes/dbconn.inc";
if(!$page) { $page = 1; }
?>
########## ¼±ÅÃÇÑ °Ô½Ã¹°ÀÇ ÀԷ°ªÀ» »Ì¾Æ³½´Ù. ##########
$query = "SELECT subject,comment,signdate FROM notice WHERE uid = $number";
$result = mysql_query($query,$dbconn);
$row = mysql_fetch_row($result);
$my_subject = $row[0];
$my_comment = $row[1];
$my_signdate = date("Y³â m¿ù dÀÏ H½Ã iºÐ sÃÊ",$row[2]);
########## addslashes() ÇÔ¼ö·Î escapeµÈ Á¦¸ñ°ú º»¹®ÀÇ ¹®ÀÚ¿À» ¿ø»óº¹±Í½ÃŲ´Ù. ##########
$my_subject = stripslashes($my_subject);
$my_comment = stripslashes($my_comment);
########## ¿øÄ¢»ó Á¦¸ñ¿¡´Â HTML ű׸¦ Çã¿ëÇÏÁö ¾Ê´Â´Ù. ##########
$my_subject = htmlspecialchars($my_subject);
########## °Ë»ö¾î°¡ ÀÖÀ» °æ¿ì °Ë»ö¾î¸¦ red coloró¸®ÇÏ¿© Ãâ·ÂÇÑ´Ù. ##########
if(!strcmp($keyfield,"subject") && $key) {
$my_subject = eregi_replace("($key)", "\\1", $my_subject);
}
if(!strcmp($keyfield,"comment") && $key) {
$my_comment = eregi_replace("($key)","\\1",$my_comment);
}
########## º»¹®ÀÇ ¹®ÀÚ¿À» °³Çàó¸®ÇÑ´Ù. ##########
$my_comment = nl2br($my_comment);
$my_comment = ereg_replace("http://([0-9a-zA-Z./@~?&=_-]+)","http://\\1",$my_comment);
?>
 |
¢¹ |
 |
ÀÛ¼ºÀÏ : |
|
if($admin){
?>
|
}
?>
 |
 |
include "list.inc";
?>
include "../includes/footer.inc";
?>