@@ 319-322 (lines=4) @@ | ||
316 | if (!preg_match("/\.\./",$file)) { |
|
317 | if ($image) { |
|
318 | $path=substr($file, 1, strrpos($file, "/")-1); |
|
319 | if (!file_exists($store->get_config("files")."cache/".$path)) { |
|
320 | ldMkDir("cache/".$path); |
|
321 | ldMkDir("cacheheaders/".$path); |
|
322 | } |
|
323 | ||
324 | $imagetemp = tempnam($store->get_config("files")."cache/".$path."/","ARCacheImage"); |
|
325 | $headertemp = tempnam($store->get_config("files")."cacheheaders/".$path."/","ARCacheImage"); |
@@ 224-227 (lines=4) @@ | ||
221 | if (!preg_match("/\.\./",$file)) { |
|
222 | if ($image) { |
|
223 | $path=substr($file, 1, strrpos($file, "/")-1); |
|
224 | if (!file_exists($store->get_config("files")."cache/".$path)) { |
|
225 | ldMkDir("cache/".$path); |
|
226 | ldMkDir("cacheheaders/".$path); |
|
227 | } |
|
228 | $fp=fopen($store->get_config("files")."cache".$file, "wb"); |
|
229 | fwrite($fp, $image); |
|
230 | fclose($fp); |