git-svn-id: http://xe-core.googlecode.com/svn/trunk@1455 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-05-17 05:49:37 +00:00
parent 5c65224fd1
commit f2412760a3
4 changed files with 40 additions and 44 deletions

View file

@ -24,7 +24,7 @@
* 2 : 1 + DB 쿼리
* 3 : 모든 로그
**/
define('__DEBUG__', 3);
define('__DEBUG__', 0);
/**
* @brief 간단하게 사용하기 위한 함수 정의한 파일 require

View file

@ -118,7 +118,7 @@
$is_finished = $this->importMember($xml_file);
}
if($this->position+$this->limit_count > $this->imported_count) {
if($is_finished) {
$this->add('is_finished', 'Y');
$this->setMessage( sprintf(Context::getLang('msg_import_finished'), $this->imported_count) );
} else {
@ -221,7 +221,6 @@
while(!feof($fp)) {
$str = fread($fp,1024);
$buff .= $str;
flush();
$buff = preg_replace_callback("!<document sequence=\"([^\"]*)\">(.*?)<\/document>!is", array($this, '_importDocument'), trim($buff));
if($this->position+$this->limit_count <= $this->imported_count) {
@ -296,7 +295,7 @@
$args->allow_trackback = $xml_doc->document->allow_trackback->body;
$output = $this->oDocumentController->insertDocument($args, true);
if(!$output->toBool()) return;
if($output->toBool()) {
// 코멘트 입력
$comments = $xml_doc->document->comments->comment;
@ -336,6 +335,7 @@
$this->oTrackbackController->insertTrackback($trackback_args, true);
}
}
}
$this->imported_count ++;
return '';

View file

@ -81,8 +81,6 @@
<!-- step 2. XML 파일 지정 -->
<div id="step2" style="display:none">
<form action="./" method="get" onsubmit="return doStep2(this)" id="fo_step2">
<input type="hidden" name="module" value="importer" />
<input type="hidden" name="action" value="procImporterAdminImport" />
<input type="hidden" name="module_srl" value="" />
<input type="hidden" name="category_srl" value="" />
<input type="hidden" name="position" value="0" />

View file

@ -75,8 +75,7 @@ function doStep2(fo_obj) {
fo_obj.category_srl.value = category_srl;
}
//procFilter(fo_obj, import_xml);
fo_obj.submit();
procFilter(fo_obj, import_xml);
xGetElementById('step2_status').style.display = 'block';
@ -96,8 +95,7 @@ function completeImport(ret_obj) {
var fo_obj = xGetElementById('fo_step2');
fo_obj.position.value = position;
xInnerHtml('step2_position', position);
//procFilter(fo_obj, import_xml);
fo_obj.submit();
procFilter(fo_obj, import_xml);
}
}