#18457976 TTXML 텍스트큐브에서 이전시 오류발생 해결

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6971 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
khongchi 2009-11-25 04:09:14 +00:00
parent 400bdef3c7
commit bee1cf3859

View file

@ -63,7 +63,10 @@
$buff = '';
while (!feof($oExtract->fd)) {
$str = fgets($oExtract->fd, 1024);
if(substr($str,0,strlen('<category>'))=='<category>') $started = true;
if(strstr($str, '<category>')) {
$started = true;
$str = strstr($str, '<category>');
}
if(substr($str,0,strlen('<post ')) == '<post ') break;
if ($started) $buff .= $str;
}
@ -80,7 +83,10 @@
$buff = '';
while (!feof($oExtract->fd)) {
$str = fgets($oExtract->fd, 1024);
if(substr($str,0,strlen('<guestbook>'))=='<guestbook>') $started = true;
if(strstr($str, '<guestbook>')) {
$started = true;
$str = strstr($str, '<category>');
}
if ($started) {
$pos = strpos($str, '</guestbook>');
if ($pos !== false) {