@@ 311-315 (lines=5) @@ | ||
308 | global $store; |
|
309 | ||
310 | debug("ldSetCache($file, $time, [image], [headers])","object"); |
|
311 | if ($time==-2) { |
|
312 | $time=0; |
|
313 | } else { |
|
314 | $time=time()+($time*3600); |
|
315 | } |
|
316 | if (!preg_match("/\.\./",$file)) { |
|
317 | if ($image) { |
|
318 | $path=substr($file, 1, strrpos($file, "/")-1); |
@@ 216-220 (lines=5) @@ | ||
213 | global $store; |
|
214 | ||
215 | debug("ldSetCache($file, $time, [image], [headers])","object"); |
|
216 | if ($time==-2) { |
|
217 | $time=0; |
|
218 | } else { |
|
219 | $time=time()+($time*3600); |
|
220 | } |
|
221 | if (!preg_match("/\.\./",$file)) { |
|
222 | if ($image) { |
|
223 | $path=substr($file, 1, strrpos($file, "/")-1); |