From ae484a07584d7d97b657b0215705173c871766b0 Mon Sep 17 00:00:00 2001 From: Vagharsh Kandilian Date: Tue, 14 Nov 2017 10:37:32 +0400 Subject: [PATCH] added version file for centralization. --- backend/login.php | 4 +++- backend/version | 1 + index.php | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 backend/version diff --git a/backend/login.php b/backend/login.php index b3ecd1f..97c8744 100644 --- a/backend/login.php +++ b/backend/login.php @@ -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; @@ -91,7 +93,7 @@
-
Consul-tree v6.8
+
Consul-tree
diff --git a/backend/version b/backend/version new file mode 100644 index 0000000..5c556dd --- /dev/null +++ b/backend/version @@ -0,0 +1 @@ +v6.8 \ No newline at end of file diff --git a/index.php b/index.php index fcea745..2adbf8e 100644 --- a/index.php +++ b/index.php @@ -8,6 +8,8 @@ if (empty($_SESSION["authenticated"]) || $_SESSION["authenticated"] != 'true') { header('Location: backend/login.php'); } + +$consulTreeVersion = trim(file_get_contents('backend/version')); ?> @@ -95,7 +97,7 @@ class="btn btn-primary update-control hidden writeACL">Update