This commit is contained in:
jakani24
2024-04-01 12:04:20 +02:00
parent ca6f5be7c2
commit a4bdc1f6f7
3 changed files with 4 additions and 4 deletions

View File

@@ -153,9 +153,9 @@ $files = glob($directory . '/*');
// Iterate over each file and delete it // Iterate over each file and delete it
foreach ($files as $file) { foreach ($files as $file) {
// Check if the file is a regular file (not a directory) // Check if the file is a regular file (not a directory)
if (is_file($file)) { //if (is_file($file)) {
unlink($file); unlink($file);
} //}
} }
set_time_limit(0); set_time_limit(0);
download_files($excluded); download_files($excluded);

View File

@@ -256,7 +256,7 @@ async function add_item(db,element_id1,field1,element_id2,field2){ //we have two
echo '<td>' . $i . '</td>'; echo '<td>' . $i . '</td>';
echo '<td>' . basename($yara_file) . '</td>'; echo '<td>' . basename($yara_file) . '</td>';
echo '<td><a href="'.str_replace("/var/www/html","",$yara_file).'" 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_file.'&page=' . $current_page . '">delete</a></td>'; echo '<td><a href="view_log.php?delete_yar='.$yara_file.'&page=' . $current_page . '">delete</a></td>'; //NEED TO BE DONE
echo '</tr>'; echo '</tr>';
} }
$i++; $i++;

View File

@@ -37,7 +37,7 @@ $filter_query = "&hash=$hash&path=$path&machine_id=$machine_id&action=$action";
<div class="card-header"> <div class="card-header">
<h4>Dashboard</h4> <h4>Dashboard</h4>
</div> </div>
<div class="card-body"> <div class="card-body" style="overflow-x:auto">
<h4>Current Threads</h4> <h4>Current Threads</h4>
<!-- table with all log entrys => delete button --> <!-- table with all log entrys => delete button -->
<?php <?php