2017-12-01 06:40:55 +01:00
|
|
|
<script>
|
|
|
|
function confirm_delete(uname){
|
2021-10-17 01:18:11 +02:00
|
|
|
return confirm("{{$l10n.confirm_delete}}".format(uname));
|
2017-12-01 06:40:55 +01:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<div id="adminpage">
|
2021-10-17 01:18:11 +02:00
|
|
|
<h1>{{$l10n.title}} - {{$l10n.page}}</h1>
|
|
|
|
<p>{{$l10n.intro}}</p>
|
|
|
|
<p>{{$l10n.public nofilter}}</p>
|
2022-07-27 17:54:50 +02:00
|
|
|
|
|
|
|
<h2>{{$l10n.importtitle}}</h2>
|
|
|
|
{{$l10n.download nofilter}}
|
|
|
|
|
|
|
|
<form action="{{$baseurl}}/admin/blocklist/server/import" method="post" enctype="multipart/form-data">
|
|
|
|
<input type="hidden" name="form_security_token" value="{{$form_security_token_import}}">
|
|
|
|
{{include file="field_input.tpl" field=$listfile}}
|
|
|
|
<div class="submit">
|
|
|
|
<button type="submit" class="btn btn-primary" name="page_blocklist_upload">{{$l10n.importsubmit}}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2017-12-01 06:40:55 +01:00
|
|
|
|
2021-10-17 01:18:11 +02:00
|
|
|
<h2>{{$l10n.addtitle}}</h2>
|
2022-07-27 17:54:50 +02:00
|
|
|
{{$l10n.syntax nofilter}}
|
2021-10-17 01:18:11 +02:00
|
|
|
<form action="{{$baseurl}}/admin/blocklist/server/add" method="get">
|
2017-12-01 06:40:55 +01:00
|
|
|
{{include file="field_input.tpl" field=$newdomain}}
|
2019-07-26 04:37:30 +02:00
|
|
|
<div class="submit">
|
2022-07-27 17:54:50 +02:00
|
|
|
<button type="submit" class="btn btn-primary">{{$l10n.addsubmit}}</button>
|
2019-07-26 04:37:30 +02:00
|
|
|
</div>
|
2017-12-01 06:40:55 +01:00
|
|
|
</form>
|
|
|
|
|
|
|
|
{{if $entries}}
|
2021-10-17 01:18:11 +02:00
|
|
|
<h2>{{$l10n.currenttitle}}</h2>
|
2019-04-22 03:40:05 +02:00
|
|
|
<form action="{{$baseurl}}/admin/blocklist/server" method="post">
|
2017-12-01 06:40:55 +01:00
|
|
|
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
|
|
|
{{foreach $entries as $e}}
|
|
|
|
{{include file="field_input.tpl" field=$e.domain}}
|
|
|
|
{{include file="field_input.tpl" field=$e.reason}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$e.delete}}
|
|
|
|
{{/foreach}}
|
2019-07-26 04:37:30 +02:00
|
|
|
<div class="submit">
|
2021-10-17 01:18:11 +02:00
|
|
|
<button type="submit" class="btn btn-primary" name="page_blocklist_edit" value="{{$l10n.savechanges}}">{{$l10n.savechanges}}</button>
|
2019-07-26 04:37:30 +02:00
|
|
|
</div>
|
2017-12-01 06:40:55 +01:00
|
|
|
{{/if}}
|
|
|
|
</form>
|
|
|
|
</div>
|