u
This commit is contained in:
@@ -231,7 +231,7 @@ async function add_item(db,element_id1,field1,element_id2,field2){ //we have two
|
||||
$current_page = isset($_GET['page']) ? intval($_GET['page']) : 1;
|
||||
$offset = ($current_page - 1) * $page_size;
|
||||
|
||||
$yara_files[]=list_yara_files("/var/www/html/database_srv/");
|
||||
$yara_files=list_yara_files("/var/www/html/database_srv/");
|
||||
$total_entries=count($yara_files);
|
||||
// Calculate total pages
|
||||
$total_pages = ceil($total_entries / $page_size);
|
||||
|
||||
@@ -71,7 +71,7 @@ function list_yara_files($dir) {
|
||||
$path = $dir . '/' . $entry;
|
||||
// If the entry is a directory, call the function recursively
|
||||
if (is_dir($path)) {
|
||||
$buf[]=list_yara_files($path);
|
||||
$buf=list_yara_files($path);
|
||||
foreach($buf as $newpath){
|
||||
$yar_files[]=$newpath;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user