@@ 358-360 (lines=3) @@ | ||
355 | if ($file_extension != 'zip' && $file_extension != 'xml' && in_array($file_extension, $this->allowed_image_extensions)) { |
|
356 | //saving images to cmlTemp/images folder |
|
357 | @mkdir($this->tempDir . $path, 0777, true); |
|
358 | if (write_file($this->tempDir . $this->input->get('filename'), file_get_contents('php://input'), 'w+')) { |
|
359 | echo 'success'; |
|
360 | } |
|
361 | } else { |
|
362 | //saving xml files to cmlTemp |
|
363 | if (write_file($this->tempDir . $this->input->get('filename'), file_get_contents('php://input'), 'w+')) { |
|
@@ 361-366 (lines=6) @@ | ||
358 | if (write_file($this->tempDir . $this->input->get('filename'), file_get_contents('php://input'), 'w+')) { |
|
359 | echo 'success'; |
|
360 | } |
|
361 | } else { |
|
362 | //saving xml files to cmlTemp |
|
363 | if (write_file($this->tempDir . $this->input->get('filename'), file_get_contents('php://input'), 'w+')) { |
|
364 | echo 'success'; |
|
365 | } |
|
366 | } |
|
367 | //extracting filles |
|
368 | if ($file_extension == 'zip' && class_exists('ZipArchive')) { |
|
369 | $zip = new ZipArchive(); |