} else { $validator->validt_diserror("", "오류. 댓글 등록 불가"); } } $validator->validt_strLen("comment", 5, "", 1, "댓글은 5자 이상 입력해야 합니다."); //ln값 처리 $mysql->select("\n\t\t\tSELECT MAX(ln)+1000 AS ln_max\n\t\t\tFROM toony_module_board_comment_{$board_id}\n\t\t\tWHERE bo_idno='{$read}'\n\t\t"); $ln_array['ln_max'] = $mysql->fetch("ln_max"); if (!$ln_array['ln_max']) { $ln_array['ln_max'] = 1000; } $ln_array['ln_max'] = ceil($ln_array['ln_max'] / 1000) * 1000; //DB 기록 $mysql->query("\n\t\t\tINSERT INTO toony_module_board_comment_{$board_id}\n\t\t\t(ln,bo_idno,me_idno,writer,comment,ip,regdate,tr_1,tr_2,tr_3,tr_4,tr_5) \n\t\t\tVALUES\n\t\t\t('{$ln_array['ln_max']}','{$read}','{$me_idno}','{$writer}','{$comment}','{$_SERVER['REMOTE_ADDR']}',now(),'{$tr_1}','{$tr_2}','{$tr_3}','{$tr_4}','{$tr_5}')\n\t\t"); //완료후 리턴 $validator->validt_success_function("read_comment_include()"); } /* 대댓글 등록 */ if ($mode == 11) { //검사 if ($type == 1) { $me_idno = ""; if (trim($reply_writer_o) == "") { $validator->validt_nick("reply_writer_o", 1, "작성자를 제대로 입력 하세요."); } $writer = $reply_writer_o; } else { if ($type == 2) { $me_idno = $member['me_idno'];