Dynamic versions in footer

- Shows Pi-hole and Web Interface versions
This commit is contained in:
Mcat12
2016-01-30 11:26:18 -05:00
parent 63e5405a62
commit e19b584e29
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -4,7 +4,8 @@
<!-- /.content-wrapper -->
<footer class="main-footer">
<div class="pull-right hidden-xs">
<b>Pi-hole Version</b> 2.2
<b>Pi-hole Version </b> <?php echo exec("cd /etc/.pihole/ && git describe --tags --abbrev=0"); ?>
<b>Web Interface Version </b> <?php echo exec("cd /var/www/html/admin/ && git describe --tags --abbrev=0"); ?>
</div>
<i class="fa fa-github"></i> <strong><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=3J2L3Z4DHW9UY">Donate</a></strong> if you found this useful.
</footer>
+1 -1
View File
@@ -93,7 +93,7 @@
</div><!-- /.box -->
<?php
require "footer.html";
require "footer.php";
?>
<script src="https://cdn.datatables.net/1.10.10/js/jquery.dataTables.min.js" type="text/javascript"></script>
+1 -1
View File
@@ -41,7 +41,7 @@ function getFullName() {
<ul class="list-group" id="list"></ul>
<?php
require "footer.html";
require "footer.php";
?>
<script>