Update front to use .conf

This commit is contained in:
pucherot
2021-01-14 22:30:07 +01:00
parent 121a378259
commit b961a8555b
5 changed files with 32 additions and 7 deletions

View File

@@ -1,10 +1,28 @@
<!-- Main Footer -->
<footer class="main-footer">
<!-- Default to the left -->
&copy; 2021 Puche
<!--
&copy; 2020 Puche
-->
<?php
$conf_file = '../back/pialert.conf';
$conf_data = parse_ini_file($conf_file);
echo '<span style="display:inline-block; transform: rotate(180deg)">&copy;</span> '. $conf_data['VERSION_YEAR'] .' Puche';
?>
<!-- To the right -->
<div class="pull-right no-hidden-xs">
Pi.alert&nbsp&nbsp2.55&nbsp&nbsp<small>(2021-01-13)</small>
<!--
Pi.alert&nbsp&nbsp2.50&nbsp&nbsp<small>(2019-12-30)</small>
-->
<?php
$conf_file = '../back/pialert.conf';
$conf_data = parse_ini_file($conf_file);
echo 'Pi.alert&nbsp&nbsp'. $conf_data['VERSION'] .'&nbsp&nbsp<small>('. $conf_data['VERSION_DATE'] .')</small>';
?>
</div>
</footer>

View File

@@ -91,15 +91,20 @@
<li class="user-body">
<div class="row">
<div class="col-xs-4 text-center">
<a href="https://github.com/pucherot/Pi.Alert">GitHub</a>
</div>
<div class="col-xs-4 text-center">
<a href="https://github.com/pucherot/Pi.Alert">Pi.Alert</a>
<!-- <a href="#">Website</a> -->
<a href="https://github.com/pucherot/Pi.Alert">GitHub</a>
</div>
<!--
<div class="col-xs-4 text-center">
<a href="https://github.com/pucherot/Pi.Alert">Pi.Alert</a>
</div>
-->
<!--
<div class="col-xs-4 text-center">
<a href="#">Updates</a>
</div>
-->
</div>
<!-- /.row -->
</li>