# wt-security/2.1.9/includes/components/_antivirus_lazy.php

WebTotem Security, version 2.1.9. 75 lines.

- Page: https://pluginprobe.com/plugins/wt-security/2.1.9/code/includes/components/_antivirus_lazy.php
- Raw: https://pluginprobe.com/plugins/wt-security/2.1.9/raw/includes/components/_antivirus_lazy.php
- Modified: 2020-08-10T10:53:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wt-security/2.1.9/code/includes/components/_antivirus_lazy.php#L10-L20`.

```php
<?php
    defined('ABSPATH') or die("Protected By WT!");
?>

<?php foreach ($arguments["vc"]["list"] as $list) :
    $list = $list['node'];
    $signature = $list['signatures'];
    $description = "";
    $details = [];
    if (isset($list['matches']) && !empty($list['matches'])) {
        $signature_data = json_decode(base64_decode($list['matches']), true);
        if (isset($signature_data[0]["rule"])) {
            $signature = $signature_data[0]["rule"];
        }
        if (isset($signature_data[0]["Meta"]["description"])) {
            $description = $signature_data[0]["Meta"]["description"];
        }
        if (isset($signature_data[0]["Strings"])) {
            $details = $signature_data[0]["Strings"];
        }
    }

    $filepath = $list['filePath'];
    $time = convertToCurrentTime($list['time']);
    if ($list['event'] === 'modified') {
        $info = wtsec_locale("antivirus.info.normal");
        $class_path = "wtotem_file-table__td_changed";
        $class_info = "wtotem_file-table__td_normal";
        $description = wtsec_locale("antivirus.status.changed");
    } elseif ($list['event'] === 'infected') {
        $info = wtsec_locale("antivirus.info.backdoor_virus");
        $class = "wtotem_file-table__td_critical";
        $class_info = "wtotem_file-table__td_critical";
        $description = wtsec_locale("antivirus.status.infected");
    } elseif ($list['event'] === 'deleted') {
        $info = wtsec_locale("antivirus.info.deleted");
        $class_path = "";
        $class_info = "";
        $description = wtsec_locale("antivirus.status.deleted");
    }elseif ($list['event'] === 'new'){
        $info = wtsec_locale("antivirus.info.normal");
        $class_path = "";
        $class_info = "";
        $description = wtsec_locale("antivirus.status.new");
    }else{
        $info = wtsec_locale("antivirus.status.error");
        $class_path = "";
        $class_info = "";
        $description = wtsec_locale("antivirus.status.error");
    }
    ?>

    <div class="wtotem_file-table__tr">
        <div class="wtotem_file-table__td <?=$class_path?> break-word">
            <?= $filepath ?>
        </div>
        <div class="wtotem_file-table__td <?=$class_info?>">
            <?= $info ?>
        </div>
        <div class="wtotem_file-table__td">
            <?= $time['date'] ?>
        </div>
        <div class="wtotem_file-table__td">
            <?= $time['time'] ?>
        </div>
        <div class="wtotem_file-table__td wtotem_file-table__td_critical">
            <?= $description ?>
        </div>
    </div>
<?php endforeach; ?>


<?php if($_SESSION['antivirus_hasNextPage']):?>
    <a href="#" class="wtotem_chart__btn ml-2" id="av_load_more"><?= wtsec_locale('load_more') ?></a>
<?php  endif; ?>
```
