| 1 |
<?php |
| 2 |
defined('ABSPATH') or die("Protected By WT!"); |
| 3 |
?> |
| 4 |
|
| 5 |
<?php foreach ($arguments["vc"]["list"] as $list) : |
| 6 |
$list = $list['node']; |
| 7 |
$signature = $list['signatures']; |
| 8 |
$description = ""; |
| 9 |
$details = []; |
| 10 |
if (isset($list['matches']) && !empty($list['matches'])) { |
| 11 |
$signature_data = json_decode(base64_decode($list['matches']), true); |
| 12 |
if (isset($signature_data[0]["rule"])) { |
| 13 |
$signature = $signature_data[0]["rule"]; |
| 14 |
} |
| 15 |
if (isset($signature_data[0]["Meta"]["description"])) { |
| 16 |
$description = $signature_data[0]["Meta"]["description"]; |
| 17 |
} |
| 18 |
if (isset($signature_data[0]["Strings"])) { |
| 19 |
$details = $signature_data[0]["Strings"]; |
| 20 |
} |
| 21 |
} |
| 22 |
|
| 23 |
$filepath = $list['filePath']; |
| 24 |
$time = convertToCurrentTime($list['time']); |
| 25 |
if ($list['event'] === 'modified') { |
| 26 |
$info = wtsec_locale("antivirus.info.normal"); |
| 27 |
$class_path = "wtotem_file-table__td_changed"; |
| 28 |
$class_info = "wtotem_file-table__td_normal"; |
| 29 |
$description = wtsec_locale("antivirus.status.changed"); |
| 30 |
} elseif ($list['event'] === 'infected') { |
| 31 |
$info = wtsec_locale("antivirus.info.backdoor_virus"); |
| 32 |
$class = "wtotem_file-table__td_critical"; |
| 33 |
$class_info = "wtotem_file-table__td_critical"; |
| 34 |
$description = wtsec_locale("antivirus.status.infected"); |
| 35 |
} elseif ($list['event'] === 'deleted') { |
| 36 |
$info = wtsec_locale("antivirus.info.deleted"); |
| 37 |
$class_path = ""; |
| 38 |
$class_info = ""; |
| 39 |
$description = wtsec_locale("antivirus.status.deleted"); |
| 40 |
}elseif ($list['event'] === 'new'){ |
| 41 |
$info = wtsec_locale("antivirus.info.normal"); |
| 42 |
$class_path = ""; |
| 43 |
$class_info = ""; |
| 44 |
$description = wtsec_locale("antivirus.status.new"); |
| 45 |
}else{ |
| 46 |
$info = wtsec_locale("antivirus.status.error"); |
| 47 |
$class_path = ""; |
| 48 |
$class_info = ""; |
| 49 |
$description = wtsec_locale("antivirus.status.error"); |
| 50 |
} |
| 51 |
?> |
| 52 |
|
| 53 |
<div class="wtotem_file-table__tr"> |
| 54 |
<div class="wtotem_file-table__td <?=$class_path?> break-word"> |
| 55 |
<?= $filepath ?> |
| 56 |
</div> |
| 57 |
<div class="wtotem_file-table__td <?=$class_info?>"> |
| 58 |
<?= $info ?> |
| 59 |
</div> |
| 60 |
<div class="wtotem_file-table__td"> |
| 61 |
<?= $time['date'] ?> |
| 62 |
</div> |
| 63 |
<div class="wtotem_file-table__td"> |
| 64 |
<?= $time['time'] ?> |
| 65 |
</div> |
| 66 |
<div class="wtotem_file-table__td wtotem_file-table__td_critical"> |
| 67 |
<?= $description ?> |
| 68 |
</div> |
| 69 |
</div> |
| 70 |
<?php endforeach; ?> |
| 71 |
|
| 72 |
|
| 73 |
<?php if($_SESSION['antivirus_hasNextPage']):?> |
| 74 |
<a href="#" class="wtotem_chart__btn ml-2" id="av_load_more"><?= wtsec_locale('load_more') ?></a> |
| 75 |
<?php endif; ?> |