mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Add "permit destructive actions" checkbot to Settings -> API page
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
+52
-41
@@ -11,21 +11,52 @@ mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="col-md-6 settings-level-1">
|
||||
<div class="box box-warning">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Exclusions</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<p><strong>Domains to be excluded from Top Domains / Ads Lists</strong></p>
|
||||
<textarea class="form-control" rows="4" id="webserver.api.excludeDomains" data-key="webserver.api.excludeDomains" placeholder="Enter domains, one per line" style="resize: vertical;"></textarea>
|
||||
<p class="help-block">Domains may be described by their domain name (like <code>example.com</code>)</p>
|
||||
<div class="row">
|
||||
<div class="col-md-12 settings-level-1">
|
||||
<div class="box box-warning">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Exclusions</h3>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<p><strong>Clients to be excluded from Top Clients List</strong></p>
|
||||
<textarea class="form-control" rows="4" id="webserver.api.excludeClients" data-key="webserver.api.excludeClients" placeholder="Enter clients, one per line" style="resize: vertical;"></textarea>
|
||||
<p class="help-block">Clients may be described either by their IP addresses (IPv4 and IPv6 are supported), or hostnames (like <code>laptop.lan</code>).</p>
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<p><strong>Domains to be excluded from Top Domains / Ads Lists</strong></p>
|
||||
<textarea class="form-control" rows="4" id="webserver.api.excludeDomains" data-key="webserver.api.excludeDomains" placeholder="Enter domains, one per line" style="resize: vertical;"></textarea>
|
||||
<p class="help-block">Domains may be described by their domain name (like <code>example.com</code>)</p>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<p><strong>Clients to be excluded from Top Clients List</strong></p>
|
||||
<textarea class="form-control" rows="4" id="webserver.api.excludeClients" data-key="webserver.api.excludeClients" placeholder="Enter clients, one per line" style="resize: vertical;"></textarea>
|
||||
<p class="help-block">Clients may be described either by their IP addresses (IPv4 and IPv6 are supported), or hostnames (like <code>laptop.lan</code>).</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12 settings-level-0">
|
||||
<div class="box box-warning">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Theme settings</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="row">
|
||||
<div class="col-lg-3">
|
||||
<label for="webserver.interface.theme">Used theme:</label>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<select id="webserver.interface.theme" data-key="webserver.interface.theme" class="form-control" placeholder="">
|
||||
<option disabled selected>Loading...</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<input type="checkbox" id="webserver.interface.boxed" data-key="webserver.interface.boxed">
|
||||
<label for="webserver.interface.boxed"><strong>Should the web interface use the boxed layout?</strong></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -75,6 +106,13 @@ mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
|
||||
<p class="help-block">This will make the API output more human-readable, but will increase the size of the output and make the API a bit slower.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12">
|
||||
<div>
|
||||
<input type="checkbox" id="webserver.api.allow_destructive" data-key="webserver.api.allow_destructive">
|
||||
<label for="webserver.api.allow_destructive"><strong>Permit destructive actions via API</strong></label>
|
||||
<p class="help-block">This will allow clients to perform destructive actions via the API, such as rebooting or shutting down the system Pi-hole is running on.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
@@ -101,33 +139,6 @@ mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 settings-level-0">
|
||||
<div class="box box-warning">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Theme settings</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="row">
|
||||
<div class="col-lg-3">
|
||||
<label for="webserver.interface.theme">Used theme:</label>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<select id="webserver.interface.theme" data-key="webserver.interface.theme" class="form-control" placeholder="">
|
||||
<option disabled selected>Loading...</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<input type="checkbox" id="webserver.interface.boxed" data-key="webserver.interface.boxed">
|
||||
<label for="webserver.interface.boxed"><strong>Should the web interface use the boxed layout?</strong></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="box box-warning">
|
||||
<div class="box-header with-border">
|
||||
|
||||
Reference in New Issue
Block a user