Update database_settings.php

This commit is contained in:
jakani24
2024-04-01 11:42:10 +02:00
parent 49cac267e7
commit 63e4e75105

View File

@@ -252,14 +252,14 @@ async function add_item(db,element_id1,field1,element_id2,field2){ //we have two
$start=$offset*$page_size; $start=$offset*$page_size;
$stop=$start+$page_size; $stop=$start+$page_size;
$i=0; $i=0;
foreach($yara_files as $yara_files){ foreach($yara_files as $yara_file){
if($i>=$start && $i <=$stop){ if($i>=$start && $i <=$stop){
//list out the file //list out the file
echo '<tr>'; echo '<tr>';
echo '<td>' . $i . '</td>'; echo '<td>' . $i . '</td>';
echo '<td>' . basename($yara_files) . '</td>'; echo '<td>' . basename($yara_file) . '</td>';
echo '<td><a href="'.str_replace("/var/www/html","",$yara_files[$i]).'" download>Download</a></td>'; echo '<td><a href="'.str_replace("/var/www/html","",$yara_file).'" download>Download</a></td>';
echo '<td><a href="view_log.php?delete_yar='.$yara_files[$i].'&page=' . $current_page . '">delete</a></td>'; echo '<td><a href="view_log.php?delete_yar='.$yara_file.'&page=' . $current_page . '">delete</a></td>';
echo '</tr>'; echo '</tr>';
$i++; $i++;
} }