PluginProbe
WebTotem Security / 2.3.7
WebTotem Security v2.3.7
3.0.2 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 All 110 releases
← All changes | includes/dashboard.php +282 -73 2.2.22.3.7 View file →
@@ -1,5 +1,6 @@
1 1 <?php defined('ABSPATH') or die("Protected By WT!"); ?>
2 +
2 3 <?php if (!empty($arguments)): ?>
3 4
4 5 <div class="wtotem_content">
5 6 <div class="wtotem_container">
@@ -7,10 +8,13 @@
7 8 <div class="wtotem_overall wtotem_first_left wt_card">
8 9 <div class="wtotem_overall__title wtotem_title-info">
9 10 <h3 class="wtotem_title-info__title">
10 11 <?= wtsec_locale("score.overall_security_grade") ?>
11 - <span class="wtotem_title-info__info" data-tlite="w"
12 - title="<?= $arguments["score"]["description"] ?>"> </span>
12 + <span class="wtotem_title-info__info wtotem-tooltip">
13 + <div class="wtotem-tooltip__content">
14 + <?= wtsec_locale("tooltips.scoring") ?>
15 + </div>
16 + </span>
13 17 </h3>
14 18 </div>
15 19 <div class="wtotem_overall__body">
16 20 <div class="wtotem_overall__inner">
@@ -36,9 +40,9 @@
36 40 <div class="wtotem_info__block">
37 41 <div class="wtotem_info__subtitle"><?= wtsec_locale("score.location") ?></div>
38 42 <div class="wtotem_info__info"><?= $arguments["score"]["location"] ?></div>
39 43 </div>
40 - <div class="wtotem_info__scoring arrow-right"><a href="https://wtotem.com/scoring?url=<?= WTSEC_SITE_URL ?>" target="_blank"><?= wtsec_locale("score.full_scoring") ?></a></div>
44 + <div class="wtotem_info__scoring arrow-right"><a href="https://wtotem.com/cabinet/site/<?= $arguments['settings']['site_id']?>/scoring" target="_blank"><?= wtsec_locale("score.full_scoring") ?></a></div>
41 45 </div>
42 46 </div>
43 47 </div>
44 48
@@ -47,12 +51,16 @@
47 51 <div class="wtotem_unit__first section-header-mb">
48 52 <h2 class="title">
49 53 <?= wtsec_locale("agent_manager_installation") ?>
50 54 </h2>
55 +
56 + <a class="wtotem_button wtotem_button--primary wtotem_font-700 wtotem_reinstall" href="#" data-text="<?= wtsec_locale("reinstall_warning") ?>">
57 + <span><?= wtsec_locale("reinstall") ?></span>
58 + </a>
51 59 </div>
52 60 <div class="wtotem_unit__wrapper wt_card">
53 61 <?php if ($arguments["am"]["process_status"] === "installing"): ?>
54 - <div class="wtotem_unit__block wtotem_unit__block_antivirus" id="wtsec_antivirus_block_installed" style="display: none">
62 + <div class="wtotem_unit__block wtotem_unit__block_antivirus" id="wtsec_antivirus_block_installed" style="display: none">
55 63 <div class="wtotem_unit__contain">
56 64 <div class="wtotem_unit__circle wtotem_unit__circle_success">
57 65 <img src="<?= wtsec_getImagePath("success.svg") ?>" alt="Success" class="wtotem_unit__img">
58 66 </div>
@@ -130,8 +138,9 @@
130 138 <div class="wtotem_unit__expectation wtotem_unit__expectation_error">
131 139 <?= wtsec_locale("installation_failed") ?>
132 140 </div>
133 141 </div>
142 +
134 143 <?php elseif(!$arguments["am"]["installed"]): ?>
135 144 <div class="wtotem_unit__block">
136 145 <div class="wtotem_unit__contain">
137 146 <div class="wtotem_unit__circle wtotem_unit__circle_error"></div>
@@ -139,29 +148,39 @@
139 148 <?= wtsec_locale("agent_manager_failed") ?>
140 149 </h2>
141 150 </div>
142 151 <div class="wtotem_unit__expectation wtotem_unit__expectation_error">
143 - <?php if (isset($arguments['am']['actions']['first'])) { ?>
144 - <?= $arguments['am']['actions']['first'] ?>
145 - <?php } ?>
152 + <a class="wtotem_button wtotem_button--primary wtotem_font-700 wtotem_block_center wtotem_reinstall" href="#" data-text="<?= wtsec_locale("reinstall_warning") ?>">
153 + <span><?= wtsec_locale("install") ?></span>
154 + </a>
146 155 </div>
147 156 </div>
148 157 <?php endif; ?>
149 158
150 159 </div>
160 +
151 161 </div>
152 162 <?php endif; ?>
153 163
154 164
155 -
156 165 <div class="wtotem_firewall">
157 166 <div class="wtotem_firewall__first section-header-mb">
158 167 <h2 class="title"><?= wtsec_locale("firewall_activity") ?></h2>
159 - <a href="<?=wtsec_getUrl("waf")?>" class="wtotem_firewall__stats wtotem_print">
160 - <span class="wtotem_firewall__icon"></span>
161 - <span class="wtotem_firewall__text wtotem_print__label">Full stats</span>
168 + </div>
169 +
170 + <?php if($arguments["wafTraining"]):?>
171 + <div class="wtotem_firwall-training-alert wt_card">
172 + <div class="wtotem_firwall-training-alert__text-wrapper">
173 + <p class="wtotem_firwall-training-alert__text">
174 + <?= wtsec_locale("firewall-training") ?>
175 + </p>
176 + </div>
177 + <a href="https://wtotem.com/docs/our-features/firewall" target="_blank" class="wtotem_firwall-training-alert__learn-more button">
178 + <?= wtsec_locale("learn_more") ?>
162 179 </a>
163 180 </div>
181 + <?php endif; ?>
182 +
164 183 <div class="wtotem_firewall__block">
165 184 <div class="wtotem_numbers wt_card">
166 185 <div class="wtotem_numbers__item">
167 186 <div class="wtotem_numbers__title"><?= wtsec_locale("attacks") ?></div>
@@ -196,9 +215,9 @@
196 215 wtsec_locale("chart.attack_from_region",['region' => $arguments["waf"]["countryAttacks"]["country"]]) :
197 216 wtsec_locale('statuses.ok') ?>
198 217 </div>
199 218 </div>
200 - <div class="wtotem_from__arrow-right"></div>
219 + <a href="<?=wtsec_getUrl("waf")?>" class="wtotem_from__arrow-right"></a>
201 220 </div>
202 221 </div>
203 222 </div>
204 223
@@ -204,9 +223,8 @@
204 223
205 224 <div class="wtotem_chart wt_card">
206 225 <div class="wtotem_chart-first">
207 226 <div class="wtotem_chart-first__left">
208 - <div class="wtotem_chart-first__all"><?= wtsec_locale("chart.all") ?></div>
209 227 <div class="wtotem_chart-first__hack wtotem_chart-first__hack_attack">
210 228 <span></span>
211 229 <p><?= wtsec_locale("chart.attacks") ?></p>
212 230 </div>
@@ -215,9 +233,9 @@
215 233 <p><?= wtsec_locale("chart.blocked") ?></p>
216 234 </div>
217 235 </div>
218 236
219 - <div class="wtotem_chart-first__right" id="chart_btn">
237 + <div class="wtotem_chart-first__right chart_btn" data-box="chart_wrap" data-service="waf">
220 238 <div class="wtotem_chart-first__btn" data-days="365"><?= wtsec_locale("chart.yearly") ?></div>
221 239 <div class="wtotem_chart-first__btn wtotem_chart-first__btn_active" data-days="31"><?= wtsec_locale("chart.monthly") ?></div>
222 240 <div class="wtotem_chart-first__btn" data-days="7"><?= wtsec_locale("chart.weekly") ?></div>
223 241 <div class="wtotem_chart-first__btn" data-days="1"><?= wtsec_locale("chart.daily") ?></div>
@@ -224,9 +242,9 @@
224 242 </div>
225 243 </div>
226 244
227 245 <div id="chart_wrap">
228 - <div class="wtotem_chart__diagram" data-days="7" id="wtotem_chart_diagram">
246 + <div class="wtotem_chart__diagram" data-days="31" id="wtotem_chart_diagram">
229 247 <div id="line-chart" class="line-chart">
230 248 <div id="tooltipAttacks" class="line-chart__tooltip">
231 249 <span id="countAttacks"></span>
232 250 </div>
@@ -285,8 +303,136 @@
285 303 </a>
286 304 </div>
287 305 </div>
288 306
307 + <div class="wtotem_map__first section-header-mb">
308 + <h2 class="title"><?= wtsec_locale("server_resources") ?>
309 + <span class="wtotem_title-info__info wtotem-tooltip">
310 + <div class="wtotem-tooltip__content">
311 + <p class="wtotem-tooltip__header">Server Resources</p>
312 + <p class="wtotem-tooltip__text">Displays critical data about web-server usage. A large
313 + load on a server can slow down the website performance.
314 + </p>
315 + </div>
316 + </span>
317 + </h2>
318 +
319 + </div>
320 +
321 + <!-- RAM diagram -->
322 + <div class="wtotem_chart wt_card">
323 + <div class="wtotem_chart-first">
324 + <div class="wtotem_chart-first__left">
325 + <h3><?= wtsec_locale("random_access_memory") ?>
326 + <span class="wtotem_title-info__info wtotem-tooltip">
327 + <div class="wtotem-tooltip__content">
328 + <p class="wtotem-tooltip__header">RAM</p>
329 + <p class="wtotem-tooltip__text">Shows the RAM load.
330 + </p>
331 + </div>
332 + </span>
333 + </h3>
334 + </div>
335 + <div class="wtotem_chart-first__right chart_btn" data-box="chart_ram_wrap" data-service="ram">
336 + <div class="wtotem_chart-first__btn" data-days="365"><?= wtsec_locale("chart.yearly") ?></div>
337 + <div class="wtotem_chart-first__btn" data-days="31"><?= wtsec_locale("chart.monthly") ?></div>
338 + <div class="wtotem_chart-first__btn wtotem_chart-first__btn_active" data-days="7"><?= wtsec_locale("chart.weekly") ?></div>
339 + <div class="wtotem_chart-first__btn" data-days="1"><?= wtsec_locale("chart.daily") ?></div>
340 + </div>
341 + </div>
342 +
343 + <div id="chart_ram_wrap">
344 + <div class="wtotem_chart__diagram">
345 + <div id="ram-chart" class="line-chart">
346 + <div id="tooltipRam" class="line-chart__tooltip">
347 + <span id="countRam"></span>
348 + </div>
349 + </div>
350 + </div>
351 + <div class="wtotem_chart__line"></div>
352 + </div>
353 +
354 + <section class="wtotem-ss-info">
355 + <h3 class="visually-hidden"></h3>
356 + <dl class="wtotem-ss-info__stats-list">
357 + <div class="wtotem-ss-info__column">
358 + <div class="wtotem-ss-info__stat-wrapper">
359 + <dt>PHP version</dt>
360 + <dd><?= $arguments['serverStatus']['info']['phpVersion']?></dd>
361 + </div>
362 + <div class="wtotem-ss-info__stat-wrapper">
363 + <dt>PHP Server User</dt>
364 + <dd><?= $arguments['serverStatus']['info']['phpServerUser']?></dd>
365 + </div>
366 + <div class="wtotem-ss-info__stat-wrapper">
367 + <dt>Operation system</dt>
368 + <dd title="<?= $arguments['serverStatus']['info']['osInfo']?>">
369 + <?= wtsec_cutString($arguments['serverStatus']['info']['osInfo'],20)?>
370 + </dd>
371 + </div>
372 + </div>
373 + <div class="wtotem-ss-info__column">
374 + <div class="wtotem-ss-info__stat-wrapper">
375 + <dt>CPU Freq</dt>
376 + <dd><?= $arguments['serverStatus']['info']['CpuFreq']?> MHz</dd>
377 + </div>
378 + <div class="wtotem-ss-info__stat-wrapper">
379 + <dt>CPU count</dt>
380 + <dd><?= $arguments['serverStatus']['info']['cpuCount']?></dd>
381 + </div>
382 + <div class="wtotem-ss-info__stat-wrapper">
383 + <dt>CPU Model</dt>
384 + <dd title="<?= $arguments['serverStatus']['info']['cpuModel']?>">
385 + <?= wtsec_cutString($arguments['serverStatus']['info']['cpuModel'],20)?>
386 + </dd>
387 + </div>
388 + </div>
389 + <div class="wtotem-ss-info__column">
390 + <div class="wtotem-ss-info__stat-wrapper">
391 + <dt>CPU Family</dt>
392 + <dd><?= $arguments['serverStatus']['info']['cpuFamily']?></dd>
393 + </div>
394 +
395 + </div>
396 + </dl>
397 + </section>
398 +
399 + </div>
400 +
401 + <!-- CPU diagram -->
402 + <div class="wtotem_chart wt_card">
403 + <div class="wtotem_chart-first">
404 + <div class="wtotem_chart-first__left">
405 + <h3><?= wtsec_locale("cpu_memory") ?>
406 + <span class="wtotem_title-info__info wtotem-tooltip">
407 + <div class="wtotem-tooltip__content">
408 + <p class="wtotem-tooltip__header">CPU</p>
409 + <p class="wtotem-tooltip__text">Shows the CPU load.
410 + </p>
411 + </div>
412 + </span>
413 + </h3>
414 + </div>
415 + <div class="wtotem_chart-first__right chart_btn" data-box="chart_cpu_wrap" data-service="cpu">
416 + <div class="wtotem_chart-first__btn" data-days="365"><?= wtsec_locale("chart.yearly") ?></div>
417 + <div class="wtotem_chart-first__btn" data-days="31"><?= wtsec_locale("chart.monthly") ?></div>
418 + <div class="wtotem_chart-first__btn wtotem_chart-first__btn_active" data-days="7"><?= wtsec_locale("chart.weekly") ?></div>
419 + <div class="wtotem_chart-first__btn" data-days="1"><?= wtsec_locale("chart.daily") ?></div>
420 + </div>
421 + </div>
422 +
423 + <div id="chart_cpu_wrap">
424 + <div class="wtotem_chart__diagram">
425 + <div id="cpu-chart" class="line-chart">
426 + <div id="tooltipCpu" class="line-chart__tooltip">
427 + <span id="countCpu"></span>
428 + </div>
429 + </div>
430 + </div>
431 + </div>
432 +
433 + </div>
434 +
289 435 <div class="wtotem_antivirus">
290 436 <div class="wtotem_antivirus__first section-header-mb">
291 437 <h2 class="title">
292 438 <?= wtsec_locale("remote_antivirus") ?>
@@ -314,18 +460,25 @@
314 460 </div>
315 461 </div>
316 462
317 463 <div class="wtotem_antivirus__item">
464 + <div class="wtotem_antivirus__figures wtotem_antivirus__figures_black">
465 + <?= $arguments["vc"]["deleted"] ?>
466 + </div>
467 + <div class="wtotem_antivirus__title">
468 + <?= wtsec_locale("antivirus.deleted") ?>
469 + </div>
470 + </div>
471 +
472 + <div class="wtotem_antivirus__item">
318 473 <div class="wtotem_antivirus__figures wtotem_antivirus__figures_orange">
319 474 <?= $arguments["vc"]["signatures"] ?>
320 475 </div>
321 - <div class="wtotem_antivirus__title"><?= wtsec_locale("antivirus.infected") ?></div>
476 + <div class="wtotem_antivirus__title">
477 + <?= wtsec_locale("antivirus.infected") ?>
478 + </div>
322 479 </div>
323 480
324 - <div class="wtotem_antivirus__item">
325 - <div class="wtotem_antivirus__figures wtotem_antivirus__figures_black"><?= $arguments["vc"]["deleted"] ?></div>
326 - <div class="wtotem_antivirus__title"><?= wtsec_locale("antivirus.deleted") ?></div>
327 - </div>
328 481 </div>
329 482 </div>
330 483
331 484 <div class="wtotem_monitoring">
@@ -339,10 +492,13 @@
339 492 <div class="wtotem_table__col">
340 493 <div class="wtotem_table__th">
341 494 <h3 class="wtotem_table__title wtotem_title-info__title">
342 495 <?= wtsec_locale("ssl") ?>
343 - <span class="wtotem_title-info__info" data-tlite="w"
344 - title="<?= $arguments["ssl"]["description"] ?>"></span>
496 + <span class="wtotem_title-info__info wtotem-tooltip">
497 + <div class="wtotem-tooltip__content">
498 + <?= wtsec_locale("tooltips.ssl") ?>
499 + </div>
500 + </span>
345 501 </h3>
346 502 </div>
347 503 <div class="wtotem_table__td">
348 504 <div class="wtotem_table__expired">
@@ -351,8 +507,9 @@
351 507 <div class="wtotem_table__solve">
352 508 <?= $arguments["ssl"]["solve_it"] ?>
353 509 </div>
354 510 </div>
511 +
355 512 <?php if (!empty($arguments["ssl"]["days_left"])): ?>
356 513 <div class="wtotem_table__info">
357 514 <h3 class="wtotem_table__subject">
358 515 <?= wtsec_locale("days_left") ?>
@@ -387,10 +544,13 @@
387 544 <div class="wtotem_table__col">
388 545 <div class="wtotem_table__th">
389 546 <h3 class="wtotem_table__title wtotem_title-info__title">
390 547 <?= wtsec_locale("availability") ?>
391 - <span class="wtotem_title-info__info" data-tlite="w"
392 - title="<?= $arguments["wa"]["description"] ?>"></span>
548 + <span class="wtotem_title-info__info wtotem-tooltip">
549 + <div class="wtotem-tooltip__content">
550 + <?= wtsec_locale("tooltips.availability") ?>
551 + </div>
552 + </span>
393 553 </h3>
394 554 </div>
395 555 <div class="wtotem_table__td">
396 556 <div class="wtotem_table__perfomance">
@@ -406,9 +566,16 @@
406 566 </div>
407 567 </div>
408 568 </div>
409 569 <div class="wtotem_table__info">
410 - <h3 class="wtotem_table__subject"><?= wtsec_locale("status") ?></h3>
570 + <h3 class="wtotem_table__subject">
571 + <?= wtsec_locale("status") ?>
572 + <span class="wtotem_title-info__info wtotem-tooltip">
573 + <div class="wtotem-tooltip__content">
574 + <?= wtsec_locale("tooltips.availability_statuses") ?>
575 + </div>
576 + </span>
577 + </h3>
411 578 <div class="wtotem_table__status"><?= $arguments["wa"]["status"]["text"] ?></div>
412 579 </div>
413 580 <div class="wtotem_table__info">
414 581 <h3 class="wtotem_table__subject"><?= wtsec_locale("response_time") ?></h3>
@@ -425,10 +592,14 @@
425 592 </div>
426 593 <div class="wtotem_table__col">
427 594 <div class="wtotem_table__th">
428 595 <h3 class="wtotem_table__title wtotem_title-info__title"><?= wtsec_locale("reputation") ?>
429 - <span class="wtotem_title-info__info" data-tlite="w"
430 - title="<?= $arguments["av"]["description"] ?>"></span></h3>
596 + <span class="wtotem_title-info__info wtotem-tooltip">
597 + <div class="wtotem-tooltip__content">
598 + <?= wtsec_locale("tooltips.reputation") ?>
599 + </div>
600 + </span>
601 + </h3>
431 602 </div>
432 603 <div class="wtotem_table__td">
433 604 <div class="wtotem_table__wrap">
434 605 <?php if($arguments["dc"]["status"]["image"]):?>
@@ -439,9 +610,16 @@
439 610
440 611 <div class="wtotem_table__perfomance wtotem_table__perfomance_long ml-2"><?= $arguments["av"]["reputation"] ?></div>
441 612 </div>
442 613 <div class="wtotem_table__info">
443 - <h3 class="wtotem_table__subject"><?= wtsec_locale("status") ?></h3>
614 + <h3 class="wtotem_table__subject">
615 + <?= wtsec_locale("status") ?>
616 + <span class="wtotem_title-info__info wtotem-tooltip">
617 + <div class="wtotem-tooltip__content">
618 + <?= wtsec_locale("tooltips.reputation_statuses") ?>
619 + </div>
620 + </span>
621 + </h3>
444 622 <div class="wtotem_table__status"><?= $arguments["av"]["status"]["text"] ?></div>
445 623 </div>
446 624 <div class="wtotem_table__info">
447 625 <h3 class="wtotem_table__subject">
@@ -484,15 +662,23 @@
484 662 <div class="wtotem_table__col">
485 663 <div class="wtotem_table__th">
486 664 <h3 class="wtotem_table__title wtotem_title-info__title">
487 665 <?= wtsec_locale("port_scanner") ?>
488 - <span class="wtotem_title-info__info" data-tlite="w"
489 - title="<?= $arguments["dc"]["description"] ?>"></span>
666 + <span class="wtotem_title-info__info wtotem-tooltip">
667 + <div class="wtotem-tooltip__content">
668 + <?= wtsec_locale("tooltips.port_scanner") ?>
669 + </div>
670 + </span>
490 671 </h3>
491 672 </div>
492 673 <div class="wtotem_table__info">
493 674 <h3 class="wtotem_table__subject">
494 675 <?= wtsec_locale("status") ?>
676 + <span class="wtotem_title-info__info wtotem-tooltip">
677 + <div class="wtotem-tooltip__content">
678 + <?= wtsec_locale("tooltips.port_statuses") ?>
679 + </div>
680 + </span>
495 681 </h3>
496 682 <div class="wtotem_table__status"><?= $arguments["ps"]["status"]["text"] ?></div>
497 683 </div>
498 684 <div class="wtotem_table__info">
@@ -519,13 +705,16 @@
519 705 </div>
520 706 </div>
521 707
522 708 <div class="wtotem_table__col">
523 - <div class="wtotem_table__th wtotem_overall__title">
709 + <div class="wtotem_table__th">
524 710 <h3 class="wtotem_table__title wtotem_title-info__title">
525 711 <?= wtsec_locale("deface_scanner") ?>
526 - <span class="wtotem_title-info__info" data-tlite="w"
527 - title="<?= $arguments["dc"]["description"] ?>"></span>
712 + <span class="wtotem_title-info__info wtotem-tooltip">
713 + <div class="wtotem-tooltip__content">
714 + <?= wtsec_locale("tooltips.deface_scanner") ?>
715 + </div>
716 + </span>
528 717 </h3>
529 718 </div>
530 719 <div class="wtotem_table__item">
531 720 <div class="wtotem_table__wrap_big">
@@ -538,21 +727,28 @@
538 727
539 728 <div class="wtotem_table__info">
540 729 <h3 class="wtotem_table__subject">
541 730 <?= wtsec_locale("status") ?>
731 + <span class="wtotem_title-info__info wtotem-tooltip">
732 + <div class="wtotem-tooltip__content">
733 + <?= wtsec_locale("tooltips.deface_statuses") ?>
734 + </div>
735 + </span>
542 736 </h3>
543 737 <div class="wtotem_table__status">
544 738 <?= $arguments["dc"]["status"]["text"] ?>
545 739 </div>
546 740 </div>
741 + <?php if($arguments["dc"]["words"]):?>
547 742 <div class="wtotem_table__info">
548 743 <h3 class="wtotem_table__subject">
549 - <?= wtsec_locale("number") ?>
744 + <?= wtsec_locale("words") ?>
550 745 </h3>
551 746 <div class="wtotem_table__text">
552 - <?= $arguments["dc"]["number"] ?>
747 + <?= $arguments["dc"]["words"] ?>
553 748 </div>
554 749 </div>
750 + <?php endif; ?>
555 751 <div class="wtotem_table__info">
556 752 <h3 class="wtotem_table__subject">
557 753 <?= wtsec_locale("last_test") ?>
558 754 </h3>
@@ -560,50 +756,59 @@
560 756 <?= $arguments["dc"]["time_of_the_last_test"] ?>
561 757 </div>
562 758 </div>
563 759 </div>
760 +
761 +
564 762 <div class="wtotem_table__col">
565 - <div class="wtotem_table__th">
566 - <h3 class="wtotem_table__title wtotem_title-info__title">
567 - <?= wtsec_locale("domain") ?>
568 - <span class="wtotem_title-info__info" data-tlite="w"
569 - title="<?= $arguments["dec"]["description"] ?>"></span>
570 - </h3>
571 - </div>
572 - <div class="wtotem_table__item">
573 - <div class="wtotem_table__wrap_big">
574 - <?php if($arguments["dec"]["status"]["image"]):?>
575 - <img src="<?= wtsec_getImagePath($arguments["dec"]["status"]["image"]) ?>" alt="Check mark icon"
576 - class="wtotem_table__img"/>
763 + <section class="wtotem-ss-disc">
764 + <div class="wtotem_chart wt_card wtotem-ss-disc">
765 + <div class="wtotem_chart-first wtotem-ss-disc__header">
766 + <h3 class="wtotem_table__subject" ><?= wtsec_locale("disk_usage") ?>
767 + <span class="wtotem_title-info__info wtotem-tooltip">
768 + <div class="wtotem-tooltip__content">
769 + <p class="wtotem-tooltip__header">Disc usage</p>
770 + <p class="wtotem-tooltip__text">Shows the Disc load and its accessible memory.
771 + </p>
772 + </div>
773 + </span>
774 + </h3>
775 + </div>
776 + <div class="wtotem_state__line wtotem-ss-disc__line"></div>
777 +
778 + <div class="wtotem-ss-disc__content">
779 + <?php if(!$arguments["serverStatus"]["discUsage"]['total']):?>
780 + <section class="wtotem_reports-no-data" >
781 + <h2 class="visually-hidden"><?= wtsec_locale("no_data") ?></h2>
782 + <p class="wtotem_reports-no-data__text">
783 + <?= wtsec_locale("has_no_action_ready_yet") ?>
784 + </p>
785 + </section>
786 + <?php else: ?>
787 + <div class="wtotem-ss-disc__wrapper">
788 + <div id="disk-chart"></div>
789 + <div class="wtotem-ss-disc__totals">
790 + <p class="wtotem-ss-disc__totals-caption"><?= wtsec_locale("total") ?></p>
791 + <p class="wtotem-ss-disc__totals-value"><?= $arguments["serverStatus"]["discUsage"]['total']?></p>
792 + </div>
793 + </div>
794 + <ul class="wtotem-ss-disc__legend">
795 + <li class="wtotem-ss-disc__legend-item wtotem-ss-disc__legend-item--use">
796 + <p class="wtotem-ss-disc__legend-value"><?= $arguments["serverStatus"]["discUsage"]['use']?></p>
797 + <p class="wtotem-ss-disc__legend-caption"><?= wtsec_locale("use") ?></p>
798 + </li>
799 + <li class="wtotem-ss-disc__legend-item wtotem-ss-disc__legend-item--free">
800 + <p class="wtotem-ss-disc__legend-value"><?= $arguments["serverStatus"]["discUsage"]['free']?></p>
801 + <p class="wtotem-ss-disc__legend-caption"><?= wtsec_locale("free") ?></p>
802 + </li>
803 + </ul>
577 804 <?php endif; ?>
578 805 </div>
579 806 </div>
807 + </section>
580 808
581 - <div class="wtotem_table__info">
582 - <h3 class="wtotem_table__subject">
583 - <?= wtsec_locale("status") ?>
584 - </h3>
585 - <div class="wtotem_table__status">
586 - <?= $arguments["dec"]["status"]["text"] ?>
587 - </div>
588 - </div>
589 - <div class="wtotem_table__info">
590 - <h3 class="wtotem_table__subject">
591 - <?= wtsec_locale("created") ?>
592 - </h3>
593 - <div class="wtotem_table__text">
594 - <?= $arguments["dec"]["created"] ?>
595 - </div>
596 - </div>
597 - <div class="wtotem_table__info">
598 - <h3 class="wtotem_table__subject">
599 - <?= wtsec_locale("expiry_date") ?>
600 - </h3>
601 - <div class="wtotem_table__text">
602 - <?= $arguments["dec"]["expiry_date"] ?>
603 - </div>
604 - </div>
605 809 </div>
810 +
606 811 </div>
607 812
608 813 <div class="wtotem_table__footer">
609 814 <a target="_blank" href="https://wtotem.com/faq/#hs-chat-open" class="wtotem_table__link">
@@ -620,10 +825,12 @@
620 825
621 826 <script>
622 827 var availability_percent = "<?=$arguments["wa"]["availability_percent"]?>";
623 828 var waf_chart = <?=$arguments["waf"]["chart"]?>;
624 -</script>
625 -<script>
829 + var serverStatusRam = <?=$arguments["serverStatus"]["ramChart"]?>;
830 + var serverStatusCpu = <?=$arguments["serverStatus"]["cpuChart"]?>;
831 + var serverStatusDiscUsage = <?= json_encode($arguments["serverStatus"]["discUsage"])?>;
832 +
626 833 var wtotem_token = "<?=$arguments["settings"]["token"]?>";
627 834 var wtotem_site_id = "<?=$arguments["settings"]["site_id"]?>";
628 835 var wtotem_am_process_status = "<?=$arguments["am"]["process_status"]?>";
629 836 var wtotem_locale_installed = "<?= wtsec_locale("installed") ?>";
@@ -628,9 +835,11 @@
628 835 var wtotem_am_process_status = "<?=$arguments["am"]["process_status"]?>";
629 836 var wtotem_locale_installed = "<?= wtsec_locale("installed") ?>";
630 837 var wtotem_locale_installing = "<?= wtsec_locale("installation_in_progress") ?>";
631 838 var wtotem_locale_failed = "<?= wtsec_locale("failed") ?>";
839 +
632 840 var wtotem_socket_url = "wss://api.wtotem.com/graphql";
841 +
633 842 document.addEventListener('DOMContentLoaded', function () {
634 843 if (wtotem_am_process_status === "installing") {
635 844 let firewall_selector = document.getElementsByClassName("wtotem_unit__block_firewall");
636 845 let firewall_installed_selector = document.getElementById("wtsec_firewall_block_installed");