| @@ -217,10 +217,10 @@ | ||
| 217 | 217 | </div> |
| 218 | 218 | |
| 219 | 219 | <div class="wtotem_chart-first__right" id="chart_btn"> |
| 220 | 220 | <div class="wtotem_chart-first__btn" data-days="365"><?= wtsec_locale("chart.yearly") ?></div> |
| 221 | - <div class="wtotem_chart-first__btn" data-days="31"><?= wtsec_locale("chart.monthly") ?></div> | |
| 222 | - <div class="wtotem_chart-first__btn wtotem_chart-first__btn_active" data-days="7"><?= wtsec_locale("chart.weekly") ?></div> | |
| 221 | + <div class="wtotem_chart-first__btn wtotem_chart-first__btn_active" data-days="31"><?= wtsec_locale("chart.monthly") ?></div> | |
| 222 | + <div class="wtotem_chart-first__btn" data-days="7"><?= wtsec_locale("chart.weekly") ?></div> | |
| 223 | 223 | <div class="wtotem_chart-first__btn" data-days="1"><?= wtsec_locale("chart.daily") ?></div> |
| 224 | 224 | </div> |
| 225 | 225 | </div> |
| 226 | 226 | |
| @@ -270,36 +270,9 @@ | ||
| 270 | 270 | </div> |
| 271 | 271 | </div> |
| 272 | 272 | </div> |
| 273 | 273 | <div class="wtotem_data__tbody"> |
| 274 | - <?php foreach ($arguments['waf']['edges'] as $edge){?> | |
| 275 | - <div class="wtotem_data__tr"> | |
| 276 | - <div class="wtotem_data__td <?= $edge['node']['blocked'] ? 'wtotem_data__td_banned' : 'wtotem_data__td_blocked' ?> wtotem_data_width_1 break-word"> | |
| 277 | - <div class="wtotem_data__ip"> | |
| 278 | - <?= $edge['node']['ip'] ?> | |
| 279 | - </div> | |
| 280 | - </div> | |
| 281 | - <div class="wtotem_data__td wtotem_data_width_2 break-word"> | |
| 282 | - | |
| 283 | - <div class="wtotem_data__country wt-flex wt-flex-middle"> | |
| 284 | - <img src="https://assets.wtotem.net/images/flags/<?= mb_strtolower($edge['node']['country']) ?>.png" class="wt-margin-right-10 wt_flag"> | |
| 285 | - | |
| 286 | - <?= $edge['node']['location']['country']['nameEn'] ?> | |
| 287 | - </div> | |
| 288 | - </div> | |
| 289 | - <div class="wtotem_data__td wtotem_data_width_3"> | |
| 290 | - <?= date("Y-m-d H:i:s",$edge['node']['time']/1000) ?> | |
| 291 | - </div> | |
| 292 | - <div | |
| 293 | - class="wtotem_data__td wtotem_data_width_4 break-word"> | |
| 294 | - <?= $edge['node']['request'] ?> | |
| 295 | - </div> | |
| 296 | - <div | |
| 297 | - class="wtotem_data__td wtotem_data_width_6"> | |
| 298 | - <?= $edge['node']['blocked'] ? wtsec_locale('chart.blocked_ip') : wtsec_locale('chart.not_blocked_ip') ?> | |
| 299 | - </div> | |
| 300 | - </div> | |
| 301 | - <?php } ?> | |
| 274 | + <?php include 'components/_firewall_lazy.php'?> | |
| 302 | 275 | </div> |
| 303 | 276 | </div> |
| 304 | 277 | <div class="wtotem_chart__line"></div> |
| 305 | 278 | <div class="wtotem_chart__last"> |
| @@ -457,10 +430,12 @@ | ||
| 457 | 430 | title="<?= $arguments["av"]["description"] ?>"></span></h3> |
| 458 | 431 | </div> |
| 459 | 432 | <div class="wtotem_table__td"> |
| 460 | 433 | <div class="wtotem_table__wrap"> |
| 434 | + <?php if($arguments["dc"]["status"]["image"]):?> | |
| 461 | 435 | <img src="<?= wtsec_getImagePath($arguments["dc"]["status"]["image"]) ?>" alt="Check mark icon" |
| 462 | 436 | class="wtotem_table__img"/> |
| 437 | + <?php endif; ?> | |
| 463 | 438 | </div> |
| 464 | 439 | |
| 465 | 440 | <div class="wtotem_table__perfomance wtotem_table__perfomance_long ml-2"><?= $arguments["av"]["reputation"] ?></div> |
| 466 | 441 | </div> |
| @@ -497,10 +472,8 @@ | ||
| 497 | 472 | </div> |
| 498 | 473 | </div> |
| 499 | 474 | </div> |
| 500 | 475 | |
| 501 | - | |
| 502 | - | |
| 503 | 476 | <div class="wtotem_scanning"> |
| 504 | 477 | <div class="wtotem_scanning__first section-header-mb"> |
| 505 | 478 | <h2 class="title"> |
| 506 | 479 | <?= wtsec_locale("scanning") ?> |
| @@ -555,10 +528,12 @@ | ||
| 555 | 528 | </h3> |
| 556 | 529 | </div> |
| 557 | 530 | <div class="wtotem_table__item"> |
| 558 | 531 | <div class="wtotem_table__wrap_big"> |
| 532 | + <?php if($arguments["dc"]["status"]["image"]):?> | |
| 559 | 533 | <img src="<?= wtsec_getImagePath($arguments["dc"]["status"]["image"]) ?>" alt="Check mark icon" |
| 560 | 534 | class="wtotem_table__img"/> |
| 535 | + <?php endif; ?> | |
| 561 | 536 | </div> |
| 562 | 537 | </div> |
| 563 | 538 | |
| 564 | 539 | <div class="wtotem_table__info"> |
| @@ -595,10 +570,12 @@ | ||
| 595 | 570 | </h3> |
| 596 | 571 | </div> |
| 597 | 572 | <div class="wtotem_table__item"> |
| 598 | 573 | <div class="wtotem_table__wrap_big"> |
| 574 | + <?php if($arguments["dec"]["status"]["image"]):?> | |
| 599 | 575 | <img src="<?= wtsec_getImagePath($arguments["dec"]["status"]["image"]) ?>" alt="Check mark icon" |
| 600 | 576 | class="wtotem_table__img"/> |
| 577 | + <?php endif; ?> | |
| 601 | 578 | </div> |
| 602 | 579 | </div> |
| 603 | 580 | |
| 604 | 581 | <div class="wtotem_table__info"> |
| @@ -640,20 +617,13 @@ | ||
| 640 | 617 | </div> |
| 641 | 618 | </div> |
| 642 | 619 | </div> |
| 643 | 620 | |
| 644 | -<?php | |
| 645 | -// $result = WTSEC_LIBRARY_WT::auth(wtsec_app()->get("api_key")); | |
| 646 | -// $token_ = $result['data']['guest']['apiKeys']['auth']['token']['value']; | |
| 647 | -?> | |
| 648 | - | |
| 649 | - | |
| 650 | 621 | <script> |
| 651 | 622 | var availability_percent = "<?=$arguments["wa"]["availability_percent"]?>"; |
| 652 | 623 | var waf_chart = <?=$arguments["waf"]["chart"]?>; |
| 653 | 624 | </script> |
| 654 | 625 | <script> |
| 655 | - //var wtotem_token = "<?//=$token_?>//"; | |
| 656 | 626 | var wtotem_token = "<?=$arguments["settings"]["token"]?>"; |
| 657 | 627 | var wtotem_site_id = "<?=$arguments["settings"]["site_id"]?>"; |
| 658 | 628 | var wtotem_am_process_status = "<?=$arguments["am"]["process_status"]?>"; |
| 659 | 629 | var wtotem_locale_installed = "<?= wtsec_locale("installed") ?>"; |