Skip to content

Commit

Permalink
added version file for centralization.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vagharsh Kandilian committed Nov 14, 2017
1 parent 81c07c5 commit ae484a0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion backend/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

$consulTreeVersion = trim(file_get_contents('version'));

$password_err = null;
$username_err = null;
$rights_err = null;
Expand Down Expand Up @@ -91,7 +93,7 @@
<button>Login</button>
</form>
<br>
<h6 class="text-center" style="">Consul-tree v6.8</h6>
<h6 class="text-center" style="">Consul-tree <?php echo $consulTreeVersion; ?></h6>
</div>
</div>
<script src="../lib/js/jquery-3.2.1.min.js"></script>
Expand Down
1 change: 1 addition & 0 deletions backend/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v6.8
4 changes: 3 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
if (empty($_SESSION["authenticated"]) || $_SESSION["authenticated"] != 'true') {
header('Location: backend/login.php');
}

$consulTreeVersion = trim(file_get_contents('backend/version'));
?>
<!DOCTYPE html>
<html lang="en">
Expand Down Expand Up @@ -95,7 +97,7 @@ class="btn btn-primary update-control hidden writeACL">Update
<p class="hidden" id="gotNodeValue"></p>
<footer id="pageFooter">
<div class="container">
<p class="navbar-text navbar-lef">Consul-tree v6.8</p>
<p class="navbar-text navbar-lef">Consul-tree <?php echo $consulTreeVersion; ?></p>
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/vagharsh/consul-tree">GitHub Project</a></li>
</ul>
Expand Down

0 comments on commit ae484a0

Please sign in to comment.