mirror of
https://github.com/pi-hole/web.git
synced 2025-12-23 12:18:26 +00:00
72 lines
3.7 KiB
PHP
72 lines
3.7 KiB
PHP
<?php
|
|
/* Pi-hole: A black hole for Internet advertisements
|
|
* (c) 2017 Pi-hole, LLC (https://pi-hole.net)
|
|
* Network-wide ad blocking via your own hardware.
|
|
*
|
|
* This file is copyright under the latest version of the EUPL.
|
|
* Please see LICENSE file for your rights under this license. */ ?>
|
|
|
|
</section>
|
|
<!-- /.content -->
|
|
</div>
|
|
<!-- Modal for custom disable time -->
|
|
<div class="modal fade" id="customDisableModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
|
|
<div class="modal-dialog modal-sm" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
<h4 class="modal-title" id="myModalLabel">Custom disable timeout</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="input-group">
|
|
<input id="customTimeout" class="form-control" type="number" value="60">
|
|
<div class="input-group-btn" data-toggle="buttons">
|
|
<label class="btn btn-default">
|
|
<input type="radio"/> Secs
|
|
</label>
|
|
<label id="btnMins" class="btn btn-default active">
|
|
<input type="radio" /> Mins
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
<button id="pihole-disable-custom" type="button" class="btn btn-primary" data-dismiss="modal">Submit</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
// Flushes the system write buffers of PHP. This attempts to push everything we have so far all the way to the client's browser.
|
|
flush();
|
|
// Run update checker
|
|
// - determines local branch each time,
|
|
// - determines local and remote version every 30 minutes
|
|
require "scripts/pi-hole/php/update_checker.php";
|
|
?>
|
|
<!-- /.content-wrapper -->
|
|
<footer class="main-footer">
|
|
<!-- Version Infos -->
|
|
<div class="pull-right hidden-xs hidden-sm<?php if(isset($core_commit) || isset($web_commit) || isset($FTL_commit)) { ?> hidden-md<?php } ?>">
|
|
<b>Pi-hole Version </b> <?php
|
|
echo $core_current;
|
|
if(isset($core_commit)) { echo " (".$core_branch.", ".$core_commit.")"; }
|
|
if($core_update){ ?> <a class="alert-link lookatme" href="https://github.com/pi-hole/pi-hole/releases" target="_blank">(Update available!)</a><?php } ?>
|
|
<b>Web Interface Version </b><?php
|
|
echo $web_current;
|
|
if(isset($web_commit)) { echo " (".$web_branch.", ".$web_commit.")"; }
|
|
if($web_update){ ?> <a class="alert-link lookatme" href="https://github.com/pi-hole/AdminLTE/releases" target="_blank">(Update available!)</a><?php } ?>
|
|
<b>FTL Version </b> <?php
|
|
echo $FTL_current;
|
|
if(isset($FTL_commit)) { echo " (".$FTL_branch.", ".$FTL_commit.")"; }
|
|
if($FTL_update){ ?> <a class="alert-link lookatme" href="https://github.com/pi-hole/FTL/releases" target="_blank">(Update available!)</a><?php } ?>
|
|
</div>
|
|
<div style="display: inline-block"><strong><a href="https://pi-hole.net/donate" target="_blank"><i class="fa fa-heart"></i> Donate</a></strong> if you found this useful.</div>
|
|
</footer>
|
|
</div>
|
|
<!-- ./wrapper -->
|
|
<script src="scripts/pi-hole/js/footer.js"></script>
|
|
</body>
|
|
</html>
|