| 1 |
<?php defined('ABSPATH') or die("Protected By WT!");?> |
| 2 |
<?php if(!empty($arguments)):?> |
| 3 |
<div class="wtotem_content"> |
| 4 |
<div class="wtotem_container"> |
| 5 |
<div class="wtotem_antivirus"> |
| 6 |
<div class="wtotem_antivirus__first section-header-mb"> |
| 7 |
<h2 class="title"> |
| 8 |
<?= wtsec_locale("remote_antivirus") ?> |
| 9 |
</h2> |
| 10 |
<!-- <div class="wtotem_print">--> |
| 11 |
<!-- <img src="img/print.svg" alt="Shape" class="wtotem_print__img"/>--> |
| 12 |
<!-- <div class="wtotem_print__label">--> |
| 13 |
<!-- Print PDF--> |
| 14 |
<!-- </div>--> |
| 15 |
<!-- </div>--> |
| 16 |
</div> |
| 17 |
<div class="wtotem_antivirus__block wt_card"> |
| 18 |
<div class="wtotem_antivirus__item"> |
| 19 |
<div class="wtotem_antivirus__figures wtotem_antivirus__figures_green"> |
| 20 |
<?= $arguments["vc"]["scanned"] ?> |
| 21 |
</div> |
| 22 |
<div class="wtotem_antivirus__title"> |
| 23 |
<?= wtsec_locale("antivirus.scanned") ?> |
| 24 |
</div> |
| 25 |
</div> |
| 26 |
|
| 27 |
<div class="wtotem_antivirus__item"> |
| 28 |
<div class="wtotem_antivirus__figures wtotem_antivirus__figures_yellow"> |
| 29 |
<?= $arguments["vc"]["changes"] ?> |
| 30 |
</div> |
| 31 |
<div class="wtotem_antivirus__title"> |
| 32 |
<?= wtsec_locale("antivirus.changed") ?> |
| 33 |
</div> |
| 34 |
</div> |
| 35 |
|
| 36 |
<div class="wtotem_antivirus__item"> |
| 37 |
<div class="wtotem_antivirus__figures wtotem_antivirus__figures_orange"> |
| 38 |
<?= $arguments["vc"]["signatures"] ?> |
| 39 |
</div> |
| 40 |
<div class="wtotem_antivirus__title"> |
| 41 |
<?= wtsec_locale("antivirus.infected") ?> |
| 42 |
</div> |
| 43 |
</div> |
| 44 |
|
| 45 |
<div class="wtotem_antivirus__item"> |
| 46 |
<div class="wtotem_antivirus__figures wtotem_antivirus__figures_black"> |
| 47 |
<?= $arguments["vc"]["deleted"] ?> |
| 48 |
</div> |
| 49 |
<div class="wtotem_antivirus__title"> |
| 50 |
<?= wtsec_locale("antivirus.deleted") ?> |
| 51 |
</div> |
| 52 |
</div> |
| 53 |
</div> |
| 54 |
</div> |
| 55 |
<div class="wtotem_state wt_card"> |
| 56 |
<div class="wtotem_av_filters_wrapper"> |
| 57 |
<div class="wtotem_state__select-wrapper"> |
| 58 |
<select name="file-status" id="wtotem_av_state_filter" class="wtotem_state__select"> |
| 59 |
<option class="wtotem_state__option" value="infected"><?= wtsec_locale("antivirus.status.infected") ?></option> |
| 60 |
<option class="wtotem_state__option" value="new"><?= wtsec_locale("antivirus.status.new") ?></option> |
| 61 |
<option class="wtotem_state__option" value="deleted"><?= wtsec_locale("antivirus.status.deleted") ?></option> |
| 62 |
<option class="wtotem_state__option" value="modified"><?= wtsec_locale("antivirus.status.changed") ?></option> |
| 63 |
<option class="wtotem_state__option" value="error"><?= wtsec_locale("antivirus.status.error") ?></option> |
| 64 |
</select> |
| 65 |
</div> |
| 66 |
<div class="wtotem_filter__wrapper wt-margin-bottom-15"> |
| 67 |
|
| 68 |
<div class="wtotem_chart__calendars"> |
| 69 |
<div class="wtotem_calendar-icon"></div> |
| 70 |
<input |
| 71 |
class="flatpickr flatpickr-input wtotem_calendar" |
| 72 |
type="text" |
| 73 |
placeholder="<?= wtsec_locale("chart.select-date") ?>" |
| 74 |
readonly="readonly" |
| 75 |
id="av_period_filter" |
| 76 |
/> |
| 77 |
<div class="wtotem_calendar-connect"> |
| 78 |
- |
| 79 |
</div> |
| 80 |
<input |
| 81 |
class="wtotem_calendar" |
| 82 |
type="text" |
| 83 |
placeholder="<?= wtsec_locale("chart.select-date") ?>" |
| 84 |
id="secondRangeInput" |
| 85 |
readonly="readonly" |
| 86 |
/> |
| 87 |
</div> |
| 88 |
</div> |
| 89 |
</div> |
| 90 |
|
| 91 |
|
| 92 |
<div class="wtotem_file-table"> |
| 93 |
<div class="wtotem_file-table__thead"> |
| 94 |
<div class="wtotem_file-table__tr"> |
| 95 |
<div class="wtotem_file-table__th"> |
| 96 |
<?= wtsec_locale("file") ?> |
| 97 |
</div> |
| 98 |
<div class="wtotem_file-table__th"> |
| 99 |
<?= wtsec_locale("antivirus.info.title") ?> |
| 100 |
</div> |
| 101 |
<div class="wtotem_file-table__th"> |
| 102 |
<?= wtsec_locale("antivirus.date") ?> |
| 103 |
</div> |
| 104 |
<div class="wtotem_file-table__th"> |
| 105 |
<?= wtsec_locale("antivirus.time") ?> |
| 106 |
</div> |
| 107 |
<div class="wtotem_file-table__th"> |
| 108 |
<?= wtsec_locale("description") ?> |
| 109 |
</div> |
| 110 |
</div> |
| 111 |
</div> |
| 112 |
<div class="wtotem_file-table__tbody" id="wtotem_data_box"> |
| 113 |
<?php foreach ($arguments["vc"]["list"] as $list) { |
| 114 |
$list = $list['node']; |
| 115 |
$signature = $list['signatures']; |
| 116 |
$description = ""; |
| 117 |
$details = []; |
| 118 |
if (isset($list['matches']) && !empty($list['matches'])) { |
| 119 |
$signature_data = json_decode(base64_decode($list['matches']), true); |
| 120 |
if (isset($signature_data[0]["rule"])) { |
| 121 |
$signature = $signature_data[0]["rule"]; |
| 122 |
} |
| 123 |
if (isset($signature_data[0]["Meta"]["description"])) { |
| 124 |
$description = $signature_data[0]["Meta"]["description"]; |
| 125 |
} |
| 126 |
if (isset($signature_data[0]["Strings"])) { |
| 127 |
$details = $signature_data[0]["Strings"]; |
| 128 |
} |
| 129 |
} |
| 130 |
|
| 131 |
$filepath = $list['filePath']; |
| 132 |
$time = convertToCurrentTime($list['time']); |
| 133 |
if ($list['event'] === 'modified') { |
| 134 |
$info = wtsec_locale("antivirus.info.normal"); |
| 135 |
$class_path = "wtotem_file-table__td_changed"; |
| 136 |
$class_info = "wtotem_file-table__td_normal"; |
| 137 |
$description = wtsec_locale("antivirus.status.changed"); |
| 138 |
} elseif ($list['event'] === 'infected') { |
| 139 |
$info = wtsec_locale("antivirus.info.backdoor_virus"); |
| 140 |
$class = "wtotem_file-table__td_critical"; |
| 141 |
$class_info = "wtotem_file-table__td_critical"; |
| 142 |
$description = wtsec_locale("antivirus.status.infected"); |
| 143 |
} elseif ($list['event'] === 'deleted') { |
| 144 |
$info = wtsec_locale("antivirus.info.deleted"); |
| 145 |
$class_path = ""; |
| 146 |
$class_info = ""; |
| 147 |
$description = wtsec_locale("antivirus.status.deleted"); |
| 148 |
} elseif ($list['event'] === 'new'){ |
| 149 |
$info = wtsec_locale("antivirus.info.normal"); |
| 150 |
$class_path = ""; |
| 151 |
$class_info = ""; |
| 152 |
$description = wtsec_locale("antivirus.status.new"); |
| 153 |
} else{ |
| 154 |
$info = wtsec_locale("antivirus.status.error"); |
| 155 |
$class_path = ""; |
| 156 |
$class_info = ""; |
| 157 |
$description = wtsec_locale("antivirus.status.error"); |
| 158 |
} |
| 159 |
?> |
| 160 |
|
| 161 |
<div class="wtotem_file-table__tr"> |
| 162 |
<div class="wtotem_file-table__td <?=$class_path?> break-word"> |
| 163 |
<?= $filepath ?> |
| 164 |
</div> |
| 165 |
<div class="wtotem_file-table__td <?=$class_info?>"> |
| 166 |
<?= $info ?> |
| 167 |
</div> |
| 168 |
<div class="wtotem_file-table__td"> |
| 169 |
<?= $time['date'] ?> |
| 170 |
</div> |
| 171 |
<div class="wtotem_file-table__td"> |
| 172 |
<?= $time['time'] ?> |
| 173 |
</div> |
| 174 |
<div class="wtotem_file-table__td wtotem_file-table__td_critical"> |
| 175 |
<?= $description ?> |
| 176 |
</div> |
| 177 |
</div> |
| 178 |
<?php } ?> |
| 179 |
|
| 180 |
|
| 181 |
<?php if($_SESSION['antivirus_hasNextPage']):?> |
| 182 |
<a href="#" class="wtotem_chart__btn ml-2" id="av_load_more"><?= wtsec_locale('load_more') ?></a> |
| 183 |
<?php endif; ?> |
| 184 |
</div> |
| 185 |
</div> |
| 186 |
|
| 187 |
<div class="wtotem_state__line"></div> |
| 188 |
|
| 189 |
<div class="wtotem_state__last"> |
| 190 |
<div class="wtotem_state__text"> |
| 191 |
<?= wtsec_locale("need_more_support") ?> |
| 192 |
<a target="_blank" href="https://wtotem.com/#hs-chat-open"><?= wtsec_locale("lets_talk") ?></a> |
| 193 |
</div> |
| 194 |
</div> |
| 195 |
</div> |
| 196 |
</div> |
| 197 |
</div> |
| 198 |
<?php else:?> |
| 199 |
|
| 200 |
<?php endif;?> |