$usname EOS; } else { $usnamestring = $usname; } if ($uslogin) $usnamestring .= " ($uslogin)"; if ( (!$usid || $_SESSION['BSHOP_ID'] != $usid) && $_SESSION['BSHOP_CLASS'] != "A" ) { $query = << EOS; while (list($ati, $atn) = mysqli_fetch_row($result)) { $atstring .= <<$atn
EOS; } $atstring .= << EOS; # 댓글 $query = << EOS; $cttoppx = 1; while ( list($cmi, $usi, $usn, $cmn, $cmc, $cmt) = mysqli_fetch_row($result) ) { if ($usi) { if ( $_SESSION['BSHOP_ID'] == $usi || $_SESSION['BSHOP_CLASS'] == "A" ) { $cmdelstring = <<[x] EOS; } else { $cmdelstring = ""; } } else { $usn = $cmn; $cmdelstring = <<[x] EOS; } $comments .= << $usn ($cmt) $cmdelstring
$cmc EOS; if ($cttoppx) $cttoppx = 0; } $comments .= << EOS; if ($commentperm) { if ($_SESSION['BSHOP_ID']) { $cmnamepasswdstring = ""; $checkcommentscript = ""; } else { $cmnamepasswdstring = << 이름 비밀번호 EOS; $checkcommentscript = <<
$cmnamepasswdstring
EOS; } else { $commentform = ""; } if ($replyperm) { $replystring = <<답글 EOS; } else { $replystring = ""; } if ($editperm) { $editstring = <<수정 EOS; } else { $editstring = ""; } if ($deleteperm) { $deletestring = <<삭제 EOS; if ($usid || $_SESSION['BSHOP_CLASS'] == "A") { $delmessagescript = <<글쓰기 EOS; } else { $writestring = ""; } /* if ($listperm) { $liststring = <<목록 EOS; } else { $liststring = ""; } */ $document['main'] = << $boardtopbutton
$mssubject
$usnamestring $mstime (읽음: $msread)
$mscontent
$atstring $comments $commentform
$replystring $writestring $editstring $deletestring $liststring
$boardlist
EOS; $document['script'] .= << "비밀번호가 일치하지 않습니다." ); if ($_GET['msgid']) { $document['init'] .= <<