u
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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++;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user