\modules\board\skins\xe_board\view_document.html 수정
<div class="fileAttached">
{@ $uploaded_list = $oDocument->getUploadedFiles() }
<ul>
<!--@foreach($uploaded_list as $key => $file)-->
<li><a href="{getUrl()}{$file->download_url}">{$file->source_filename} ({FileHandler::filesize($file->file_size)})({number_format($file->download_count)})</a></li>
<!--!!!S-->
<!--@if($grant->manager)-->
md5_file: {@print md5_file($file->uploaded_filename)}
<!--@end-->
<!--!!!E-->
<!--@end-->
</ul>
<div class="clear"></div>
\live\modules\file\file.controller.php 수정
/**
* @brief 첨부파일 추가
**/
function insertFile($file_info, $module_srl, $upload_target_srl, $download_count = 0, $manual_insert = false) {
//!!!S
$md5_text = md5_file($file_info['tmp_name']);
$oFilterModel = &getModel('spamfilter');
$output = $oFilterModel->isDeniedWord($md5_text);
if(!$output->toBool()) {
return new Object(-1, 'Server error');
}
//!!!E
// trigger 호출 (before)