@@ 120-124 (lines=5) @@ | ||
117 | continue; |
|
118 | // Import the attachment |
|
119 | } |
|
120 | else if(substr($str,0,12) == '<attachment ') |
|
121 | { |
|
122 | if($this->importAttaches($fp, $module_srl, $obj->document_srl, $files, $str)) $obj->uploaded_count++; |
|
123 | continue; |
|
124 | } |
|
125 | ||
126 | if($started) $buff .= $str; |
|
127 | } |
@@ 947-951 (lines=5) @@ | ||
944 | $files = array(); |
|
945 | } |
|
946 | // If <attaches is, start importing attachments |
|
947 | if(substr($str,0,9) == '<attaches') |
|
948 | { |
|
949 | $obj->uploaded_count = $this->importAttaches($fp, $module_srl, $obj->comment_srl, $files); |
|
950 | continue; |
|
951 | } |
|
952 | ||
953 | if($started) $buff .= $str; |
|
954 | // If </comment> is, insert to the DB |