mirror of
https://github.com/pi-hole/web.git
synced 2026-02-20 18:00:04 +00:00
This makes sure that the user doesn't accidentally cause the lists to update because they were curious and clicked the Update Lists link on the sidebar. Also, they can update the lists multiple times, if they so desire.
28 lines
884 B
PHP
28 lines
884 B
PHP
<?php
|
|
require "header.php";
|
|
?>
|
|
<!-- Title -->
|
|
<div class="page-header">
|
|
<h1>Update list of ad-serving domains</h1>
|
|
</div>
|
|
|
|
<!-- Alerts -->
|
|
<div id="alInfo" class="alert alert-info alert-dismissible fade in" role="alert" hidden="true">
|
|
<button type="button" class="close" data-hide="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
Updating...
|
|
</div>
|
|
<div id="alSuccess" class="alert alert-success alert-dismissible fade in" role="alert" hidden="true">
|
|
<button type="button" class="close" data-hide="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
Success!
|
|
</div>
|
|
|
|
<button class="btn btn-lg btn-primary btn-block" id="gravityBtn">Update Lists</button>
|
|
<pre id="output" style="width: 100%; height: 100%;" hidden="true"></pre>
|
|
|
|
<?php
|
|
require "footer.php";
|
|
?>
|
|
|
|
|
|
<script src="js/pihole/gravity.js"></script>
|