Files
web/gravity.php
Mcat12 ff55cf085e Add button to Gravity page
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.
2016-12-10 14:16:49 -05:00

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">&times;</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">&times;</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>