@@ 340-352 (lines=13) @@ | ||
337 | if (is_dir($cache_store_dir) and ( $root_dir_handle = opendir($cache_store_dir))) { |
|
338 | while (false !== ($file = readdir($root_dir_handle))) { |
|
339 | ||
340 | if (substr($file, 0, 6) != 'cache_' && $file != 'hooks.php' && $file != '.' && $file != '..' && $file != '/') { |
|
341 | $cache_sub_dir = $cache_store_dir . $file . '/'; |
|
342 | if (is_dir($cache_sub_dir) and ( $sub_dir_handle = opendir($cache_sub_dir))) { |
|
343 | while (FALSE !== ($fileT = readdir($sub_dir_handle))) { |
|
344 | ||
345 | if ($fileT != '.' && $fileT != '..' && $fileT != '/') { |
|
346 | ||
347 | $n++; |
|
348 | @unlink($cache_sub_dir . $fileT); |
|
349 | } |
|
350 | } |
|
351 | } |
|
352 | } |
|
353 | if (substr($file, 0, 6) == 'cache_' || $file == 'hooks.php' || strstr($file, '.') === TRUE) { |
|
354 | ||
355 | $n++; |
|
@@ 404-414 (lines=11) @@ | ||
401 | if (is_dir($cache_store_dir) and ( $root_dir_handle = opendir($cache_store_dir))) { |
|
402 | while (false !== ($file = readdir($root_dir_handle))) { |
|
403 | ||
404 | if (substr($file, 0, 6) != 'cache_' && $file != 'hooks.php' && $file != '.' && $file != '..' && $file != '/') { |
|
405 | $cache_sub_dir = $cache_store_dir . $file . '/'; |
|
406 | if (is_dir($cache_sub_dir) and ( $sub_dir_handle = opendir($cache_sub_dir))) { |
|
407 | while (false !== ($fileT = readdir($sub_dir_handle))) { |
|
408 | ||
409 | if ($fileT != '.' && $fileT != '..' && $fileT != '/' && strstr($fileT, '~') != TRUE) { |
|
410 | $n++; |
|
411 | } |
|
412 | } |
|
413 | } |
|
414 | } |
|
415 | if (substr($file, 0, 6) == 'cache_' || $file == 'hooks.php' && strstr($fileT, '~') != TRUE) { |
|
416 | $n++; |
|
417 | } |