mirror of
https://github.com/pi-hole/web.git
synced 2025-12-22 19:58:27 +00:00
49 lines
2.2 KiB
PHP
49 lines
2.2 KiB
PHP
</section>
|
|
<!-- /.content -->
|
|
</div>
|
|
<!-- /.content-wrapper -->
|
|
<footer class="main-footer">
|
|
<?php
|
|
// Check if on a dev branch
|
|
$piholeBranch = exec("cd /etc/.pihole/ && git rev-parse --abbrev-ref HEAD");
|
|
$webBranch = exec("git rev-parse --abbrev-ref HEAD");
|
|
|
|
// Use vDev if not on master
|
|
if($piholeBranch !== "master") {
|
|
$piholeVersion = "vDev";
|
|
$piholeCommit = exec("cd /etc/.pihole/ && git describe --long --dirty --tags");
|
|
}
|
|
else {
|
|
$piholeVersion = exec("cd /etc/.pihole/ && git describe --tags --abbrev=0");
|
|
}
|
|
|
|
if($webBranch !== "master") {
|
|
$webVersion = "vDev";
|
|
$webCommit = exec("git describe --long --dirty --tags");
|
|
}
|
|
else {
|
|
$webVersion = exec("git describe --tags --abbrev=0");
|
|
}
|
|
?>
|
|
<div class="pull-right hidden-xs <?php if(isset($piholeCommit) || isset($webCommit)) { ?>hidden-md<?php } ?>">
|
|
<b>Pi-hole Version </b> <span id="piholeVersion"><?php echo $piholeVersion; ?></span><?php if(isset($piholeCommit)) { echo " (".$piholeBranch.", ".$piholeCommit.")"; } ?>
|
|
<b>Web Interface Version </b> <span id="webVersion"><?php echo $webVersion; ?></span><?php if(isset($webCommit)) { echo " (".$webBranch.", ".$webCommit.")"; } ?>
|
|
</div>
|
|
<div><i class="fa fa-github"></i> <strong><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3J2L3Z4DHW9UY">Donate</a></strong> if you found this useful.</div>
|
|
</footer>
|
|
</div>
|
|
<!-- ./wrapper -->
|
|
<script src="scripts/vendor/jquery.min.js"></script>
|
|
<script src="scripts/vendor/jquery-ui.min.js"></script>
|
|
<script src="style/vendor/bootstrap/js/bootstrap.min.js"></script>
|
|
<script src="scripts/vendor/app.min.js"></script>
|
|
|
|
<script src="scripts/vendor/jquery.dataTables.min.js"></script>
|
|
<script src="scripts/vendor/dataTables.bootstrap.min.js"></script>
|
|
<script src="scripts/vendor/Chart.bundle.min.js"></script>
|
|
|
|
<script src="scripts/pi-hole/js/footer.js"></script>
|
|
|
|
</body>
|
|
</html>
|