diff --git a/modules/board/tpl/index.html b/modules/board/tpl/index.html
index 6eb65b8f5..609927602 100644
--- a/modules/board/tpl/index.html
+++ b/modules/board/tpl/index.html
@@ -48,8 +48,8 @@
{$module_category[$val->module_category_srl]->title}
-
{$val->mid} |
- {htmlspecialchars($val->browser_title)} |
+ |
+ {htmlspecialchars($val->browser_title)} |
{$val->is_default} |
{$val->skin} |
{$val->admin_id} |
diff --git a/modules/document/queries/insertDocument.xml b/modules/document/queries/insertDocument.xml
index 21b09a6c4..9aad358d0 100644
--- a/modules/document/queries/insertDocument.xml
+++ b/modules/document/queries/insertDocument.xml
@@ -8,7 +8,7 @@
-
+
diff --git a/modules/importer/importer.admin.controller.php b/modules/importer/importer.admin.controller.php
index 053246b39..427bacca6 100644
--- a/modules/importer/importer.admin.controller.php
+++ b/modules/importer/importer.admin.controller.php
@@ -23,6 +23,7 @@
var $default_group_srl = 0;
var $module_srl = 0;
+ var $target_path = 0;
var $category_srl = 0;
var $category_list = array();
var $msg = null;
@@ -103,6 +104,8 @@
// 변수 체크
$this->module_srl = Context::get('module_srl');
+ $this->target_path = Context::get('target_path');
+ if(substr($this->target_path,-1)!="/") $this->target_path .= "/";
$this->category_srl = Context::get('category_srl');
$xml_file = Context::get('xml_file');
$this->start_position = $this->position = (int)Context::get('position');
@@ -166,12 +169,12 @@
$str = fgets($fp,1024);
$buff .= $str;
- $buff = preg_replace_callback("!]*)>!is", array($this, '_parseRootInfo'), trim($buff));
- $buff = preg_replace_callback("!(.*?)<\/member>!is", array($this, '_importMember'), trim($buff));
+ $buff = preg_replace_callback("!]*)>!is", array($this, '_parseRootInfo'), $buff);
+ $buff = preg_replace_callback("!(.*?)<\/member>!is", array($this, '_importMember'), $buff);
if($this->start_position+$this->limit_count <= $this->position) {
$is_finished = false;
- $this->file_point = ftell($fp);
+ $this->file_point = ftell($fp) - strlen($buff);;
break;
}
}
@@ -262,6 +265,14 @@
$this->oCommentController = &getController('comment');
$this->oTrackbackController = &getController('trackback');
+ $oDocumentModel = &getModel('document');
+ $tmp_category_list = $oDocumentModel->getCategoryList($this->module_srl);
+ if(count($tmp_category_list)) {
+ foreach($tmp_category_list as $key => $val) $this->category_list[$val->title] = $key;
+ } else {
+ $this->category_list = array();
+ }
+
$is_finished = true;
$fp = @fopen($xml_file, "r");
@@ -271,13 +282,13 @@
while(!feof($fp)) {
$str = fread($fp,1024);
$buff .= $str;
- $buff = preg_replace_callback("!]*)>!is", array($this, '_parseRootInfo'), trim($buff));
- if(!$this->category_srl) $buff = preg_replace_callback("!(.*?)!is", array($this, '_parseCategoryInfo'), trim($buff));
- $buff = preg_replace_callback("!(.*?)<\/document>!is", array($this, '_importDocument'), trim($buff));
+ $buff = preg_replace_callback("!]*)>!is", array($this, '_parseRootInfo'), $buff);
+ if(!$this->category_srl) $buff = preg_replace_callback("!(.*?)!is", array($this, '_parseCategoryInfo'), $buff);
+ $buff = preg_replace_callback("!(.*?)<\/document>!is", array($this, '_importDocument'), $buff);
if($this->start_position+$this->limit_count <= $this->position) {
$is_finished = false;
- $this->file_point = ftell($fp);
+ $this->file_point = ftell($fp) - strlen($buff);;
break;
}
}
@@ -312,7 +323,8 @@
}
if(file_exists($path)) {
- @copy($path, $tmp_filename);
+ if(!eregi("^http",$this->target_path)) @copy($this->target_path.$path, $tmp_filename);
+ else FileHandler::getRemoteFile($this->target_path.$path, $tmp_filename);
$file_info['tmp_name'] = $tmp_filename;
$file_info['name'] = $filename;
$this->oFileController->insertFile($file_info, $this->module_srl, $args->document_srl, $download_count, true);
@@ -452,14 +464,6 @@
if(!is_array($category_list)) $category_list = array($category_list);
- $oDocumentModel = &getModel('document');
- $tmp_category_list = $oDocumentModel->getCategoryList($this->module_srl);
- if(count($tmp_category_list)) {
- foreach($tmp_category_list as $key => $val) $this->category_list[$val->title] = $key;
- } else {
- $this->category_list = array();
- }
-
$oDocumentController = &getAdminController('document');
foreach($category_list as $key => $val) {
diff --git a/modules/importer/lang/en.lang.php b/modules/importer/lang/en.lang.php
index 8e8c5b1f7..42b6c4df8 100644
--- a/modules/importer/lang/en.lang.php
+++ b/modules/importer/lang/en.lang.php
@@ -47,4 +47,6 @@
$lang->about_type_module = 'If you are transfering the board or articles information, select this option';
$lang->about_type_syncmember = 'If you are trying to synchronize the member information after transfering member and article information, select this option';
$lang->about_importer = "You can transfer Zeroboard4, Zeroboard5 Beta or other program's data into ZeroboardXE's data.\nIn order to tranfer, you have to use XML Exporter to convert the data you want into XML File then upload it.";
+
+ $lang->about_target_path = "첨부파일을 받기 위해 제로보드4가 설치된 위치를 입력해주세요.\n같은 서버에 있을 경우 /home/아이디/public_html/bbs 등과 같이 제로보드4의 위치를 입력하시고\n다른 서버일 경우 http://도메인/bbs 처럼 제로보드가 설치된 곳의 url을 입력해주세요";
?>
diff --git a/modules/importer/lang/jp.lang.php b/modules/importer/lang/jp.lang.php
index 0e10c6bc0..090f6263d 100644
--- a/modules/importer/lang/jp.lang.php
+++ b/modules/importer/lang/jp.lang.php
@@ -47,4 +47,6 @@
$lang->about_type_module = 'データ変換の対象が書き込みデータである場合は選択してください。';
$lang->about_type_syncmember = '会員情報と書き込みデータなどの変換を行った後、会員情報を同期化する必要がある場合は、選択してください。';
$lang->about_importer = "ゼロボード4、zb5betaまたは他のプログラムの書き込みデータをゼロボードXEのデータに変換することができます。\n変換するためには、XML Exporterを利用して変換したい書き込みデータをXMLファイルで作成してアップロードしてください。";
+
+ $lang->about_target_path = "첨부파일을 받기 위해 제로보드4가 설치된 위치를 입력해주세요.\n같은 서버에 있을 경우 /home/아이디/public_html/bbs 등과 같이 제로보드4의 위치를 입력하시고\n다른 서버일 경우 http://도메인/bbs 처럼 제로보드가 설치된 곳의 url을 입력해주세요";
?>
diff --git a/modules/importer/lang/ko.lang.php b/modules/importer/lang/ko.lang.php
index d7c020d1e..ff4104517 100644
--- a/modules/importer/lang/ko.lang.php
+++ b/modules/importer/lang/ko.lang.php
@@ -22,7 +22,7 @@
1 => 'Step 1. 이전 대상 선택',
12 => 'Step 1-2. 대상 모듈 선택',
13 => 'Step 1-3. 대상 분류 선택',
- 2 => 'Step 2. XML파일 업로드',
+ 2 => 'Step 2. XML파일 지정',
3 => 'Step 2. 회원정보와 게시물의 정보 동기화',
);
@@ -30,7 +30,7 @@
1 => '이전을 하려는 XML파일의 종류를 선택해주세요.',
12 => '데이터 이전을 할 대상 모듈을 선택해주세요.',
13 => '데이터 이전을 할 대상 분류를 선택해주세요.',
- 2 => "데이터 이전을 할 XML파일의 위치를 입력해주세요.\n같은 계정일 경우 상대 또는 절대 경로를, 다른 서버에 업로드 되어 있으면 http://주소.. 를 입력해주세요",
+ 2 => "데이터 이전을 할 XML파일의 경로를 입력해주세요.\n상대 또는 절대 경로를 입력하시면 됩니다",
3 => '회원정보와 게시물의 정보가 이전후에 맞지 않을 수 있습니다. 이 때 동기화를 하시면 user_id를 기반으로 올바르게 동작하도록 합니다.',
);
@@ -47,4 +47,6 @@
$lang->about_type_module = '데이터 이전 대상이 게시판등의 게시물 정보일 경우 선택해주세요';
$lang->about_type_syncmember = '회원정보와 게시물정보등을 이전후 회원정보 동기화 해야 할때 선택해주세요';
$lang->about_importer = "제로보드4, zb5beta 또는 다른 프로그램의 데이터를 제로보드XE 데이터로 이전할 수 있습니다.\n이전을 위해서는 XML Exporter를 이용해서 원하는 데이터를 XML파일로 생성후 업로드해주셔야 합니다.";
+
+ $lang->about_target_path = "첨부파일을 받기 위해 제로보드4가 설치된 위치를 입력해주세요.\n같은 서버에 있을 경우 /home/아이디/public_html/bbs 등과 같이 제로보드4의 위치를 입력하시고\n다른 서버일 경우 http://도메인/bbs 처럼 제로보드가 설치된 곳의 url을 입력해주세요";
?>
diff --git a/modules/importer/lang/zh-CN.lang.php b/modules/importer/lang/zh-CN.lang.php
index 66ea78bd4..986d3e7aa 100644
--- a/modules/importer/lang/zh-CN.lang.php
+++ b/modules/importer/lang/zh-CN.lang.php
@@ -47,4 +47,6 @@
$lang->about_type_module = '数据导入对象是版面主题时请选择';
$lang->about_type_syncmember = '会员信息和文章信息导入后需要同步会员信息时请选择。';
$lang->about_importer = "不仅可以导入Zeroboard 4,Zb5beta的数据,也可以把其他程序数据导入到Zeroboard XE当中。\n导入数据时请利用 XML Exporter生成XML文件后再上传。";
+
+ $lang->about_target_path = "첨부파일을 받기 위해 제로보드4가 설치된 위치를 입력해주세요.\n같은 서버에 있을 경우 /home/아이디/public_html/bbs 등과 같이 제로보드4의 위치를 입력하시고\n다른 서버일 경우 http://도메인/bbs 처럼 제로보드가 설치된 곳의 url을 입력해주세요";
?>
diff --git a/modules/importer/tpl/filter/step12.xml b/modules/importer/tpl/filter/step12.xml
index 91c0e12f6..fa56efb05 100644
--- a/modules/importer/tpl/filter/step12.xml
+++ b/modules/importer/tpl/filter/step12.xml
@@ -1,6 +1,7 @@
diff --git a/modules/importer/tpl/index.html b/modules/importer/tpl/index.html
index d61aa8c90..ce1b86d85 100644
--- a/modules/importer/tpl/index.html
+++ b/modules/importer/tpl/index.html
@@ -48,6 +48,13 @@
+
+ {nl2br($lang->about_target_path)}
+
+ Path/URL :
+
+
+
@@ -76,6 +83,7 @@