// µ¥ÀÌÅͺ£À̽º¿¡ ¿¬°áÇÑ´Ù.
include "dbconn.php";
include "cfgfile.php";
require "function.php";
head();
?>
// ¿ø±ÛÀÇ µ¥ÀÌÅ͸¦ °¡Á®¿Â´Ù
$query = "SELECT fid, name, email, subject, content, depth, pos, tag FROM $table WHERE uid = $id";
$result = mysql_query($query, $dbconn);
if(!$result) {
query_error();
}
$row = mysql_fetch_array($result);
$fid = $row[fid];
$p_name = $row[name];
$p_email = $row[email];
$subject = $row[subject];
$content = $row[content];
$depth = $row[depth];
$pos = $row[pos];
$tag = $row[tag];
// Ãâ·ÂµÉ º¯¼ö°ª ¼³Á¤
$name = $p_name . "´Ô²²¼ ÀÛ¼ºÇϽбÛÀÔ´Ï´Ù.";
$subject = stripslashes($subject);
// [RE]¸¦ Çѹø¸¸ ³ª¿À°Ô ÇÑ´Ù. ¸®¸®ÇöóÀÌ¶óµµ [RE]´Â Çѹø¸¸ Ãâ·ÂµÈ´Ù
$subject = str_replace("[RE] : ", "", $subject);
// Á¦¸ñ¿¡ [RE] ¸¦ ´Þ°í ³ª¿À°Ô ÇÑ´Ù
$subject = "[RE] : " . $subject;
//
ű׸¦ ¾ø¾Ú
$content = str_replace("
","",$content);
$content = stripslashes($content);
// ´äº¯±ÛÀÇ ¶óÀÎ ¸Ç ¾Õ¿¡ : ¸¦ ºÙ¿©ÁØ´Ù
$content = ":" . str_replace("\n","\n: ",$content);
$content = "$name\n\n" . "$content";
// ÅÂ±× »ç¿ë À¯¹«¿¡ µû¶ó¼
if($tag == "1") {
$tag = "checked";
} else {
$tag = "";
}
echo"