mirror of
https://github.com/myvesta/vesta.git
synced 2024-12-11 14:50:50 -08:00
122 lines
5.2 KiB
HTML
122 lines
5.2 KiB
HTML
<div class="l-center">
|
|
<div class="l-sort clearfix noselect">
|
|
<a href="/add/firewall/banlist/" class="l-sort__create-btn" title="<?=__('Ban IP Address')?>"><div id="add-icon"></div><div id="tooltip"><?=__('Ban IP Address')?></div></a>
|
|
|
|
<div class="l-sort-toolbar clearfix">
|
|
<table>
|
|
<tr>
|
|
<td class="l-sort-toolbar__search-box">
|
|
<form action="/search/" method="get">
|
|
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
|
<input type="text" name="q" class="search-input" value="<? echo isset($_POST['q']) ? htmlspecialchars($_POST['q']) : '' ?>" />
|
|
<input type="submit" value="" class="l-sort-toolbar__search" onClick="return doSearch('/search/')" />
|
|
</form>
|
|
</td>
|
|
<td class="toggle-all">
|
|
<input id="toggle-all" type="checkbox" name="toggle-all" value="toggle-all" onChange="checkedAll('objects');">
|
|
<label for="toggle-all" class="check-label toggle-all"><?=__('toggle all')?></label>
|
|
</td>
|
|
<td>
|
|
<form action="/bulk/firewall/banlist/" method="post" id="objects">
|
|
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
|
<div class="l-select">
|
|
<select name="action" id="">
|
|
<option value=""><?=__('apply to selected')?></option>
|
|
<option value="delete"><?php print __('delete') ?></option>
|
|
</select>
|
|
</div>
|
|
<input type="submit" value="" class="l-sort-toolbar__filter-apply" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<!-- /.l-sort -->
|
|
</div>
|
|
|
|
<div class="l-separator"></div>
|
|
<!-- /.l-separator -->
|
|
|
|
|
|
<div class="l-center units">
|
|
<?php
|
|
foreach ($data as $key => $value) {
|
|
++$i;
|
|
list($ip,$chain) = explode(":",$key);
|
|
|
|
?>
|
|
|
|
<div class="l-unit<? if($status == 'suspended') echo ' l-unit--suspended';?>">
|
|
<div class="l-unit-toolbar clearfix">
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--left">
|
|
<input id="check<?php echo $i ?>" class="ch-toggle" type="checkbox" name="ipchain[]" value="<?php echo $ip . ':' . $value['CHAIN'] ?>">
|
|
<label for="check<?php echo $i ?>" class="check-label"></label>
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">
|
|
<div class="actions-panel clearfix">
|
|
<div class="actions-panel__col actions-panel__delete shortcut-delete" key-action="js">
|
|
<a id="delete_link_<?=$i?>" class="data-controls do_delete">
|
|
<?=__('delete')?> <i class="do_delete"></i>
|
|
<input type="hidden" name="delete_url" value="/delete/firewall/banlist/?ip=<?=$ip?>&chain=<?=$value['CHAIN']?>&token=<?=$_SESSION['token']?>" />
|
|
<div id="delete_dialog_<?=$i?>" class="confirmation-text-delete hidden" title="<?=__('Confirmation')?>">
|
|
<p class="confirmation"><?=__('DELETE_IP_CONFIRMATION',$key)?></p>
|
|
</div>
|
|
</a>
|
|
<span class="shortcut delete"> Del</span>
|
|
</div>
|
|
|
|
</div>
|
|
<!-- /.actiona-panel -->
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
</div>
|
|
<!-- /.l-unit-toolbar -->
|
|
|
|
<div class="l-unit__col l-unit__col--left clearfix"></div>
|
|
<!-- /.l-unit__col -->
|
|
<div class="l-unit__col l-unit__col--right">
|
|
<div class="l-unit__stats">
|
|
<div class="clearfix l-unit__stat-col--left wide"><b><?=$data[$key]['DATE']?></b> <?=$data[$key]['TIME']?> </div>
|
|
<div class="clearfix l-unit__stat-col--left"></div>
|
|
<div class="clearfix l-unit__stat-col--left wide-3"><b><?=__($value['CHAIN'])?></b></div>
|
|
<div class="clearfix l-unit__stat-col--left"><b><?=$ip?></b><a class="get-ip-info-btn" data-index="<?=$i?>" data-ip="<?=$ip?>"><i class="fas fa-search"></i></a><div class="get-ip-info-result"></div></div>
|
|
</div>
|
|
<!-- /.l-unit__stats -->
|
|
</div>
|
|
<!-- /.l-unit__col -->
|
|
</div>
|
|
<!-- /.l-unit -->
|
|
<!-- div class="l-separator"></div-->
|
|
<!-- /.l-separator -->
|
|
<?}?>
|
|
|
|
</div>
|
|
|
|
<div id="vstobjects">
|
|
<div class="l-separator"></div>
|
|
<div class="l-center">
|
|
<div class="l-unit-ft">
|
|
<table class='data'></table>
|
|
<!-- /form -->
|
|
<div class="l-unit__col l-unit__col--left clearfix"></div>
|
|
<div class="data-count l-unit__col l-unit__col--right clearfix">
|
|
<?php
|
|
if ( $i == 0) {
|
|
echo __('There are no currently banned IP');
|
|
}
|
|
if ( $i == 1) {
|
|
echo __('1 IP address');
|
|
}
|
|
if ( $i > 1) {
|
|
echo __('%s IP addresses',$i);
|
|
}
|
|
?>
|
|
</div>
|
|
<div class="data-count l-unit__col l-unit__col--right back clearfix">
|
|
<a class="button cancel" href="/list/firewall/"><?=__('Back')?></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|