From f6e5be4e0ef648d3eb1d8a12edcb48dbb8c31037 Mon Sep 17 00:00:00 2001 From: Minteck Date: Thu, 14 Apr 2022 17:04:41 +0200 Subject: Fix --- .idea/vcs.xml | 6 ++++++ includes/functions.php | 8 ++++++++ includes/header.php | 2 +- index.php | 2 +- 4 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 .idea/vcs.xml diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/includes/functions.php b/includes/functions.php index 470a740..defa152 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -8,4 +8,12 @@ function version() { } else { return "trunk"; } +} + +function build() { + if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/.build")) { + return substr(trim(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/.build")), 0, 8); + } else { + return "dev"; + } } \ No newline at end of file diff --git a/includes/header.php b/includes/header.php index 90c5c2b..dcf51ae 100644 --- a/includes/header.php +++ b/includes/header.php @@ -1,7 +1,7 @@ - + Minteck diff --git a/index.php b/index.php index 9ea99be..c78239c 100644 --- a/index.php +++ b/index.php @@ -1,3 +1,3 @@