| 1 |
<?php |
| 2 |
defined('ABSPATH') or die("Protected By WT!"); |
| 3 |
?> |
| 4 |
<?php if($arguments['waf']['edges']): ?> |
| 5 |
<?php foreach ($arguments['waf']['edges'] as $edge) : ?> |
| 6 |
<div class="wtotem_data__tr"> |
| 7 |
<div class="wtotem_data__td <?= $edge['node']['blocked'] ? 'wtotem_data__td_banned' : 'wtotem_data__td_blocked' ?> wtotem_data_width_1 break-word"> |
| 8 |
<div class="wtotem_data__ip"> |
| 9 |
<?= $edge['node']['ip'] ?> |
| 10 |
</div> |
| 11 |
</div> |
| 12 |
<div class="wtotem_data__td wtotem_data_width_2 break-word"> |
| 13 |
<div class="wtotem_data__country wt-flex wt-flex-middle"> |
| 14 |
<img src="https://assets.wtotem.net/images/flags/<?= mb_strtolower($edge['node']['country']) ?>.png" class="wt-margin-right-10 wt_flag"> |
| 15 |
<?= $edge['node']['location']['country']['nameEn'] ?> |
| 16 |
</div> |
| 17 |
</div> |
| 18 |
<div class="wtotem_data__td wtotem_data_width_3"> |
| 19 |
<?= date("Y-m-d H:i:s", strtotime($edge['node']['time'])) ?> |
| 20 |
</div> |
| 21 |
<div |
| 22 |
class="wtotem_data__td wtotem_data_width_4 break-word"> |
| 23 |
<?= htmlspecialchars(urldecode($edge['node']['request'])) ?> |
| 24 |
</div> |
| 25 |
<div |
| 26 |
class="wtotem_data__td wtotem_data_width_6"> |
| 27 |
<?= $edge['node']['blocked'] ? wtsec_locale('chart.blocked_ip') : wtsec_locale('chart.not_blocked_ip') ?> |
| 28 |
</div> |
| 29 |
</div> |
| 30 |
<?php endforeach; ?> |
| 31 |
|
| 32 |
<?php if($arguments['waf']['hasNextPage']):?> |
| 33 |
<a href="#" class="wtotem_chart__btn" id="waf_load_more"><?= wtsec_locale('load_more') ?></a> |
| 34 |
<?php endif; ?> |
| 35 |
<?php else:?> |
| 36 |
|
| 37 |
<!-- No data block --> |
| 38 |
<section class="wtotem_reports-no-data" style="height:300px" > |
| 39 |
<h2 class="visually-hidden"><?= wtsec_locale("no_data") ?></h2> |
| 40 |
<p class="wtotem_reports-no-data__text"> |
| 41 |
<?= wtsec_locale("has_no_action_ready_yet") ?> |
| 42 |
</p> |
| 43 |
</section> |
| 44 |
|
| 45 |
<?php endif; ?> |
| 46 |
|