Update database_settings_functions.php

This commit is contained in:
jakani24
2024-04-01 11:31:58 +02:00
parent 47d3860550
commit c22b8339ea

View File

@@ -71,7 +71,11 @@ function list_yara_files($dir) {
$path = $dir . '/' . $entry; $path = $dir . '/' . $entry;
// If the entry is a directory, call the function recursively // If the entry is a directory, call the function recursively
if (is_dir($path)) { if (is_dir($path)) {
$yar_files = array_merge($yar_files, list_yara_files($path)); $buf=list_yara_files($path);
foreach($buf as $newpath){
$yar_files[]=$newpath
}
//$yar_files = array_merge($yar_files, list_yara_files($path));
} }
// If the entry is a file and ends with .yar extension, add it to the array // If the entry is a file and ends with .yar extension, add it to the array
elseif (is_file($path) && pathinfo($path, PATHINFO_EXTENSION) === 'yar') { elseif (is_file($path) && pathinfo($path, PATHINFO_EXTENSION) === 'yar') {