PluginProbe
WebTotem Security / 2.1.7
WebTotem Security v2.1.7
3.0.1 3.0.0 trunk 1.0 1.1 1.2 1.3 1.3.1 1.3.2 1.3.3 2.0 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.1 2.2.2 2.2.3 2.2.4 All 109 releases
wt-security / includes / antivirus.php

antivirus.php in WebTotem Security 2.1.7, at includes/antivirus.php

174 lines 8.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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_state__select-wrapper">-->
57 <!-- <select name="file-status" id="wtotem_id" class="wtotem_state__select">-->
58 <!-- <option class="wtotem_state__option" value="Show crititcal">Show crititcal</option>-->
59 <!-- </select>-->
60 <!-- </div>-->
61
62 <div class="wtotem_file-table">
63 <div class="wtotem_file-table__thead">
64 <div class="wtotem_file-table__tr">
65 <div class="wtotem_file-table__th">
66 <?= wtsec_locale("file") ?>
67 </div>
68 <div class="wtotem_file-table__th">
69 <?= wtsec_locale("antivirus.info.title") ?>
70 </div>
71 <div class="wtotem_file-table__th">
72 <?= wtsec_locale("antivirus.date") ?>
73 </div>
74 <div class="wtotem_file-table__th">
75 <?= wtsec_locale("antivirus.time") ?>
76 </div>
77 <div class="wtotem_file-table__th">
78 <?= wtsec_locale("description") ?>
79 </div>
80 </div>
81 </div>
82 <div class="wtotem_file-table__tbody">
83 <?php foreach ($arguments["vc"]["list"] as $list) {
84 $list = $list['node'];
85 $signature = $list['signatures'];
86 $description = "";
87 $details = [];
88 if (isset($list['matches']) && !empty($list['matches'])) {
89 $signature_data = json_decode(base64_decode($list['matches']), true);
90 if (isset($signature_data[0]["rule"])) {
91 $signature = $signature_data[0]["rule"];
92 }
93 if (isset($signature_data[0]["Meta"]["description"])) {
94 $description = $signature_data[0]["Meta"]["description"];
95 }
96 if (isset($signature_data[0]["Strings"])) {
97 $details = $signature_data[0]["Strings"];
98 }
99 }
100
101 $filepath = $list['filePath'];
102 $time = convertToCurrentTime($list['time']);
103 if ($list['event'] === 'modified') {
104 $info = wtsec_locale("antivirus.info.normal");
105 $class_path = "wtotem_file-table__td_changed";
106 $class_info = "wtotem_file-table__td_normal";
107 $description = wtsec_locale("antivirus.status.changed");
108 } elseif ($list['event'] === 'infected') {
109 $info = wtsec_locale("antivirus.info.backdoor_virus");
110 $class = "wtotem_file-table__td_critical";
111 $class_info = "wtotem_file-table__td_critical";
112 $description = wtsec_locale("antivirus.status.infected");
113 } elseif ($list['event'] === 'deleted') {
114 $info = wtsec_locale("antivirus.info.deleted");
115 $class_path = "";
116 $class_info = "";
117 $description = wtsec_locale("antivirus.status.deleted");
118 }elseif ($list['event'] === 'new'){
119 $info = wtsec_locale("antivirus.info.normal");
120 $class_path = "";
121 $class_info = "";
122 $description = wtsec_locale("antivirus.status.new");
123 }else{
124 $info = wtsec_locale("antivirus.status.error");
125 $class_path = "";
126 $class_info = "";
127 $description = wtsec_locale("antivirus.status.error");
128 }
129 ?>
130
131 <div class="wtotem_file-table__tr">
132 <div class="wtotem_file-table__td <?=$class_path?>">
133 <?= $filepath ?>
134 </div>
135 <div class="wtotem_file-table__td <?=$class_info?>">
136 <?= $info ?>
137 </div>
138 <div class="wtotem_file-table__td">
139 <?= $time['date'] ?>
140 </div>
141 <div class="wtotem_file-table__td">
142 <?= $time['time'] ?>
143 </div>
144 <div class="wtotem_file-table__td wtotem_file-table__td_critical">
145 <?= $description ?>
146 </div>
147 </div>
148 <?php } ?>
149 </div>
150 </div>
151
152 <div class="wtotem_state__line"></div>
153
154 <div class="wtotem_state__last">
155 <div class="wtotem_state__text">
156 <?= wtsec_locale("need_more_support") ?>
157 <a target="_blank" href="https://wtotem.com/#hs-chat-open"><?= wtsec_locale("lets_talk") ?></a>
158 </div>
159 <!-- Pagination to release -->
160 <!-- <nav class="wtotem_pagination">-->
161 <!-- <a href="#" class="wtotem_pagination__number wtotem_pagination__number_active">1</a>-->
162 <!-- <a href="#" class="wtotem_pagination__number">2</a>-->
163 <!-- <a href="#" class="wtotem_pagination__number">3</a>-->
164 <!-- <a href="#" class="wtotem_pagination__number wtotem_pagination__number_etc">...</a>-->
165 <!-- <a href="#" class="wtotem_pagination__number">100</a>-->
166 <!-- <a href="#" class="wtotem_pagination__number"><img class="wtotem_pagination__arrow" src="img/arrow-pagination.svg" alt="arrow"/></a>-->
167 <!-- </nav>-->
168 </div>
169 </div>
170 </div>
171 </div>
172 <?php else:?>
173
174 <?php endif;?>