74 lines
3.3 KiB
Plaintext
74 lines
3.3 KiB
Plaintext
<? --[[
|
|
* 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.
|
|
* ]]--
|
|
|
|
-- Iterate over the array mg.request_info.http_headers and check if there is an 'X-Forwarded-For' header
|
|
x_forwarded_for = ""
|
|
for k,v in pairs(mg.request_info.http_headers) do
|
|
if k:lower() == "x-forwarded-for" then
|
|
x_forwarded_for = mg.base64_encode(v)
|
|
break
|
|
end
|
|
end
|
|
?>
|
|
|
|
</section>
|
|
<!-- /.content -->
|
|
</div>
|
|
<!-- Modal for custom disable time -->
|
|
<div class="modal fade" id="customDisableModal" tabindex="-1" role="dialog" aria-labelledby="customDisableModalLabel">
|
|
<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="<?= i18n('shared.close') ?>"><span aria-hidden="true">×</span></button>
|
|
<h4 class="modal-title" id="customDisableModalLabel"><?= i18n('footer.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 id="selSec" type="radio"> <?= i18n('footer.secs') ?>
|
|
</label>
|
|
<label id="btnMins" class="btn btn-default active">
|
|
<input id="selMin" type="radio"> <?= i18n('footer.mins') ?>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal"><?= i18n('shared.close') ?></button>
|
|
<button type="button" id="pihole-disable-custom" class="btn btn-primary" data-dismiss="modal"><?= i18n('shared.submit') ?></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> <!-- /.content-wrapper -->
|
|
|
|
<footer class="main-footer">
|
|
<div class="row row-centered text-center">
|
|
<div class="col-xs-12 col-sm-6">
|
|
<strong><a href="https://pi-hole.net/donate/" rel="noopener noreferrer" target="_blank"><i class="fa fa-heart text-red"></i> <?= i18n('shared.donate') ?></a></strong> <?= i18n('shared.donate.message') ?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row row-centered text-center version-info">
|
|
<div class="col-xs-12 col-sm-12 col-md-10">
|
|
<ul class="list-inline" id="versions"></ul>
|
|
<p style="margin: 15px 0 0;" id="update-hint"></p>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
|
|
</div>
|
|
<!-- ./wrapper -->
|
|
<script src="<?=pihole.fileversion('scripts/js/footer.js')?>"></script>
|
|
|
|
<div id="advanced-info-data" style="display: none;" data-starttime="<?=starttime?>" data-endtime="<?=mg.time(true)?>" data-client-ip="<?=mg.request_info.remote_addr?>" data-xff="<?=x_forwarded_for?>"></div>
|
|
</body>
|
|
</html>
|