@@ 4210-4212 (lines=3) @@ | ||
4207 | . ceil(($memory_get_usage + (5 * $this->source_width * $this->source_height)) / 1048576) |
|
4208 | . 'M).'); |
|
4209 | } |
|
4210 | if ($this->md5s && ($this->md5s != md5($this->rawImageData))) { |
|
4211 | return $this->ErrorImage('$this->md5s != md5($this->rawImageData)' . "\n" . '"' . $this->md5s . '" != ' . "\n" . '"' . md5($this->rawImageData) . '"'); |
|
4212 | } |
|
4213 | //if ($this->issafemode) { |
|
4214 | // return $this->ErrorImage('Cannot generate thumbnails from raw image data when PHP SAFE_MODE enabled'); |
|
4215 | //} |
|
@@ 4233-4235 (lines=3) @@ | ||
4230 | // return $this->ErrorImage('Unknown image type identified by "'.substr($this->rawImageData, 0, 4).'" ('.phpthumb_functions::HexCharDisplay(substr($this->rawImageData, 0, 4)).') in SourceImageToGD()['.__LINE__.']'); |
|
4231 | } |
|
4232 | } elseif (!$this->gdimg_source && $this->sourceFilename) { |
|
4233 | if ($this->md5s && ($this->md5s != phpthumb_functions::md5_file_safe($this->sourceFilename))) { |
|
4234 | return $this->ErrorImage('$this->md5s != md5(sourceFilename)' . "\n" . '"' . $this->md5s . '" != ' . "\n" . '"' . phpthumb_functions::md5_file_safe($this->sourceFilename) . '"'); |
|
4235 | } |
|
4236 | switch (@$this->getimagesizeinfo[2]) { |
|
4237 | case 1: |
|
4238 | case 3: |