# wt-security/2.2.3/includes/antivirus.php

WebTotem Security, version 2.2.3. 200 lines.

- Page: https://pluginprobe.com/plugins/wt-security/2.2.3/code/includes/antivirus.php
- Raw: https://pluginprobe.com/plugins/wt-security/2.2.3/raw/includes/antivirus.php
- Modified: 2020-11-27T08:50:22+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.2.3/code/includes/antivirus.php#L10-L20`.

```php
<?php defined('ABSPATH') or die("Protected By WT!");?>
<?php if(!empty($arguments)):?>
<div class="wtotem_content">
    <div class="wtotem_container">
        <div class="wtotem_antivirus">
            <div class="wtotem_antivirus__first section-header-mb">
                <h2 class="title">
                    <?= wtsec_locale("remote_antivirus") ?>
                </h2>
                <!--                <div class="wtotem_print">-->
                <!--                    <img src="img/print.svg" alt="Shape" class="wtotem_print__img"/>-->
                <!--                    <div class="wtotem_print__label">-->
                <!--                        Print PDF-->
                <!--                    </div>-->
                <!--                </div>-->
            </div>
            <div class="wtotem_antivirus__block wt_card">
                <div class="wtotem_antivirus__item">
                    <div class="wtotem_antivirus__figures wtotem_antivirus__figures_green">
                        <?= $arguments["vc"]["scanned"] ?>
                    </div>
                    <div class="wtotem_antivirus__title">
                        <?= wtsec_locale("antivirus.scanned") ?>
                    </div>
                </div>

                <div class="wtotem_antivirus__item">
                    <div class="wtotem_antivirus__figures wtotem_antivirus__figures_yellow">
                        <?= $arguments["vc"]["changes"] ?>
                    </div>
                    <div class="wtotem_antivirus__title">
                        <?= wtsec_locale("antivirus.changed") ?>
                    </div>
                </div>

                <div class="wtotem_antivirus__item">
                    <div class="wtotem_antivirus__figures wtotem_antivirus__figures_orange">
                        <?= $arguments["vc"]["signatures"] ?>
                    </div>
                    <div class="wtotem_antivirus__title">
                        <?= wtsec_locale("antivirus.infected") ?>
                    </div>
                </div>

                <div class="wtotem_antivirus__item">
                    <div class="wtotem_antivirus__figures wtotem_antivirus__figures_black">
                        <?= $arguments["vc"]["deleted"] ?>
                    </div>
                    <div class="wtotem_antivirus__title">
                        <?= wtsec_locale("antivirus.deleted") ?>
                    </div>
                </div>
            </div>
        </div>
        <div class="wtotem_state wt_card">
            <div class="wtotem_av_filters_wrapper">
                <div class="wtotem_state__select-wrapper">
                    <select name="file-status" id="wtotem_av_state_filter" class="wtotem_state__select">
                        <option class="wtotem_state__option" value="infected"><?= wtsec_locale("antivirus.status.infected") ?></option>
                        <option class="wtotem_state__option" value="new"><?= wtsec_locale("antivirus.status.new") ?></option>
                        <option class="wtotem_state__option" value="deleted"><?= wtsec_locale("antivirus.status.deleted") ?></option>
                        <option class="wtotem_state__option" value="modified"><?= wtsec_locale("antivirus.status.changed") ?></option>
                        <option class="wtotem_state__option" value="error"><?= wtsec_locale("antivirus.status.error") ?></option>
                    </select>
                </div>
                <div class="wtotem_filter__wrapper wt-margin-bottom-15">

                    <div class="wtotem_chart__calendars">
                        <div class="wtotem_calendar-icon"></div>
                        <input
                                class="flatpickr flatpickr-input wtotem_calendar"
                                type="text"
                                placeholder="<?= wtsec_locale("chart.select-date") ?>"
                                readonly="readonly"
                                id="av_period_filter"
                        />
                        <div class="wtotem_calendar-connect">
                            -
                        </div>
                        <input
                                class="wtotem_calendar"
                                type="text"
                                placeholder="<?= wtsec_locale("chart.select-date") ?>"
                                id="secondRangeInput"
                                readonly="readonly"
                        />
                    </div>
                </div>
            </div>


            <div class="wtotem_file-table">
                <div class="wtotem_file-table__thead">
                    <div class="wtotem_file-table__tr">
                        <div class="wtotem_file-table__th">
                            <?= wtsec_locale("file") ?>
                        </div>
                        <div class="wtotem_file-table__th">
                            <?= wtsec_locale("antivirus.info.title") ?>
                        </div>
                        <div class="wtotem_file-table__th">
                            <?= wtsec_locale("antivirus.date") ?>
                        </div>
                        <div class="wtotem_file-table__th">
                            <?= wtsec_locale("antivirus.time") ?>
                        </div>
                        <div class="wtotem_file-table__th">
                            <?= wtsec_locale("description") ?>
                        </div>
                    </div>
                </div>
                <div class="wtotem_file-table__tbody" id="wtotem_data_box">
                    <?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 } ?>


                    <?php if($_SESSION['antivirus_hasNextPage']):?>
                        <a href="#" class="wtotem_chart__btn ml-2" id="av_load_more"><?= wtsec_locale('load_more') ?></a>
                    <?php endif; ?>
                </div>
            </div>

            <div class="wtotem_state__line"></div>

            <div class="wtotem_state__last">
                <div class="wtotem_state__text">
                    <?= wtsec_locale("need_more_support") ?>
                    <a target="_blank" href="https://wtotem.com/#hs-chat-open"><?= wtsec_locale("lets_talk") ?></a>
                </div>
            </div>
        </div>
    </div>
</div>
<?php else:?>

<?php endif;?>
```
