통합검색 모듈인 integration_search 추가

git-svn-id: http://xe-core.googlecode.com/svn/trunk@1992 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-07-24 13:25:43 +00:00
parent 87e2fab04c
commit c4d1ed1c2e
26 changed files with 698 additions and 6 deletions

View file

@ -240,12 +240,16 @@
if(count($attached_file_list)) {
$src = preg_replace("!^(\"|')!is","",$attached_file_list[0]);
copy("./".$src, $tmp_file);
@copy("./".$src, $tmp_file);
// 첨부된 파일이 없으면 http로 시작하는 경로를 찾음
} else {
preg_match('!src=("|\'){0,1}([^"|^\'|^\ ]*)("|\'| ){0,1}!is', $content, $matches);
$src = $matches[2];
preg_match_all("!http:\/\/([^ ^\"^']*?)\.(jpg|png|gif|jpeg)!is", $content, $matches, PREG_SET_ORDER);
for($i=0;$i<count($matches);$i++) {
$src = $matches[$i][0];
if(strpos($src,"/common/tpl")!==false || strpos($src,"/modules")!==false) continue;
break;
}
if($src) FileHandler::getRemoteFile($src, $tmp_file);
else return;
}