| @@ 901-905 (lines=5) @@ | ||
| 898 | $files = array(); |
|
| 899 | } |
|
| 900 | // If <attaches is, start importing attachments |
|
| 901 | if(substr($str,0,9) == '<attaches') |
|
| 902 | { |
|
| 903 | $obj->uploaded_count = $this->importAttaches($fp, $module_srl, $obj->comment_srl, $files); |
|
| 904 | continue; |
|
| 905 | } |
|
| 906 | ||
| 907 | if($started) $buff .= $str; |
|
| 908 | // If </comment> is, insert to the DB |
|
| @@ 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 | } |
|