htdocs/src/Oc/Cache/WebCache.php 1 location
|
@@ 60-62 (lines=3) @@
|
| 57 |
|
if ($dh = opendir($this->opt['rootpath'] . $relBaseDir)) { |
| 58 |
|
while (($file = readdir($dh)) !== false) { |
| 59 |
|
if ($file !== '.' && $file !== '..' && is_file($this->opt['rootpath'] . $relBaseDir . $file)) { |
| 60 |
|
if (substr($file, -(strlen($ext) + 1), strlen($ext) + 1) === '.' . $ext) { |
| 61 |
|
unlink($this->opt['rootpath'] . $relBaseDir . $file); |
| 62 |
|
} |
| 63 |
|
} |
| 64 |
|
} |
| 65 |
|
closedir($dh); |
htdocs/translate.php 1 location
|
@@ 410-412 (lines=3) @@
|
| 407 |
|
if ($dh = opendir($opt['rootpath'] . $relbasedir)) { |
| 408 |
|
while (($file = readdir($dh)) !== false) { |
| 409 |
|
if ($file != '.' && $file != '..' && is_file($opt['rootpath'] . $relbasedir . $file)) { |
| 410 |
|
if (substr($file, - (strlen($ext) + 1), strlen($ext) + 1) == '.' . $ext) { |
| 411 |
|
unlink($opt['rootpath'] . $relbasedir . $file); |
| 412 |
|
} |
| 413 |
|
} |
| 414 |
|
} |
| 415 |
|
} |